[Date Prev][Date Next][Date Index]
[etc] Using TTCP, tcpdump, tcptrace and Xplot
Hi All,
Here is a log on using ttcp, tcpdump, tcptrace and xplot.
TTCP:
-----
At SENDER
---------
>./ttcp -t -s -p 5555 -b 200000 -n 1000 172.22.22.24 &
{-t ==> Src
-s ==> A stream with certain characteristics is created.
-p ==> Port number at the receiver where the server will be listening.
-b## ==> The buffer Size (SNDBUF) in Bytes.
-n## ==> Number of 8192 byte buffers that need to be transmitted.(In the
above case 8.182 MByte data is being transmitted.
host ==> Dst host
}
ttcp-t: buflen=8192, nbuf=1000, align=16384/0, port=5555, sockbufsize=200000
tcp -> 172.22.22.24
ttcp-t: socket
ttcp-t: sndbuf
ttcp-t: connect
ttcp-t: 8192000 bytes in 14.42 real seconds = 554.91 KB/sec +++
ttcp-t: 1000 I/O calls, msec/call = 14.76, calls/sec = 69.36
ttcp-t: 0.0user 0.1sys 0:14real 0% 7i+101d 216maxrss 0+2pf 516+3
at receiver (172.22.22.24)
-----------
>./ttcp -r -s -p 5555 -b 200000 &
{-r ==> Receiver
-s ==> A receiver in sink mode..
-p ==> Port number at the receiver where the server will be listening.
-b## ==> The buffer Size (RCVBUF) in Bytes.
}
ttcp-r: buflen=8192, nbuf=2048, align=16384/0, port=5555,sockbufsize=200000
tcp
ttcp-r: socket
ttcp-r: rcvbuf
ttcp-r: accept from 172.21.21.23
ttcp-r: 8192000 bytes in 14.55 real seconds = 550.01 KB/sec +++
ttcp-r: 1002 I/O calls, msec/call = 14.86, calls/sec = 68.89
ttcp-r: 0.0user 0.0sys 0:14real 0% 64i+896d 222maxrss 0+2pf 1001+1csw
TCPDUMP:
-------
Use
tcpdump -i pvc0 -w expxxxx dst host 172.22.22.24
-i ==> interface to be monitored..(this can be checked using ifconfig -a)
-w XXXX==>Will save all the packets captured in binnary format in a file
XXXX.. Required if used with tcptrace.
TCPTRACE:
---------
1. tcptrace -l expxxxx
Gives a long O/P
2. tcptrace -G -o1 -zxy -A10 exp0821a
-G ==> for plotting all thge graphs.
-o# ==> used for plotting for a particular connection and not all.
-zxy ==> used for starting the x abd y axis from 0...
-y ==> used for removing the yello dots from the graphs(Inst. BW)
-A## ==> Moving average for the last ## values.
XPLOT:
=-----
xplot xxxx.xpl
xxxx.xpl is created by tcptrace when used with -G option.
Shashank