[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 135
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

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