Click to See Complete Forum and Search --> : Maximum Transmission Unit value detection


alex_gusev
March 5th, 2003, 06:21 AM
hi all,

does anybody know how to detect the value of MSS (Maximum Segment Size) for Ethernet-based networks under both WinCE and Windows NT/2K? Maybe there are some registry keys or API?
The reason of all these headaches is that different WinCE devices have different MSS during TCP/IP session toward Win NT/2K, and this strongly influences on performance (or even on successness in some cases) of communications.

Any advices will be appreciated.

TIA,

Mick
March 5th, 2003, 09:48 AM
My suggestion is looking on MSDN.microsoft.com for tcpip registry settings. Should be some documentation there on how to tweak these settings (MTU) Also look at the PMTU (EnablePMTUDiscovery)

alex_gusev
March 5th, 2003, 09:54 AM
thanks, Mick, MTU I've already got without problem via API calls. Two troubles left now:

1. How to get tcpip header size (to calculate Max Segment Size = MTU - sizeof(tcpip-header) )

2. how get above header size under WinCE

Best wishes,