Back to exam

JN0-664 Cheatsheet

Service Provider Routing and Switching, Professional

Download free PDF

OSPF and IS-IS

OSPF topology and adjacencies

  • **Link-state routing** floods topology information within an area. Routers calculate shortest-path trees from a synchronized LSDB; a physical full mesh is unnecessary. Convergence can still produce transient microloops.
  • **Area 0** provides the OSPF backbone for interarea routing. ABRs advertise Type 3 summary LSAs; Type 1 router and Type 2 network LSAs describe topology within an area.
  • **Adjacency checks:** verify area, network type, authentication, hello/dead intervals and MTU. A 2-Way state between two DROther routers on a broadcast LAN can be normal; ExStart/Exchange problems suggest database-exchange issues.
  • **OSPFv3 IPv4 realms** carry IPv4 routes while using IPv6 link-local communication. Enable family inet6 on participating Junos interfaces as well as the required IPv4 addressing.

Startup protection and summaries

  • **overload timeout** temporarily discourages transit through a rebooting router while other protocols converge. Apply it to the relevant OSPF or OSPFv3 realm; directly attached destinations remain reachable.
  • **area-range** on an ABR aggregates eligible interarea advertisements. A summary advertisement and the component routes inside the originating area serve different purposes.

IS-IS addressing and levels

  • **NET** contains an area address, a six-byte system ID and an NSEL of 00. In 49.0001.00a0.c96b.c490.00, the system ID is 00a0.c96b.c490; use a unique system ID per router.
  • **Level 1** routes within an area; **Level 2** connects areas. L1 neighbors need a common area address. L2 adjacencies can cross area boundaries; L1/L2 routers participate in separate databases.
  • **family iso** enables IS-IS on Junos links; configure the NET on lo0. Check link-level enable/disable settings, area compatibility, authentication and interface state before troubleshooting IP route policy.
  • **Hello PDUs:** a point-to-point IIH carries the supported circuit levels together. A broadcast interface sends separate L1 and L2 hellos when both levels are enabled.

IS-IS flooding and SPF

  • **DIS** election on a LAN favors higher priority, then the higher SNPA. It is preemptive, has no backup DIS, and occurs per level. Routers form adjacencies with other eligible routers, not only the DIS.
  • **LSPs** carry topology and reachability. The DIS originates a pseudonode LSP and periodically sends **CSNPs**, which summarize the database. **PSNPs** request missing LSPs and acknowledge LSPs on point-to-point links.
  • **SPF** starts at the local router, examines candidate paths, and adds the lowest-cost candidates to the shortest-path tree. Equal costs can provide ECMP; the complete database and consistent metrics matter.
  • **Wide metrics** expand the metric range and use extended TLVs. Mixed narrow/wide advertisements can explain multiple reachability TLVs; align metric support throughout the intended topology.

IS-IS defaults and route policy

  • **Attached bit:** an L1/L2 router with suitable L2 connectivity signals an exit to L1 routers. Those routers can install a default toward it; L2 routes are not automatically flooded into the L1 database.
  • **L2-to-L1 leaking** uses routing policy to advertise selected more-specific routes. **ignore-attached-bit** on L1 routers suppresses the attached-bit default; it does not create specific routes. Leak required routes before relying on them.
  • **Summarization** needs an active aggregate plus policy that accepts the aggregate and suppresses unwanted specifics in the intended advertisement scope. Match the summary with exact, rather than matching only longer prefixes.

BGP routing and policy

Path attributes and selection

  • **Best-path priorities:** prefer higher local preference, shorter AS path, lower origin code, then lower MED when comparable. Later decisions include EBGP over IBGP and lower IGP cost to the next hop.
  • **Origin** preference is IGP (I), EGP (E), then incomplete (?). This attribute describes route origination; an I origin code does not mean the route was received through IBGP.
  • **MED** is compared between paths from the same neighboring AS by default. **always-compare-med** changes that scope. Equal attributes from different ASs do not automatically make MED the next deciding factor.
  • **EBGP** normally prepends the local AS and changes next hop when advertising externally. **IBGP** normally preserves next hop and carries local preference; ordinary EBGP does not export local preference.

Resolution, aggregation and diagnostics

  • **Hidden routes** can result from an unresolved next hop, AS-loop checks or policy rejection. Use **show route hidden extensive**, **show bgp summary** and neighbor details to identify the actual reason.
  • **Next-hop reachability:** carry the external next-hop subnet in the IGP or use an IBGP export policy with next-hop self on the appropriate edge router. A route reflector normally preserves the next hop.
  • **Aggregate routes** must exist in the RIB before export policy can advertise them. Match protocol aggregate when appropriate; a from protocol bgp condition does not match a locally generated aggregate.
  • **Policy order** matters: exact matches only the named prefix, longer excludes it, and orlonger includes it and its specifics. An early reject can prevent later terms from acting.

AS paths and repeated customer ASNs

  • **AS_PATH** supports loop detection. Prepending repeats an AS to influence remote path choice; it does not increase local preference. **remove-private** removes eligible private AS numbers under its configured rules.
  • **as-override** on a provider PE replaces occurrences of the customer peer AS in exported paths. **advertise-peer-as** permits advertisements otherwise suppressed because the peer AS appears in the path; it does not rewrite that path.
  • **loops** relaxes local-AS loop acceptance for a controlled design. Same-AS customer connectivity may require export and receive-side changes; avoid weakening loop protection without a clear routing design.
  • **Junos AS-path display:** square brackets can identify the associated local AS when multiple AS numbers or prepending are configured. Interpret display notation in its command context rather than assuming every bracketed value is an AS set.

Route reflection and route distribution

  • **Route reflectors** advertise client-learned routes to clients and nonclients; nonclient-learned IBGP routes are reflected to clients. Configure client relationships on the reflector; clients use ordinary IBGP sessions.
  • **ORIGINATOR_ID** and **CLUSTER_LIST** prevent reflection loops. The reflector adds its cluster ID to CLUSTER_LIST, not AS_PATH. Redundant reflectors in one cluster share a cluster ID; dual-homed clients receive routes independently.
  • **VPN route reflection** requires the relevant address family, such as inet-vpn unicast. A control-plane-only reflector can use a deliberate route-resolution design without carrying customer traffic.
  • **Route-target constraint**, negotiated with family route-target, limits VPN route distribution to interested peers. Enable the family across the relevant PE/RR sessions; it does not replace VRF import policy.

Multiple paths and session protection

  • **multipath** allows eligible equal BGP paths to contribute next hops. **multipath multiple-as** permits eligible paths from different neighboring ASs; the other multipath criteria still apply.
  • **Forwarding-table load balancing** must install the usable next hops as required by the platform and policy. Check both the routing table and forwarding table; a Junos per-packet policy name can still produce flow-based hashing.
  • **add-path** advertises multiple paths for one prefix when negotiated by sender and receiver. Multipath selects forwarding next hops; add-path supplies additional control-plane paths. **multihop** changes session reachability.
  • **Bandwidth communities** can support unequal-cost BGP load sharing on supported platforms. Consistent bandwidth information and an appropriate forwarding configuration are required; ordinary ECMP does not infer link capacity.
  • **GTSM** sends BGP packets with TTL 255 and validates their received TTL against the expected hop distance. On Junos designs using TTL filters, reject invalid TTLs before they reach the control plane.
  • **Prefix limits** can warn, hide/reject excess prefixes or tear down a session according to configuration. Active is not Established; correlate state changes with logs, counters and configured limit actions.

IP multicast

PIM-SM trees and designated routers

  • **PIM-SM** forwards along explicitly joined distribution trees. The receiver DR sends joins upstream; the source DR registers a newly active source with the rendezvous point.
  • **ASM** uses an RP and initially a shared tree, represented by (*,G). A receiver-side last-hop router can switch to the source shortest-path tree, represented by (S,G). (S,G) state alone does not prove SSM.
  • **SSM** identifies both source and group and builds source trees without an RP. Hosts signal source-specific interest using IGMPv3 or MLDv2; the standard IPv4 SSM range is 232.0.0.0/8.
  • **PIM DR election** favors higher DR priority, then higher IP address. The DR handles source registration or receiver joins on the local shared subnet; its role differs from the RP and the bootstrap router.

RP discovery, anycast and RPF

  • **Bootstrap router (BSR)** messages distribute candidate RP information through the PIM domain. BSR election chooses the distributor; group mappings and RP-selection rules determine the RP for a group.
  • **Anycast RP** gives multiple RPs a shared address; unicast routing selects a nearby instance. Share active-source knowledge using **MSDP** between RPs or **Anycast PIM rp-set** on the RPs.
  • **RPF** selects the upstream direction toward the source or RP using the applicable routing information. Check **show multicast rpf**, **show pim join** and **show multicast route** when the observed tree differs from the intended path.
  • **Join controls** can match groups and sources and limit state creation. Evaluate policy match scope, term order and the configured limit before assuming a group-count threshold applies to every join.

MPLS Layer 3 VPNs

VRFs, distinguishers and targets

  • **VRF** separates customer routing and forwarding. A **route distinguisher (RD)** makes overlapping VPN prefixes unique; a **route target (RT)** extended community controls route import and export membership.
  • **RD formats:** Type 0 uses a two-byte ASN plus a four-byte assigned value; Type 1 uses an IPv4 address plus a two-byte value; Type 2 uses a four-byte ASN plus a two-byte value. An RD is not an RT.
  • **vrf-target** provides simple target-based import/export behavior. **vrf-import** and **vrf-export** policies allow detailed route selection and multiple communities; explicitly define all required actions when using custom policies.
  • **auto-export** supports local sharing between VRFs using their import/export policies and RTs. **vrf-table-label** allocates a label for a VRF forwarding lookup; it does not itself enable route leaking.

VPN control plane and label resolution

  • **MP-BGP inet-vpn unicast** exchanges VPNv4 routes and service labels between PEs. **bgp.l3vpn.0** holds VPN routes; an imported route appears in the customer VRF inet.0 table.
  • **MPLS label stack:** the outer transport label carries traffic toward the egress PE; an inner service label identifies the VPN forwarding context. Core P routers normally need transport reachability, not customer routes.
  • **Hidden VPN routes:** inspect next-hop resolution and the transport LSP to the remote PE. A received VPN route can remain unusable without a labeled path even when BGP is Established and RT policy is correct.
  • **6PE** carries global IPv6 routes over an IPv4 MPLS core: use inet6 labeled-unicast between PEs and ordinary inet6 unicast toward IPv6 CEs, with MPLS IPv6 tunneling enabled. **6VPE** adds VPN routing separation.

Interprovider VPN choices

  • **Option A** connects per-VRF routing contexts at AS borders. **Option B** exchanges labeled VPN routes between ASBRs. **Option C** separates inter-AS labeled PE reachability from end-to-end VPN route exchange.
  • **Option C roles:** PEs need VPN routes and remote PE reachability; ASBRs exchange labeled transport reachability. Transit P routers can retain only their own core transport routes; ASBRs need not carry customer VPN routes.
  • **resolve-vpn** under inet labeled-unicast permits labeled routes in inet.3 for VPN next-hop resolution across AS boundaries. Check received labels, the resolving RIB and the transport path together.

OSPF VPN behavior and Internet access

  • **OSPF backdoor links** can win because intra-area routes outrank interarea VPN routes regardless of a simple metric increase. An **OSPF sham link** creates a logical intra-area PE-to-PE adjacency across the VPN, allowing cost-based choice.
  • **Sham-link endpoints** belong to the VRF and need VPN reachability. Verify endpoint addressing, OSPF area and link cost; the sham link is an OSPF adjacency, not a separate BGP session.
  • **VRF Internet access** requires an outbound default and a usable return path. With CE NAT, the public translated address must be reachable from the Internet routing context; private host routes alone do not provide the return path.
  • **RIB groups** can install selected routes into additional tables, including interface routes needed for next-hop resolution. **next-table** routes perform lookup in another table; design route-leaking policy and return paths together.
  • **Hub CE Internet access** can deliberately send spoke traffic through a hub CE for NAT or inspection before Internet egress. Preserve that service path when distributing defaults or leaking routes.

Layer 2 VPNs, VPLS and EVPN

Point-to-point Layer 2 services

  • **Layer 2 VPNs** transport customer frames; customer routing remains on the CEs. An OSPF adjacency can form between the CEs across the service, independently of the provider core IGP.
  • **BGP-signaled L2VPN** uses BGP autodiscovery/signaling, unique site IDs and compatible import/export targets. Use the Layer 2 VPN signaling family; inet-vpn is for Layer 3 VPN routes.
  • **LDP-signaled Layer 2 circuits** use targeted LDP and a pseudowire/VC ID. Multiple circuits can share a transport LSP. Verify matching VC IDs, compatible encapsulation and MTU, attachment circuits and bidirectional transport.
  • **CCC** supplies circuit cross-connect behavior; **TCC** supports translation between compatible dissimilar Layer 2 encapsulations. Distinguish these from scalable signaled pseudowires when selecting a service.

Encapsulation and service checks

  • **Ethernet versus VLAN service:** ethernet-ccc and vlan-ccc identify different attachment semantics. Check accepted frame tags, VLAN normalization, logical units and the signaled pseudowire type at both endpoints.
  • **BGP L2VPN sites** can attach through multiple logical interfaces; configure site and remote-site mapping deliberately. Separate customer services or VLAN circuits according to the intended connectivity rather than assuming one physical port per VPN.
  • **MTU** must accommodate customer frames plus VLAN, pseudowire/control-word and MPLS overhead. A ping size can describe ICMP payload rather than total frame size; do not infer a universal outcome from a 1500-byte value.
  • **show l2circuit connections extensive** and **show l2vpn connections extensive** expose state and mismatch information. Check transport labels, local interface state, last transition, control-word and flow-label capabilities.

VPLS bridging and signaling

  • **VPLS** provides a multipoint Ethernet broadcast domain through PE bridging and pseudowires. PEs learn source MAC addresses and flood broadcast, unknown-unicast and multicast traffic as required.
  • **BGP-signaled VPLS** combines BGP service discovery with signaling. **LDP-signaled VPLS** uses LDP pseudowires and configured peer discovery or a supported autodiscovery mechanism. Either service needs working MPLS transport.
  • **RT policy** determines service route exchange; RDs distinguish advertisements and need not match across PEs. Check signaling family, RTs, site identifiers, MAC learning and the forwarding table when a VPLS is disconnected.
  • **Split horizon** prevents a frame received from one mesh pseudowire from being forwarded onto another mesh pseudowire. Access-side forwarding and multihoming rules must still preserve loop-free bridging.

EVPN routes and multihoming

  • **EVPN** uses MP-BGP for Ethernet service reachability. It can use MPLS transport; VXLAN and segment routing are separate transport choices, not universal prerequisites.
  • **Type 2 MAC/IP routes** advertise MAC reachability and can include an associated IP learned through ARP/ND mechanisms. **Type 3 IMET routes** identify participants in inclusive flooding for BUM traffic.
  • **Type 1 Ethernet Auto-Discovery** routes support multihoming functions such as aliasing and mass withdrawal. **Type 4 Ethernet Segment** routes discover PEs on the same Ethernet segment and support designated-forwarder election.
  • **All-active multihoming** can load-share known unicast across attached PEs. The **designated forwarder (DF)** controls BUM delivery toward a multihomed segment for the relevant service, preventing duplicate flooded copies.
  • **MAC mobility** uses a sequence number in an extended community attached to a Type 2 route. A higher sequence identifies a newer ownership claim; distinguish a move from legitimate shared-ESI multihoming.
  • **EVI troubleshooting:** check the ESI, DF state, RT import, Type 1/2/3/4 routes, MAC table and transport labels. The RD distinguishes the route; the BGP next hop identifies transport reachability toward the advertising PE.

Class of service and traffic protection

Classification and packet flow

  • **BA classifiers** map DSCP, IP precedence, 802.1p or MPLS TC/EXP bits to a forwarding class and loss priority. **MF classifiers** use firewall-filter matches on multiple packet fields. **Fixed classifiers** assign a configured class.
  • **BA precedes MF** in the Junos CoS classification model; an MF action can override the BA result. Default classification can still apply when no explicit classifier is configured; inspect the effective interface configuration.
  • **CoS flow:** ingress classification and policing establish internal treatment; forwarding/fabric processing leads to egress policing, scheduling, shaping and RED. Egress rewrite rules mark transmitted packets.
  • **Forwarding class** selects queue treatment; **packet loss priority** affects congestion discard. Classifiers read incoming markings, while rewrite rules set outgoing DSCP, 802.1p or MPLS TC/EXP values.

Schedulers, borrowing and drop profiles

  • **Scheduler maps** connect forwarding classes to schedulers. A scheduler defines transmit rate, buffer allocation, priority and drop-profile mapping; apply the map to the output interface.
  • **Transmit rate** supplies a service allocation rather than an absolute ceiling by itself. Eligible queues can borrow unused bandwidth; exceeding the allocation produces negative credit in credit-based scheduling. A **shaping rate** limits transmission.
  • **Policing** meters traffic and drops or remarks excess according to the action. **Shaping** buffers traffic to constrain its output rate. Buffer allocation and priority affect congestion behavior, not ingress classification.
  • **RED drop profiles** map queue fullness to drop probability and are selected through scheduler drop-profile maps. Interpolated profiles increase probability between defined points; noninterpolated profiles use steps.
  • **MPLS explicit-null** preserves a label to the egress, allowing MPLS TC/EXP classification there. With penultimate-hop popping, the transport label is removed earlier; check which label and marking the egress actually receives.

FlowSpec, blackholing and source checks

  • **BGP FlowSpec** distributes traffic-match rules and mitigation actions, such as discard or rate limiting, to participating routers. Validate accepted rules and their scope before installing distributed filters.
  • **Destination RTBH** attracts and discards traffic for a selected destination, sacrificing that destination to protect resources. **uRPF** checks source reachability; strict mode also checks the return interface and can conflict with asymmetric routing.
  • **Amplification defense** combines attack-specific filtering, anti-spoofing and protection of exposed services. FlowSpec supplies selective distributed mitigation; route blackholing and source validation solve different parts of the problem.