Skip to Content
Web Performance Tuning
book

Web Performance Tuning

by Patrick Killelea
October 1998
Intermediate to advanced
374 pages
12h 6m
English
O'Reilly Media, Inc.
Content preview from Web Performance Tuning

Path MTU Discovery

Whenever a connection is about to be established, the three-way handshake opens negotiation, and the segment size used will be set to the minimum of either the smallest MTU of an outgoing interface or the Maximum Segment Size (MSS) announced by the peer. If the remote peer does not announce a MSS, usually the value 536 will be assumed. If path MTU discovery is active, all outgoing PDUs have the IP don’t fragment (DF) option set.

If the ICMP error message “fragmentation needed” is received, this means that a router on the way to the destination needed to fragment the PDU, but was not allowed to do so. Therefore, the router discarded the PDU and sent back the ICMP error. Newer router implementations enclose the needed MSS in the error message. If the needed MSS is not included, the correct MSS must be determined by trial and error.

Because the Internet is a packet switching network, the route a PDU travels along a TCP virtual circuit may change with time. For this reason, RFC 1191 recommends rediscovering the path MTU of an active connection after 10 minutes. Improvements in the route can be noticed only by repeated rediscoveries. Unfortunately, Solaris aggressively tries to rediscover the path MTU every 30 seconds. While this is OK for LAN environments, it is grossly impolite behavior in WANs. Since routes may not change that often, aggressive repetitions of path MTU discovery lead to unnecessary consumption of channel capacity and elongated service times.

Path ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Web Performance Tuning, 2nd Edition

Web Performance Tuning, 2nd Edition

Patrick Killelea
Web performance basics

Web performance basics

Maximiliano Firtman

Publisher Resources

ISBN: 1565923790Catalog PageErrata