Re: [mpls-linux-general] How to measure traffic in the core of a MPLS network
Status: Beta
Brought to you by:
jleu
|
From: James R. L. <jl...@mi...> - 2006-02-13 23:14:44
|
Hmm. This is a good question. So first I want to point out that are counter stored on each ILM and NHLFE. You can get access to these counters via netlink. So I do not know of a way to directly match the label. This sounds like an excellent opportunity for a project if anyone is looking for one. I can already image ways of doing this. (mplstables anyone?) I don't think iptables is going to help you at all in this effort since it only can interact with packets that go into the IPv4 stack. In the core of the network the packet never leave the MPLS stack. TC might be able to help by using its 'match' code which allows you to specify an offset and a hex-value to match against (pretty tedious). Once you have a match I think you could apply some "tc actions" to the packet. I'm not sure what all actions you can apply, but I think there is a mechanism for counting packets. Let me know what you find. On Mon, Feb 13, 2006 at 10:59:38PM +0000, Guilherme Torres wrote: > I'm trying to measure the MPLS traffic between two > LSR's in the core of a MPLS network. How do I do to > match the label of a MPLS packet in a iptables rule?=20 >=20 > I tryed to use a rule like "iptables -A FORWARD -m mac > --mac-source 00:A0:C9:73:EF:77 -j ACCEPT" but it > doesn't count any byte. >=20 > Best regards >=20 >=20 > =09 > _______________________________________________________ > Yahoo! Acesso Gr?tis - Internet r?pida e gr?tis. Instale o discador agora! > http://br.acesso.yahoo.com >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat= =3D121642 > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general --=20 James R. Leu jl...@mi... |