All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] netem bug?
@ 2005-01-27 14:13 Pedro Ancona Lopez Mindlin
  2005-01-27 14:42 ` Catalin(ux aka Dino) BOIE
  2005-01-27 15:09 ` Michael Renzmann
  0 siblings, 2 replies; 3+ messages in thread
From: Pedro Ancona Lopez Mindlin @ 2005-01-27 14:13 UTC (permalink / raw)
  To: lartc

Hi all,

I'm running some tests with netem and I noticed some strange behaviour 
that looks like a bug: I'm pinging another machine and adding delay with 
netem. When I tell netem to give me a 10ms delay, it works fine. The 
problem is that when I ask for a 11ms delay, it gives me 20ms! It 
happens for any value between 11ms an 20ms, and it repeats for values 
over 20ms, now rounding up to 30ms.

Here is an example:

# ping x.x.x.x
PING x.x.x.x (x.x.x.x) 56(84) bytes of data.
64 bytes from x.x.x.x: icmp_seq=1 ttld time=0.197 ms
64 bytes from x.x.x.x: icmp_seq=2 ttld time=0.100 ms
64 bytes from x.x.x.x: icmp_seq=3 ttld time=0.081 ms
64 bytes from x.x.x.x: icmp_seq=4 ttld time=0.099 ms

# tc qdisc add dev eth0 root netem delay 10ms
# ping x.x.x.x
PING x.x.x.x (x.x.x.x) 56(84) bytes of data.
64 bytes from x.x.x.x: icmp_seq=1 ttld time=1.11 ms
64 bytes from x.x.x.x: icmp_seq=2 ttld time=9.04 ms
64 bytes from x.x.x.x: icmp_seq=3 ttld time=9.24 ms
64 bytes from x.x.x.x: icmp_seq=4 ttld time\x10.0 ms


# tc qdisc change dev eth0 root netem delay 11ms
# ping x.x.x.x
PING x.x.x.x (x.x.x.x) 56(84) bytes of data.
64 bytes from x.x.x.x: icmp_seq=1 ttld time\x13.1 ms
64 bytes from x.x.x.x: icmp_seq=2 ttld time .0 ms
64 bytes from x.x.x.x: icmp_seq=3 ttld time .0 ms
64 bytes from x.x.x.x: icmp_seq=4 ttld time .0 ms

# tc qdisc change dev eth0 root netem delay 23ms
# ping x.x.x.x
PING x.x.x.x (x.x.x.x) 56(84) bytes of data.
64 bytes from x.x.x.x: icmp_seq=1 ttld time".2 ms
64 bytes from x.x.x.x: icmp_seq=2 ttld time).8 ms
64 bytes from x.x.x.x: icmp_seq=3 ttld time).1 ms
64 bytes from x.x.x.x: icmp_seq=4 ttld time0.0 ms

# uname -a
Linux yyy 2.4.27-1-386 #1 Fri Sep 3 06:24:46 UTC 2004 i686 GNU/Linux


Is this a known bug? Is there any fix? I also noticed that the first 
ping has always a smaller value. Can someone explain that?

Thanks,

Pedro.

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

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

end of thread, other threads:[~2005-01-27 15:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-27 14:13 [LARTC] netem bug? Pedro Ancona Lopez Mindlin
2005-01-27 14:42 ` Catalin(ux aka Dino) BOIE
2005-01-27 15:09 ` Michael Renzmann

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.