Necessity and importance of setting MTU in linux

Source: Internet
Author: User
Description of the necessity and importance of setting MTU in linux: FTP is a popular program recently used to upload files. But this very Dish program made my head hurt for half a month. I deployed my program on linux and uploaded files below 1 KB,... information & nbs the necessity and importance of setting MTU in linux scenario description: a very popular program recently-FTP uploads files. But this very Dish program made my head hurt for half a month. I deployed my program on linux and uploaded files below 1 KB, but files above 1 KB cannot be uploaded. There is no problem in deploying programs on WINDOWS, and there is no problem in uploading my programs to my own FTP server. Therefore, it is determined that it is on the network. However, I am familiar with the network department and do not know what keywords I entered using the search engine. I have no choice but to ask my eldest brother. The eldest brother said three letters MTU. Solve the problem: set MTU for linux. First, what is MTU? Maximum Transmission Unit (MTU) refers to the Maximum data packet size (in bytes) that can be passed over a layer of a communication protocol ). The maximum transmission unit parameter is usually related to the communication interface (network interface card, serial port, etc ). How can I view MTU settings in linux? # Ifconfig eth0 mtu number where "number" is the MTU value. After modification, you can run the "ifconfig" command to view the modification result. You can also test the network speed through some websites, and further modify the MTU value to achieve the optimal network speed. In order not to have to modify every time, we can modify in the configuration file, such as: # vi/etc/sysconfig/network-scripts/ifcfg-eth0 MTU = 1000 Linux flexibility has been reflected again! Knowledge: MTU is called Maximum Transmission Unit in English, which indicates the Maximum Transmission Unit, that is, the Maximum number of bytes of information packets transmitted during connection. MTU determines the size of the information package. if the information package is too small, data of the same size will be divided into multiple packages for transmission, and the computer has to respond frequently; if the information package is too large, an error occurs, resulting in transmission failure.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.