How can estimate package sent and received in a computer?

  • Carol
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Apr 19, 2004
  • Posts: 14
  • Loc: Indonesia
  • Status: Offline

Post April 20th, 2004, 7:02 pm

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post April 20th, 2004, 7:02 pm

  • _Leo_
  • Proficient
  • Proficient
  • User avatar
  • Joined: Feb 17, 2004
  • Posts: 279
  • Loc: Buenos Aires, Argentina
  • Status: Offline

Post April 20th, 2004, 7:34 pm

1 take timestamp

2 send known ammount of bytes to the client

3 take timestamp

4 calculate
  • Scorpius
  • Proficient
  • Proficient
  • User avatar
  • Joined: Mar 20, 2004
  • Posts: 401
  • Loc: Scorpion Hole
  • Status: Offline

Post April 20th, 2004, 7:40 pm

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
  • No Avatar
  • Joined: Apr 19, 2004
  • Posts: 14
  • Loc: Indonesia
  • Status: Offline

Post April 21st, 2004, 12:16 am

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 134 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
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.