This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Hi, I want to log the total amount of traffic generated by each operation between my application and the database. It has to be an automatic log controlled by the application itself.

I was wondering if Wireshark let me do something like that:

command 1:start listening port x; command 2:return the traffic amount; command 3:reset the traffic amount;

My application must have full control of WHEN to start the counting, WHEN to stop, and to get the total ammount of data.

My goal is to make an automated Java Test case, that checks for each test, if the traffic usage is above a specified threshold.

is that possible?

asked 13 May '11, 16:05

Jean%20Baldessar's gravatar image

Jean Baldessar
1111
accept rate: 0%


Wireshark is intended for detailed packet inspection. What you're looking for is more like what programs like ntop provides.

permanent link

answered 16 May '11, 06:31

Jaap's gravatar image

Jaap ♦
11.7k16101
accept rate: 14%

If you are only interested in network volume, you can read the network interface statistics between each call and calculate the differences...

permanent link

answered 17 May '11, 17:03

SYN-bit's gravatar image

SYN-bit ♦♦
17.1k957245
accept rate: 20%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×115
×26
×9
×2

question asked: 13 May '11, 16:05

question was seen: 4,325 times

last updated: 17 May '11, 17:03

p​o​w​e​r​e​d by O​S​Q​A