Posts

Showing posts from February, 2026

OSPF(Open Shortest Path First)

1. What is OSPF? OSPF (Open Shortest Path First) is Link State IGP Dynamic Routing protocol that operates directly over IP using protocol number 89 and AD 110. OSPF exchanges link state information using LSA (link state advertisement) to build LSDB (link state database) which represents complete network topology. OSPF runs SPF (shortest path first) also known as Dijkstra’s Algorithm on LSDB to calculate shortest path tree and selects best path based on metric called cost, which is derived from interface Bandwidth. Cost=reference BW(default:100Mbps)/interface BW) but can change reference bandwidth with “auto-cost reference-bandwidth xxxxxx” OSPF uses hierarchical multi-area design with area 0 as backbone to reduce LSDB size, limit SPF recalculations, and improve scalability and convergence in large networks.  2. What are OSPF Features? 1.Fast Convergence  -hello and dead timers for neighbor failure detection -Supports fast hello by using hello-multiplier comman...

Simple MPLS Packet Flow

Image
  I want to tell about simple MPLS packet Flow All core Routers(PE1,PE2,P1,P2) run IGP protocol(ISIS or OSPF) and MPLS LDP. IGP Phase(OSPF): PE2 advertise 20.20.20.0/30 network to OSPF and core routers learn that prefix. LDP Phase: PE2 locate label 20.20.20.0/30 as FEC(forwarding Equivalent Class): 20.20.20.0/30:Label3 and advertised to P2(upstream device). P2 locate label 20.20.20.0/30 as FEC: 20.20.20.0/30: Label300 and advertised to P1(upstream device). P1 locate Label 20.20.20.0/30 as FEC: 20.20.20.0/30: Label200 and advertised to PE1(upstream device). PE1 locate Label 20.20.20.0/30 as FEC:20.20.20.0/30: Label100 and advertised to upstream device(currently not have) 1. Host1 Operation:"ping 20.20.20.2 -Forwarding Lookup based on Destination IP and Out-Interface: IntH1 -TTL handling:TTL is 127 and reduce 126 -Ethernet-Frame: Ethernet Header: Src-MAC:Host1-mac, Dest-MAC:CE1-IntA2-MAC, Ether-Type(0x0800: IPv4) IP Header: src-IP:10.10.10.2, Dest:20...