Summary

  • RFC 3519 let Mobile IPv4 data cross a NAT by tunnelling in UDP and by treating the outer source address and port the home agent observed as the effective care-of locator.
  • Mobile IP authentication signed the care-of address inside the registration, not the NAT-rewritten outer tuple. Short lifetimes, keepalives and IPsec narrowed the damage without ever authenticating that locator.

The home agent checked the signature, approved the binding, and then aimed every packet at an address a stranger had written in pencil. That is not a metaphor; it is roughly what RFC 3519 asked of the Internet, and the Internet, being practical, complied.

Henrik Levkowetz and Sami Vaarala's 2003 document solved a real and unglamorous problem: how to keep a Mobile IPv4 session alive when the mobile node sits behind a Network Address Port Translator that has never heard of Mobile IP and would not care if it had.

Two Good Designs, One Awkward Seam

The trouble started with a mismatch between two sensible architectures. Mobile IPv4 expected a home agent to tunnel traffic toward a globally meaningful care-of address. A NAPT expected TCP or UDP ports, the only handles it understands, with which to tell several private hosts apart behind one public address. Plain IP-in-IP offered no port pair at all, so the data tunnel could collapse even while the registration exchange sailed through untouched.

RFC 3519 inserted the missing handle.

Port 434 and the UDP Tunnel Handshake

A mobile node appended a UDP Tunnel Request extension to its Registration Request. The home agent could answer with a UDP Tunnel Reply, pick IP-in-UDP, GRE-in-UDP or minimal encapsulation in UDP, and settle on port 434. Data and later registrations kept the same source port so the translator could preserve a usable mapping. The plumbing worked. The trust model is where the story turns.

What “Yes” Actually Meant

An affirmative reply meant something exact and something narrow. The home agent had agreed to UDP tunnelling for that mobility binding. It had not authenticated the translated address-and-port tuple, measured how long the NAT would keep it, or proved that the next inbound datagram would reach the mobile node. Consent to a method is not evidence about a mapping.

To detect a NAT in the first place, the home agent compared the Registration Request's outer source address with the care-of address carried inside it. A mismatch suggested the mobile node might be hiding behind a translator. If UDP tunnelling was permitted, the home agent ordinarily adopted the observed source as the effective care-of address.

The Signature Stopped at the Envelope

That single decision stitched two evidence domains together. The Mobile-Home or Foreign-Home Authentication Extension protected the registration fields, including the care-of address written in the message. The address and UDP port in the outer headers were somebody else's business — the NAT's, and potentially an attacker's. Those outer values were precisely what the home agent needed for return traffic, and they sat outside the signature.

RFC 3519 did not pretend otherwise. An attacker on the path could alter the IP and UDP headers of a Registration Request and redirect the resulting mobility binding. After that one edit, the attacker could walk away: the home agent would keep using the false effective locator until the binding expired or the mobile node registered again.

The Half-Bound State and the Keepalive Race

The special foreign-agent path sharpened the boundary further. When a mobile node used a co-located care-of address but registered through a foreign agent, the Registration Request and the eventual tunnel could arrive on different ports. The home agent therefore waited in a half-bound state for the mobile node's first keepalive before it learned the tunnel port.

Anyone watching the registration exchange could race a bogus keepalive into that gap. RFC 3519 required the keepalive's outer source IP address to match the Registration Request, which confined an attacker to another port at that address. The port itself was still unsigned. Sending the legitimate first keepalive immediately shrank the race window; it did not turn an observed port into signed identity.

Keepalives, Echoes and the Ten-Second Floor

Keepalives did a second job. A NAT could quietly discard its mapping during an idle stretch. RFC 3519 used UDP-encapsulated ICMP Echo Request and Reply messages so the mobile node could notice a lost mapping, re-register after unanswered retransmissions, expose the new tuple to the home agent, and shorten the interval for that network — never below ten seconds.

The default interval was 110 seconds, and a home agent could suggest another value. Yet the RFC forbade the home agent from dynamically compensating for mapping loss, because it lacked the information to do so reliably. The mobile node, closer to the failure signal, owned the adaptation. That was a deliberate localization of knowledge, not a universal NAT timer.

Three Clocks That Never Agreed

Three lifetimes could drift apart. The authenticated mobility binding might still be valid. The NAT mapping might already be gone. A fresh outbound packet might create a new mapping while the home agent kept firing at the old one. A binding receipt, a mapping receipt and a delivery receipt were therefore three different objects wearing the same word.

The document recommended conservative, short binding lifetimes. Shortness limited how long a malicious redirect or an undetected move could persist after the intervention stopped. It did not prevent modification of outer headers. The mitigation shrank the time represented by bad state; it never improved the authority of the input.

IPsec Kept Its Secrets, Not Its Directions

IPsec retained a narrow role. RFC 3519 said it could protect user-data confidentiality when the intermediate network was untrusted, and the UDP method could carry IPsec-related traffic without disturbing IPsec associations during movement. It also said plainly that IPsec did not protect against the redirection attacks, beyond keeping hijacked user data confidential. Secrecy of content and authority over destination were separate properties, and only one of them was on offer.

What the UNSAF Room Already Knew

The UNSAF discussion was unusually candid for a standards document. The mechanism did not export the translated address to the mobile node, but the home agent still leaned on an unprotected effective care-of address. A stronger design would discover the translations along the path, validate each translator's authority, and carry the relevant NAT address inside the signed registration. RFC 3519 delivered compatibility with the NATs that already existed, not a claim that the trust gap had closed.

The Registry Records Bits, Not Mappings

IANA's Mobile IPv4 registry records the new message, the request and reply extensions, and the error code. Those assignments let implementations agree on bits and values. They attest to no live mapping, no authenticated outer tuple, and no successful tunnel.

The Durable Lesson

RFC 3519's lesson is not that authentication failed. It is that an authenticated object can be welded to unauthenticated routing evidence and produce a state with real consequences. The registration could be perfectly valid while the effective care-of locator was false. Good operations must be able to say both things at once — and keep the receipts that prove it.

Sources