我正在尝试计算双向测试期间服务器的吞吐量。我有一个 python 脚本,基本上可以从日志中抓取数据。但问题是我无法弄清楚哪一个是服务器-客户端通信,哪一个是客户端-服务器通信。
[ 2] local 10.233.143.159 port 5001 connected with 10.233.143.141 port 59914 Client connecting to 10.233.143.141,
UDP port 5001 Sending 1470 byte datagrams,
IPG target: 560.76 us (kalman adjust) UDP buffer size: 224 KByte (default)
[ *1] local 10.233.143.159 port 40499 connected with 10.233.143.141 port 5001 (reverse)
这是来自服务器日志。分不清哪个是哪个。
Client connecting to 10.233.143.159,
UDP port 5001 Sending 1470 byte datagrams, IPG target: 560.76 us (kalman adjust)
UDP buffer size: 64.0 KByte (default)
[ 1] local 10.233.143.141 port 65245 connected with 10.233.143.159 port 5001
[ 2] local 10.233.143.141 port 5001 connected with 10.233.143.159 port 34470```
this is the client log. I just want to know the server-client communication from the above given logs.
I tried to use -r instead of -d but got "connection reset by the peer" . So that didnt work out as well. \*\*Can someone help out??PLZZ \*\*
星号表示交通流反向。另外,使用 -e 或 --enhanced-reports 获取包含更多信息的输出。