networking:mtu
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
networking:mtu [2025/10/03 19:20] – aperez | networking:mtu [2025/10/04 15:48] (current) – aperez | ||
---|---|---|---|
Line 158: | Line 158: | ||
---- | ---- | ||
- | ===== PMTU and PMTUD ===== | + | > **Note: |
- | **Path MTU (PMTU)** | + | The *Path Maximum Transmission Unit (PMTU)* is the **largest IP packet size that can travel |
- | The *Path Maximum Transmission Unit* is the **largest IP packet size that can travel | + | It is determined by the **smallest MTU along the entire path**. |
- | The PMTU is determined by the **smallest MTU of all the links** along the end-to-end path. | + | |
Example: | Example: | ||
Line 168: | Line 167: | ||
* Link 2: MTU = 1500 | * Link 2: MTU = 1500 | ||
* Link 3: MTU = 1400 | * Link 3: MTU = 1400 | ||
- | **PMTU = 1400 bytes** | + | |
--- | --- | ||
- | **Path MTU Discovery (PMTUD)** | + | **Path MTU Discovery (PMTUD):** |
- | This is the **mechanism | + | A dynamic |
- | It uses the **DF (Don’t Fragment)** bit in IP packets: | + | |
- | | + | Steps: |
- | - If an intermediate | + | |
- | - The source reduces the size and retries | + | - If a router cannot forward due to its MTU, it discards |
+ | - The source reduces the size until it learns the **real PMTU**. | ||
--- | --- | ||
- | **Verification | + | **Verification on Linux**:: |
ping -M do -s 1472 8.8.8.8 | ping -M do -s 1472 8.8.8.8 | ||
- | → If it replies: | + | → If it replies: path supports 1500 (1472+28 headers). |
- | → If it fails: | + | → If it fails: PMTU is smaller. |
tracepath -n 8.8.8.8 | tracepath -n 8.8.8.8 | ||
- | → Displays | + | → Displays estimated PMTU along the route. |
--- | --- | ||
- | **Common | + | **Common |
- | * ICMP blocked | + | * Blocking |
- | * Tunnel/VPN overhead (e.g., IPSec reduces MTU from 1500 to ~1400). | + | * Tunnel/VPN overhead |
- | * Inconsistent | + | * Misconfigured |
--- | --- | ||
- | **Summary** | + | **In summary:** |
- | * **PMTU** = maximum | + | * **PMTU** = max packet size without fragmentation. |
- | * **PMTUD** = dynamic | + | * **PMTUD** = process |
Line 314: | Line 312: | ||
+ | {{ : | ||
- | + | {{pdfjs 46em >: | |
---- | ---- | ||
---- | ---- |
networking/mtu.1759537225.txt.gz · Last modified: 2025/10/03 19:20 by aperez