views:

268

answers:

3

I am using .NET remoting to retrieve periodic status updates from a Windows service into a 'controller' application which is used to display some live stats about what the service is doing.

The resulting network traffic is huge - many times the size of the data for the updates - so clearly I have implemented the remoting code incorrectly in a very inefficient way. As a first step towards fixing it, I need to monitor the traffic on the IP port the service is using to talk to the controller, so that I can establish a baseline and then verify a fix.

Can anyone recommend a utility and/or coding technique that I can use to get the traffic stats? A "bytes sent" count for the port would suffice.

+3  A: 

Wireshark is one of the best tools for capturing and analyzing IP traffic.

[Edit] Sort of lame that you answered first and didn't get the check mark. I didn't mean to snake you. +1 as a consolation.

matt b
+3  A: 

I highly recommend Wireshark for traffic analysis.

Eric Z Beard
A: 

Apologies to matt b, and thanks to Eric for noticing - I intended to accept the first answer, but I forgot that the default sort is "newest on top".

Wireshark is indeed an excellent tool. It is not a small or simple application by any means, but I was able to figure out how to do quite a few different analysis tasks within the first few minutes of using it.

McKenzieG1