Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
140 views
in Technique[技术] by (71.8m points)

linux - MTU affect on bandwidth/throughput

My ISP has capped my connection to 100 Mbps and I am connected to them on Fiber. This connection is being terminated in a Cisco router which is then connected to a Mikrotik device. I also have a Pi4 behing Mikrotik for load balancing. Everything works fine and my connection goes 100 Mbps Up/Down. But when I change the MTU from standard 1500 to anything larger, 2026 on Pi4 and Mikrotik, for example I get up/down speeds of 500 Mbps. Switch back to 1500 all the way back things come back to 100 Mbps instant.

LAN (1500) -> Pi4 (2026) -> Mikrotik (2026) -> Cisco (1500) -> ISP ..

I know this does not makes any sense but is it possible that MTU change can someone affect the way ISP is capping the port? Fragmentation, more packets ... anything?

Thanks.

question from:https://stackoverflow.com/questions/65879906/mtu-affect-on-bandwidth-throughput

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The use of large MTU sizes allows the operating system to send fewer packets of a larger size to reach the same network throughput. The larger packets greatly reduce the processing required in the operating system, assuming the workload allows large messages to be sent.

Larger MTU sizes typically provide better overall performance than smaller MTU sizes. Larger MTU sizes reduce the number of packets needed to transfer a large amount of data.

ISP fiber connection traffic shaping does not depends on users MTU. ISP fiber connection settings will not allow you to use more than 100 Mbps unless it is configured incorrectly.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...