Which is the correct way to call findMTU? - WeOnlyDo Discussion board

Which is the correct way to call findMTU? (General questions)

by valter sini, Thursday, February 07, 2008, 11:29 (6134 days ago)

When can I call findMtu? And when can I set it?
I suppose
- wodVPNcom.connect
- OnConnected
wodVPNcom.FindMTU(10)
- OnFindMTUDone
wodVPNcom.MTU := xx

Thanks

Re: Which is the correct way to call findMTU?

by wodSupport, Thursday, February 07, 2008, 11:40 (6134 days ago) @ valter sini

Correct way would be, in my opinion, on IDLE connection (this is very important!) to send packets, starting with 2000 bytes (as example), and send them out. As long as it fails, lower them 50 (to 1000, 500, 250...), and when it starts working increase them 50 .

I think we should add that on wodVPN internally.. Can you wait 2-3 days so auto-mtu-discovery is implemented?

Kreso

Re: Which is the correct way to call findMTU?

by valter sini, Thursday, February 07, 2008, 12:28 (6134 days ago) @ wodSupport

Yes, it would be fine!
Thanks a lot

Re: Which is the correct way to call findMTU?

by wodSupport, Thursday, February 07, 2008, 20:31 (6133 days ago) @ valter sini

Valter,

can you download wodVPN again and try it out? Call FindMTU (argument can be 0) and wait up to 10 seconds.

Check for FindMTUDone - it should contain MTU. You can decrease it by 4 to put to MTU property.

Kreso

Re: Which is the correct way to call findMTU?

by valter sini, Thursday, February 07, 2008, 22:23 (6133 days ago) @ wodSupport

Hi Kreso,
the method seems to work fine. It discover the correct MTU in few seconds ... good job!

PS: I'm sorry to say that unluckely that doesn't resolve my RDP crashes. RDP seems to be stable with an MTU of 1350 (findMTU reports, correctly, 1472), but copy/paste of files works at 40Kb. My ADSL is 2048/256.

PSPS: why -4? wodvpn don't needs 20 bytes?

Re: Which is the correct way to call findMTU?

by wodSupport, Thursday, February 07, 2008, 22:25 (6133 days ago) @ valter sini

Oh. You're correct. I got confused. Decrease it by 20 plz. :)

Kreso