Help Help with determining packets (Read 90 times)

  • crazy, just crazy
  • Group: Member
  • Joined: Oct 5, 2002
  • Posts: 23
  I have an assignment due on Monday and I have a question that I'm stuck on, now I'm not asking anyone to give me an answer, I'm just asking people to give me useful links which would help.

  I basically have a TCP packet with a header of 160 bits, and we are using the form of an ethernet with the ethernet packet with 1497bytes in length. the TCP message contains 18267 bytes of info. I need to know how many packets are sent:? and the size of the data field in the last Ethernet packet.

  Again I'm not asking for answers or solutions (it would be nice), but just any links with tutorials on how to do this.


Thanks in advanced
  • Avatar of Chubby Skelly
  • Got the powerup and won the game
  • PipPipPipPipPipPip
  • Group: Premium Member
  • Joined: Apr 4, 2004
  • Posts: 947
This is just a math question.

You know what the maximum size of each packet is going to be. You know how many bytes per packet you're going to lose to header bytes. Subtract the length of your headers from the maximum length of the packet to determine how many data bytes you can have per packet. Then you just divide the total number of data bytes you want to send by the number of data bytes you can send per packet to get the number of packets it takes to get your data there.