tshark can do the trick:
Here are some examples:
$ tshark -r http.pcap -q -z conv,eth -z conv,ip -z conv,tcp
TCP Conversations
Filter:<no filter="">
| <- | | -> | | Total |
| Frames Bytes | | Frames Bytes | | Frames Bytes |
192.168.108.128:1047 <-> 64.186.152.93:80 9 7834 7 1358 16 9192
192.168.108.128:1048 <-> 64.186.152.93:80 4 1868 4 623 8 2491
================================================================================
================================================================================
IPv4 Conversations
Filter:<no filter="">
| <- | | -> | | Total |
| Frames Bytes | | Frames Bytes | | Frames Bytes |
192.168.108.128 <-> 64.186.152.93 13 9702 11 1981 24 11683
192.168.108.128 <-> 192.168.108.2 1 202 1 73 2 275
================================================================================
================================================================================
Ethernet Conversations
Filter:<no filter="">
| <- | | -> | | Total |
| Frames Bytes | | Frames Bytes | | Frames Bytes |
00:0c:29:61:82:89 <-> 00:50:56:ee:98:59 14 9904 13 2096 27 12000
00:50:56:ee:98:59 <-> ff:ff:ff:ff:ff:ff 0 0 1 60 1 60
================================================================================
================================================================================
$ tshark -r http.pcap -q -z conv,eth,eth.addr==00:0c:29:61:82:89 -z conv,ip,ip.addr==192.168.108.2 -z conv,tcp,ip.addr==64.186.152.93
================================================================================
TCP Conversations
Filter:ip.addr==64.186.152.93
| <- | | -> | | Total |
| Frames Bytes | | Frames Bytes | | Frames Bytes |
192.168.108.128:1047 <-> 64.186.152.93:80 9 7834 7 1358 16 9192
192.168.108.128:1048 <-> 64.186.152.93:80 4 1868 4 623 8 2491
================================================================================
================================================================================
IPv4 Conversations
Filter:ip.addr==192.168.108.2
| <- | | -> | | Total |
| Frames Bytes | | Frames Bytes | | Frames Bytes |
192.168.108.128 <-> 192.168.108.2 1 202 1 73 2 275
================================================================================
================================================================================
Ethernet Conversations
Filter:eth.addr==00:0c:29:61:82:89
| <- | | -> | | Total |
| Frames Bytes | | Frames Bytes | | Frames Bytes |
00:0c:29:61:82:89 <-> 00:50:56:ee:98:59 14 9904 13 2096 27 12000
================================================================================
$ tshark -r update.pcap -qz io,stat,60,"COUNT(frame.cap_len)frame.cap_len","MIN(frame.cap_len)frame.cap_len","MAX(frame.cap_len)frame.cap_len","AVG(frame.cap_len)frame.cap_len"
===================================================================
IO Statistics
Interval: 60.000 secs
Column #0: COUNT(frame.cap_len)frame.cap_len
Column #1: MIN(frame.cap_len)frame.cap_len
Column #2: MAX(frame.cap_len)frame.cap_len
Column #3: AVG(frame.cap_len)frame.cap_len
| Column #0 | Column #1 | Column #2 | Column #3
Time | COUNT | MIN | MAX | AVG
000.000-060.000 547 42 1514 829
060.000-120.000 32857 42 1514 998
120.000-180.000 39550 42 1514 997
180.000-240.000 30 42 403 211
240.000-300.000 17 60 403 312
300.000-360.000 22 60 403 265
360.000-420.000 41 46 403 263
===================================================================
answered 14 May '11, 06:40
joke
1.3k●4●9●34
accept rate: 9%