In computer networking , the maximum transmission unit ( MTU ) is the size of the largest protocol data unit (PDU) that can be communicated in a single network layer transaction. The MTU relates to, but is not identical to the maximum frame size that can be transported on the data link layer , e.g., Ethernet frame .
39-487: Larger MTU is associated with reduced overhead . Smaller MTU values can reduce network delay . In many cases, MTU is dependent on underlying network capabilities and must be adjusted manually or automatically so as to not exceed these capabilities. MTU parameters may appear in association with a communications interface or standard. Some systems may decide MTU at connect time, e.g. using Path MTU Discovery . MTUs apply to communications protocols and network layers . The MTU
78-470: A journal on some file systems. Many small files create more overhead than a low number of large files. Link layer In computer networking , the link layer is the lowest layer in the Internet protocol suite , the networking architecture of the Internet . The link layer is the group of methods and communications protocols confined to the link that a host is physically connected to. The link
117-447: A payload of data over a communications network requires sending more than just the payload itself. It also involves sending various control and signalling data ( TCP ) required to reach the destination. This creates a so-called protocol overhead as the additional data does not contribute to the intrinsic meaning of the message. In telephony , number dialing and call set-up time are overheads. In two-way (but half-duplex ) radios,
156-513: A 1500-byte packet, the largest allowed by Ethernet at the network layer, ties up a 14.4k modem for about one second. Large packets are also problematic in the presence of communications errors. If no forward error correction is used, corruption of a single bit in a packet requires that the entire packet be retransmitted, which can be costly. At a given bit error rate , larger packets are more susceptible to corruption. Their greater payload makes retransmissions of larger packets take longer. Despite
195-544: A big financial incentive to do so. Often, even though software providers are well aware of bugs in their products, the payoff of fixing them is not worth the reward, because of the overhead. For example, an implicit data structure or succinct data structure may provide low space overhead, but at the cost of slow performance (space/time tradeoff). Algorithmic complexity is generally specified using Big O notation . This makes no comment on how long something takes to run or how much memory it uses, but how its increase depends on
234-421: A choice of several algorithms , encodings , data types or data structures , each of which have known characteristics. When choosing among them, their respective overhead should also be considered. In software engineering , overhead can influence the decision whether or not to include features in new products, or indeed whether to fix bugs. A feature that has a high overhead may not be included – or needs
273-560: A different concept and terminology of classification. This may be observed when certain protocols, such as ARP, which is confined to the link layer in the TCP/IP model, is often said to fit between OSI's data link layer and the network layer. In general, direct or strict comparisons should be avoided, because the layering in TCP/IP is not a principal design criterion and in general, is considered to be "harmful" (RFC 3439). Another term sometimes encountered, network access layer , tries to suggest
312-403: A given medium. The size of an IP packet includes IP headers but excludes headers from the link layer. In the case of an Ethernet frame this adds a protocol overhead of 18 bytes, or 22 bytes with an IEEE 802.1Q tag for VLAN tagging or class of service . The MTU should not be confused with the minimum datagram size (in one piece or in fragments) that all hosts must be prepared to accept. This
351-408: A new reliable MTU. A failure of Path MTU Discovery carries the possible result of making some sites behind badly configured firewalls unreachable. A connection with mismatched MTU may work for low-volume data but fail as soon as a host sends a large block of data. For example, with Internet Relay Chat a connecting client might see the initial messages up to and including the initial ping (sent by
390-484: A particular link layer cannot deliver an IP datagram of 1280 bytes in a single frame, then the link layer must provide its own fragmentation and reassembly mechanism, separate from the IP fragmentation mechanism, to ensure that a 1280-byte IP datagram can be delivered, intact, to the IP layer. In the context of Internet Protocol , MTU refers to the maximum size of an IP packet that can be transmitted without fragmentation over
429-418: A small run-time overhead. Sometimes the compiler can minimize this overhead by inlining some of these function calls . In a CPU cache , the "cache size" (or capacity ) refers to how much data a cache stores. For instance, a "4 KB cache" is a cache that holds 4 KB of data. The "4 KB" in this example excludes overhead bits such as frame, address, and tag information. Reliably sending
SECTION 10
#1732787441372468-453: Is 576 bytes for IPv4 and 1280 bytes for IPv6 . The IP MTU and Ethernet maximum frame size are configured separately. In Ethernet switch configuration, MTU may refer to Ethernet maximum frame size. In Ethernet-based routers, MTU normally refers to the IP MTU. If jumbo frames are allowed in a network, the IP MTU should also be adjusted upwards to take advantage of this. Since the IP packet
507-406: Is a Path MTU Discovery technique which responds more robustly to ICMP filtering. In an IP network, the path from the source address to the destination address may change in response to various events ( load-balancing , congestion , outages , etc.) and this could result in the path MTU changing (sometimes repeatedly) during a transmission, which may introduce further packet drops before the host finds
546-511: Is a facility delivering similar functionality as ARP for IPv6 . The link layer of the TCP/IP model is often compared directly with the combination of the data link layer and the physical layer in the Open Systems Interconnection (OSI) protocol stack. Although they are congruent to some degree in technical coverage of protocols, they are not identical. The link layer in TCP/IP is still wider in scope and in principle
585-481: Is carried by an Ethernet frame, the Ethernet frame has to be larger than the IP packet. With the normal untagged Ethernet frame overhead of 18 bytes and the 1500-byte payload, the Ethernet maximum frame size is 1518 bytes. If a 1500-byte IP packet is to be carried over a tagged Ethernet connection, the Ethernet frame maximum size needs to be 1522 bytes due to the larger size of an 802.1Q tagged frame. 802.3ac increases
624-457: Is described in RFC 1122 and RFC 1123 . RFC 1122 considers local area network protocols such as Ethernet and other IEEE 802 networks (e.g. Wi-Fi ), and framing protocols such as Point-to-Point Protocol (PPP) to belong to the link layer. Local area networking standards such as Ethernet and IEEE 802.3 specifications use terminology from the seven-layer OSI model rather than
663-576: Is sometimes used to describe the maximum PDU sizes in communication layers other than the network layer. The transmission of a packet on a physical network segment that is larger than the segment's MTU is known as jabber . This is almost always caused by faulty devices. Network switches and some repeater hubs have a built-in capability to detect when a device is jabbering. Overhead (computing) Overhead in computer systems consists of shared functions that benefit all users or processes but are not directly attributable to any specific task. It
702-419: Is specified in terms of bytes or octets of the largest PDU that the layer can pass onwards. MTU parameters usually appear in association with a communications interface ( NIC , serial port , etc.). 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. Underlying data link and physical layers usually add overhead to
741-526: Is the physical and logical network component used to interconnect hosts or nodes in the network and a link protocol is a suite of methods and standards that operate only between adjacent network nodes of a network segment . Despite the different semantics of layering between the Internet protocol suite and OSI model , the link layer is sometimes described as a combination of the OSI's data link layer (layer 2) and physical layer (layer 1). The link layer
780-657: Is thus similar to overhead in organizations. Computer system overhead shows up as slower processing, less memory, less network bandwidth, or bigger latency than would be expected from reading the system specifications. It is a special case of engineering overhead . Overhead can be a deciding factor in software design, with regard to structure, error correction, and feature inclusion. Examples of computing overhead may be found in Object Oriented Programming (OOP), functional programming , data transfer, and data structures. A programmer/software engineer may have
819-436: The 32-bit signed integer 1310447927 , consuming only 4 bytes. Represented as ISO 8601 formatted UTF-8 encoded string 2011-07-12 07:18:47 the date would consume 19 bytes, a size overhead of 375% over the binary integer representation. As XML this date can be written as follows with an overhead of 218 characters, while adding the semantic context that it is a CHANGEDATE with index 1. The 349 bytes, resulting from
SECTION 20
#1732787441372858-454: The IP layer of the destination host knows it should reassemble the packets into the original datagram. All fragments of a packet must arrive for the packet to be considered received. If the network drops any fragment, the entire packet is lost. When the number of packets that must be fragmented or the number of fragments is great, fragmentation can cause unreasonable or unnecessary overhead. For example, various tunneling situations may exceed
897-693: The MTU becomes small enough to traverse the entire path without fragmentation. Standard Ethernet supports an MTU of 1500 bytes and Ethernet implementation supporting jumbo frames, allow for an MTU up to 9000 bytes. However, border protocols like PPPoE will reduce this. Path MTU Discovery exposes the difference between the MTU seen by Ethernet end-nodes and the Path MTU. Unfortunately, increasing numbers of networks drop ICMP traffic (for example, to prevent denial-of-service attacks ), which prevents path MTU discovery from working. Packetization Layer Path MTU Discovery
936-604: The MTU by very little as they add just a header's worth of data. The addition is small, but each packet now has to be sent in two fragments, the second of which carries very little payload. The same amount of payload is being moved, but every intermediate router has to forward twice as many packets. The Internet Protocol requires that hosts must be able to process IP datagrams of at least 576 bytes (for IPv4) or 1280 bytes (for IPv6). However, this does not preclude link layers with an MTU smaller than this minimum MTU from conveying IP data. For example, according to IPv6's specification, if
975-401: The TCP/IP model. The TCP/IP model, in general, does not consider physical specifications, rather it assumes a working network infrastructure that can deliver media-level frames on the link. Therefore, RFC 1122 and RFC 1123, the definition of the TCP/IP model, do not discuss hardware issues and physical data transmission and set no standards for those aspects. Some textbook authors have supported
1014-464: The UTF-8 encoded XML, correlates to a size overhead of 8625% over the original integer representation. Besides the files themselves, computer file systems take a portion of the space to store directory names and listings, file names, files' sector locations, attributes such as the date and time of the last modification and creation, how the files are fragmented , written and free parts of the space, and
1053-429: The interpretation that physical data transmission aspects are part of the link layer. Others assumed that physical data transmission standards are not considered communication protocols, and are not part of the TCP/IP model. These authors assume a hardware layer or physical layer below the link layer, and several of them adopt the OSI term data link layer instead of link layer in a modified description of layering. In
1092-413: The link layer or the data link layer, often including the physical layer. The link layer in the TCP/IP model is a descriptive realm of networking protocols that operate only on the local network segment (link) that a host is connected to. Such protocol packets are not routed to other networks. The link layer includes the protocols that define communication between local (on-link) network nodes which fulfill
1131-407: The lowest MTU in a chain of links to other peers. Another potential problem is that higher-level protocols may create packets larger than even the local link supports. IPv4 allows fragmentation which divides the datagram into pieces, each small enough to accommodate a specified MTU limitation. This fragmentation process takes place at the internet layer . The fragmented packets are marked so that
1170-415: The negative effects on retransmission duration, large packets can still have a net positive effect on end-to-end TCP performance. The Internet protocol suite was designed to work over many different networking technologies, each of which may use packets of different sizes. While a host will know the MTU of its own interface and possibly that of its peers (from initial handshakes), it will not initially know
1209-521: The network layer data to be transported, so for a given maximum frame size of a medium, one needs to subtract the amount of overhead to calculate that medium's MTU. For example, with Ethernet, the maximum frame size is 1518 bytes, 18 bytes of which are overhead ( header and frame check sequence ), resulting in an MTU of 1500 bytes. A larger MTU brings greater efficiency because each network packet carries more user data while protocol overheads, such as headers or underlying per-packet delays, remain fixed;
Maximum transmission unit - Misplaced Pages Continue
1248-502: The path MTU between two IP hosts, defined for both IPv4 and IPv6 . It works by sending packets with the DF (don't fragment) option in the IP header set. Any device along the path whose MTU is smaller than the packet will drop such packets and send back an ICMP Destination Unreachable (Datagram Too Big) message which indicates its MTU. This information allows the source host to reduce its assumed path MTU appropriately. The process repeats until
1287-512: The predecessor to the TCP/IP model, the ARPAnet Reference Model (RFC 908, 1982), aspects of the link layer are referred to by several poorly defined terms, such as network-access layer , network-access protocol , as well as network layer , while the next higher layer is called internetwork layer . In some modern textbooks, network-interface layer , host-to-network layer and network-access layer occur as synonyms either to
1326-775: The purpose of maintaining link states between the local nodes, such as the local network topology, and that usually use protocols that are based on the framing of packets specific to the link types. The core protocols specified by the Internet Engineering Task Force (IETF) in this layer are the Address Resolution Protocol (ARP), the Reverse Address Resolution Protocol (RARP), and the Neighbor Discovery Protocol (NDP), which
1365-472: The resulting higher efficiency means an improvement in bulk protocol throughput. A larger MTU also requires processing of fewer packets for the same amount of data. In some systems, per-packet-processing can be a critical performance limitation. However, this gain is not without a downside. Large packets occupy a link for more time than a smaller packet, causing greater delays to subsequent packets, and increasing network delay and delay variation . For example,
1404-505: The server as an anti-spoofing measure), but get no response after that. This is because the large set of welcome messages sent at that point are packets that exceed the path MTU. One can possibly work around this, depending on which part of the network one controls; for example one can change the MSS ( maximum segment size ) in the initial packet that sets up the TCP connection at one's firewall. MTU
1443-405: The size of the input. Overhead is deliberately not part of this calculation, since it varies from one machine to another, whereas the fundamental running time of an algorithm does not. This should be contrasted with algorithmic efficiency , which takes into account all kinds of resources – a combination (though not a trivial one) of complexity and overhead. Invoking a function introduces
1482-410: The standard Ethernet maximum frame size to accommodate this. The Internet Protocol defines the path MTU of an Internet transmission path as the smallest MTU supported by any of the hops on the path between a source and destination. Put another way, the path MTU is the largest packet size that can traverse this path without suffering fragmentation. Path MTU Discovery is a technique for determining
1521-399: The use of "over" and other signaling needed to avoid collisions is an overhead. Protocol overhead can be expressed as a percentage of non-application bytes (protocol and frame synchronization ) divided by the total number of bytes in the message. The encoding of information and data introduces overhead too. The date and time "2011-07-12 07:18:47" can be expressed as Unix time with
#371628