Rate This Document
Findability
Accuracy
Completeness
Readability

Setting the MTU Value

Purpose

When the maximum transmission unit (MTU) is close to the data packet size, the optimal throughput can be achieved. If the data packet size is larger than the MTU, the data packet is segmented before sending, which leads to the deterioration of network performance. A larger MTU can increase the network throughput and improve the network performance.

Procedure

For example, if the size of the test data packet is 1000, the default value 1500 can be used to achieve the optimal performance.

Set the MTU value to 1500, assuming that the current NIC name is enp136s0.
1
ifconfig enp136s0 mtu 1500
  • MTU is used to set the size of the data packet transmitted by the host using TCP/IP.
  • Set same MTU values at both ends of the network. If not the same, many IP segments may be generated. Reassembling these IP segments consumes CPU resources and increases the delay.
  • Run the ip addr command to view the MTU value.