HCIP-Datacom H12

Published 2026-09-21 16:01 Updated 2026-09-21 16:29 2421 words 13 min read ... Page views Handwritten Every word here was typed by me.

HCIP-Datacom H12 Fundamental Concepts Trap Messages To generate trap notifications and store them in the local trap buffer, the first step is to enable the SNMP agent (). Without the SNMP agent...

HCIP-Datacom H12

Fundamental Concepts

Trap Messages

To generate trap notifications and store them in the local trap buffer, the first step is to enable the SNMP agent (snmp-agent). Without the SNMP agent enabled, the entire trap mechanism does not take effect, and the trap buffer will not collect any SNMP alarms.

IS-IS Protocol: Characteristics and Functions

Introduction

  1. It is a link-state protocol that uses the SPF algorithm to calculate the shortest path. It operates at Layer 2 (the data link layer) and does not depend on IP.

  2. Two-level hierarchical routing:

    1. Level 1 (L1): intra-area routing. Traffic destined outside the area is, by default, forwarded to the nearest L1/L2 router, which can result in suboptimal paths.

    2. Level 2 (L2): backbone routing, responsible for carrying inter-area routes.

    3. L1/L2: maintains both an L1 and an L2 LSDB; typically serves as the area exit point.

  3. Integrated IS-IS: native support for IPv4 and IPv6, strong extensibility, and widespread deployment by service providers.

  4. Uses the NET (Network Entity Title) as the device identifier, not a Router ID.

Cost

  1. By default, the IS-IS cost type is narrow, in which the interface cost ranges from 1 to 63.

  2. The cost-style wide command must be configured manually to enter wide mode. wide mode is mandatory in the following scenarios:

    1. When IS-IS TE (Traffic Engineering) is enabled → wide is required.

    2. When an interface cost greater than 63 is needed.

    3. SR / SRv6 scenarios: Huawei recommends configuring wide.

    4. When carrying route tags, extended attributes, or IPv6 multi-topology, wide mode is also required.

Cost Types
ModeReceived TLVsSent TLVsKey Point
narrownarrownarrowDefault mode; maximum interface cost is 63
narrow-compatiblenarrow + widenarrow onlyAccepts both old and new formats, but sends narrow TLVs only
compatiblenarrow + widenarrow + wideFull send/receive capability; used during mixed-network migration
wide-compatiblenarrow + widewide onlyAccepts both formats, but sends wide TLVs only
widewidewideSends and receives wide TLVs only; max interface cost 1023; supports TE/SR

Advanced Features

FeatureFunction
I-SPF (Incremental SPF)When only part of the topology changes, only the changed portion is recalculated instead of rerunning SPF for the entire network → faster convergence
PRC (Partial Route Calculation)When the topology is unchanged and only route prefixes are added or removed, SPF is not run; only routing entries are updated → faster convergence
IS-IS/BFD InteractionBFD provides millisecond-level failure detection, rapidly senses link failures, and immediately triggers an IS-IS update → faster convergence
LSP Smart TimerControls the interval for LSP generation and flooding, suppresses frequent flapping, and accelerates updates
IS-IS FRR (Fast Reroute)Precomputes a backup next hop; on failure, traffic switches to the backup path within milliseconds with no interruption → faster convergence
PIC (Prefix-Independent Convergence)Convergence time is independent of the number of route prefixes, speeding up convergence in large backbone networks
Route Leak (route penetration)An L1/L2 router injects L2 backbone routes into an L1 area, solving the suboptimal-path problem for L1 routers accessing other areas

BGP

  1. BGP Route Reflectors (RRs): when multiple RRs reside in the same cluster, the Cluster-ID provides loop prevention. RRs in the same cluster exchange routes with each other; if a received Cluster_List contains its own Cluster-ID, the RR discards the route.
  2. The first rule of BGP path selection: locally generated routes take precedence over routes learned via IBGP.
  3. BGP routing table: multiple BGP routes may exist for a destination, but only one is selected as best (active/valid) and installed into the IP routing table.
  4. IS-IS route leaking (import-route isis level-2 into level-1) is only background context in the question. It ensures IGP reachability and BGP next-hop reachability; it does not participate in BGP path selection.

Path Selection Rules

  1. PrefVal (protocol preferred value): higher is better (Huawei proprietary, effective only on the local device, default 0).
  2. Local_Pref (local preference): higher is better (propagated within the AS, default 100; controls how traffic exits the local AS).
  3. Locally originated routes are preferred. Priority order: manual aggregation > automatic aggregation > route redistribution via network > route redistribution via import-route > routes learned from peers.
  4. Shorter AS_Path is better (length of the AS path list).
  5. Origin attribute: IGP (i) > EGP (e) > Incomplete (?).
  6. Lower MED is better (by default, MED is compared only among routes from the same neighboring AS; routes from different ASs are not compared).
  7. Peer type: EBGP > confederation EBGP > confederation IBGP > IBGP.
  8. Lower IGP cost to the BGP next hop is better (IGP metric).
  9. Shorter Cluster_List is better (in RR scenarios).
  10. Smallest Originator_ID is preferred; if no Originator_ID is present, compare Router IDs, and the smaller one wins.
  11. Smallest BGP peer IP address is preferred.

If all 11 criteria are identical: prefer the route that was received first.

Loop Prevention Mechanisms

Built-in loop prevention:

  • IBGP: split horizon (routes learned from an IBGP peer are not advertised to other IBGP peers).
  • EBGP: AS_PATH — a route is rejected if the local AS number appears in its AS_PATH. This is BGP’s native loop prevention mechanism.

Hub-Spoke

  1. ERT = Export Route Target: when a PE advertises a VPN route, it tags the route with this RT.
  2. IRT = Import Route Target: when a PE receives a VPN route, it matches this RT; only routes that match are placed into the VPN instance.

Core Logic

Traffic must pass through the Hub; Spoke sites cannot communicate directly with each other.

Traffic path: Spoke → Hub → Spoke. Direct communication between Spoke sites is not allowed; all traffic is relayed through the Hub. Therefore, Hub-PE3 must have two VPN instances:

  1. VPN_in: dedicated to receiving routes advertised by the Spoke sites.
  2. VPN_out: dedicated to advertising routes to the Spoke sites.

OSPF

Route Selection

  1. Route preference: select the route with the higher priority (preference value).
  2. If preference values are equal, compare the interface index and select the larger interface index.
  3. If both preference value and interface index are equal, compare the next-hop IP address and select the larger one.

OSPF LSA Types

FieldLengthMeaning
Nt (NSSA translation)1 bitSet to 1 if the router originating this LSA is an NSSA border router; otherwise set to 0. When this bit is 1, the router unconditionally translates NSSA LSAs into AS-external LSAs.
x1 bitObsolete bit.
V (Virtual Link)1 bitSet to 1 if the router originating this LSA is an endpoint of a virtual link; otherwise set to 0.
E (External)1 bitSet to 1 if the router originating this LSA is an ASBR; otherwise set to 0.
B (Border)1 bitSet to 1 if the router originating this LSA is an ABR; otherwise set to 0.
Options24 bitsOptional capabilities supported by the router.
Type8 bitsBasic description of the connection: 1 = point-to-point link to another router; 2 = connection to a transit network; 3 = reserved; 4 = virtual link.
metric16 bitsCost of the link.
Interface ID32 bitsID assigned to the interface.
Neighbor Interface ID32 bitsInterface ID of the neighbor router. For transit links, this is the DR’s interface ID; for other link types, it is the neighbor’s interface ID.
Neighbor Router ID32 bitsRouter ID of the neighbor router. For transit links, this is the DR’s Router ID; for other link types, it is the neighbor’s Router ID.
OSPFv2
Type 5 LSA Forwarding Address (FA)

FA = 0.0.0.0: external traffic is forwarded directly to the ASBR that originated the Type 5 LSA.

FA ≠ 0.0.0.0: external traffic is forwarded directly to the IP address specified by the FA, bypassing the ASBR.

When Is the FA Non-Zero?

(All three conditions must be satisfied simultaneously.)

  1. The outbound interface through which the ASBR redistributes the external route lies inside the OSPF domain (OSPF is enabled on that interface).
  2. That outbound interface is not configured as a silent interface.
  3. The IP address of that interface belongs to a network segment advertised in OSPF.

Additional notes:

  1. The FA exists only in OSPFv2 Type 5 and Type 7 LSAs.
  2. Purpose: to tell routers inside the OSPF domain which router to send packets to when destined for an external network.
TypeNameOriginatorFlooding ScopeCore Function
Type 1Router LSAAll routersLocal areaDescribes the originating router’s directly connected links
Type 2Network LSADRLocal areaDescribes broadcast / NBMA network segments
Type 3Network Summary LSAABRAll except totally stub areasInter-area network routes
Type 4ASBR Summary LSAABRAll except totally stub areasAdvertises the location of the ASBR
Type 5AS External LSAASBREntire ASExternal routes, carrying a forwarding address (FA)
Type 7NSSA External LSAASBR within an NSSANSSA areaExternal routes in an NSSA; translated to Type 5 by the ABR when leaving the NSSA
OSPFv3
TypeNameFlooding ScopeCore FunctionMemory Aid
Type 1Router LSAWithin the local areaDescribes the router’s directly connected links, link types, and neighbor Router IDs; does not carry IPv6 prefixes — topology onlyThe router describes the topology, no prefixes
Type 2Network LSAWithin the local areaGenerated by the DR; describes broadcast / NBMA segments and lists all routers on the segmentThe DR represents the segment; flooded locally
Type 3Inter-Area Prefix LSAWithin the local areaGenerated by the ABR; carries inter-area IPv6 prefixes (equivalent to OSPFv2 Type 3)Inter-area prefixes, sent by the ABR
Type 4Inter-Area Router LSAWithin the local areaGenerated by the ABR; describes the location of the ASBR (equivalent to OSPFv2 Type 4)Inter-area router: where to find the ASBR
Type 5AS External LSAEntire AS, except stub/NSSAGenerated by the ASBR; imports external IPv6 routesExternal routes, flooded throughout the AS
Type 7NSSA External LSAWithin the NSSA areaGenerated by an NSSA ASBR; external routes for the NSSA; may be translated to Type 5 by the ABR for propagation out of the NSSANSSA-specific external LSA, flooded in-area only
Type 8Link LSALocal link only (direct segment)Generated independently by each router on each link; carries the local IPv6 link-local address and link prefix; sent only to neighbors on that link, never across linksLink-local information, confined to that link
Type 9Intra-Area Prefix LSAWithin the local areaCarries intra-area prefixes in two cases: (1) router prefixes (associated with Type 1) and (2) broadcast segment prefixes (associated with Type 2). OSPFv3 separates prefixes out of Type 1/2 into Type 9Intra-area prefixes supplementing Type 1/2 info
  • Type 3 inter-area LSAs → DN Bit loop prevention.
  • Type 5/Type 7 external LSAs → Domain Tag (route-tag) loop prevention.
Loop Prevention MechanismProtected LSA TypesCore RuleApplicable Scope
DN Bit (Down bit)Type 3 inter-area LSAWhen a PE receives an LSA with DN=1, it does not redistribute it into MP-BGPInter-area routes only; not supported by Type 5/7
Domain Tag (route-tag)Type 5 / Type 7 LSAWhen a PE receives an external route whose tag matches the local tag, it does not redistribute it into MP-BGPExternal routes only; replaces the missing DN bit for external LSAs

Common Pitfalls

  1. The DN Bit applies only to Type 3; Type 5/7 LSAs have no DN bit, so external LSAs can rely only on the route tag.
  2. Both mechanisms are OSPF extensions for loop prevention in L3VPN scenarios, not native BGP loop prevention (native BGP uses AS_PATH and IBGP split horizon).
  3. Origin of the loop: a route travels from PE → CE and is then advertised by the CE back to another PE. If it is not blocked, it will be reinjected into the MP-BGP backbone, creating a loop.

BFD

OSPF, IS-IS, and BGP have built-in Hello-based failure detection, but Hello timers are too slow. BFD provides millisecond-level rapid failure detection and works in conjunction with routing protocols.

It does not carry routing information — it only checks whether the path is healthy and notifies upper-layer routing protocols when a failure occurs.

States: Down → Init → Up

Packet Encapsulation

  • Single-hop BFD (directly connected neighbor): UDP destination port 3784.
  • Multihop BFD (across multiple routers): UDP destination port 4784.

Detection Modes

  1. Asynchronous mode (default): both sides periodically send BFD control packets to each other; if no packet is received within the timeout, the link is declared Down.
  2. Demand (query) mode: one side stops sending packets and specifically queries whether the peer is still alive; the peer must reply.

Written by Handwritten

If you enjoyed this, leave a comment~

Random Posts

... Page views
© 2021 - 2026 Vullfin @VV
Powered by theme astro-koharu · Inspired by Shoka
Loading...