Current Location :Home > About Us > News Center > BLOG > MTU, Fragmentation, and Large SIP Messages

MTU, Fragmentation, and Large SIP Messages

Nov 27Source:RedstoneIntelligent Browse: 1
Background

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.

ContributorEffect on message sizeTypical trigger
Multiple Via entriesOne line per proxy hopAdditional SBC or proxy in the path
Record-Route and RouteOne or more lines per hopTopology changes or dialog routing
Identity headersSeveral long valuesEnabling identity verification
SDP codec listGrows with each offered codecAdding codecs or fax capabilities
Media descriptionsOne block per media streamVideo, data, or multiple streams
Privacy and history headersAdditional text per hopCompliance 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.

AspectUDPTCP or TLS
Large messagesDepends on IP fragmentationSegmented by the transport layer
Connection stateNone per messageState held on both ends
NAT behaviourSimple, but bindings expireNeeds keepalive on the connection
Failure detectionBy transaction timeoutBy connection state plus keepalive
Resource costLow per transactionHigher per active connection
Carrier acceptanceWidely supportedOften 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.

About Redstone

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.

Contact Us

Mobile Phonel

Email: globalmarketing@redstonesystems.com

Address: 12816 SE 75th Court, Newcastle WA 98059, USA

Contact Us
We will do our best to contact you as soon as possible. In the meantime, please contact us for more information.
  • First Name*

  • Last name*

  • Company Name*

  • Email*

  • Phone

  • Product*

  • Message

  • I have read and agreed Privacy Policy
Privacy_policy
×

Privacy Statement

Platform information submission - privacy agreement

● Privacy Policy

We are committed to protecting the privacy, personal data and personal data (collectively referred to as "personal data") provided by you when using this website. Make us comply with the highest standards in terms of collection, use, storage and transmission of personal data (laws and regulations related to privacy of personal data) and consumer protection. To ensure that you have full confidence in the handling of personal data on this website, you must carefully read and understand the provisions of the privacy policy. This website (hereinafter referred to as "us") respects and protects the privacy of users. In particular, once you use this website, you will be deemed to accept, agree, promise and confirm this privacy agreement; You disclose your personal data to us voluntarily with the required consent; You will abide by any modification of this privacy policy; You agree that our relevant business personnel will contact you regarding the products and services you may be interested in (unless you have indicated that you do not want to receive such messages). With your consent, we will collect, manage and monitor the types of personal data collected


1. Scope of application

It is our unremitting pursuit to provide users with better, better and more personalized services. We also hope that the services we provide will be more convenient for your needs. This privacy policy applies to all information collection services provided by this website. You can visit this website and use the services provided by this website using this privacy policy


2. What information do we collect

In order to provide you with our various services, you need to provide personal data information, including personal data and anonymous data, including but not limited to: personal data (your name, gender, age, date of birth, telephone number, fax number, address or mailing address, e-mail address, etc.)


3. How to use the collected information

The purposes and purposes of collecting personal data and anonymous data are as follows: to provide you with our services through this website; When you use our website, you can identify and confirm your identity; Let you get the service for you when you use this website; The relevant business personnel of this website can contact you when necessary; Make it more convenient for you to use this website; The personal data and anonymous data provided by you to us will only be retained until the collection purpose has been achieved, unless they are retained due to applicable laws and regulations. The ownership of personal data and disclosure of all data collected on our website are owned by us and will not be leased or sold to any unrelated third party

 

4. How do we protect information

For the protection of personal data, we implement appropriate physical, electronic and management measures to protect and guarantee the safety of your personal data. We try our best to ensure that any personal data collected through this website is free from any nuisance of a third party unrelated to us. The security measures we take are not limited to: physical measures: the records with your personal data will be stored in a locked place Electronic measures: the computer data with your personal data will be stored in the computer system and storage media subject to strict login restrictions Management measures: only employees authorized by us can access your personal data, These employees need to comply with our internal rules on the confidentiality of personal data. If you are aware of any security loopholes on this website, please contact us in time so that we can take appropriate actions as soon as possible; Despite the implementation of the above security measures, we cannot guarantee the absolute security of data transmission on the Internet, so we cannot absolutely guarantee that the personal data and anonymous data you provide to us through this website are safe at all times. We will not be responsible for any unauthorized access to your personal data, and we will not be responsible for any losses and damages incurred or caused in this regard.

 

5. Juvenile Protection Law

The minor has provided personal data to this website without the approval or consent of any parent or guardian. Please contact the public telephone number and customer service telephone number on this website in time to ensure that the data are removed

 

6. Revision and effectiveness of privacy policy

With the expansion of the service scope of this website, we may revise the Legal Statement and Privacy Policy from time to time, which forms a part of this Legal Statement and Privacy Policy. In order to prevent you from being informed of such revisions, please read this Legal Statement and Privacy Policy frequently. In any way, if you continue to use our services, you agree to be bound by the revised Legal Statement and Privacy Policy