Ask Your Question
0

How to export TCP throughput into csv over time

asked 2021-03-06 18:20:33 +0000

mithunbabup gravatar image

Hi,

I'm trying to analyze the performance different TCP variants and using Wireshark and I could see the overall TCP throughput under "Statistics >> Capture File Properties".

But, I would like to export the throughput of TCP over time into csv so that I can use it to plot a graph comparing other tcp variants.

Looking for experts help and advice

Thanks in advance...

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2021-03-16 02:29:58 +0000

cmaynard gravatar image

Besides the tshark solution mentioned by @masonke, you can also use "Statistics -> I/O Graphs" and change the Y axis to Bytes/sec or Bits/sec. You can change the interval from seconds to various other intervals depending on whether you're interested in finer or coarser granularity, and there's a Copy button that allows you to copy the values per interval for exporting into a spreadsheet or elsewhere.

edit flag offensive delete link more
0

answered 2021-03-10 18:18:10 +0000

masonke gravatar image

You need to use tshark to export data over time. Check out https://www.wireshark.org/docs/man-pa... for details on the -z options. Here is what I use to show bits/bytes/etc over time. i have yet to figure out how to make this export as csv, but, you can always do some sed and awk to clean it up.

tshark -r <somefile.pcapng> -q -z io,stat,1,"BYTES()ip.src == 10.10.10.10"

=======================================
| IO Statistics                       |
|                                     |
| Duration: 966.762773 secs           |
| Interval:   1 secs                  |
|                                     |
| Col 1: BYTES()ip.src == 10.10.10.10 |
|-------------------------------------|
|            |1         |             |
| Interval   |   BYTES  |             |
|-----------------------|             |
|   0 <>   1 |     1413 |             |
|   1 <>   2 |   261714 |             |
|   2 <>   3 |        0 |             |
|   3 <>   4 |        0 |             |
|   4 <>   5 |        0 |             |
|   5 <>   6 |        0 |             |
|   6 <>   7 |     1417 |             |

etc.....

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2021-03-06 18:20:33 +0000

Seen: 857 times

Last updated: Mar 16 '21