mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* ns83820: UDP not working?
@ 2001-11-01 14:00 Peter Monta
  0 siblings, 0 replies; only message in thread
From: Peter Monta @ 2001-11-01 14:00 UTC (permalink / raw)
  To: linux-kernel

I can't seem to get a UDP test (ttcp -u) to work with the
ns83820 driver.  I'm using DGE-500T cards on both ends, with
a point-to-point link (no switch), if it matters.  ttcp -u
works as expected on the 100baseT interfaces also in the
boxes.  The kernel is 2.4.14-pre3.

Here is what ifconfig shows after waiting ten seconds,
then interrupting ttcp:

(receiver, "ttcp -r -u -s")

eth1      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          inet addr:10.1.1.1  Bcast:10.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:44 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:59124 (57.7 kb)  TX bytes:42 (42.0 b)

(transmitter, "ttcp -t -u -s 10.1.1.1")

eth1      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          inet addr:10.1.1.2  Bcast:10.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:64 (64.0 b)  TX bytes:42 (42.0 b)

TCP works fine.

I suspect the UDP transmit rapidly fills up the TX queue, but
then things never get unblocked for some reason.  Some of the
trials show 127 or 128 packets having been transmitted, which
might be related to the TX ring size of 256 packets and what
looks like some internal tx_size/2 flow control logic.  With TCP
so many packets in the TX queue is unlikely, I guess, due to
the window.

I can get continuous UDP transmit to work with small enough
packets:

[200 byte UDP payload:]

s0# ttcp -t -u -s -l 200 -n 10000 225.5.5.6
ttcp-t: buflen=200, nbuf=10000, align=16384/0, port=5001  udp  -> 225.5.5.6
ttcp-t: socket
ttcp-t: 2000000 bytes in 0.07 real seconds = 27377.70 KB/sec +++
ttcp-t: 10006 I/O calls, msec/call = 0.01, calls/sec = 140257.92
ttcp-t: 0.0user 0.0sys 0:00real 42% 0i+0d 0maxrss 0+1pf 0+0csw

[300 byte UDP payload:]

s0# ttcp -t -u -s -l 300 -n 10000 225.5.5.6
ttcp-t: buflen=300, nbuf=10000, align=16384/0, port=5001  udp  -> 225.5.5.6
ttcp-t: socket

(hangs)

Cheers,
Peter Monta

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-11-01 14:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-01 14:00 ns83820: UDP not working? Peter Monta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®