100% Free Forever
AI-Powered Learning
Industry Expert Content
Certificates & Badges
Learn At Your Own Pace

What is Path MTU Discovery (PMTUD)?

Learn how Path MTU Discovery finds the smallest MTU along a route using ICMP, and why blocked ICMP causes black holes — interview Q&A.

hardQ178 of 234 in Computer Networks Est. time: 6 minsLast updated:
Open Code Lab
178 / 234

Expected Interview Answer

Path MTU Discovery (PMTUD) is the process a sending host uses to find the smallest MTU along the entire route to a destination, by sending packets with the Don’t Fragment (DF) bit set and shrinking the packet size whenever a router replies with an ICMP 'fragmentation needed' error, so the host can send packets that traverse the whole path without being fragmented.

Every link on a path can have a different MTU (Ethernet is typically 1500 bytes, but tunnels, VPNs, and PPPoE links often have smaller MTUs due to added headers). If a router receives a packet larger than the next hop’s MTU and the packet has the DF bit set, it cannot fragment it, so it drops the packet and sends back an ICMP Type 3 Code 4 'Fragmentation Needed' message containing the MTU of the link that could not forward it. The sending host uses that value to shrink its packet size and retransmit, repeating the process until packets flow through unfragmented for the entire path — the smallest MTU on any hop becomes the effective 'path MTU.' The well-known failure mode is 'PMTUD black holes': if a firewall along the path blocks ICMP entirely, the sender never receives the fragmentation-needed message and keeps sending oversized packets that silently vanish, which shows up as connections that work for small transfers (like a TCP handshake) but hang or stall once larger data starts flowing.

  • Lets a host find the largest packet size that traverses the entire path unfragmented
  • Avoids the performance cost of in-network fragmentation and reassembly
  • Relies on ICMP "fragmentation needed" messages from routers along the path
  • Vulnerable to black holes when ICMP is filtered somewhere on the route

AI Mentor Explanation

Path MTU Discovery is like a groundskeeper sending an oversized equipment trolley marked 'do not disassemble' down the tunnel to the pitch, and every gate along the way that is too narrow sends the trolley straight back with a note stating exactly how wide it actually is. The groundskeeper resizes the trolley to the narrowest gate reported and tries again until it clears every gate on the route. If one gate along the way refuses to send any note back at all, the trolley just keeps vanishing with no explanation, and deliveries mysteriously fail. That silent failure is exactly what happens when a firewall blocks the ICMP messages PMTUD depends on.

Step-by-Step Explanation

  1. Step 1

    Send with DF set

    The host sends a packet at its interface MTU (e.g., 1500 bytes) with the IP Don’t Fragment bit set.

  2. Step 2

    Router hits a smaller MTU

    A router along the path that must forward onto a link with a smaller MTU cannot fragment the DF-marked packet, so it drops it.

  3. Step 3

    ICMP feedback

    That router sends back an ICMP Type 3 Code 4 "Fragmentation Needed" message containing the next-hop MTU it could not use.

  4. Step 4

    Shrink and retry

    The sending host lowers its packet size to that reported MTU and retransmits, repeating until packets traverse the whole path unfragmented.

What Interviewer Expects

  • Explains the DF bit and ICMP fragmentation-needed feedback loop
  • Understands the discovered path MTU is the minimum MTU across all hops
  • Can describe the black-hole failure mode caused by ICMP filtering
  • Connects PMTUD relevance to tunnels/VPNs that reduce effective MTU

Common Mistakes

  • Confusing PMTUD with normal IP fragmentation (PMTUD avoids fragmentation, it does not perform it)
  • Not knowing why blocking all ICMP breaks PMTUD instead of just being “more secure”
  • Thinking PMTUD is IPv6-only (it works for IPv4 too, though IPv6 routers never fragment at all, making PMTUD more critical there)
  • Forgetting that symptoms show up only on larger transfers, not the initial handshake

Best Answer (HR Friendly)

Path MTU Discovery is how a computer figures out the biggest packet size it can send across the internet to a destination without any router along the way having to chop it up. It sends a test packet marked 'do not split me,' and if a router along the route can’t forward it at that size, the router sends back a message saying how big it can handle — the sender then shrinks the packet and tries again until it fits the whole path.

Code Example

Testing Path MTU Discovery on Linux
# Send a non-fragmenting ping, sweeping payload size to find the path MTU
ping -M do -s 1472 8.8.8.8   # 1472 + 28 = 1500, standard Ethernet MTU
# If this fails: Frag needed and DF set

# Trace the MTU along each hop
tracepath 8.8.8.8
# 1:  gateway (192.168.1.1)   0.4ms
# 2:  isp-router (203.0.113.1) pmtu 1492
# 3:  ...

Follow-up Questions

  • What is a PMTUD black hole and how do you troubleshoot it?
  • Why does PMTUD matter more for IPv6, where routers never fragment?
  • How does MSS clamping relate to Path MTU Discovery?
  • How do VPN and PPPoE overhead typically reduce the effective MTU?

MCQ Practice

1. What ICMP message does PMTUD rely on to discover a smaller MTU?

A router that cannot forward a DF-marked oversized packet returns ICMP Type 3 Code 4 with the MTU it can actually support.

2. What causes a "PMTUD black hole"?

If ICMP is filtered anywhere on the path, the sender never learns to shrink its packets, and they are silently dropped.

3. The discovered “path MTU” between two hosts equals what?

Path MTU is bounded by the most restrictive (smallest) MTU link anywhere along the route.

Flash Cards

What is Path MTU Discovery?A process using DF-marked packets and ICMP feedback to find the smallest MTU along a route, so packets are sent unfragmented.

What ICMP message drives PMTUD?Type 3 Code 4, "Fragmentation Needed," sent by a router that cannot forward an oversized DF packet.

What is a PMTUD black hole?When a firewall blocks the ICMP reply, so the sender never shrinks its packets and they are silently dropped.

What is the discovered path MTU equal to?The smallest MTU found on any single link along the entire path.

1 / 4
178 / 234

Continue Learning

Frequently Asked Questions

21 categories · pick one to explore

Where can I practice technical interview questions for free in India?
SkillVeris offers a free interview questions section with readiness scoring, so you can practice technical interview questions at no cost from anywhere in India or worldwide. Questions span AI/ML, programming, web development, DevOps, cloud and security. Combine them with Code Lab for hands-on coding practice and the AI Mentor for instant explanations whenever an answer confuses you.
How do I prepare for a coding interview if I am a complete beginner?
Start by learning one language well, then practice small problems daily before attempting interview questions. On SkillVeris you can take a free structured programming course with 24–40 lessons, write code in the in-browser Code Lab across 6 languages, and then move to the interview questions bank with readiness scoring to measure how prepared you actually are.
What is interview readiness scoring and how does it work?
Interview readiness scoring measures how prepared you are for a technical interview based on your performance across practice questions. On SkillVeris, as you answer interview questions, your readiness score updates so you can see weak topics before the real interview. It turns vague confidence into a concrete signal, telling you which areas need more revision and which are already strong.
How long does it take to get interview ready for a developer job?
Most beginners need a few months of consistent practice to feel interview ready, though timelines vary with background and daily study time. A practical route is finishing a structured SkillVeris course, which includes 24–40 lessons, module assessments and a final exam at an 80 percent pass mark, then drilling the free interview questions until your readiness score is consistently strong.
What are the most common technical interview topics for freshers?
Freshers are commonly tested on programming fundamentals, data structures, problem solving, databases, and basics of the role's stack such as web development or cloud. SkillVeris covers these through 37 free courses, a glossary of around 2,000 terms for quick definitions, cheat sheets for revision, and interview questions with readiness scoring so you can practise exactly what interviewers usually ask.
Can I practice coding interview prep without installing anything?
Yes, SkillVeris Code Lab runs entirely in your browser, so you can practice coding interview prep without installing compilers or editors. It supports 6 languages across 15 categories of exercises. Pair Code Lab sessions with the interview questions bank and readiness scoring, and you have a complete free preparation setup that works on any machine with an internet connection.
How do I explain technical concepts clearly in an interview?
Practice explaining each concept through a simple analogy first, then add the technical detail, because interviewers value clarity over jargon. SkillVeris teaches with its Learn Through Hobbies method, explaining concepts through cricket, music, gaming, cooking and eight more domains. Learning a topic through an analogy gives you a ready-made, memorable way to explain it when an interviewer asks.
Are there free mock interview resources for software engineers?
SkillVeris provides free interview questions with readiness scoring, which works like a self-paced mock interview you can repeat any time. You answer real-style technical questions, get scored, and see where you stand. The AI Mentor is available 24/7 to explain any answer at Quick, Detailed or Deep-dive depth, acting like an always-available interviewer who never gets tired.
How should I prepare for an AI or machine learning interview?
Cover ML fundamentals, Python, and modern topics like LLMs and RAG, then practise explaining projects clearly. SkillVeris has free AI/ML courses including Python for AI and ML, Large Language Models and Retrieval-Augmented Generation, each with 24–40 lessons and assessments. After finishing, use the interview questions bank and readiness scoring to confirm you can answer under pressure.
What should I revise the night before a technical interview?
Revise concise summaries rather than learning anything new: core definitions, common patterns, and your own project stories. SkillVeris cheat sheets and study notes are built exactly for this kind of quick revision, and the glossary of around 2,000 terms lets you verify any definition fast. A short readiness-score check on the interview questions bank confirms nothing critical is shaky.
How do I prepare for a DevOps interview with no work experience?
Build demonstrable knowledge through structured learning and hands-on practice, since you cannot point to job experience. SkillVeris offers free DevOps, Docker and Kubernetes related courses within its 37-course catalog and a DevOps Engineer learning path. Complete the courses, earn certificates by passing the final exams, then use the interview questions section to rehearse common DevOps scenarios.
Do certificates help in clearing technical interviews?
Certificates alone do not clear interviews, but they signal structured learning and give interviewers a starting point for questions. SkillVeris awards certificates when you pass a course final exam at 80 percent, after 24–40 lessons and module assessments, so the certificate reflects genuine effort. Pair it with practised interview answers and Code Lab projects to make a stronger impression.
How can I improve my problem solving speed for coding interviews?
Speed comes from repetition on progressively harder problems, not from rushing. Practise daily in SkillVeris Code Lab, which offers in-browser coding in 6 languages across 15 categories, and time yourself on interview questions. Review every mistake with the AI Mentor, which explains solutions 24/7 at Quick, Detailed or Deep-dive depth, so each session genuinely improves your pattern recognition.
What questions are asked in a Python technical interview?
Python interviews typically cover data types, functions, comprehensions, OOP, error handling and libraries relevant to the role, such as ML packages for AI positions. SkillVeris interview questions include Python topics, and its free Python for AI and ML course builds the underlying knowledge across 24–40 lessons. Readiness scoring then shows whether your Python answers are interview grade.
How do I handle interview questions I don't know the answer to?
Say what you do know, reason aloud toward an approach, and be honest about the gap, because interviewers value thinking over bluffing. Reduce how often this happens by broadening fundamentals: SkillVeris study notes, cheat sheets and the roughly 2,000-term glossary fill knowledge gaps quickly, and readiness scoring highlights weak areas before an interviewer ever finds them.
Is there a free way to check my interview readiness before applying for jobs?
Yes, SkillVeris interview questions come with readiness scoring, all completely free, so you can measure preparation before applying. Once your score looks solid, browse the SkillVeris Jobs page, which aggregates live roles across India, UK, USA, Germany and Remote with salary and experience filters, and apply knowing your technical preparation has been objectively tested.
How do I prepare for web developer interview questions?
Focus on JavaScript fundamentals, your framework of choice, HTTP basics, and building things you can discuss. SkillVeris offers free web development courses among its 37-course catalog, plus a Full Stack Java Developer learning path. After the courses, drill the interview questions bank, practise coding tasks in Code Lab, and use readiness scoring to verify you cover typical frontend and backend topics.
Can the AI Mentor help me practice interview answers?
Yes, the SkillVeris AI Mentor answers questions 24/7 and can explain any concept at Quick, Detailed or Deep-dive depth, which makes it useful for rehearsing interview explanations. Ask it to clarify a topic, then try explaining it back in your own words. Combined with the interview questions bank and readiness scoring, it becomes a free, always-available practice partner.
What is the best free platform for technical interview prep in 2026?
SkillVeris is a strong free option because it combines structured learning with dedicated interview preparation in one place. You get 37 free courses, interview questions with readiness scoring, an in-browser Code Lab for hands-on practice, cheat sheets and study notes for revision, and a 24/7 AI Mentor. Everything is free, which matters for learners in India and worldwide.
How do I stay calm and confident during a technical interview?
Confidence comes from evidence of preparation, so build that evidence deliberately. Complete a SkillVeris course, pass its final exam at the 80 percent bar, and watch your readiness score climb on the interview questions bank. Knowing you have explained concepts through analogies, coded in Code Lab, and scored well on practice questions gives you genuine, grounded calm on the day.

What Learners Say

Real journeys from the SkillVeris community — swipe for more.

SkillVeris taught me Python through Cricket. Now I’m building real projects and feeling confident!
Arjun S. · B.Tech Student
The best platform for hobby-based learning. Concepts finally stick.
Priya R. · Data Analyst
I went from zero coding to a portfolio of projects — all by learning through my love for gaming. Landed my first internship!
Kabir M. · CS Undergraduate
Trending Topics50 popular tags — tap to explore
Trending CoursesAll 37 free courses — tap to browse