Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Junior Member
Posted
guys,

having some doubt on tcp hope someone can help me understanding it. Assume L byte is send from node A to B. Assume MSS=1460 byte and sequence number feild has 4bytes. How can i calculate the maximum L value so the sequence number are not exhausted? thanks guys. apreciate your help.
 
Posts: 1 | Registered: October 22, 2007Edit or Delete MessageReport This Post
Member
Picture of TheMightySkunk
Posted Hide Post
Use a CRC32. The theoretical collision rate is one collision every half-million (or so) message IDs. If you can steal 4 more bytes, a CRC64 has a collision rate of one in two trillion (or so).

Surprisingly, Visual Studio 2005 doesn't have a CRC32() function in the System.Security.Cryptography namespace, but java.util.zip implements a CRC32 class. Plenty of source code examples on the web, in any language.


James Broder
Broder's Skunkware Scoring & Timing Software
http://www.skunkware.tv
 
Posts: 217 | Location: Kula, Hawaii, USA | Registered: September 12, 2002Edit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 


© 2000-2007 Phoenix Sports Technology. Administration by www.alphasports.tv