Using tshark to display throughput on a live capture
I'm attempting to use tshark to get statistics on a live TCP connection. My aim is to get the RTT, lost packets, and throughput. My current command is below:
tshark -P -i eno1 -f 'tcp and port 5201' -T fields -E separator=, -e tcp.analysis.ack_rtt -e tcp.analysis.lost_segment | tee log.txt
What can I add in order to get throughput of the connection? I looked around and saw in wireshark there were IO statistics and TCP stream graph, but is there a way to get that data on the command line?
If there is no way to do so, which values would I need to attain (maybe relative time or bytes acked and stuff) in order for me to manually calculate the throughput by piping the output through a python program?