• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 139
  • Last Modified:

how much data has been sent across port?

Hi,

Is there some way (on windows XP) to measure how many bytes have come across a port? I'm using a third party library to compress images and send them to a remote computer. I'm not convinced that the compression is taking place during the image transfer, rather it's happening when the remote machine receives it. I thought it would be a simple test to just listen to the port im sending to and actually see how much data is sent across (in bytes) - then I can see if my 1mb image is really getting compressed or not.

Thanks
0
DJ_AM_Juicebox
Asked:
DJ_AM_Juicebox
  • 4
  • 3
1 Solution
 
jkrCommented:
There is no such thing that allowes you to see that in a per port basis (we are talking TCP/IP, aren't we?), only per interface. So you'd have to make sure to not generate any traffic on that interface during the measurement period.
0
 
DJ_AM_JuiceboxAuthor Commented:
if I can't do it per-port, it shouls still be ok, in fact I'm running the server and client on my own machine here like:

    server: listen on port 4006
    client: send to 127.0.0.1, port 4006

so I can shut everything else off I suppose.

But what/how do I see how many bytes are being transferred?

Thanks
0
 
jkrCommented:
Open your task manager, go to the "Network" taqb, choose "View|Select Columns", check "Bytes sent", close and keep a pencil ready. Be sure to also adjust the column headers in the lower pane to see the column you just added.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
DJ_AM_JuiceboxAuthor Commented:
Ok I set it up that way.

But when I transfer the image, the Bytes Sent value does NOT increase. Is it because I'm sending to a port on my own machine? (I'm using the 127.0.0.1 address)

Thanks
0
 
jkrCommented:
Windows.... the loopback adapter isn't taken into account here *gnarf*

You will have to check with a remote connection. On Linux, a simple 'ifconfig' would help.
0
 
DJ_AM_JuiceboxAuthor Commented:
curses!

Thanks
0
 
jkrCommented:
Wanna measure that yourself? See http://msdn2.microsoft.com/en-us/library/aa365959.aspx ("GetIpStatistics"). Also http://www.codeproject.com/internet/winnetstat.asp ("IP Helper API - Retrieve TCP/IP/UDP Statistics, Interface details, ARP Table and Route Table")
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now