Overload function overview
You can configure the local routing device so that it appears to be overloaded. An overloaded routing device determines it is unable to handle any more OSPF transit traffic, which results in sending OSPF transit traffic to other routing devices. OSPF traffic to directly attached interfaces continues to reach the routing device. You might configure overload mode for many reasons, including:
- If you want the routing device to participate in OSPF routing, but do not want it to be used for transit traffic. This could include a routing device that is connected to the network for analysis purposes, but is not considered part of the production network, such as network management routing devices.
- If you are performing maintenance on a routing device in a production network. You can move traffic off that routing device so network services are not interrupted during your maintenance window.
You configure or disable overload mode in OSPF with or without a timeout. Without a timeout, overload mode is set until it is explicitly deleted from the configuration. With a timeout, overload mode is set if the time elapsed since the OSPF instance started is less than the specified timeout.
Following output shows a quick test result of the overload command on a standard “P” network topology of 6 core routers.
Normally, trace from P1 to P3 following the following path: P1 — P 2 — P3
p1@vr-device:p1> traceroute 192.168.5.3 source 192.168.5.1 traceroute to 192.168.5.3 (192.168.5.3) from 192.168.5.1, 30 hops max, 40 byte packets 1 172.22.201.2 (172.22.201.2) 0.642 ms 0.507 ms 0.286 ms 2 192.168.5.3 (192.168.5.3) 0.486 ms 0.488 ms 0.775 ms p1@vr-device:p1> show ospf database detail lsa-id 192.168.5.2 OSPF database, Area 0.0.0.0 Type ID Adv Rtr Seq Age Opt Cksum Len Router 192.168.5.2 192.168.5.2 0x80000011 24 0x22 0x3703 72 bits 0x0, link count 4 id 172.22.206.2, data 172.22.206.1, Type Transit (2) Topology count: 0, Default metric: 1 id 172.22.205.2, data 172.22.205.1, Type Transit (2) Topology count: 0, Default metric: 1 id 172.22.201.2, data 172.22.201.2, Type Transit (2) Topology count: 0, Default metric: 1 id 192.168.5.2, data 255.255.255.255, Type Stub (3) Topology count: 0, Default metric: 0 Topology default (ID 0) Type: Transit, Node ID: 172.22.201.2 Metric: 1, Bidirectional Type: Transit, Node ID: 172.22.205.2 Metric: 1, Bidirectional Type: Transit, Node ID: 172.22.206.2 Metric: 1, Bidirectional
When OSPF overload is enabled on P2, other routers will see all links associated with that router being advertised with an infinite metric of 65535. This will force traffic to go via an alternative path, except traffic being addressed to the overload router itself. In this case, traffic from P1 to P3 goes via P1–P4–P5–P6–P3.
[edit protocols ospf] p2@vr-device:p2# set overload [edit protocols ospf] p2@vr-device:p2# commit commit complete p1@vr-device:p1> show ospf database detail lsa-id 192.168.5.2 OSPF database, Area 0.0.0.0 Type ID Adv Rtr Seq Age Opt Cksum Len Router 192.168.5.2 192.168.5.2 0x8000000a 353 0x22 0xea59 72 bits 0x0, link count 4 id 172.22.206.2, data 172.22.206.1, Type Transit (2) Topology count: 0, Default metric: 65535 id 172.22.205.2, data 172.22.205.1, Type Transit (2) Topology count: 0, Default metric: 65535 id 172.22.201.2, data 172.22.201.2, Type Transit (2) Topology count: 0, Default metric: 65535 id 192.168.5.2, data 255.255.255.255, Type Stub (3) Topology count: 0, Default metric: 0 Topology default (ID 0) Type: Transit, Node ID: 172.22.201.2 Metric: 65535, Bidirectional Type: Transit, Node ID: 172.22.205.2 Metric: 65535, Bidirectional Type: Transit, Node ID: 172.22.206.2 Metric: 65535, Bidirectional p1@vr-device:p1> traceroute 192.168.5.3 source 192.168.5.1 traceroute to 192.168.5.3 (192.168.5.3) from 192.168.5.1, 30 hops max, 40 byte packets 1 172.22.202.2 (172.22.202.2) 0.435 ms 0.752 ms 0.481 ms 2 172.22.203.2 (172.22.203.2) 0.709 ms 0.729 ms 0.660 ms 3 172.22.204.2 (172.22.204.2) 1.088 ms 0.685 ms 0.572 ms 4 192.168.5.3 (192.168.5.3) 0.836 ms 0.827 ms 0.867 ms
Reference
http://www.juniper.net/techpubs/en_US/junos11.4/topics/topic-map/ospf-overload-mode.html