Summary

  • RFC 7510 hides locally generated flow entropy in the outer UDP source port, so ordinary IP routers can spray MPLS traffic across ECMP paths and link-aggregation members using fields they already hash.
  • That source port — and destination port 6635 — proves nothing about session, identity or permission. Tunnel endpoints, configuration, packet filters, checksum policy, congestion control, the MPLS label stack and any security layer are separate control surfaces, each with its own owner.

The port that forgot how to answer

Every packet analyst learns the same reflex: a UDP source port is half a conversation. Pair it with the addresses, the destination port and the protocol number, and you have a flow — something a stateful firewall can track, a collector can bill, a NAT can reverse. Then an MPLS-in-UDP packet lands on the wire and quietly breaks the reflex. Its source port can sit frozen for a million packets. Its destination is a registered service number. It wears the shape of a transport exchange the way a mannequin wears a suit.

In RFC 7510, the resemblance stops at a hard line: the source port “serves solely as a source of entropy.” The tunnel is unidirectional. Return traffic never comes back to that source port, because there is no return traffic to speak of.

That single sentence is operationally loaded. A value can pick a path without naming an application. It can bucket packets by a local rule without opening a session. It can be perfectly legible to a router in the middle while saying nothing about whether the sender is trusted. The field kept its seat in the header and got a much smaller job.

Why MPLS borrowed a header it didn't need

The motivation is embarrassingly physical: the routers are already there. Many of them spread TCP and UDP microflows across Equal-Cost Multipath routes or Link Aggregation Groups by hashing the five-tuple. Bare MPLS, wrapped directly in IP, may not hand those boxes enough variation to work with. Several flows land on the same member while other links sit half-idle — expensive glass carrying nothing.

RFC 7510 wraps the MPLS packet in IP and UDP. The outer addresses name the tunnel endpoints. The UDP protocol and ports hand an intermediate router fields it already knows how to hash. The source port supplies the variation, so different MPLS flows spread across the available paths without every transit device having to crack open the label stack.

The wire diagram says it plainly: Source Port = Entropy, Dest Port = MPLS, then length and checksum. Only after those outer fields comes the label stack, then the payload. Three surfaces stacked like floors of a building — an IP tunnel, a UDP distribution envelope, an MPLS forwarding context — and each one answers to a different authority.

It is an adapter, nothing grander. It lets an MPLS flow ride the load-sharing behavior IP gear already has. That reuse is not a claim that MPLS became a UDP application, or that the outer source port grew the semantics of an application endpoint.

The encapsulator owns the meaning

RFC 7510 says the source port carries a 16-bit entropy value generated by the encapsulator to identify a flow — then immediately narrows it: what counts as a flow is decided locally, and the algorithm is out of scope. Two implementations can group traffic differently and both be compliant. One hashes inner headers. Another uses whatever fields were cheap at an earlier forwarding stage. A collector downstream cannot reverse the port number into an authoritative description of the traffic inside.

If a tunnel needs no entropy, packets in a flow should carry a randomly chosen constant. The reason is packet order, not identity: change the value mid-flow and successive packets hop onto different paths and arrive out of order. Stability is a property of the chosen bucket, not proof of a durable conversation.

The RFC also offers a construction for environments that expect source ports in the dynamic/private range, 49152 through 65535: compute a 14-bit hash and set the top two bits to binary 11. The field carries useful variation while dodging the low port numbers reserved for named applications. Even so, the space is small and local. Collisions happen. A value gets reused by another encapsulator or another locally defined flow. Read it as a customer, a tenant, an application or a security principal, and you have invented meaning the sender never promised and the standard never specified.

Port 6635 names the cargo, not the captain

The destination side is steadier and no more authoritative. RFC 7510 fixes the UDP destination port at 6635, which IANA’s service-name and port-number registry records as mpls-udp. The allocation tells a configured decapsulator that the payload is an MPLS packet. Full stop.

It does not say who sent it, whether that sender is entitled to the tunnel, or whether the enclosed label stack means anything in the receiver’s forwarding context. A registration is a parsing rendezvous. It is not an access-control relationship, and treating it as one is how firewall rules go wrong.

RFC 7510 separately requires the encapsulator to know the endpoint can decapsulate MPLS-in-UDP — by manual configuration or dynamic advertisement, method unspecified. Capability and admission therefore come before the packet. Receiving a datagram on 6635 is not the negotiation; it is the result of one that already happened somewhere else.

The distinction dissolves fast in a firewall table. A rule that admits traffic merely because the destination is 6635 mistakes a payload label for a credential. The safer policy binds expected source and destination addresses, interface or domain, tunnel configuration and security requirements together, then lets the registered port through inside that relationship.

The label stack does the actual work

After decapsulation the receiver treats the payload as an MPLS label stack. RFC 3032 defines the encoding. RFC 3031, co-authored by Eric Rosen, Arun Viswanathan and Ross Callon, calls a label a short, fixed-length, locally significant identifier used in forwarding.

“Locally significant” is another fence worth respecting. The top label means something in the context where it was assigned. A globally registered UDP port does not make the enclosed labels globally meaningful. The decapsulator has to enter the right label space and apply the right downstream- or upstream-assignment rules.

And there is more than one kind of entropy in an MPLS system. RFC 6790 defines an Entropy Label Indicator and Entropy Label inside the stack. RFC 7510 puts entropy in the outer UDP source port instead, where IP gear can see it. Different layers, different devices, different jobs.

Neither one authenticates anything. An entropy label is not a user identity because it sits deeper in the stack; a UDP source port is not a session because it sits in a familiar transport header. Moving a signal changes which box can use it. It never turns the signal into authority.

Where middleboxes get lied to

The unidirectional rule is where the abstraction shows its seams. MPLS-in-UDP traffic goes to the allocated destination port and is never returned to the entropy source port. A stateful firewall or NAT that assumes a bidirectional exchange and reverses one port pair will need a separate rule for each direction — and will otherwise drop half a tunnel that was working fine.

That is not a footnote. It is a warning that session-shaped telemetry can lie. A device can display a five-tuple and a rock-steady source port while there is no transport session to time out, no application bound to that port and no reply path expressed by the same tuple.

Keep the meanings apart. The outer tuple identifies a tunnel packet and an entropy bucket. The tunnel configuration identifies the expected peer. The label stack identifies the forwarding context. Higher layers, when visible, identify the carried traffic. Stitch those records together and you learn something. Collapse them into one word — “session” — and you learn nothing.

The checksum is a bill someone has to pay

Checksum policy shows the same layered trade-off in cash terms. For IPv4, RFC 7510 recommends a zero UDP checksum for performance or implementation reasons, while noting that label corruption may matter for some VPN traffic. For IPv6, a checksum is required by default.

RFC 6935 permits a constrained IPv6 zero-checksum mode for tunnels. RFC 6936 supplies the fine print: tightly controlled environment, understood corruption characteristics, residual risk consciously accepted. A middlebox that quietly discards IPv6 UDP packets with zero checksums will black-hole the tunnel and blame nobody.

RFC 8085 later folds source-port entropy into broader UDP usage guidance. Its point is not that the port became a conventional endpoint. It is that UDP tunnel designers must reckon with checksum coverage, middlebox behavior and congestion — not just harvest the convenient hash fields and leave.

Every checksum decision allocates risk. Skip the computation and throughput improves; somebody still owns the consequences of corruption nobody caught. The entropy field cannot pay that bill. A well-distributed damaged packet is still damaged.

A tunnel that only works among friends

RFC 7510 does not license unrestricted MPLS-in-UDP across the open Internet. Its applicability statement confines the technology to a single operator’s network or an adjacent set of cooperating operators where traffic is managed to avoid congestion. Packet filters are supposed to stop it escaping that domain through error or misconfiguration.

That boundary is about incentives as much as topology. Inside a controlled domain, operators can coordinate capacity, admission, monitoring and response. Across the open Internet, a UDP tunnel without sane congestion behavior pushes its costs onto unrelated flows and networks. A convenient encapsulation cannot manufacture the cooperation its safety depends on.

Security has the same shape. The RFC says MPLS-in-UDP alone cannot ensure integrity or privacy and cannot authenticate the encapsulator; it points to IPsec and DTLS when those properties are needed. IANA port 6636 marks the DTLS variant, but the number is only part of the mechanism — keys, peers and policy still have to be established.

So the real trust boundary is a list, not a port: endpoint addresses, the configuration or signaling that establishes capability, the permitted operating domain, packet filters, congestion management, checksum policy, label-space context, and any integrity or authentication layer. Port 6635 is readable inside that boundary. It is not a substitute for it.

Ross Callon, in a record he shares

The IETF Datatracker profile for Ross Callon lists eight RFCs, including the MPLS architecture in RFC 3031 and MPLS-in-UDP in RFC 7510. The record runs across OSI address allocation, IPv6 transition, MPLS and provider VPNs — a documented line of technical authorship, not a claim of sole ownership over any outcome.

RFC 7510 has five authors and is an IETF consensus document. RFC 3031 has three and sits inside a much larger standards history. Implementers choose which fields to hash. Operators choose where the tunnel may run. IANA keeps the port registration. Compressing all of that into a heroic biography would be the same error as reading a session into a source port.

What the record does support is a continuity of concern. RFC 3031 explained what a locally significant label means for forwarding. RFC 7510 later slid that label stack inside an outer header existing IP gear could distribute. Both work only when each field’s scope is respected.

Which is the whole lesson, and it is bigger than MPLS. A source port can be entropy without becoming a session. A registered destination port can name a payload without authorizing it. A label can select forwarding behavior without naming an owner. Interoperability survives on those limited meanings precisely because no field is forced to carry every kind of truth — and the moment one is, the record stops being a record and starts being a ruler.

Evidence limits

The public sources establish RFC 7510’s format, applicability limits, checksum and security guidance, IANA’s port registrations, the MPLS label-stack standards and Ross Callon’s recorded co-authorship. They do not establish current deployment volume, vendor-specific behavior, a measured incident caused by entropy collision, or any current institutional authority held by Callon.

The claim that operators should not treat UDP entropy as identity is an editorial inference from the standard’s explicit field semantics and security limits — not a report of a named breach. Nor does the article claim that outer source-port entropy and in-stack MPLS entropy labels are interchangeable, or that either is always preferable.

Sources