Home | Reports | Technical Documents | Tech-Blog | One-Shot Gallery | Korea ICT News | Korea Communication Market Data | List of Contributors | Become a Contributor |    
 
 
Section 5G 4G LTE C-RAN/Fronthaul Gigabit Internet IPTV/Video Streaming IoT SDN/NFV Wi-Fi KT SK Telecom LG U+ Network Protocol Samsung   Korean Vendors
 
Real World Private 5G Cases   4 Deployment Models On-Premise Cases 5G Core Control Plane Sharing Cases

5G Core Sharing Cases

   
 
Private 5G Deployment   • Private 5G Frequency Allocation Status in Korea  South Korean government's regulations on private 5G and KT's strategy for entering the market
Cases in Korea   Private 5G Operators |   SK Networks Service (SI) Sejong Telecom (Wire-line Carrier) KT MOS (Affiliate of KT) • Newgens (SI) • NAVER Cloud more >>  
    Enterprise DIY |   Korea Hydro & Nuclear Power (Power Plant) Korea Electric Power Corporation (Energy) • Republic of Korea Navy more >>
 
CHANNELS     HFR Private 5G Solution (my5G)       my5G Solution Components       my5G Key Features        my5G Resources        my5G News          
 
banner
banner
Quick Guide to OSPF: Part 2. Redistributing External Network Routes into OSPF Network
July 01, 2015 | By Chris Yoo (tech@netmanias.com)
Online viewer:
Comments (2)
6

Quick Guide to OSPF

     1. Building Shortest Path Tree Topology

► 2. Redistributing External Network Routes into OSPF Network

 

In the previous post, we explained the procedure of how routers create their network topology maps using Router-LSA messages in an OSPF network, and build the shortest path trees based on link costs.
Below, we will see how OSPF routers learn the routing information of an external network, and build the shortest path to it in case the external network is connected to the OSPF topology discussed in the previous post.

 

 

OSPF External Network

 

 

The routing information of OSPF-enabled routers is exchanged through Router-LSA (as explained in the previous post), Network-LSA, etc. On the contrary, non OSPF-enabled networks are considered as external networks, and thus their routing information (i.e. external routes), including the followings, can be obtained through AS-External-LSA:  

  • Other routing protocols such as BGP, IS-IS, etc.
  • Static routes
  • Non OSPF-enabled links

These types of OSPF routers that are connected to external networks "at the borders of an OSPF network" are called Autonomous System Border Routers (ASBR). And they are in charge of injecting the external networks into the OSPF network.

 

 

OSPF Network Topology

 

 

The figure above shows five OSPF routers (R1 ~ R5), along with their respective interface IP address, OSPF cost and loopback address (i.e. OSPF Router ID, e.g. 10.1.0.1 for R1).

  • The blue links between the routers indicate that OSPF is enabled and the gray links indicate that OSPF is not enabled.
  • The 100.1.1.0/24 connected to R1 and the 200.1.1.0/24 connected to R2 via a router (shown in gray) are external networks.

 
ASBR Advertising External Routing Information to OSPF Internal Routers
 
1. R1 floods external network (connected network) information

 

 

According to its configurations (i.e. redistribute connected subnets in the figure), R1 floods the information of external network 100.1.1.0/24 to R2 and R3 through AS-External-LSA message [t=1]. Upon receiving the message, R2 and R3 flood it through all the links except the one that the message was sent through, having both R4 and R5 receive the same AS-External-LSA message twice [t=2]. At this time, if the two messages have the same LSA identifiers, {LS Type, Link State ID, Advertising Router}, the one that arrived later is discarded.

  • LS Type: Identifies Router-LSA (1), Network-LSA (2), External-LSA (5), etc.
  • Link State ID: Address prefix of the external route (100.1.1.0) in case of AS-External-LSA
  • Advertising Router: ID of the router that originated generated AS-External-LSA (R1 OSPF RID, i.e. R1 loopback address = 10.1.0.1)

 

The AS-External-LSA message sent by R1 includes (see the table in the upper right corner of the figure above):

  • Network Mask: The subnet mask of the external network (255.255.255.0)
  • Metric: Link cost of external network (35) 

 

Upon arrival of the AS-External-LSA message sent by R1, the receiving routers (i.e. R2 ~R5 here) store the information in their respective OSPF Link State DataBase (LSDB), and build the shortest path tree connected to the external network, in the OSPF network topology (see the figure in the bottom).


 
2. R2 floods external network (static route) information

 

 

According to its configurations (i.e. static route and redistribute static subnets for connecting to 200.1.1.0/24), R2 floods the information of external network 200.1.1.0/24 to R1, R4 and R5 through AS-External-LSA message [t=1]. Upon receiving the message, R1, R4 and R5 flood it through all the links except the one that the message was sent through.
 
The receiving routers (i.e. R1, R3, R4 and R5) store the information in their respective OSPF Link State DataBase (LSDB), and build the shortest path tree connected to the external network, in the OSPF network topology (see the figure in the bottom).
 
Note: There are two options available when flooding external routes to an OSPF network: External Type 1 (E1) and External Type 2 (E2). In the figure above, the E1 (metric-type 1 on CLI) was used.

  • The cost of E1 routes is the sum of the external cost and the internal cost within OSPF incurred to reach that destination network.
  • The cost of E2 routes will always be the only external cost.

If more than one E2 route has the same cost and destination, the one with the lowest cost to the ASBR will be used.  

 

 

R1~R5: Building Shortest Path Trees

 

 

For the two external networks (100.1.1.0/24 and 200.1.1.0/24) discussed above, each router builds the shortest path trees, i.e. the shortest path to their destinations. The shortest path information - external network prefixes and next hop for the shortest path - is installed at the Routing Information Base (RIB) and Forwarding Information Base (FIB) of each router (For example, for R5, the next hops for the shortest path to both external networks 200.1.1.0/24 and 100.1.1.0/24 is R2 (1.1.5.1)). 

Nigel 2015-07-08 17:19:11

Hello Netmanias.

Nice flowing information station you havev provided here. This I would consider to be a useful reminder for anyone at any level in the industry.

jamesr 2019-03-11 16:40:19

Nice conprehensive diagrams. Great effort. Much appreciated.

Thank you for visiting Netmanias! Please leave your comment if you have a question or suggestion.
Related Contents
 
 
 
 

[HFR Private 5G: my5G]

 

Details >>

 

 

 

     
         
     

 

     
     

Subscribe FREE >>

Currently, 55,000+ subscribed to Netmanias.

  • You can get Netmanias Newsletter

  • You can view all netmanias' contents

  • You can download all netmanias'

    contents in pdf file

     
     

 

     
         
     

 

 

 

View All (858)
4.5G (1) 5G (102) AI (8) AR (1) ARP (3) AT&T (1) Akamai (1) Authentication (5) BSS (1) Big Data (2) Billing (1) Blockchain (3) C-RAN/Fronthaul (18) CDN (4) CPRI (4) Carrier Ethernet (3) Charging (1) China (1) China Mobile (2) Cisco (1) Cloud (5) CoMP (6) Connected Car (4) DHCP (5) EDGE (1) Edge Computing (1) Ericsson (2) FTTH (6) GSLB (1) GiGAtopia (2) Gigabit Internet (19) Google (7) Google Global Cache (3) HLS (5) HSDPA (2) HTTP Adaptive Streaming (5) Handover (1) Huawei (1) IEEE 802.1 (1) IP Routing (7) IPTV (21) IoST (3) IoT (56) KT (43) Korea (20) Korea ICT Market (1) Korea ICT Service (13) Korea ICT Vendor (1) LG U+ (18) LSC (1) LTE (78) LTE-A (16) LTE-B (1) LTE-H (2) LTE-M (3) LTE-U (4) LoRa (7) MEC (4) MPLS (2) MPTCP (3) MWC 2015 (8) NB-IoT (6) Netflix (2) Network Protocol (21) Network Slice (1) Network Slicing (4) New Radio (9) Nokia (1) OSPF (2) OTT (3) PCRF (1) Platform (2) Private 5G (11) QoS (3) RCS (4) Railway (1) Roaming (1) SD-WAN (17) SDN/NFV (71) SIM (1) SK Broadband (2) SK Telecom (35) Samsung (5) Security (16) Self-Driving (1) Small Cell (2) Spectrum Sharing (2) Switching (6) TAU (2) UHD (5) VR (2) Video Streaming (12) VoLTE (8) VoWiFi (2) Wi-Fi (31) YouTube (6) blockchain (1) eICIC (1) eMBMS (1) iBeacon (1) security (1) telecoin (1) uCPE (2)
Password confirmation
Please enter your registered comment password.
Password