netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* udp weirdness
@ 2002-09-24  6:50 Eric Lemoine
  2002-09-27 12:02 ` Eric Lemoine
  0 siblings, 1 reply; 36+ messages in thread
From: Eric Lemoine @ 2002-09-24  6:50 UTC (permalink / raw)
  To: netdev

I'm observing some UDP weirdness, or I'd better say some UDP behaviour
that I can't explain.

Two machines: one sending a UDP flow (using sendto) and another receiving 
this UDP flow (using bind + recv). 

When the dgram length is lower that 357 Bytes I observe strange results
at the send side. My home-made udp_tx program gives the following:

$./udp_tx -h 192.168.4.1 -m 357
357 1312621 357.518

357 is the dgram length (in B), 1312621 the number of dgrams sent and 
357.518 the perceived thruput (in Mbits/s). The weirdness is that I
get 357.518 Mbits/s whereas the underlying network is 10Mbits/s!

At the receive side the results are consistent (obviously):

$./udp_rx -m 357
357 29519 8.00884

<netstat -s --udp> on the send machine before and after the run also
gives me such a large amount of sent packets (~1312700), whereas
</sbin/ifconfig> confirms that about 29519 packets have been sent
out.

Below 357 Bytes, the same kind of results are observed. Above 357 Bytes,
the results make more sense to me:

$./udp_tx -h 192.168.4.1 -m 358
358 29505 8.04393

$./udp_rx -m 358
358 29468 8.0179

Does anybody know where I lose packets? And why do I lose them only when
the dgram length is below 357 Bytes?

BTW, I'm running 2.4.18-vanilla w/ the 3c59x driver.

Thx.
-- 
Eric

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

end of thread, other threads:[~2002-10-03 16:29 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-24  6:50 udp weirdness Eric Lemoine
2002-09-27 12:02 ` Eric Lemoine
2002-09-27 14:53   ` jamal
2002-09-27 15:04     ` Matti Aarnio
2002-09-29 14:47       ` jamal
2002-09-30  8:49         ` Eric Lemoine
2002-09-30 11:09           ` jamal
2002-09-30 12:10           ` jamal
2002-09-30 12:23             ` jamal
2002-10-01  0:22               ` PATCH " jamal
2002-10-01  6:35                 ` Eric Lemoine
2002-10-01  9:51                   ` jamal
2002-10-01 13:53                 ` kuznet
2002-10-01 14:14                   ` jamal
2002-10-01 14:26                   ` Chris Friesen
2002-10-01 14:40                     ` kuznet
2002-10-01 14:52                       ` Chris Friesen
2002-10-01 15:31                         ` kuznet
2002-10-01 16:16                           ` Chris Friesen
2002-10-01 16:41                             ` kuznet
2002-10-01 17:17                               ` Chris Friesen
2002-10-01 16:42                           ` Ben Greear
2002-10-01 16:58                             ` Chris Friesen
2002-10-01 17:55                             ` jamal
2002-10-01 18:36                               ` Chris Friesen
2002-10-01 18:35                                 ` jamal
2002-10-01 18:54                                   ` Ben Greear
2002-10-01 19:03                                   ` Chris Friesen
2002-10-01 18:52                               ` Ben Greear
2002-10-02 11:13                           ` Eric Lemoine
2002-10-02 14:09                             ` Chris Friesen
2002-10-02 15:25                             ` Ben Greear
2002-10-03 15:58                               ` Eric Lemoine
2002-10-03 16:29                                 ` kuznet
2002-09-27 15:19     ` Eric Lemoine
2002-09-27 15:57     ` Eric Lemoine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).