tcptrace

How can I measure the performance and TCP RTT of my server code?

跟風遠走 提交于 2019-12-19 07:34:55
问题 I created a basic TCP server that reads incoming binary data in protocol buffer format, and writes a binary msg as response. I would like to benchmark the the roundtrip time. I tried iperf, but could not make it send the same input file multiple times. Is there another benchmark tool than can send a binary input file repeatedly? 回答1: If you have access to a linux or unix machine 1 , you should use tcptrace. All you need to do is loop through your binary traffic test while capturing with

How can I measure the performance and TCP RTT of my server code?

青春壹個敷衍的年華 提交于 2019-12-01 06:06:17
I created a basic TCP server that reads incoming binary data in protocol buffer format, and writes a binary msg as response. I would like to benchmark the the roundtrip time. I tried iperf, but could not make it send the same input file multiple times. Is there another benchmark tool than can send a binary input file repeatedly? If you have access to a linux or unix machine 1 , you should use tcptrace . All you need to do is loop through your binary traffic test while capturing with wireshark or tcpdump file. After you have that .pcap file 2 , analyze with tcptrace -xtraffic <pcap_filename> 3