From owner-rtfm@auckland.ac.nz  Sun Oct 10 19:25:41 1999
Received: from mailhost.auckland.ac.nz (mailhost.auckland.ac.nz [130.216.1.4])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA10020
	for <rtfm-archive@odin.ietf.org>; Sun, 10 Oct 1999 19:25:35 -0400 (EDT)
Received: (from majordom@localhost)
	by mailhost.auckland.ac.nz (8.9.2/8.9.2/8.9.2-ua) id KAA13470;
	Mon, 11 Oct 1999 10:18:19 +1300 (NZDT)
Received: from n.browlee5.itss.auckland.ac.nz (n.brownlee5.itss.auckland.ac.nz [130.216.4.79])
	by mailhost.auckland.ac.nz (8.9.2/8.9.2/8.9.2-ua) with SMTP id KAA13433;
	Mon, 11 Oct 1999 10:17:59 +1300 (NZDT)
From: Nevil Brownlee <n.brownlee@auckland.ac.nz>
To: Juergen Quittek <quittek@ccrle.nec.de>
Cc: RTFM mailing list <rtfm@auckland.ac.nz>
Subject: Re: single point of measurement problem: router traffic meter
In-Reply-To: <37E64E30.3BCE3D9F@ccrle.nec.de>
Message-ID: <SIMEON.9910111038.E@n.auckland.ac.nz>
Date: Mon, 11 Oct 1999 10:18:38 +1300 (New Zealand Daylight Time)
Priority: NORMAL
X-Mailer: Simeon for Win32 Version 4.1.4 Build (40)
X-Authentication: none
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Sender: owner-rtfm@auckland.ac.nz
Precedence: bulk


Hello Juergen:

re: your note dated 20 Sep 99

> the architecture as defined by RFC 2063 (and also by the current ID)
> does not support this task in a convenient way.
> 
> Our main problem is the point of measurement. It is defined to be
> a single interface of the router and not the IP forwarding engine.

Although the RTFM Architecture draft describes a meter as observing
traffic as a single point - the METERING POINT - it also says (as an 
example of how to implement a meter)

" A meter could be implemented in various ways, including:

  .......

  - A packet-forwarding device such as a router or switch.  This is
    similar to (b) except that every received packet should also be
    forwarded, usually on a different interface. "

To take this a step further, the Architecture includes among the address 
attributes 

" - Addresses for the flow's source and destination.  These include
    addresses and masks for various network layers (extracted from the
    packet header), and the identity of the interface on which the
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    packet was observed. "

Further, the attributes include both source- and dest- PeerType 
attributes, allowing the architecture to handle gateways, where packets 
came in on one interface as (say) AppleTalk, and went out another 
interface as IP packets!  Quite a while back, at one of the WG meetings, 
we disucssed whether this 'gateway' ability was useful; consensus was to 
keep it in the architecture.

> Solution 2:
>   Move the point of measurement to the IP forwarding engine and
>   run a single meter at this point.
> 
>   This solves the described problem, but it has several disadvantages:
> 
>   a. It is not compatible to the traffic flow measurement
>      architecture. (Solution 1 is compatible.)

Not a problem, see comments above :-)

>   b. The new "point" of measurement is rather large and may
>      be extended at runtime, e.g. by starting a multicast
>      daemon. The implementation of the Meter must somehow be
>      done "in parallel" with the entire IP forwarding engine.
>      This can be done for commercial router devices where all
>      software updates are checked by the manufacturer before
>      they are delivered to the customers, but it seems to be
>      hard for e.g. a Linux system used as router.
> 
>   c. The forwarding engine does a lot more with packets than
>      the interfaces. E.g. a packet may be dropped, because
>      of missing buffer space or another unability to deliver it.
> 
>      Also a single arriving packet may be sent out in several
>      copies to different interfaces, when mutlicast is supported.
>      Currently, the traffic flow archtitecture does not discuss
>      these issues, because they do not occur, if the point of
>      measurement is at a single interface.
> 
>      If handles well, this inconsistency with the architecture
>      might be turned to an advantage (at least in our application),
>      because you can measure these actions in the forwarding engine
>      and reflect them by new attributes, e.g. the number of dropped
>      packets.
> 
> Despite the list of disadvantages, we have implemented a prototype
> of solution 2 based on the NeTraMet distribution. We had to modify
> the Meter MIB a bit, e.g. supporting several output interfaces
> for a flow and adding COUNT attributes for the number of dropped
> packets and the number of used destination interfaces.

There is already one implementation of this - Cisco NetFlow provides the 
source and destination interfaces for the flows it sees, and NetFlowMet 
makes these accessible to rulesets.

I've had "implement NeTraMet within a modified gated" in mind as a 
research project for some time, but haven't got round to it yet.  I'm 
delighted that you've done this; I hope that sharing the experiences with 
this will encourage vendors of switches and routers to implement the 
Meter MIB in their devices.  Real soon now!

A comment on flows through a device with multiple interfaces, for a 
switch on a LAN each host will only appear on a single interface 
(although that could change with time if a link fails).  That means that 
a flow between two hosts, A and B will almost always have the same pair 
of interfaces, say A-1-2-B.  In this case the interfaces don't add much 
information to the flow.  But it could be very useful to look at flows 
between interfaces so as to spot the busiest paths through a switch.

For a router, however, packets could go to and from B via two (or more) 
interfaces, say 2 and 3.  So now there are four possible paths -
1->2 + 1<-2, 1->3 + 1<-3, 1->2 + 1<-3 and 1->3 + 1<-2.  Observing these 
four flows could be useful, say in a situation where load balancing was 
causing part of the A-B traffic to take two different paths. 

On the question of multicast, there's nothing in the architecture, 
although we know we need something to cover it!

One thought has occured to me - how about a DestMulticastCount attribute,
which indicated how many interfaces a multicast packet was being sent out 
over?  A zero value would indicate a unicast flow, higher values would 
indicate the coverage (within a switch) of the multicast.

Comments and suggestions please ...

Cheers, Nevil

PS: This is definitely a topic we could talk about in person at the 
    IETF meeting in Washington DC!

+---------------------------------------------------------------------+
| Nevil Brownlee                     Director, Technology Development |
| Phone: +64 9 373 7599 x8941        ITSS, The University of Auckland |
|   FAX: +64 9 373 7021      Private Bag 92019, Auckland, New Zealand |
+---------------------------------------------------------------------P



From owner-rtfm@auckland.ac.nz  Fri Oct 15 11:22:10 1999
Received: from mailhost.auckland.ac.nz (mailhost.auckland.ac.nz [130.216.1.4])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA14389
	for <rtfm-archive@odin.ietf.org>; Fri, 15 Oct 1999 11:22:05 -0400 (EDT)
Received: (from majordom@localhost)
	by mailhost.auckland.ac.nz (8.9.2/8.9.2/8.9.2-ua) id BAA10305;
	Sat, 16 Oct 1999 01:35:31 +1300 (NZDT)
Received: from s2.smtp.oleane.net (s2.smtp.oleane.net [195.25.12.6])
	by mailhost.auckland.ac.nz (8.9.2/8.9.2/8.9.2-ua) with ESMTP id BAA10300
	for <rtfm@auckland.ac.nz>; Sat, 16 Oct 1999 01:35:24 +1300 (NZDT)
Received: from Dell  (dyn-1-1-255.Cor.dialup.oleane.fr [62.161.8.255])  by s2.smtp.oleane.net  with SMTP id OAA95005; Fri, 15 Oct 1999 14:35:02 +0200 (CEST)
Message-ID: <009c01bf1709$a9d953c0$0701a8c0@oleane.com>
From: "Peter Lewis" <peter.lewis@upperside.fr>
To: <Undisclosed-Recipient:@s2.smtp.oleane.net;>
Subject: Media Gateway Control Conference
Date: Fri, 15 Oct 1999 14:34:42 +0200
Organization: Upperside
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0099_01BF171A.6B522F80"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Sender: owner-rtfm@auckland.ac.nz
Precedence: bulk

This is a multi-part message in MIME format.

------=_NextPart_000_0099_01BF171A.6B522F80
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

MGCP, Megaco, H.248: performing seamless interoperation between IP and =
PSTN
networks. The international rendez-vous in Paris, 15-17 December 1999.

More infos:=20
http://www.upperside.fr/bamgc.htm


------=_NextPart_000_0099_01BF171A.6B522F80
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>
<DIV><FONT size=3D3>MGCP, Megaco, H.248: performing seamless =
interoperation=20
between IP and PSTN<BR>networks. The international rendez-vous in Paris, =
15-17=20
December 1999.<BR><BR>More infos: </FONT></DIV>
<DIV><FONT color=3D#800080 size=3D3><A=20
href=3D"http://www.upperside.fr/bamgc.htm">http://www.upperside.fr/bamgc.=
htm</A></FONT></DIV></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0099_01BF171A.6B522F80--



From owner-rtfm@auckland.ac.nz  Thu Oct 21 11:06:21 1999
Received: from mailhost.auckland.ac.nz (mailhost.auckland.ac.nz [130.216.1.4])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA28209
	for <rtfm-archive@odin.ietf.org>; Thu, 21 Oct 1999 11:06:18 -0400 (EDT)
Received: (from majordom@localhost)
	by mailhost.auckland.ac.nz (8.9.2/8.9.2/8.9.2-ua) id BAA24472;
	Fri, 22 Oct 1999 01:35:43 +1300 (NZDT)
Received: from tokyo.ccrle.nec.de (tokyo.ccrle.nec.de [195.37.70.2])
	by mailhost.auckland.ac.nz (8.9.2/8.9.2/8.9.2-ua) with ESMTP id BAA24463;
	Fri, 22 Oct 1999 01:35:32 +1300 (NZDT)
Received: from ccrle.nec.de (cologne.berlin.ccrle.nec.de [192.168.100.79])
	by tokyo.ccrle.nec.de (8.8.8/3.6W980303HK) with ESMTP id OAA19713;
	Thu, 21 Oct 1999 14:35:21 +0200 (CEST)
Message-ID: <380F093E.49EA1097@ccrle.nec.de>
Date: Thu, 21 Oct 1999 14:38:22 +0200
From: Juergen Quittek <quittek@ccrle.nec.de>
Organization: NEC Europe Ltd.
X-Mailer: Mozilla 4.04 [en] (WinNT; I)
MIME-Version: 1.0
To: Nevil Brownlee <n.brownlee@auckland.ac.nz>
CC: RTFM mailing list <rtfm@auckland.ac.nz>
Subject: Re: single point of measurement problem: router traffic meter
References: <SIMEON.9910111038.E@n.auckland.ac.nz>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-rtfm@auckland.ac.nz
Precedence: bulk
Content-Transfer-Encoding: 7bit

Hello Neville,

Thank you for your deatiled reply. I am glad to learn that what we
implemented conforms to the RTFM architecture. However, there
are some open issues left, which I think the description of the
architecture should clarify.

1. input != output

  If I take the IP forwarding engine of a router as METERING POINT,
  then it is not clear to me, how to handle differences in packet
  input and packet output.

  A simple case is dropped packets. They enter the forwarding engine,
  but never leave it. Shall they be counted in the packet and byte
  counter or not?
  The obvious solution to this problem is introducing further COUNT
  attributes DataToPDUsDropped and DataFromPDUsDropped and maybe
  also DataToOctetsDropped and DataFromOctetsDropped.

  More complex is the problem of multicast packets. A single entering
  packet may be sent out in several copies via different interfaces.
  Shall the Meter count one packet or the number of outgoing packets?

2. ambiguous output interface

  An  problem related to counting multicast packets is matching
  multicast packets. Lets assume we want to measure in a ruleset
  how many multicast packets are leaving the router per interface.
  The naive rule definition would match multicast packets on any
  outInterface and make the outInterface part of the flow key,
  such that we get an entry in the flow table for each interface
  where multicast packets leave our router.

  How shall this be realized in the PME?

  We could send the multicast packet once to the PME with a list
  of outInterfaces attached. But then we would have to modify the
  PME, because currently it matches only outInterfaces to single
  attributes and not to lists.

  Another solution would be to send one instance of the multicast
  packet to the PME for each used outInterface. This would not
  require a change of the PME and appears to be a rather 'natural'
  solution for multicast.
  A slight problem I see with this solution occurs when you measure
  the following traffic:
  - flow 1: all packets entering at interf A and leaving at interf B
  - flow 2: all packets entering at interf A and leaving at interf C
  - flow 3: all packets entering at interf A (in another rule set)
  Note that with our multicast solution, the sum of the number of
  packets in flows 1 and 2 can be greater than the number of packets
  in flow 3. This may lead to confusion.

The description of these problems leads to the major point I want
to make in this message:

I think both problems (input != output and ambiguous output interface)
can be solved if we specify in the architecture, that we count only
packets _LEAVING_ the metering point and not (necessarily) packets
_ARRIVING_ at the metering.

With this specification,
  1. the introduction of counter for dropped packets and bytes is
     not necessary, because they are not to be counted.
  2. The second, more natural solution for multicast would be implied
     and the possible confusion about this solution (as described above)
     would be avoided.


    Juergen
-- 
Juergen Quittek    quittek@ccrle.nec.de   http://www.ccrle.nec.de
NEC Europe Ltd., C&C Research Laboratories  Tel: +49 30 254230-19
Hardenbergplatz 2, 10623 Berlin, Germany    Fax: +49 30 254230-99


From owner-rtfm@auckland.ac.nz  Thu Oct 21 11:13:43 1999
Received: from mailhost.auckland.ac.nz (mailhost.auckland.ac.nz [130.216.1.4])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA28652
	for <rtfm-archive@odin.ietf.org>; Thu, 21 Oct 1999 11:13:41 -0400 (EDT)
Received: (from majordom@localhost)
	by mailhost.auckland.ac.nz (8.9.2/8.9.2/8.9.2-ua) id CAA25698;
	Fri, 22 Oct 1999 02:07:52 +1300 (NZDT)
Received: from tokyo.ccrle.nec.de (tokyo.ccrle.nec.de [195.37.70.2])
	by mailhost.auckland.ac.nz (8.9.2/8.9.2/8.9.2-ua) with ESMTP id CAA25692;
	Fri, 22 Oct 1999 02:07:46 +1300 (NZDT)
Received: from ccrle.nec.de (cologne.berlin.ccrle.nec.de [192.168.100.79])
	by tokyo.ccrle.nec.de (8.8.8/3.6W980303HK) with ESMTP id PAA19996;
	Thu, 21 Oct 1999 15:07:41 +0200 (CEST)
Message-ID: <380F10D2.CC3BD8F@ccrle.nec.de>
Date: Thu, 21 Oct 1999 15:10:42 +0200
From: Juergen Quittek <quittek@ccrle.nec.de>
Organization: NEC Europe Ltd.
X-Mailer: Mozilla 4.04 [en] (WinNT; I)
MIME-Version: 1.0
To: Nevil Brownlee <n.brownlee@auckland.ac.nz>
CC: RTFM mailing list <rtfm@auckland.ac.nz>
Subject: Re: single point of measurement problem: router traffic meter
References: <SIMEON.9910111038.E@n.auckland.ac.nz>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-rtfm@auckland.ac.nz
Precedence: bulk
Content-Transfer-Encoding: 7bit

Nevil Brownlee wrote:
> 
 ...
>
> On the question of multicast, there's nothing in the architecture,
> although we know we need something to cover it!
> 
> One thought has occured to me - how about a DestMulticastCount attribute,
> which indicated how many interfaces a multicast packet was being sent out
> over?  A zero value would indicate a unicast flow, higher values would
> indicate the coverage (within a switch) of the multicast.
> 
> Comments and suggestions please ...

We implemented such an attribute in our prototype. We followed the
same approach you suggest, but we ended up with TWO new attributes.

The DestMulicastCount has to be a COUNT attribute, because it may
change its value over time. This implies that you cannot match on it
as you cannot match on the DataToPDUs. At least it would not make
much sense to have the DestMulticastCount in your flow key, because
it would use (or create) a different entry in the flow table whenever
the number of subscribers of your multicast flow changes.

However, it would be very helpful to have a matchable attribute
which can be used to distinguish multicast packets from other
traffic. Checking all possible multicast addresses is quiet
circumstantial. Therfore, we added the attribute IsMulticast
which has a length of one bit and which has the value 1 for
multicast packets and 0 otherwise.

    Juergen
-- 
Juergen Quittek    quittek@ccrle.nec.de   http://www.ccrle.nec.de
NEC Europe Ltd., C&C Research Laboratories  Tel: +49 30 254230-19
Hardenbergplatz 2, 10623 Berlin, Germany    Fax: +49 30 254230-99


From owner-rtfm@auckland.ac.nz  Tue Oct 26 20:46:02 1999
Received: from mailhost.auckland.ac.nz (mailhost.auckland.ac.nz [130.216.1.4])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA08705
	for <rtfm-archive@odin.ietf.org>; Tue, 26 Oct 1999 20:46:00 -0400 (EDT)
Received: (from majordom@localhost)
	by mailhost.auckland.ac.nz (8.9.2/8.9.2/8.9.2-ua) id LAA01163;
	Wed, 27 Oct 1999 11:46:06 +1300 (NZDT)
Received: from n.browlee5.itss.auckland.ac.nz (n.brownlee5.itss.auckland.ac.nz [130.216.4.79])
	by mailhost.auckland.ac.nz (8.9.2/8.9.2/8.9.2-ua) with SMTP id LAA01134
	for <rtfm@auckland>; Wed, 27 Oct 1999 11:45:58 +1300 (NZDT)
From: Nevil Brownlee <n.brownlee@auckland.ac.nz>
To: rtfm@auckland.ac.nz
Subject: PAM-2000: Traffic Measurement Conference Reminder
Message-ID: <SIMEON.9910271107.D@n.auckland.ac.nz>
Date: Wed, 27 Oct 1999 11:46:07 +1300 (New Zealand Daylight Time)
Priority: NORMAL
X-Mailer: Simeon for Win32 Version 4.1.4 Build (40)
X-Authentication: none
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Sender: owner-rtfm@auckland.ac.nz
Precedence: bulk



             Passive & Active Measurement: PAM-2000
                         Call for papers

A workshop on passive and active measurement techniques for high speed
computer networks and the Internet

           University of Waikato, Hamilton, New Zealand
                       April 3 and 4, 2000

                Abstracts due: 15 November 1999
              Full papers due: 15 February 2000

For further information please see http://pam2000.cs.waikato.ac.nz

+---------------------------------------------------------------------+
| Nevil Brownlee                     Director, Technology Development |
| Phone: +64 9 373 7599 x8941        ITSS, The University of Auckland |
|   FAX: +64 9 373 7021      Private Bag 92019, Auckland, New Zealand |
+---------------------------------------------------------------------P



From owner-rtfm@auckland.ac.nz  Wed Oct 27 16:56:58 1999
Received: from mailhost.auckland.ac.nz (mailhost.auckland.ac.nz [130.216.1.4])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA07970
	for <rtfm-archive@odin.ietf.org>; Wed, 27 Oct 1999 16:56:56 -0400 (EDT)
Received: (from majordom@localhost)
	by mailhost.auckland.ac.nz (8.9.2/8.9.2/8.9.2-ua) id IAA06075;
	Thu, 28 Oct 1999 08:02:25 +1300 (NZDT)
Received: from server.letras.de (h-62.96.219.225.host.de.colt.net [62.96.219.225])
	by mailhost.auckland.ac.nz (8.9.2/8.9.2/8.9.2-ua) with ESMTP id IAA06022
	for <rtfm@auckland.ac.nz>; Thu, 28 Oct 1999 08:02:16 +1300 (NZDT)
Received: from camioneta.letras.de (IDENT:ra@camioneta.letras.de [192.168.8.4])
	by server.letras.de (8.9.3/8.9.0) with ESMTP id VAA19480
	for <rtfm@auckland.ac.nz>; Wed, 27 Oct 1999 21:01:34 +0200
Received: (from ra@localhost)
	by camioneta.letras.de (8.8.7/8.8.5) id VAA27456
	for rtfm@auckland.ac.nz; Wed, 27 Oct 1999 21:01:34 +0200
Date: Wed, 27 Oct 1999 18:19:12 +0200
From: Ralph Angenendt <ralph@letras.de>
To: rtfm@auckland.ac.nz
Subject: Counting both ways?
Message-ID: <19991027181912.A15815@camioneta.letras.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 1.0i
X-Mailer: Mutt 1.0i
Sender: owner-rtfm@auckland.ac.nz
Precedence: bulk

Hi,

we're trying to measure traffic on a router (1 WAN card, two
Ethernet cards). We're measuring on one Ethernet card.

What we're trying to measure is 

a) the traffic which goes to and from the proxy on that machine
   (Port 3128),

b) all other traffic going from our Network into the outer world

c) so we ignore all Traffic, which is coming from our Network and
   goes back into our Network - except port 3128.

But:

We have difficulties measuring the traffic which comes from port
3128 and goes back into our network - I can see the traffic going
from our Network to the proxy.

If I turn off all other measuring, I can see those packets - but
even if I try to measure the stuff which is arriving at the proxy, I
can't see the traffic which comes back from the proxy.

I can't find any logical errors in this srl-file, but maybe I am
just misunderstanding the whole concept of Netramet ;-)

Any help would be greatly appreciated,

Ralph


So here's the relevant part of our srl-file (the call to
kostenstelle just gives each packet a FlowKind, and calls the
log()-Subroutine - which is included here:


SET 10;

FORMAT SourcePeerAddress DestPeerAddress SourceTransType
DestTransType SourceTransAddress DestTransAddress FlowKind ToOctets
FromOctets;

define proxy = 3128;
define ignore_nets = ( 192.168.0.0/16, 62.96.219.0/24);

if SourcePeerType == IPv4
{
  if SourceTransAddress == proxy
    { call kostenstelle ()
      endcall;
    }
 else if DestTransAddress == proxy
     { call kostenstelle ()
      endcall;
    }
  
  else if (SourcePeerAddress == ignore_nets && DestPeerAddress == ignore_nets)
  { ignore; }

  else 
  { call kostenstelle ()
    endcall; }
}
else ignore;
count;


subroutine kostenstelle ()

#Kostenstelle Letras

if (DestPeerAddress == 62.96.219.225 || SourcePeerAddress == 62.96.219.225) 
  { store FlowKind := 'L';
    call log ()
    endcall; }

[... Huge snip ...]    
    
else { store FlowKind := '?';
       call log ()
       endcall; }
endsub;

subroutine log ()
    save SourcePeerAddress;
    save DestPeerAddress;
    save SourcePeerType;
    save DestPeerType;
    save SourceTransType;
    save DestTransType;
    save SourceTransAddress;
    save DestTransAddress;
endsub;


-- 
__________________________________________________________________________
Ralph Angenendt       | "Military justice is to justice what military
http://www.letras.de  |  music is to music"
ra@letras.de          |                -- Groucho Marx


