Questions tagged [mtu]

In computer networking, the MTU (Maximum Transmission Unit) of a communications protocol of a layer is the size (in bytes) of the largest protocol data unit that the layer can pass onwards.

MTU parameters usually appear in association with a communications interface (NIC, serial port...). Standards (Ethernet, for example) can fix the size of an MTU; or systems (such as point-to-point serial links) may decide MTU at connect time.

A larger MTU brings greater efficiency because each packet carries more user data while protocol overheads, such as headers or underlying per-packet delays, remain fixed.

However, this gain is not without a downside. Large packets occupy a slow link for more time than a smaller packet, causing greater delays to subsequent packets and increasing lag and minimum latency. Large packets are also problematic in the presence of communications errors. Corruption of a single bit in a packet requires that the entire packet be retransmitted.

169 questions
1
vote
1 answer

Network Issue: Timeout in Docker vs working in Host : TLS issue leads to not reachable in docker without network=host

Info: TL;DR: In case you experience network issues (timeouts, erratic behavior, etc) on docker container while it works on host, or with --network host, this issue is related. This Issue is solved - please see accepted answer. It took some…
til
  • 832
  • 11
  • 27
1
vote
1 answer

Calculating the maximum UDP payload size to avoid fragmentation on an Ethernet LAN

I've got a program that is designed to send/receive UDP packets across a Gigabit Ethernet LAN (note: not the general Internet), and to maximize throughput, I would like to have it make the packets as large as possible without causing any…
Jeremy Friesner
  • 70,199
  • 15
  • 131
  • 234
1
vote
0 answers

I can't fragment my packet on a TCP connection

I've been trying and trying to fragment my TCP packets but I havent found any helpful implementation of it. I am familiar with the theory and concepts of fragmentation, have even come across some flags such as IP_PMTUDISC_DONT, IP_PMTUDISC_WANT, and…
1
vote
1 answer

What happens if fragmented IP datagram gets dropped (i.e. one fragment out of many)?

I am a student just beginning to dive into the network stack, so please forgive any misconceptions. If you are using TCP as a transport layer protocol, and sending payloads that happen to be greater than the MTU lower down in the stack, the Network…
1
vote
1 answer

Windows 2000 and size MTU size for udp datagrams

How would I change/make sure that my windows host receiver of multicasted udp datagrams is set to be able to receive an MTU of 1500? The documentation I've read so far refers to PPP and PPPoE, which doesn't seem to apply to udp datagrams. Thanks ak
Al Kurlansky
  • 275
  • 3
  • 18
1
vote
0 answers

An exception in Tomcat 9.0.31 if is SSL-enabled (happens only via VPN with reduced MTU)

I've experienced a strangest issue with an ugly tomcat 9.0.31 app written by 3rd-party. It works with no issues from office, but always throws exceptions at random operations while we work with it via VPN (where MTU is 1400). If we turn off SSL, it…
1
vote
1 answer

get mtu C++ portable way

Is there a way to get mtu C++ portable way? Like from both Linux and Windows ? I know in Linux this is the code : sys_get_mtu(const char *ifname) { struct ifreq ifr; size_t ifnamelen; int s; ifnamelen = strlen(ifname); if…
1
vote
1 answer

Does the internet really works at 1500 bytes?

MTU (Maximum transmission unit) is the maximum frame size that can be transported. When we talk about MTU, it's generally a cap at the hardware level and is for the lower level layers - DataLink and Physical layer. Now, considering the OSI layer, it…
DUDE_MXP
  • 724
  • 7
  • 24
1
vote
1 answer

Find out RTP maximum size

I have read RTP Packet maximum size? and What is the max rtsp(over tcp) packet size? but that didn't answer on my problem. How can I find out what is the max size of rtp/rtsp? is that depend only on MTU ? there is no way that rtp/rtsp will be…
user13145920
  • 179
  • 1
  • 9
1
vote
0 answers

Not getting response of requestMtu on Huawei deices

I am working on Android BLE, i found strange behavior on Huawei(Honor 7C) devices some times i didn't get response from requestMtu mean when i call this method onMtuChanged method never triggers, this works fine on Samsung devices but on Huawei…
1
vote
1 answer

BLE 4.0/4.1 supporting data transfer of 64 bytes in Android

We have some android devices which have BT stack 4.0 and 4.1. As per theory, 4.0 and 4.1 support data transfer of only 23 (20 +3) bytes. While BT stack 4.2 and 5.0 support data transfer upto 251 bytes MTU. But in our app, we requested MTU size of 64…
Harish Vats
  • 662
  • 6
  • 21
1
vote
0 answers

"ping -Mdo" won't prohibit fragmentation with MTU below 1500

I have encountered some trouble when testing different MTU settings on 2 nodes. node1:192.168.160.2:MTU:1000 node2:192.168.160.3:MTU:9000 There is unmanaged switch between them. Path MTU Discovery is turned OFF When testing traffic from node2 to…
A.B.
  • 11
  • 2
1
vote
2 answers

How to change TCP Header and options using Python's socket library

I will like to get some help on how to modify the TCP header as well as change the options on a TCP header. I am especially interested in the MSS section of the options. I have tried using the setsockopt() with different options to no success. Here…
0siris
  • 27
  • 1
  • 8
1
vote
1 answer

How to send long data (255 Bytes in one packet ) in ios using BLE

I want to send 255 byte string data in react native with BLE, in android there is no problem but in ios only 185 byte can be sent, I requested for mtu = 255, but no result libraries that i tried: react-native-ble-plx and react-native-ble-manager
amirhosein
  • 844
  • 9
  • 24
1
vote
1 answer

Unable to send UDP packets larger than the MTU with Windows Build 1809 using C# UdpClient

Short version of below - we can't seem to successfully send UDP packets larger than 1472 bytes when running Build 1809 of Windows, though it worked OK in previous versions. We have an existing C# application (really a set of applications) that runs…
Brian
  • 19
  • 3