Sunday, October 20, 2019

Set Jumbo Frames to MAX for Improving Data Transfer Setting using Powershell

Brief about Jumbo Frame:-
a Jumbo frame is something that can have a very positive impact on your network given the right circumstances. The maximum size of a packet on an Ethernet network is typically 1,514 bytes, called the Maximum Transmission Unit (MTU). 
With Jumbo frames, you can transmit packets as large as 9 KB. As you can imagine it takes significantly less effort to send one 9 KB packet as it does many 1,514-byte packets as long as your network supports it. 


Note:-

  • Network operators must make sure that all the networking equipment like switches and routers can support larger MTUs.
  • Must Consult your NIC vendor if it supports a Large Jumbo frame or not.
  • Check VMware v-switch and ensure that enable Larg MTUs.
  • This Setting Not Need any Server Restart, only it makes server freeze second during change (Takes NIC Card offline/online back).
>>Recommend applying at non-peak hours<<

Script to Change  Jumbo frame for all NIC Cards at Once:-

#Report about Current Jumbo 
Get-NetAdapterAdvancedProperty (Get-NetAdapter | where status -eq 'Up' | select -ExpandProperty name) -DisplayName "Jumbo Packet"

#Set Jumbo Packet to MAX (9014)
Set-NetAdapterAdvancedProperty (Get-NetAdapter | where status -eq 'Up' | select -ExpandProperty name) -DisplayName "Jumbo Packet" -RegistryValue "9014" -Verbose

TEST after Made Modification: -
If you get reply’s from below everything works great!

Ping xx.xx.xx.xx -f -8900

The “-f” parameter does not allow packets to be fragmented.
The “-l” parameter specifies the size of the packet, in this case, we use a large packet (jumbo frame).
or
Test-Connection xx.xx.xx.xx -BufferSize 8900


in case you need to RollBack to Default:-
#Set Jumbo Packet to Default (1514)
Set-NetAdapterAdvancedProperty (Get-NetAdapter | where status -eq 'Up' | select -ExpandProperty name) -DisplayName "Jumbo Packet" -RegistryValue "1514" -Verbose

Ref:-

No comments:

Post a Comment