TTCP(Test TCP) is an utility to measure TCP throughput through an IP path, test tcp connection, transfers fabricated buffers or data copied from stdin.
To use TTCP, start the receiver on one side of the path, then start the transmitter on the other side. The transmitting side sends a specified number of TCP packets to the receiving side. At the end of the test, the two sides display the number of bytes transmitted and the time elapsed for the packets to pass from one end to the other.
rpm -ivh ttcp-1.12-1.x86_64.rpm
Either edit the options in /etc/ttcp.conf
prior to TTCP starting, or pass options as arguments while TTCP starting
ttcp -t [-options] host [ < in ]
ttcp -r [-options] [multicast-group][ > out]
TTCP also contains other L4(TCP/UDP) client server app,
-
chat - chat messages from stdin and socket strams.
-
echoS - display a line of text over socket stream.
Refer to User Guide for usage reference, and Developer Guide for development reference.
-
Pods on same hosts have more than 1.6 times TPS of pods across hosts in East-West traffic transmit.
-
Pods on same hosts can approach half of NIC throughput in East-West traffic transmit.
-
Pods on same hosts are faster than host to host East-West traffic transmit.
-
Hostnetwork are the fastest way for North-South traffic transmit.
-
Hostnetwork has the same performance as host to host, can approach half of NIC in North-South traffic transmit.
-
NodePort node local mode have around 1.6 times TPS of NodePort node on cluster mode North-South traffic transmit.
-
HostPort has same performance as NodePort node local in North-South traffic transmit.
-
NodePort node on cluster North-South has worst performance, than ClusterIP pod across hosts East-West.
git clone [email protected]:<YOUR_ID>/ttcp.git
2. Do some coding and submit a PR2. Do some coding and submit a PR