Ask Your Question
0

How can i log the received bandwidth every 1ms of an UDP application?

asked 2018-07-03 09:30:26 +0000

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

Dear community! I want to have a trace of the received bandwidth every 1ms or less . Do you know how could i perform it with wireshark?

Thank you!

Regards,

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
0

answered 2018-07-03 12:42:43 +0000

NJL gravatar image

As "thetechfirm" already wrote, IO Graphs can show you the bandwidth used with a granularity of 1ms.

Statistics -> I/O Graph, select Bits as your Y-axis and fill out display filter if you so desire to focus on specific traffic. Then at the bottom of the graph window, in the "Interval" drop-down you select 1ms.

You can also export the data by clicking Save As and import it into Excel or similar for graphing.

It is also possible to use Riverbeds excellent SteelCentral Packet Analyzer software which comes in different flavors. That can also (very easily) show you bandwidth usage with 1ms granularity. It excels working with very large capture files, where Wireshark unfortunately typically gives up.

edit flag offensive delete link more

Comments

Be careful with use of IO graphs or other software-only tool; even though it might have the granularity of ms, the precision and accuracy of the timestamp used to derive though statistics is due to the underlying OS or other capture mechanism. I have seen where, for instance, a laptop with USB ethernet interface can introduce 10s of ms into the jitter of the stream.

Make sure your underlying capture technique can handle what you are looking for - you may need special hardware to do the capture, then analyze as others have described.

Bob Jones gravatar imageBob Jones ( 2018-07-04 00:12:15 +0000 )edit

Thank you @NJL and @Bob for your reply, Do you think that with PC i5 OS: ubuntu 16.04, I could have a precise capture?

ims gravatar imageims ( 2018-07-04 09:30:40 +0000 )edit

No, you need special capture cards for that. E.g. from profishark, endace or napatech for example.

Christian_R gravatar imageChristian_R ( 2018-07-04 10:48:38 +0000 )edit

Okay, Thank you!

ims gravatar imageims ( 2018-07-04 11:29:27 +0000 )edit

@Bob: thanks for the heads-up. Do you know of any comparison of the accuracy of different capture types e.g. SPAN, capture on laptops, servers, special NICs/capture cards etc.? I can easily imagine a USB ethernet NIC is not particular accurate, but I'd really like to see scientific evidence of what you can expect from various methods.

NJL gravatar imageNJL ( 2018-07-04 17:38:03 +0000 )edit
0

answered 2018-07-03 11:09:46 +0000

Have you tried the io graphs?

edit flag offensive delete link more
0

answered 2018-07-03 09:53:40 +0000

grahamb gravatar image

Wireshark isn't really the tool for this, it's a packet analyzer not a network monitor. You could capture with Wireshark using a capture filter to limit the traffic to that created by your application and then post-process the resulting capture file using a programming language with pcap support to separate the traffic into 1ms blocks and then calculate the total traffic received in each block.

You might struggle to find any existing tool that can determine the bandwidth over such a small period of 1ms.

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

Stats

Asked: 2018-07-03 09:30:26 +0000

Seen: 3,520 times

Last updated: Jul 05 '18