From: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2005@gmx.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Latency of Linux Bridge
Date: Tue, 26 Jul 2005 12:45:02 +0000 [thread overview]
Message-ID: <42E6304E.5050208@gmx.net> (raw)
In-Reply-To: <E0DE28DB991224419F668FC8DF59729A40042D@esealmw115.eemea.ericsson.se>
[-- Attachment #1: Type: text/plain, Size: 3242 bytes --]
Christian Konecny (VI/SEA) schrieb:
>
> Carl-Daniel wrote:
>> That's strange. On my bridge with 4 network interfaces,
>> the additional latency is always below 0.5 ms, even if
>> I'm pushing 400 MBit/s through the machine and a kernel
>> compile is running at 100% CPU. Network interfaces are
>> PCIe GBit from Syskonnect, the machine is an Athlon64
>> at 2 GHz. Even if the clock speed is halved by powersave
>> the additional latency will not go above 0.9 ms.
>> Kernel is vanilla 2.6.11.x.
>
> Did you use certain specific compile options?
Depends. I chose to use a slightly modified .config
from SUSE 9.3 (attached).
> I have changed now from (Knoppix) Debian to (Slax)
> Slackware running now 2.6.12.2 and have exactly the
> same on each machine.
> top shows me a CPU usage less than 0.5%, load average
> 0.1 while the bridge is handling roughly 64kBit/sec.
> I can still measure a variable delta between packets
> of 5ms-10ms.
> How did you measure your latency values?
(with bridge in between)
linux:~ # ping -f -c 1000 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
--- 192.168.0.1 ping statistics ---
1000 packets transmitted, 1000 received, 0% packet loss, time 963ms
rtt min/avg/max/mdev = 0.642/0.914/2.487/0.277 ms, ipg/ewma 0.964/1.023 ms
(same config without bridge in between)
linux:~ # ping -f -c 1000 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
--- 192.168.0.1 ping statistics ---
1000 packets transmitted, 1000 received, 0% packet loss, time 883ms
rtt min/avg/max/mdev = 0.767/0.834/4.925/0.173 ms, ipg/ewma 0.884/0.814 ms
> I am using 3 PCs, one is the Linux-Box acting as bridge
> (brctl addbr br0; brctl addif br0 eth0; brctl addif br0
> eth1), the other 2 PCs are connected to either side of
> the bridge, running ethereal.
I'm using 2 PCs (one as bridge, one as local client) and a Cisco Pix
(slow, insecure, unstable) as remote router (192.168.0.1). The
measaurements were done from the local client.
> In my case I have 2 Phone systems generating continous traffic. Each
> system is sending out packets every 30ms.
> If I compare the 2 traces I can see that after the bridge the timings
> are different then before the bridge.
It is very possible that a bridge changes the timing distribtion
(but the drastic effect you're seeing shouldn't happen).
> The difference is always in steps of 5ms.
> so, on sending side is always 30ms difference between each packet
> on receiving side - after the bridge - the delta is then 25,30,35, or 40ms.
>
> Is this really different in your setup?
Since the remote side is not a linux box, my chances to measure the
timing distribution are somewhat limited. Please try the flood ping
I did above (ping -f -c 1000 re.mo.te.ip) and report your results.
If you can see latencies above 2 ms something is definitely going
wrong. Could be the nic, the nic settings (NAPI), the timing source
or packet type (ICMP vs. IP).
1. Check ping
2a. If ping looks wrong -> try my .config and check again
2b. If ping looks OK -> try the phone while running (ping -f re.mo.te.ip)
3. Report back.
Grüße aus Tübingen
Carl-Daniel
--
http://www.hailfinger.org/
[-- Attachment #2: config.gz --]
[-- Type: application/x-gzip, Size: 10026 bytes --]
[-- Attachment #3: Type: text/plain, Size: 143 bytes --]
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
next prev parent reply other threads:[~2005-07-26 12:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-22 7:55 [LARTC] Latency of Linux Bridge Christian Konecny (VI/SEA)
2005-07-22 9:12 ` Jonathan Day
2005-07-22 11:35 ` Christian Konecny (VI/SEA)
2005-07-22 15:28 ` Carl-Daniel Hailfinger
2005-07-22 23:49 ` Stephen Hemminger
2005-07-26 7:15 ` Christian Konecny (VI/SEA)
2005-07-26 12:45 ` Carl-Daniel Hailfinger [this message]
2005-07-26 13:09 ` Christian Konecny (VI/SEA)
2005-07-26 14:37 ` Christian Konecny (VI/SEA)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42E6304E.5050208@gmx.net \
--to=c-d.hailfinger.devel.2005@gmx.net \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.