How can estimate package sent and received in a computer?

  • Carol
  • Newbie
  • Newbie
  • Carol
  • Posts: 14
  • Loc: Indonesia

Post 3+ Months Ago

I using PHP language, I want to estimate Internet speed. So I must know number of packets sent and received in a computer. Is there anyone know about that? Could you help me?
Thanks alot
Carol
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • _Leo_
  • Proficient
  • Proficient
  • User avatar
  • Posts: 279
  • Loc: Buenos Aires, Argentina

Post 3+ Months Ago

1 take timestamp

2 send known ammount of bytes to the client

3 take timestamp

4 calculate
  • Scorpius
  • Proficient
  • Proficient
  • User avatar
  • Posts: 401
  • Loc: Scorpion Hole

Post 3+ Months Ago

Very well put _Leo_, I was going to say almost the exact same thing, except I would have said subtract first from the second then divide the filesize by the time and viola you have your answer in KB/Sec or however large your file is. But yours does the exact same thing mine would do. There are probably scripts already made for what you are trying to do. You should probably either google it, or search on http://www.hotscripts.com
  • Carol
  • Newbie
  • Newbie
  • Carol
  • Posts: 14
  • Loc: Indonesia

Post 3+ Months Ago

Thank you very much. I will do in that way.
And could you tell me the relation between number of packets in, packets out and speed in MBps?
Thanks again.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 90 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.