All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Linux vs. Windows XP routing latency
@ 2004-06-02 15:01 donsapo
  2004-06-02 21:36 ` Peter Surda
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: donsapo @ 2004-06-02 15:01 UTC (permalink / raw)
  To: lartc

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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* Re: [LARTC] Linux vs. Windows XP routing latency
  2004-06-02 15:01 [LARTC] Linux vs. Windows XP routing latency donsapo
@ 2004-06-02 21:36 ` Peter Surda
  2004-06-04  8:13 ` donsapo
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Peter Surda @ 2004-06-02 21:36 UTC (permalink / raw)
  To: lartc

On Wed, Jun 02, 2004 at 03:01:37PM -0000, donsapo@artquitect.com.ar wrote:
> Hello,
hi

> 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?

> Ernesto.
Bye,

Peter Surda (Shurdeek) <shurdeek@routehat.org>, ICQ 10236103, +436505122023

-- 
                    chown -R us ~your/*base*
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* Re: [LARTC] Linux vs. Windows XP routing latency
  2004-06-02 15:01 [LARTC] Linux vs. Windows XP routing latency donsapo
  2004-06-02 21:36 ` Peter Surda
@ 2004-06-04  8:13 ` donsapo
  2004-06-04 14:37 ` Debreczeni Peter
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: donsapo @ 2004-06-04  8:13 UTC (permalink / raw)
  To: lartc

>> 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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* Re: [LARTC] Linux vs. Windows XP routing latency
  2004-06-02 15:01 [LARTC] Linux vs. Windows XP routing latency donsapo
  2004-06-02 21:36 ` Peter Surda
  2004-06-04  8:13 ` donsapo
@ 2004-06-04 14:37 ` Debreczeni Peter
  2004-06-05 13:06 ` Ed Wildgoose
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Debreczeni Peter @ 2004-06-04 14:37 UTC (permalink / raw)
  To: lartc


> 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?
> 

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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* Re: [LARTC] Linux vs. Windows XP routing latency
  2004-06-02 15:01 [LARTC] Linux vs. Windows XP routing latency donsapo
                   ` (2 preceding siblings ...)
  2004-06-04 14:37 ` Debreczeni Peter
@ 2004-06-05 13:06 ` Ed Wildgoose
  2004-06-07  6:34 ` Ronny Aasen
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Ed Wildgoose @ 2004-06-05 13:06 UTC (permalink / raw)
  To: lartc


>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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* Re: [LARTC] Linux vs. Windows XP routing latency
  2004-06-02 15:01 [LARTC] Linux vs. Windows XP routing latency donsapo
                   ` (3 preceding siblings ...)
  2004-06-05 13:06 ` Ed Wildgoose
@ 2004-06-07  6:34 ` Ronny Aasen
  2004-06-07  7:39 ` Paulo Andre
  2004-06-18  0:01 ` Andy Furniss
  6 siblings, 0 replies; 8+ messages in thread
From: Ronny Aasen @ 2004-06-07  6:34 UTC (permalink / raw)
  To: lartc

On Sat, 2004-06-05 at 15:06, Ed Wildgoose wrote:
> >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.


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
-- 
Ronny Aasen <list@datapart-as.no>

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

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

* Re: [LARTC] Linux vs. Windows XP routing latency
  2004-06-02 15:01 [LARTC] Linux vs. Windows XP routing latency donsapo
                   ` (4 preceding siblings ...)
  2004-06-07  6:34 ` Ronny Aasen
@ 2004-06-07  7:39 ` Paulo Andre
  2004-06-18  0:01 ` Andy Furniss
  6 siblings, 0 replies; 8+ messages in thread
From: Paulo Andre @ 2004-06-07  7:39 UTC (permalink / raw)
  To: lartc

On Friday 04 June 2004 10:13, donsapo@artquitect.com.ar 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 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?
run mii-tool and see how your card is set up.

Paulo

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

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

* Re: [LARTC] Linux vs. Windows XP routing latency
  2004-06-02 15:01 [LARTC] Linux vs. Windows XP routing latency donsapo
                   ` (5 preceding siblings ...)
  2004-06-07  7:39 ` Paulo Andre
@ 2004-06-18  0:01 ` Andy Furniss
  6 siblings, 0 replies; 8+ messages in thread
From: Andy Furniss @ 2004-06-18  0:01 UTC (permalink / raw)
  To: lartc

donsapo@artquitect.com.ar 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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

end of thread, other threads:[~2004-06-18  0:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-02 15:01 [LARTC] Linux vs. Windows XP routing latency donsapo
2004-06-02 21:36 ` Peter Surda
2004-06-04  8:13 ` donsapo
2004-06-04 14:37 ` Debreczeni Peter
2004-06-05 13:06 ` Ed Wildgoose
2004-06-07  6:34 ` Ronny Aasen
2004-06-07  7:39 ` Paulo Andre
2004-06-18  0:01 ` Andy Furniss

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.