Gostovanje na Windows strežnikih, ponudba webhosting, ASP.NET, PHP, MySQL


Windows tehnična podpora
Podporni forum za uporabnike storitev spletnega gostovanja
Odgovori na to temo
How to set MTU on specific network interface VPN
Pico
Site Admin

Pridružen/-a: Ned Jan 2004 0:15
Prispevkov: 230
Kraj: HostMachine.net
Odgovori s citatom
A lot of hidden problems with VPN connections, especially on Vista, Windows 7 and Server 2008 R2 might get even worse because of MTU size, which is actually lower as set by default.
Routers and Windows VPN ser MTU packet size to default 1500, but you can test, which MTU size is best for you. If your VPN or internet connection does not pass the whole packet in its preset size, it will fragment the packet and transmit the remaining in another packet frame.

It looks like this:
when MTU packet size is set to 1500 bytes, each transmitted packet has fixed size of 1500 bytes. When you transmit more than 1500 bytes, the download is devided into packets, each of 1500 size.
Now, if your internet (or VPN) connection does not allow such a size, but only, let's say, 1400, then your packets will be fragmented and first packet will be:
1400 bytes (transmitter frame full)
and next packet
100 bytes (transmiter frame will have 1300 bytes empty)

So, to optimise it, first TEST your connection for MTU maximum size:

Koda:
ping <destination IP> -f -l 1500


Most probably you will get anwer that YOUR PACKET NEEDS TO BE FRAGMENTED.
Then lower the "-l 1500" part to 1450, then to 1400 etc...and when you get normal PING response, increase the number by 10 until you get FRAGMENTED answer again.
Now you've found your connection packet size limit.

LOWER THE LIMIT BY 20 TO BE ON THE SAFE SIDE!
For example, if you packets were fragmented at 1390 and were no more fragmented at 1380, then we'll use MTU size of 1360 to be safe.

Now, list your connections:
Koda:
netsh interface ipv4 show subinterfaces

You'll get interface list.
Find your interface for which you set MTU size, and let's go:
Koda:
netsh interface ipv4 set subinterface "Interface Name" mtu=1360 store=persistent

We're done!

_________________
Site admin alias Labsy
Vsi nasveti in tehnične rešitve so podani v dobri veri in za ljudi z razčiščenimi pojmi o veljavni zakonodaji.
Odgovornost prevzemam izključno in samo za tiste posege, ki jih opravim lastnoročno.
Poglej uporabnikov profilPošlji zasebno sporočiloObišči avtorjevo spletno stranMSN Messenger - naslov
How to set MTU on specific network interface VPN
Ne, ne moreš dodajati novih tem v tem forumu
Ne, ne moreš odgovarjati na teme v tem forumu
Ne, ne moreš urejati svojih prispevkov v tem forumu
Ne, ne moreš brisati svojih prispevkov v tem forumu
Ne ne moreš glasovati v anketi v tem forumu
Časovni pas GMT + 1 ura, srednjeevropski - zimski čas  
Stran 1 od 1  

  
  
 Odgovori na to temo