Linux vs. Windows XP routing latency
Hello, I have a problem with the latency of the packets passing a Linux router, and I thought perhaps you could put some light on it.
It's quite simple. I have one ADSL connection, and a LAN. The gateway is the Linux machine or a Windows XP machine. When the wXP is routing, for a host inside the LAN, the latency of, for example, the Counter Strike game to a given server is around 20 to 30 ms. When the Linux box is routing, the latency of the same game to same server increases to 60 to 80 ms. Even pinging that server's IP you can see the same difference. This is a hard blow for me, I'm a Linux fan, and I thought Linux was going to perform better than Windows.
For testing I have disabled firewall, bandwidth limiting, everything except NAT, which is done by masquerading. Also tried SNAT, same result.
I'm using the 2.4.22 kernel.
Thanks in advance.
Ernesto.
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 1 line · On Wed, Jun 02, 2004 at 03:01:37PM -0000, [email protected] wrote:
Hello,
hi
Quoted 5 lines
When the wXP is routing, for a host inside the LAN, the latency of, for example, the Counter Strike game to a given server is around 20 to 30 ms. When the Linux box is routing, the latency of the same game to same server increases to 60 to 80 ms. Even pinging that server's IP you can see the same difference.
This sounds more like a duplex mismatch or IRQ problems. What's the card?
Quoted 1 line
Ernesto.
Bye,
Peter Surda (Shurdeek) <[email protected]>, ICQ 10236103, +436505122023
Signature · 4 lines
chown -R us ~your/*base* _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 7 lines
Quoted 5 lines
When the wXP is routing, for a host inside the LAN, the latency of, for example, the Counter Strike game to a given server is around 20 to 30 ms. When the Linux box is routing, the latency of the same game to same server increases to 60 to 80 ms. Even pinging that server's IP you can see the same difference.
This sounds more like a duplex mismatch or IRQ problems. What's the card?
From dmesg:
via-rhine.c:v1.10-LK1.1.17 March-1-2003 Written by Donald Becker
http://www.scyld.com/network/via-rhine.html
eth0: VIA VT6102 Rhine-II at 0xdc00, 00:0a:e6:a1:d9:01, IRQ 5.
eth0: MII PHY found at address 1, status 0x786d advertising 05e1 Link 45e1.
eth0: Setting full-duplex based on MII #1 link partner capability of 45e1.
What is a duplex mismatch?
Thanks.
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 11 lines
From dmesg:
via-rhine.c:v1.10-LK1.1.17 March-1-2003 Written by Donald Becker
http://www.scyld.com/network/via-rhine.html
eth0: VIA VT6102 Rhine-II at0xdc00, 00:0a:e6:a1:d9:01, IRQ 5.
eth0: MII PHY found at address 1, status0x786dadvertising 05e1 Link 45e1.
eth0: Setting full-duplex based on MII #1 link partner capability of 45e1.What is a duplex mismatch?
when two side of a link use different duplex setting
did you tried with another NIC card , via isn`t a fine
chip i think
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 4 lines
What is a duplex mismatch?
When the duplex setting of your connection aren't matched....! :-)
Google is very useful for finding out about stuff. Try links 2,3 and onwards
http://www.google.com/search?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=duplex+mismatch
However, if you have even a budget "switch" in between these two machines then this would fix the problem. Note that a "hub" will not fix the problem though.
Ed W
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 6 lines · Ed Wildgoose
Quoted 3 lines
What is a duplex mismatch?
When the duplex setting of your connection aren't matched....! :-)
Quoted 7 lines
Google is very useful for finding out about stuff. Try links 2,3 and onwards
http://www.google.com/search?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=duplex+mismatchHowever, if you have even a budget "switch" in between these two machines then this would fix the problem. Note that a "hub" will not fix the problem though.
well technicaly then you can have duplex mismatch between the nic and the switchport.. i have seen this several times using different equipment.
one other things that i have noticed can impact your network is nic's that use software crc vs real Network cards (rtl8139 jumps to mind, dont know about the rhino ones), software crc makes the bus/cpu work a lot harder then a nick with incorperated crc, you will notice the difference on your cpu usage.
would be nice to hear if you found your problem.
mvh
Signature · 5 lines
Ronny Aasen <[email protected]> _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 10 lines · On Friday 04 June 2004 10:13, [email protected] wrote:
From dmesg:
via-rhine.c:v1.10-LK1.1.17 March-1-2003 Written by Donald Becker
http://www.scyld.com/network/via-rhine.html
eth0: VIA VT6102 Rhine-II at0xdc00, 00:0a:e6:a1:d9:01, IRQ 5.
eth0: MII PHY found at address 1, status0x786dadvertising 05e1 Link 45e1.
eth0: Setting full-duplex based on MII #1 link partner capability of 45e1.What is a duplex mismatch?
run mii-tool and see how your card is set up.
Paulo
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 5 lines · [email protected] wrote:
Hello, I have a problem with the latency of the packets passing a Linux router, and I thought perhaps you could put some light on it.
It's quite simple. I have one ADSL connection, and a LAN. The gateway is the Linux machine or a Windows XP machine. When the wXP is routing, for a host inside the LAN, the latency of, for example, the Counter Strike game to a given server is around 20 to 30 ms. When the Linux box is routing, the latency of the same game to same server increases to 60 to 80 ms. Even pinging that server's IP you can see the same difference. This is a hard blow for me, I'm a Linux fan, and I thought Linux was going to perform better than Windows.
For testing I have disabled firewall, bandwidth limiting, everything except NAT, which is done by masquerading. Also tried SNAT, same result.
I'm using the 2.4.22 kernel.
Is the dsl modem ethernet - if it is I would consider asking the maintainer of the driver for your card. Details in the kernel docs/source. I get 20 - 30 ms in Half Life OK using a P200 linux gateway
doing NAT etc.
You could also try a newer Kernel.
Andy.
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/