[LARTC] RTSP Traffic over UDP
Hello All, I'm running performance tests on a Linux router using IPTables to nat traffic over the network. I have a MS Media streamer, and two windows clients behind the router which download video from the streamer. I can then measure performance. MS Media player rolls amongst protocols until it finds one it can use as follows RTSP UDP RTSP TCP MMS UDP MMS TCP HTTP Unfortunately it will never use UDP to stream the video files. I know this is due to the Linux router not understanding the RTSP packets. Does anyone know how I can rectify this??? Thanks, Barry. ---Outgoing mail is certified Virus Free.Checked by AVG anti-virus system (http://www.grisoft.com).Version: 6.0.637 / Virus Database: 408 - Release Date: 20/03/2004
[LARTC] Measuring SFQ performance
Hi All, Is there a way in linux to monitor the performance of an SFQ in terms of the WFI (worst case fair index), Max Min etc? Any help, or guidance appreciated, Barry. ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Fw: [Fwd: Re: [LARTC] TCNG]
Hi Martin, I tried the suggested script, but it doesn't seem to be working, I adapted it along the lines of #include "fields.tc" #include "ports.tc" #define MY_PDA 10.1.1.8 #define MY_LAPTOP 10.1.1.20 #define INTERFACE eth1 dev INTERFACE { egress{ class ( <$video> ) if tcp_sport == 1755 && ip_dst == MY_LAPTOP ; class ( <$video> ) if tcp_sport == 554 && ip_dst == MY_LAPTOP ; class ( <$video> ) if udp_sport == 1755 && ip_dst == MY_LAPTOP ; class ( <$video> ) if udp_sport == 554 && ip_dst == MY_LAPTOP ; class ( <$other> ) if 1; htb() { class ( rate 3500kbps, ceil 3500kbps ) { $video = class ( rate 30kbps, ceil 30kbps ) { sfq; } ; $laptop = class ( rate 50kbps, ceil 1500kbps ) { sfq; } ; $pda = class ( rate 50kbps, ceil 50kbps ) { sfq; } ; $other = class ( rate 150kbps, ceil 150kbps ) { sfq; } ; } } } } The BW of the video stream on the MY_LAPTOP device is roughly 150 kbps, suggesting that is has not been pick up by the criteria. I use this: #!/bin/sh IPTABLES=/sbin/iptables # ALL LINES BELOW ARE NAT ROUTING # flush out all old rules $IPTABLES -F -t nat # turn on NAT (IP MASQ for outgoing packets) $IPTABLES -A POSTROUTING -t nat -o eth0 -j MASQUERADE # enable IP Forwarding (of incoming packets) echo 1 > /proc/sys/net/ipv4/ip_forward route add default gw 10.0.0.1 # WIRELESS CARD SETUP iwconfig eth1 mode ad-hoc iwconfig eth1 essid BKR_FYP To setup my masqueradingI'm puzzled, can you suggest a way to start debuggin this? Again many thanks, Barry. Original Message Subject: Re: [LARTC] TCNGDate: Wed, 3 Mar 2004 22:55:50 -0600 (CST)From: Martin A. Brown <[EMAIL PROTECTED]>To: Barry Rooney <[EMAIL PROTECTED]>CC: [EMAIL PROTECTED]References: <[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]>Barry,: Eth0 is connected to a private network which has on it a Media Server: streaming rtsp files Eth1 is a wireless card on an ad-hoc network with: a laptop, a pda, and a desktop.Understood.: The idea is then to imitate different QoS levels to the different: devices, the idea being that the pda shouldn't need as much bw as the: desktop etc. So the three devices get dhcp leases dependant on their: mac address, and then their ip address is used to identify them and: (hopefully) tc will then allow me to create sfqs for each device.Understood.: I have tested the devices without any shaping, and also with shaping of: all rtsp/mms protocol based traffic to the 50kb class. This works and: has been confirmed by the stats on the media client, it can be quite: clearly seen any way the video starts to jump and stutter.OK.: However I have been unable to get the shaping to only occur on one: device, maybe the laptop for example whose address is 10.1.1.10I don't really understand what you mean here.Have you tried creating separate classes for each device?sfq doesn't do any shapinghtb (classes) perform shapingSo, here's a fractured/partial tcng config:#define MY_PDA 10.1.1.8#define MY_LAPTOP 10.1.1.10class ( <$video> ) if tcp_sport == PORT_RTSP && ip_dst == MY_LAPTOP ;class ( <$laptop> ) if ip_dst == MY_LAPTOP ;class ( <$pda>) if ip_dst == MY_PDA ;class ( <$other>) if 1 ;htb() {class ( rate 3500kbps, ceil 3500kbps ) {$video = class ( rate 50kbps, ceil 50kbps ) { sfq; } ;$laptop = class ( rate 50kbps, ceil 1500kbps ) { sfq; } ;$pda = class ( rate 50kbps, ceil 50kbps ) { sfq; } ;$other = class ( rate 200kbps, ceil 3500kbps ) { sfq; } ;}}I can't tell if this does what you'd like, but maybe it does.Good luck,-Martin--Martin A. Brown --- SecurePipe, Inc. --- [EMAIL PROTECTED]_______LARTC mailing list / [EMAIL PROTECTED]http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ --- Begin Message --- - Original Message From: "Barry Rooney" <[EMAIL PROTECTED]>To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>Subject: [Fwd: Re: [LARTC] TCNG]Date: 09/03/04 22:04 Original Message Subject: Re: [LARTC] TCNGDate: Wed, 3 Mar 2004 22:55:50 -0600 (CST)From: Martin A. Brown <[EMAIL PROTECTED]>To: Barry Rooney <[EMAIL PROTECTED]>CC: [EMAIL PROTECTED]References: <[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]>Barry,: Eth0 is connected to a private network which has on it a Media Server: streaming rtsp files Eth1 is a wireless card on an ad-hoc network with: a laptop, a pda, and a desktop.Understood.: The idea is then to imitate different QoS levels to the different: devices, the idea being that the pda shouldn't need as much bw as the: desktop etc. So the three devices get dhcp leases dependant on their: mac address, and then their ip address is used to identify them and: (hopefully) tc will then allow me to create sfqs for each device.U
Re: [LARTC] TCNG
Hi Martin, Eth0 is connected to a private network which has on it a Media Server streaming rtsp files Eth1 is a wireless card on an ad-hoc network with a laptop, a pda, and a desktop. The idea is then to imitate different QoS levels to the different devices, the idea being that the pda shouldn't need as much bw as the desktop etc. So the three devices get dhcp leases dependant on their mac address, and then their ip address is used to identify them and (hopefully) tc will then allow me to create sfqs for each device. I have tested the devices without any shaping, and also with shaping of all rtsp/mms protocol based traffic to the 50kb class. This works and has been confirmed by the stats on the media client, it can be quite clearly seen any way the video starts to jump and stutter. However I have been unable to get the shaping to only occur on one device, maybe the laptop for example whose address is 10.1.1.10 Martin A. Brown wrote: Hello Barry, : I'm using TCNG to restrict certain types of traffic to certain ip : addresses using a Linux router, and some masq'd computers behind it. You didn't tell us anything about the networks behind eth1. So, is this host running as an Internet access device? : #define INTERFACE eth1 : : dev INTERFACE { : egress { : : /* In class selection path, the filters come first! DSmark */ : class ( <$video> ) if tcp_sport == 554 && ip_dst == 10.1.1.10; : class ( <$other> ) if 1 ; : : /* section in which we configure the qdiscs and classes */ : : htb () { : class ( rate 3500kbps, ceil 3500kbps ) { : : $video = class ( rate 50kbps, ceil 50kbps ) { sfq; } ; : $other = class ( rate 1000kbps, ceil 3450kbps ) { sfq; } ; : : } : } : } : } : Doesn't seem to be working... Are you able to tell if traffic is classified at all into any classes ("tc -s class show dev eth1")? What happens if you [off-hours] drop your maximum rate (3500kbps) to something much slower (2000kbps)? Are you actually shaping traffic? Presumably, given the above configuration, the host 10.1.1.10 is a client and is located on the network reachable via eth1. The Internet (the source of the tcp/554 packets) must be reachable on another interface. -Martin ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
[LARTC] TCNG
Hi All, I'm using TCNG to restrict certain types of traffic to certain ip addresses using a Linux router, and some masq'd computers behind it. Unfortunately something like this... #include "fields.tc" #include "ports.tc" #define INTERFACE eth1 dev INTERFACE { egress { /* In class selection path, the filters come first! DSmark */ class ( <$video> ) if tcp_sport == 554 && ip_dst == 10.1.1.10; class ( <$other> ) if 1 ; /* section in which we configure the qdiscs and classes */ htb () { class ( rate 3500kbps, ceil 3500kbps ) { $video = class ( rate 50kbps, ceil 50kbps ) { sfq; } ; $other = class ( rate 1000kbps, ceil 3450kbps ) { sfq; } ; } } }} Doesn't seem to be working... Any ideas Thanks. ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Re: [LARTC] Very sorry about the triple post (grrrr Outlook Express)
Yawn! - Original Message - From: "Patrick Turley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 06, 2004 7:08 PM Subject: [LARTC] Very sorry about the triple post (g Outlook Express) > > > ___ > LARTC mailing list / [EMAIL PROTECTED] > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.555 / Virus Database: 347 - Release Date: 23/12/2003 ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
[LARTC] Bandwidth Analysis
Hi All, Can anyone recommend an opensource bandwidth monitoring tool that can plot throughtput and breakdown into sockets/services for proving the performance of my qdiscs? Many thanks Barry. ---Outgoing mail is certified Virus Free.Checked by AVG anti-virus system (http://www.grisoft.com).Version: 6.0.555 / Virus Database: 347 - Release Date: 23/12/2003