Mapping of Address and Port with Translation (MAP-T)
Understanding Mapping of Address and Port with Translation (MAP-T)
This topic provides an overview of Mapping of Address and Port using Translation (MAP-T) feature. The topic lists the benefit to service providers when used as an inline service on MX Series routers with MPC and MIC interfaces.
- Benefits of Mapping of Address and Port with Translation (MAP-T)
- Mapping of Address and Port Using Translation (MAP-T) Terminology
- Mapping of Address and Port Using Translation (MAP-T) Functionality
- Mapping of Address and Port Using Translation (MAP-T) Supported and Unsupported Features
Benefits of Mapping of Address and Port with Translation (MAP-T)
The translation mode is advantageous in scenarios where the encapsulation overhead, or IPv6 operational practices rule out encapsulation (For example, use of IPv6-only servers, or reliance on IPv6 + protocol headers for traffic classification).
Mapping of Address and Port Using Translation (MAP-T) Terminology
-
Border Relay (BR)—MAP-T-enabled provider edge device in a MAP domain. A BR device has at least an IPv6-enabled interface and an IPv4 interface connected to the native IPv4 network.
-
MAP-T Customer Edge(CE)—MAP-T-enabled customer edge device in a MAP deployment.
-
MAP domain—One or more MAP-T CE devices and BR devices connected to the same virtual link.
-
Port Set ID (PSID)—Separate part of the transport layer port space that is denoted as port set ID.
-
Embedded Address (EA) Bits—EA-bits in the IPv6 address identify an IPv4 prefix or address or a shared IPv4 address and a port-set identifier.
-
Softwire—Tunnel between two IPv6 end-points to carry IPv4 packets or two IPv4 end-points to carry IPv6 packets.
-
Softwire Initiator (SI)—Softwire at the customer end that encapsulates native packets and tunnels them to a softwire concentrator at the service provider.
-
Softwire Concentrator (SC)—Softwire that decapsulates the packets received from a softwire initiator and sends them to their destination.
Mapping of Address and Port Using Translation (MAP-T) Functionality
The following figure illustrates a simple MAP-T deployment scenario.
Figure 1 illustrates the MAP-T architecture. It consists of privately addressed IPv4 users (N and M) connected by means of MAP-T CEs to an IPv6 network that is equipped with one or more MAP-T BRs.
The MAP-T CE devices are dual stack and are capable of Network Address Port Translation (NAPT). The MAP-T CE devices connect to a MAP-T Border Relay (BR) device through an IPv6-only MAP-T network domain. The MAP-T BR device is dual stack and is connected to both a public IPv4 network and an IPv6 MAP-T network.
The MAP-T functionality is as follows:
-
The MAP-T CE devices are capable of NAPT. On receiving an IPv4 packet from the host, the MAP-T CE device performs NAT translation on the incoming IPv4 packets. The CE device translate the public IPv4 address and ports into an assigned IPv6 MAP source address. It sends the IPv6 packet with encoded IPv4 information toward the BR.
-
The MAP-T BR checks the source IPv6 MAP address against the configured MAP rules to ensure the correct public IPv4 address and port-range of the CE are encoded in the CE's source IPv6 MAP address. It translates the IPv6 packet into an IPv4 packet and forward it into the public domain.
In the reverse path, the incoming IPv4 packet is translated into an IPv6 packet according to MAP rules. The IPv4 destination address of the received packet is translated into an IPv6 MAP address of the CE.
Mapping of Address and Port Using Translation (MAP-T) Supported and Unsupported Features
Junos OS supports the following MAP-T features and functionality:
-
TCP/UDP/ICMPv4/ICMPv6 traffic will be forwarded.
-
Support only next-hop style of configuration for MAP-T.
-
Support maximum packet size of 9192 bytes.
The following features and functionality are not supported with the MAP-T feature:
-
IPv4/IPv6 reassembly is not supported.
-
IPv6 fragmentation is not supported.
-
Implementation of draft (non-standard) versions of RFC 7599 is not supported.
-
Interface-style MAP-T configuration is not supported.
-
MAP-T and non-MAP-T service in the same service-set is not supported.
Configuring Mapping of Address and Port using Translation (MAP-T)
This example shows you how to configure the MAP-T Border Relay (BR) solution using a next hop-based style of configuration.
To configure MAP-T:
For example:
chassis { fpc 4 { pic 0 { inline-services { bandwidth 100g; } } } fpc 5 { pic 0 { inline-services { bandwidth 100g; } } } } services { service-set sset1 { softwire-rules sw-rule1; next-hop-service { inside-service-interface si-4/0/0.1; outside-service-interface si-4/0/0.2; } } service-set sset2 { softwire-rules sw-rule1; next-hop-service { inside-service-interface si-5/0/0.1; outside-service-interface si-5/0/0.2; } } softwire { softwire-concentrator { map-t mapt-domain-1 { softwire-address 2001:db8:ffff::1; ipv4-prefix 192.0.2.0/24; mape-prefix 2001:db8:1234:ab00::/56; ea-bits-len 16; psid-offset 4; psid-length 8; mtu-v6 9192; version-03; } } rule sw-rule1 { match-direction input; term t1 { then { map-t mapt-domain-1; } } } } } interfaces { xe-0/1/1 { unit 0 { family inet6 { address 2001:db8::1/32 { ndp 2001:db8:6434:0:00c0:0002:6400:3400 mac 00:11:22:33:44:55; } } } } xe-0/1/2 { unit 0 { family inet { address 100.1.1.1/24 { arp 100.1.1.2 mac 00:11:22:33:44:55; } } } } si-4/0/0 { unit 1 { family inet; family inet6; service-domain inside; } unit 2 { family inet; family inet6; service-domain outside; } } si-5/0/0 { unit 1 { family inet6; service-domain inside; } unit 2 { family inet; family inet6; service-domain outside; } } }