Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Equal Cost Multiple Path (ECMP) support for Mapping of Address and Port with Encapsulation (MAP-E)

date_range 24-Nov-23

Equal Cost Multiple Path (ECMP) support for Mapping of Address and Port with Encapsulation (MAP-E)

This topic provides an overview of Equal Cost Multiple Path (ECMP) support for Mapping of Address and Port with Encapsulation (MAP-E) feature and its benefit to service providers when used as an inline service on MX Series routers with MPC and MIC interfaces.

In a MAP-E network topology, in the reverse path, the border relay router receives IPv4 traffic and encapsulates it in a IPv6 packet. Longer routes are used for faster matching. However, they do not facilitate EMCP load balancing on the PIC, as the routes point to a single PIC. Starting in 19.3R1, you can disable auto-routes by configuring the disable-auto-route statement at the [edit services softwire softwire-concentrator map-e <domain-name>] hierarchy, and direct the static routes to an ECMP load balancer. Hence, the packets can be distributed among different inline service interfaces.

Benefits

Enable load-balancing by distributing packets among different inline service interfaces.

Disabling auto-routes to support ECMP with Mapping of Address and Port with Encapsulation (MAP-E)

This example shows you how to disable auto-routes on a MAP-E Border Relay (BR) solution to support ECMP.

  1. Create service interface on the device with 100g bandwidth support.
    content_copy zoom_out_map
    [edit chassis]
    user@host# set fpc 0 pic 0 inline-services bandwidth 100g
    
  2. Configure the dual stack service interface unit 0.
    content_copy zoom_out_map
    [edit interfaces]
    user@host# set si-0/0/0 unit 0 family inet
    user@host# set si-0/0/0 unit 0 family inet6
    
  3. Configure service interface inside the dual stack domain.
    content_copy zoom_out_map
    [edit interfaces]
    user@host# set si-0/0/0 unit 1 family inet
    user@host# set si-0/0/0 unit 1 family inet family inet6
    user@host# set si-0/0/0 unit 1 service-domain inside
    
  4. Configure service interface outside the dual stack domain.
    content_copy zoom_out_map
    [edit interfaces]
    user@host# set si-0/0/0 unit 2 family inet
    user@host# set si-0/0/0 unit 2 family inet family inet6
    user@host# set si-0/0/0 unit 2 service-domain outside
    
  5. Configure the IPv4-facing interface on BR.
    content_copy zoom_out_map
    [edit interfaces]
    user@host# set ge-0/2/7 unit 0 family inet address 10.10.10.1/16
    
  6. Configure the CPE-facing interface on BR.
    content_copy zoom_out_map
    [edit interfaces]
    user@host# set ge-0/2/8 unit 0 family inet6 address 3abc::1/16
    
  7. Configure MAP-E domain 1 and associated parameters.
    content_copy zoom_out_map
    [edit services softwire softwire-concentrator]
    user@host# set map-e mape-domain-1 version03
    user@host# set map-e mape-domain-1 softwire-address  2001:db8:ffff::1
    user@host# set map-e mape-domain-1 ipv4-prefix  192.0.2.0/24  mape-prefix 2001:db8::/32
    user@host# set map-e mape-domain-1 ea-bits-len 16
    user@host# set map-e mape-domain-1 psid-offset 4
    user@host# set map-e mape-domain-1 psid-length 8
    user@host# set map-e mape-domain-1 mtu-ipv6 9192
    user@host# set map-e mape-domain-1 disable-auto-route
    
  8. Configure MAP-E domain 2 and associated parameters.
    content_copy zoom_out_map
    [edit services softwire softwire-concentrator]
    user@host# set map-e mape-domain-2 version03
    user@host# set map-e mape-domain-2 softwire-address  2001:db8:ffff::1
    user@host# set map-e mape-domain-2 ipv4-prefix  192.0.3.0/24  mape-prefix 2002:db8::/32 
    user@host# set map-e mape-domain-2 ea-bits-len 16
    user@host# set map-e mape-domain-2 psid-offset 4
    user@host# set map-e mape-domain-2 psid-length 8
    user@host# set map-e mape-domain-2 mtu-ipv6 9192
    user@host# set map-e mape-domain-2 disable-auto-route
    
  9. Configure a softwire rule for MAP-E domain-1 to specify the direction of traffic to be tunneled.
    content_copy zoom_out_map
    [edit services softwire]
    user@host# set rule sw-rule1 match-direction input term t1 then map-e mape-domain-1
    
  10. Configure a softwire rule for MAP-E domain-2 to specify the direction of traffic to be tunneled.
    content_copy zoom_out_map
    [edit services softwire]
    user@host# set rule sw-rule2 match-direction input term t1 then map-e mape-domain-2
    
  11. Configure a single rule-set to combine both the rules.
    content_copy zoom_out_map
    [edit services softwire]
    user@host# set rule-set ecmp-rules rule sw-rule1
    user@host# set rule-set ecmp-rules rule sw-rule2
    
  12. Configure the service set for MAP-E.
    content_copy zoom_out_map
    [edit services service-set]
    user@host# set sset1 softwire-rule-sets ecmp-rules
    user@host# set sset1 next-hop-service inside-service-interface si-0/0/0.1 
    user@host# set sset1 next-hop-service outside-service-interface si-0/0/0.2
    user@host# set sset2 softwire-rule-sets ecmp-rules
    user@host# set sset2 next-hop-service inside-service-interface si-0/1/0.1 
    user@host# set sset2 next-hop-service outside-service-interface si-0/1/0.2
    
  13. Configure static routes for MAP-E BR IPv6 address.
    content_copy zoom_out_map
    [edit routing-options]
    user@host# set rib inet6.0 static route 2001:db8:ffff::1/128 next-hop si-0/0/0.1 
    user@host# set rib inet6.0 static route 2001:db8:ffff::1/128 next-hop si-0/1/0.1
    user@host# set rib inet.0 static route 192.0.2.0/24 next-hop si-0/0/0.2
    user@host# set rib inet.0 static route 192.0.2.0/24 next-hop si-0/1/0.2 
    user@host# set rib inet.0 static route 192.0.3.0/24 next-hop si-0/0/0.2 
    user@host# set rib inet.0 static route 192.0.3.0/24 next-hop si-0/1/0.2
    
  14. Enable load balancing.
    content_copy zoom_out_map
    [edit ]
    user@host# set policy-options policy-statement LB then load-balance per-packet 
    user@host# set routing-options forwarding-table export LB
    
  15. Verify the status of the routes.
    content_copy zoom_out_map
    [edit ]
    user@host# run show route 2001:db8:ffff::1
    inet6.0: 10 destinations, 10 routes (10 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both
    
    2001:db8:ffff::1/128
                       *[Static/5] 00:00:12
                        >  via si-1/0/0.1                      
                           via si-1/1/0.1
    

    The service sets of the PICs have ecmp-rules configured and they carry the MAP-E rules of domain-1 and domain-2. From the output, you can understand that when the disable-auto-route is enabled and ecmp -rules configured, instead of the longer auto routes, static routes are created.

footer-navigation