MTU, Fragmentation, and Large SIP Messages
SIP is a text protocol, and text grows. A registration that once fit comfortably in one packet can acquire identity headers, several Via entries, and a larger SDP body until it crosses the path MTU. At that point the failure mode changes completely: the signalling logic is correct, the credentials are right, and the message still disappears, because the fragments that carry it never reach the far end.
How a SIP Message Becomes Large
A basic INVITE carries a handful of headers. Real deployments add Record-Route and Route headers from proxies, Via entries from each hop, identity and verification headers, privacy information, and an SDP body describing media codecs and addresses. Each addition is individually reasonable. Together they can take a message well beyond a single ethernet frame at the default IP MTU.
The size is rarely noticed until something changes. Adding an extra media codec, enabling an identity header, or routing through one more proxy is enough to push a message over the boundary. The resulting fault appears immediately afterwards and is often attributed to the change that touched the signalling feature rather than to the packet size that the change produced.
| Contributor | Effect on message size | Typical trigger |
|---|---|---|
| Multiple Via entries | One line per proxy hop | Additional SBC or proxy in the path |
| Record-Route and Route | One or more lines per hop | Topology changes or dialog routing |
| Identity headers | Several long values | Enabling identity verification |
| SDP codec list | Grows with each offered codec | Adding codecs or fax capabilities |
| Media descriptions | One block per media stream | Video, data, or multiple streams |
| Privacy and history headers | Additional text per hop | Compliance or tracing features |
Why UDP Fragments Disappear
When a UDP SIP message exceeds the MTU, IP fragmentation splits it across several packets. Reassembly happens at the destination, which means every fragment must arrive. Firewalls and carrier edges commonly drop fragments because they cannot inspect a partial packet, and a dropped fragment makes the whole SIP message vanish. The sender sees no rejection and retries, while the receiver has no complete message to process.
This explains the two classic symptoms. Registration fails because the REGISTER or its authenticated retry is lost in fragments. Call setup is slow or fails because the INVITE with its full SDP never arrives, even though OPTIONS pings and smaller messages succeed. A traceroute that works and a small SIP request that works are both compatible with a fragmentation problem.
Path MTU Discovery Is Not a Fix by Itself
Path MTU Discovery relies on ICMP messages returning from a router that cannot forward a large packet. Those messages are frequently filtered, so the sender never learns the smaller limit and keeps emitting oversized packets. Even where discovery works, it applies to IP packets, not to the application decision to put a very large body into one SIP message. Reducing the message is still the more reliable fix.
- Measure the size of a failing SIP message at the sender, not only at the receiver
- Check whether UDP fragments are being dropped at a firewall or carrier edge
- Compare a failing message with a small OPTIONS request on the same path
- Trim unnecessary Via, Route, and identity headers at the boundary
- Limit the number of codecs offered in a single SDP body
- Prefer a transport change over repeated retries of an oversized message
TCP and TLS as the Alternative
Moving SIP to TCP removes IP fragmentation because the transport layer segments the stream into appropriately sized packets. TLS adds confidentiality and, in many deployments, is required by the carrier anyway. For large messages this is the structural fix: the application no longer depends on a single UDP datagram surviving intact across every hop.
The tradeoffs are operational. TCP and TLS hold state, which consumes memory on busy SBCs, and a long-lived connection can fail silently when a NAT mapping expires. Keepalives become important, and reconnection behaviour matters after a carrier restarts a node. A connection-oriented transport trades a packet-size problem for a connection-lifecycle problem that is easier to monitor.
| Aspect | UDP | TCP or TLS |
|---|---|---|
| Large messages | Depends on IP fragmentation | Segmented by the transport layer |
| Connection state | None per message | State held on both ends |
| NAT behaviour | Simple, but bindings expire | Needs keepalive on the connection |
| Failure detection | By transaction timeout | By connection state plus keepalive |
| Resource cost | Low per transaction | Higher per active connection |
| Carrier acceptance | Widely supported | Often required for identity and TLS |
SDP, SBC Trimming, and Configuration
The SDP body is usually the largest single part of a SIP INVITE. Offering every codec on the platform in one message is convenient but wasteful, because most calls negotiate a small subset. Limiting the offer to the codecs actually needed for that trunk, and separating fax or data capabilities where possible, reduces message size without affecting call quality.
An SBC at the network edge can also normalise headers. Removing repeated Via entries, collapsing redundant Route headers, and rewriting privacy information at the trust boundary keeps messages compact toward the carrier. The trimming must be documented, because a header removed at the edge will not appear in a provider trace and that asymmetry makes disputes harder to resolve.
Symptoms That Point Here
A fragmentation-related fault has a signature: small SIP methods succeed, large ones fail; the failure appears after a codec or identity change; increasing retransmissions does not help; and the problem may depend on which carrier path is used because the paths have different MTUs. Recognising that pattern avoids hours spent on credentials and dial plans that were never wrong.
- Reduce the codec list per trunk rather than offering every codec everywhere
- Document every header an SBC removes or rewrites at the edge
- Use TCP or TLS where large messages are unavoidable
- Set a realistic retransmission policy instead of retrying forever
- Test with a deliberately large INVITE before a topology change
- Record path MTU differences between carriers in the site design
Preventing Recurrence
Size-related faults return whenever headers or codec lists grow, because each addition consumes a little of the headroom in a message. A configuration standard that limits the number of offered codecs per trunk and records which headers a boundary device adds or removes keeps that headroom visible. A periodic check that measures the largest SIP message on a representative call is cheaper than diagnosing the same failure a second time.
- Set a limit on the number of codecs offered in one SDP body
- Document which device adds each header along the path
- Measure the largest SIP message on a representative call
- Re-test size behaviour after any identity or privacy feature change
- Keep a known-good message capture for comparison during faults
- Record the chosen transport and its rationale per trunk
Redstone Approach
Redstone SBC deployments and RGW gateways support SIP over UDP, TCP, and TLS, with configurable transport selection per trunk and header manipulation at the network boundary. SDP and codec offerings can be scoped per route, and retransmission and keepalive behaviour can be tuned to the transport in use. Logging on the management system records message failures so that a size-related fault can be separated from an authentication or routing fault.
Redstone Systems, Inc. founded in Delaware, USA in December 2002, has been the ODM vendor for many well-known communications companies, serving the Southeast Asian market. In 2020, Redstone Systems will begin to return to the North America market with its self-developed brand.
Redstone has a complete product line of intelligent voice gateways, providing IP-PBXs, analog VoIP gateways (FXS/FXO), digital VoIP gateways (E1/T1), border appliances, and session boundary controllers (SBCs).
With advanced technology in digital signal processor (DSP), speech coding and speech processing, as well as efficient operational tools such as cloud remote management, auto provisioning, Redstone gateways are widely used in markets of enterprise communications, cloud communications, call centers, operators’ IMS/SIP trunks, bringing users friendly, efficient and reliable communication experience.
For more information about Redstone, You can follow us on Facebook, Linkedin, and Youtube to be the first to get the latest news.

Current Location :

