* [LARTC] QoS and VoIP
@ 2005-03-11 14:04 Alessandro Oliveira Ungaro
2005-03-12 15:50 ` Ed Wildgoose
0 siblings, 1 reply; 2+ messages in thread
From: Alessandro Oliveira Ungaro @ 2005-03-11 14:04 UTC (permalink / raw)
To: lartc
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
I made some filters on tc to match the VoIP traffic based on RTP packet
RFC 1889.
The only patern I found was the rtp version and the payload type wich
identify the codec. The u32 rules are:
- - match ip protocol 0x11 0xff -> UDP
- - match u8 0x80 0xc0 at 28 -> RTP version 2 (two fists bits '10' of the
byte)
- - match u8 0x61 0x7f at 29 -> Codec number 97 (seven bits of the byte
without the first bit)
This with a iptables marking the packet with dport and sport > 1024 work
fine. But if I have more codecs I need more filter rules.
Some idea to match better?
Thanks.
x-arnie
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)
iD8DBQFCMaWASp5uKJPliCsRAh3HAJwIGeFfWcUp+xu4/Hvdsnm2YIdCzACfW2wt
j3HJghFYfZPlWVshRR8cx9YŽwq
-----END PGP SIGNATURE-----
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] QoS and VoIP
2005-03-11 14:04 [LARTC] QoS and VoIP Alessandro Oliveira Ungaro
@ 2005-03-12 15:50 ` Ed Wildgoose
0 siblings, 0 replies; 2+ messages in thread
From: Ed Wildgoose @ 2005-03-12 15:50 UTC (permalink / raw)
To: lartc
Alessandro Oliveira Ungaro wrote:
>
> I made some filters on tc to match the VoIP traffic based on RTP packet
> RFC 1889.
>
> The only patern I found was the rtp version and the payload type wich
> identify the codec. The u32 rules are:
Interesting question!
This is probably a good questino to take to the l7 (layer 7) mailing
list as well. See if they have some stuff already...
Sorry, no practical better suggestions from me though...
Ed W
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-12 15:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-11 14:04 [LARTC] QoS and VoIP Alessandro Oliveira Ungaro
2005-03-12 15:50 ` Ed Wildgoose
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.