Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Oct 1998 09:25:16 +0200 (CEST)
From:      Reinier Bezuidenhout <Reinier.Bezuidenhout@KryptoKom.DE>
To:        hackers@FreeBSD.ORG
Subject:   ttcp and 2.2.7 
Message-ID:  <199810120725.JAA01598@borg.kryptokom.de>

next in thread | raw e-mail | index | archive | help
Hi ...

I have two systems on which I tried to run ttcp.  Both are 2.2.7 systems.

I have a version of ttcp compiled on a 2.1.7 system and one compiled
on the above 2.2.7-STABLE system.  The following strangeness appears
when using the 2.2.7 compiled ttcp and -u (UDP) option.

It seems that the transmitting side just keeps on sending udp packets
of size 4 ... (the packets that tell the receiving side the transmitting
is starting) ... the receiving side then just exits because it
received both the start and end sequences of packets (these small udp)
packets.

When using the version of ttcp compiled on the 2.1.7 system .. it works
fine without any problems.  Were there some major changes in the way
the udp is handled ??? that causes ttcp to behave strangely ??

I've tried this on different hardware platforms with different ethernet
cards (fxp / de / xl) same thing happens.

tcpdump just shows hundreds op udp packets size 4 being transmitted 
the whole time ...

The following is the output from ttcp


This one never stops until killed ...

~/ttcp> ./ttcp -t -u -s 10.0.1.101
ttcp-t: buflen=8192, nbuf=2048, align=16384/0, port=5001  udp  -> 10.0.1.101
ttcp-t: socket
^C
~/ttcp>


The receiving side exits almos immediately ...

~/ttcp> ./ttcp -r -s -u
ttcp-r: buflen=8192, nbuf=2048, align=16384/0, port=5001  udp
ttcp-r: socket
ttcp-r: 0 bytes in 0.00 real seconds = 0.00 KB/sec +++
ttcp-r: 2 I/O calls, msec/call = 0.02, calls/sec = 54054.05
ttcp-r: 0.0user 0.0sys 0:00real 0% 0i+0d 0maxrss 0+0pf 0+0csw
~/ttcp>


Any ideas ...

Thanx
Reinier

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810120725.JAA01598>