All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] help,  strange question about tcp and udp traffic control?
@ 2002-11-06 14:07 lihpc
  2002-11-06 17:00 ` Stef Coene
  0 siblings, 1 reply; 2+ messages in thread
From: lihpc @ 2002-11-06 14:07 UTC (permalink / raw)
  To: lartc



Hi ;



    +--------+           +-----------+                     +--------+
    | server |---------- | linux box |---------------------| Client |
    +--------+           +-----------+                     +--------+

MY script:

tc-htb3 qdisc del dev eth1 root
ipchains -F

tc-htb3 qdisc add dev eth1 root handle 10: htb default 20  r2q 40

tc-htb3 class add dev eth1 parent 10: classid 10:1 htb rate 50Mbit   burst
2000

tc-htb3 class add dev eth1 parent 10:1 classid 10:100 htb rate 12mbit ceil
13mbit prio 1
tc-htb3 class add dev eth1 parent 10:1 classid 10:20 htb rate 38mbit ceil
50Mbit prio 7

ipchains -A fw -s 10.1.1.1 -d 10.1.5.1 -m 100
ipchains -A fw -s 0.0.0.0 -d 0.0.0.0 -j ACCEPT

tc-htb3 filter add dev eth1 protocol ip parent 10:0 prio 1 handle 100  fw
classid 10:100




I've find one strange question about traffic control when sending udp data
and tcp data.
Could you explain it ? thanks


question:

WHEN I measure maximum UDP bandwidth by using "Iperf -1.6 -s -u" in server
host and "iperf-1.6 -c <server address>  -u  -b 50m" in client host, the
bandwidth is 12.1mbit.
OK.  work well.

BUT
WHEN I measure maximum TCP bandwidth by using"Iperf -1.6 -s " in server
host and "iperf-1.6 -c <server address>  " in client host, the bandwidth is
only 3.1mbit.
WHY ?


haipe




_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LARTC] help,  strange question about tcp and udp traffic control?
  2002-11-06 14:07 [LARTC] help, strange question about tcp and udp traffic control? lihpc
@ 2002-11-06 17:00 ` Stef Coene
  0 siblings, 0 replies; 2+ messages in thread
From: Stef Coene @ 2002-11-06 17:00 UTC (permalink / raw)
  To: lartc

On Wednesday 06 November 2002 15:07, lihpc@Legend.com wrote:
> Hi ;
>
>
>
>     +--------+           +-----------+                     +--------+
>
>     | server |---------- | linux box |---------------------| Client |
>
>     +--------+           +-----------+                     +--------+
>
> MY script:
>
> tc-htb3 qdisc del dev eth1 root
> ipchains -F
>
> tc-htb3 qdisc add dev eth1 root handle 10: htb default 20  r2q 40
>
> tc-htb3 class add dev eth1 parent 10: classid 10:1 htb rate 50Mbit   burst
> 2000
>
> tc-htb3 class add dev eth1 parent 10:1 classid 10:100 htb rate 12mbit ceil
> 13mbit prio 1
> tc-htb3 class add dev eth1 parent 10:1 classid 10:20 htb rate 38mbit ceil
> 50Mbit prio 7
>
> ipchains -A fw -s 10.1.1.1 -d 10.1.5.1 -m 100
> ipchains -A fw -s 0.0.0.0 -d 0.0.0.0 -j ACCEPT
>
> tc-htb3 filter add dev eth1 protocol ip parent 10:0 prio 1 handle 100  fw
> classid 10:100
>
>
>
>
> I've find one strange question about traffic control when sending udp data
> and tcp data.
> Could you explain it ? thanks
>
>
> question:
>
> WHEN I measure maximum UDP bandwidth by using "Iperf -1.6 -s -u" in server
> host and "iperf-1.6 -c <server address>  -u  -b 50m" in client host, the
> bandwidth is 12.1mbit.
> OK.  work well.
>
> BUT
> WHEN I measure maximum TCP bandwidth by using"Iperf -1.6 -s " in server
> host and "iperf-1.6 -c <server address>  " in client host, the bandwidth is
> only 3.1mbit.
> WHY ?
I'm not sure, but your burst is way to low.  Can you remove the burst 
parameter from class 10:1 and try again ??
And can you check the tc and ipchains counters so the packets are placed in 
the queue you want ?

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-06 17:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-06 14:07 [LARTC] help, strange question about tcp and udp traffic control? lihpc
2002-11-06 17:00 ` Stef Coene

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.