Due to the underlying networking services making use of tunnelling and packet tagging a situation may arise where instance network connectivity, especially when downloading large files or transferring files, is found to be unreliable.
This article describes how to adjust the instance to ensure that it uses a suitable MTU size so that packets are not dropped by the underlying infrastructure.
Note that the appropriate MTU size is delivered via DHCP by the underlying network service, but not all operating systems make use of the DHCP option to dynamically set the MTU size for the NIC. This document thus serves as a failback when then DHCP option is not used.
- Packet loss when transferring data. The packet loss may not show on the instance OS stack itself, but when testing using Ping with specific packet sizes it will be observed that packets will be dropped when above a certain threshold.
- Open a command prompt with administrative privileges. (ie. right click on All Programs > Accessories > Command Prompt and select Run as administrator)
- Execute the following to see the list of interfaces and the current MTU size for each of them.
netsh interface ipv4 show subinterfaces
For example:
C:\Windows\system32>netsh interface ipv4 show subinterfaces MTU MediaSenseState Bytes In Bytes Out Interface ------ --------------- --------- --------- ------------- 4294967295 1 0 4760773 Loopback Pseudo-Interface 1 1300 1 65494507 8885236 Local Area Connection
Then for each applicable interface, set the MTU size as follows:
netsh interface ipv4 set subinterface "Local Area Connection" mtu=1454 store=persistent