Statistics from a capture file
And here a Samples:
tshark -r samples.cap -qz io,stat,1,0,sum(tcp.analysis.retransmission)"ip.addr==10.10.10.10" > stat.txt
tshark -r samples.cap -qz io,stat,120,"ip.addr==194.134.109.48 && tcp","COUNT(tcp.analysis.retransmission)ip.addr==194.134.109.48 && tcp.analysis.retransmission"
tshark -r samples.cap -q -z io,stat,30,"COUNT(tcp.analysis.retransmission) tcp.analysis.retransmission"
tshark -r samples.cap -q -z io,stat,30,"COUNT(tcp.analysis.retranmission)tcp.analysis.retransmission","AVG(tcp.window_size)tcp.window_size","MAX(tcp.window_size)","MIN(tcp.window_size)tcp.window_size"
tshark -r samples.cap -q -z io,stat,5,"COUNT(tcp.analysis.retransmission) tcp.analysis.retransmission","COUNT(tcp.analysis.duplicate_ack)tcp.analysis.duplicate_ack","COUNT(tcp.analysis.lost_segment) tcp.analysis.lost_segment","COUNT(tcp.analysis.fast_retransmission) tcp.analysis.fast_retransmission"
tshark -r samples.cap -q -z io,stat,5,"MIN(tcp.analysis.ack_rtt)tcp.analysis.ack_rtt","MAX(tcp.analysis.ack_rtt)tcp.analysis.ack_rtt","AVG(tcp.analysis.ack_rtt)tcp.analysis.ack_rtt"
tshark -r samples.cap -q -z ip_hosts,tree
tshark -r samples.cap -q -z conv,tcp
tshark -r samples.cap -q -z ptype,tree