Академический Документы
Профессиональный Документы
Культура Документы
Outline
• Origins of TCP/IP
• OSI Stack & TCP/IP Architecture
• Client Server Architecture
• IP Addressing & Numbering Rules
• IP Forwarding and default route
• Network Troubleshooting Tools
Origins of TCP/IP
• 1950’s – 1960’s – US Govt.
requirement for “rugged” network
that would continue to work in
case of a nuclear attack
• RAND Corporation (America’s
leading think thank) & DoD
formed ARPA (Advanced
Research Project Agency)
• 1968 – ARPA engineers proposed
Distributed network design for
ARPANET Network
Distributed Network Design
• Pre-ARPANET networks
– “connection oriented”
– Management & control was
centralized
• “New” Network – ARPANET
– Connectionless
– Decentralised
• Modern Internet has evolved from
the ARPANET
Simplified view of the Internet
Internetworks
• Divide-and-conquer approach
• Dividing requirements into groups, e.g
transporting of data, packaging of messages,
end user applications
• Each group can be referred to as a layer
– Upper layers are logically closer to the user and deal
with more abstract data, relying on lower layer
protocols to translate data into forms that can
eventually be physically transmitted.
• Open Systems Interconnection Reference Model
(OSI-RM) adopted as a standard for networking
OSI Model
OSI Model
7 Application
APPLICATION
6 Presentation • Upper Layers
• Application oriented
5 Session • Independent of layers below
4 Transport
3 TRANSPORT
Network • Lower Layers
• Transmission of data
2 Data Link • No differentiation of upper layers
1 Physical
Layers 7, 6, 5
• 7: Application layer
– Provides different services to the applications
– Uses the underlying layers to carry out work
• e.g. SMTP (mail), HTTP (web), Telnet, FTP, DNS
• 6: Presentation layer
– Converts data from applications into common format
and vice versa
• 5: Session layer
– organizes and synchronizes the exchange of data
between application processes
Layer 4
• 4: Transport layer
– Provides end to end transportation of segments
– E.g. TCP
• encapsulates TCP segments in network layer packets
• adds reliability by detecting and retransmitting lost packets
• uses acknowledgements and sequence numbers to keep track
of successful, out-of-order, and lost packets
• timers help differentiate between loss and delay
– UDP is much simpler: no reliability features
Layer 3
• 3: Network layer
– Routes the information in the
network
– E.g. IP is a network layer
implementation which defines
addresses in such a way that route
selection can be determined.
• Single address space for the entire
internetwork
• adds an additional layer of addressing,
e.g. IP address, which is different from
MAC address.
Layer 3
• 1: Physical layer
– moves bits using voltage, light,
radio, etc.
– no concept of bytes or frames
– bits are defined by voltage levels,
or similar physical properties
1101001000
OSI and TCP/IP
7 Application
Mail, Web, etc.
6
Presentation Application
5 Session
4 TCP/UDP – end to end
Transport Transport reliability
OSI TCP/IP
TCP/IP Layer Model
Protocol Layers:
The TCP/IP Hourglass Model
Application layer
SMTP HTTP Audio Video
FTP Telnet DNS
Application Application
Application
Data
Transport Header Transport Layer Data
Header Header Data
Network
Network Header Network Layer Data
• Unique Identification of
– Source
Sometimes used for security or
policy-based filtering of data
– Destination
So the networks know where to
send the data
• Network Independent Format
– IP over anything
Purpose of an IP Address
• Hierarchical Division in IP
Address:
– Network Part (Prefix)
• describes which physical network
– Host Part (Host Address)
• describes which host on that network
205 . 154 . 8 1
11001101 10011010 00001000
00000001Network Host
– Boundary can be anywhere
• very often NOT at a multiple of 8 bits
Network Masks
• ping
• traceroute
• tcpdump
Virtual LANs
VLAN introduction
Routers in VLAN
topologies
provide
broadcast
filtering, security,
and traffic flow
management.
VLAN introduction
Port-based VLANs
MAC address based VLANs
Protocol based VLANs
Membership by Port
Membership by MAC-Addresses
VLAN types
Internet
A B
Connectionless Forwarding
R7
R6
R2
A B
R8
R3
R5
Connectionless Forwarding
• customers
• internal
• peer / upstream
Exterior routing
Interior routing
Customer routing
Interior Routing
R1 R4
5
R7
40
45
5
5
6
10 R6
20
R2
A B
10 15
R8
4 10
R3
R5 10
5
R1 R4
5
R7
40
45
5
5
6
10 R6
20
R2
A B
10 15
R8
R3
R5 10
5
Interior
Interior RouteAS1221
AS1
Route Space
Space
Interior
Route AS3561
Exterior Routing Space Space
Interior
Route AS2402
Space
Interior
Route AS701
Space
Exterior Routing Protocols
AS 1221 AS 3561
139.130.0.0/16
148.10.0.0/16
203.10.60.0/24
24.192.36.0/24
202.23.45.0/23
148.10.0.0/16 3561
24.192.36.0/24 3561
139.130.0.0/16 1221
202.23.45.0/23 3561
203.10.60.0/24 1221
BGP Example of TRANSIT
AS 3561
AS 1221
139.130.0.0/16 i 148.10.0.0/16 i
203.10.60.0/24 I 24.192.36.0/24 i
AS 5727
202.23.45.0/23 i
148.10.0.0/16 3561
24.192.36.0/24 3561 210.10.0.0/16 5727
202.23.45.0/23 3561 130.1.0.0/16 5727
210.10.0.0/16 i
210.10.0.0/16 3561,5727
139.1.0.0/16 3561,5727 139.130.0.0/16 1221 130.1.0.0/16 I
203.10.60.0/24 1221
148.10.0.0/16 3561
24.192.36.0/24 3561
202.23.45.0/23 3561
139.130.0.0/16 3561,1221
203.10.60.0/24 3561,1221
Exterior Routing Protocols
A AS 3561
B
AS 1221
AS 5727
AS 1221
AS 1
I-BGP
E-BGP AS3561
AS 2402
AS 701
Exterior Routing Protocols
203.10.60.0/24 701,3561,1221
203.10.60.0/24 5727,1221
AS 1221
AS 1
Accept AS paths
1221
2402
AS 3561
1221,3561
2402,701
AS 2402
AS 701
Exterior Routing Protocols plus Policy
A Q 2
B Z 13
Q Y
C X 13
Topology information is
stored in a DB separate
X from the routing table
X’s Link-state
Link-State Routing
• Neighbor discovery
• Construct a Link State Packet (LSP)
• Distribute the LSP
– Link State Announcement – LSA
• Route calculation
• If a link fails
– Flood new LSPs
– All routers recalculate their routing tables
Low Bandwidth Utilization
FDDI
Dual Ring
LSA
X R1
LSA
FDDI FDDI N3
N2 Dual Ring Dual Ring
R2
R3
N1 R1 N5
Cost = 10
R4
N4 Cost = 10
Fast Convergence
• Detection plus LSA/SPF
R2
Alternate Path
N1
R1
X R3
N2
Primary Path
Fast Convergence
• Multi-Access networks
– All routers must accept packets sent to the
AllSPFRouters (224.0.0.5) address
– All DR and BDR routers must accept packets
sent to the AllDRouters (224.0.0.6) address
• Hello packets are sent to the
AllSPFRouters address (Unicast for
point-to-point and virtual links)
OSPF Areas
• Group of contiguous
nodes/networks
• Per area topology DB
– Invisible outside the Area 2 Area 3
area
– Reduces routing traffic Area 0
• Backbone Area is Backbone Area
contiguous
– All others areas must
connect to the
backbone
• Virtual Links
Area 1
Area 4
Router Classification
IR
Area 2 Area 3
ABR/BR
Area 0
• Internal Router (IR)
IR/BR • Area Border Router
ASBR (ABR)
• Backbone Router
To another AS (BR)
Area 1 • Autonomous
System Border
Router (ASBR)
OSPF Route Types
External Route
– Routes imported into
OSPF from another
protocol or Static routes
Inter-Area Route Summarization
RIP
IGRP
EIGRP
OSPF BGP
etc.
Redistribute
External Routes
Cost = 8
R3
Network Type 1 Next Hop
N1 11 R2
Selected
N1 10 R3
Route
External Routes
• Type 2 external metric: metrics are
compared without adding the internal link
cost To N1
External Cost = 1
Cost = 10
R1
To N1
R2 External Cost = 2
Cost = 8
R3
Network Type 2 Next Hop
N1 1 R2 Selected Route
N1 2 R3
Topology/Links-State DB
• Bringing up adjacencies
• LSA Types
• Area Classification
The Hello Protocol
Hello
FDDI
Dual Ring
Hello Hello
The Hello Packet
• Router Priority
• Hello Interval
Hello
• Router dead
interval FDDI
• Network mask Hello
Dual Ring
Hello
• Options: T-bit, E-
bit
• List of neighbors
Designated Router (DR)
One per multi-access network
Generates network links
advertisements
Assists in DB synchronization
Backup
Designated Designated
Router Router
Designated Backup
Router Designated
Router
Designated Router by Priority
• Configured priority (per interface)
• Otherwise determined by the highest
router ID
– The router ID is the loopback interface
address, in configured otherwise is the
highest IP address
131.108.3.2 131.108.3.3
DR
144.254.3.5
Neighbor States
• 2-way
– The router sees itself in other Hello packets
– DR is selected from neighbors in state 2-
way or greater
2-way
DR BDR
Neighbor States
• Full
– Routers are fully
adjacent
– DB is synchronized
– Relationship to the
DR and BDR Full
DR BDR
When to Become Adjacent
DR BDR
121
IS-IS Standards History
ISO 10589 specification that defines IS-IS as an OSI
routing protocol for CLNS traffic
A Link State protocol with a 2 level hierarchical architecture
With Type/Length/Value (TLV) options for protocol
enhancements
The RFC 1195 added Support for IP
Thus Integrated IS-IS
I/IS-IS runs on top of the Data Link Layer or rather L2
Requires CLNP (Connectionless Network Protocol) to be
configured
RFC5308 adds IPv6 address family support to IS-IS
RFC5120 defines Multi-Topology concept for IS-IS
Permits IPv4 and IPv6 topologies which are not identical
122
ISIS Levels
123
ISIS Levels
Level-1 router
Has neighbours only on the same area
Has a level-1 LSDB with all routing information
for the area
Level-2 router
May have neighbours in the same or other
areas
Has a Level-2 LSDB with all routing
information about inter-area
Level-1-2 router
May have neighbours on any area.
Has two separate LSDBs: level-1 LSDB &
level-2 LSDB
124
Backbone & Areas
ISIS does not have a backbone area as such
(like OSPF typical area 0)
Instead the backbone is the contiguous
collection of Level-2 capable routers
ISIS area borders are on the wire or rather
links and not routers
Each router is identified with a unique
Network Entity Title (NET)
NET is a Network Service Access Point (NSAP)
where the n-selector is 0
(Compare with each router having a unique
Router-ID with IP routing protocols)
125
L1, L2, and L1L2 Routers
Area-3
L1-only
L1L
2
Area-2 L2-only
L1L
L1L 2
L1-only
2
Area-4
L1L L1-only
Area-1 2
L1L
2
L1-only
126
NSAP and Addressing
49.0f01.0002.4444.4444 Area 3
.4444.00
49.0f01.0003.6666.6666
.6666.00
Area 2
49.0f01.0002.3333.3333.
3333.00
49.0f01.0004.7777.7777. Area 4
7777.00
49.0f01.0001.2222.2222.
2222.00 49.0f01.0004.8888.8888.
Area 1 8888.00
49.0f01.0001.1111.1111.1
111.00 128
Addressing Common Practices
ISP's typically choose NSAP
addresses thus:
First 8 bits – pick a number (usually
49)
Next 16 bits – area
Next 48 bits – router loopback address
(BCP)
Final 8 bits – zero
Example:
NSAP: 49.0001.1921.6800.1001.00
Router: 192.168.1.1 (loopback) in Area
1
129
Addressing & Design Practices
ISPs typically use one area (eg.49.0001)
Multiple areas only come into consideration
once the network is several hundred routers
big
NET begins with 49
“Private” address range
All routers are in L2 only (Core Network)
Note: Cisco IOS defaults to L1L2
Set L2 under ISIS router configuration (can
also be done per interface)
130
Adjacencies – Hello PDU (IIS)
Hello Protocol Data Units (PDUs) are exchanged
between routers.
Typically to establish and maintain adjacencies
between IS's.
131
Link State PDU (LSP)
132
The ISIS LSP
LSPs have a Fixed Header and TLV coded contents
Typically an LSP header contains
LSP-id Sequence number
Remaining Lifetime Checksum
Type of LSP (level-1, level-2)
Attached bit
Overload bit
The LSP contents are coded as TLV (Type, Length,
Value) and contain;
Area addresses
IS neighbours
Authentication Information
133
Link State Database Content
136
Flooding on a LAN
Each LAN has a Designated Router (DIS)
The DIS has two tasks
Conducting LSP flooding over the LAN
Creating and updating a special LSP
describing the LAN topology (Pseudo-node
LSP)
DIS election is based on priority
Best practice is to select two routers and give
them higher priority
Thus, in case of any failure one provides
deterministic backup for the other
DIS Tie breaker is router with the highest
MAC address 137
Flooding on a LAN Cont...
139
Partial Sequence Number PDUs
Link cost
Default on all interfaces is 10
(Compare with OSPF which sets cost according to link
bandwidth)
Manually configured according to routing strategy
Summary address cost
Equal to the best more specific cost
Backbone has to be contiguous
Ensures continuity through redundancy
Area partitioning
Design in a way that backbone can NOT be partitioned
142
Scaling Issues
Areas vs. single area
Use areas where
sub-optimal routing is not an issue
areas with one single exit point
143
Typical ISP Design
49.0001.1921.6800.1006.
49.0001.1921.6800.1004 00
.00
PoP 3
PoP 2
49.0001.1921.6800.1003
.00
49.0001.1921.6800.1007.
PoP 4
00
49.0001.1921.6800.1002
.00
PoP 1 49.0001.1921.6800.1008
.00
Application Layer
Services Layer
Mobile Services Video Services Cloud Services
IP Infrastructure Layer
Mobile Users
Business
IP Infrastructure Layer
Access Aggregation IP Edge Core
Overview of Routing Protocols
– High-level objective:
• Provide connectivity to the Internet for end
customers and subordinate ISPs
• Optionally, provide transit connectivity between
service providers
(that are Tier 1 ISPs)
Transit connectivity in
Tier 1 ISPs
SP SP
SP Network
Customer Internet
Access
BGP
Exchange internal
SP routing information SP
BGP
IGP
Exchange external
routing information SP Network
BGP
SP = service provider
Routing Requirements
• Routing tasks:
– IGP provides reachability for:
• BGP next-hop addresses (typically directly
connected edge subnets)
• BGP neighbors
– BGP provides reachability to remote
destinations through next-hop addresses:
• External BGP sessions with customers and other
ISPs
• Internal BGP session within an autonomous
system (administrative domain)
Interior Gateway Protocols
– Scalable routing protocols for ISP
backbones:
• Open Shortest Path First (OSPF)
• Intermediate System-to-Intermediate System (IS-IS)
• Enhanced Interior Gateway Routing Protocol (EIGRP)
– OSPF and IS-IS are the recommended
choices:
• Standard protocols
• Support additional features required in MPLS-enabled
networks
Routing Example
• Part 1: BGP
1. R1 receives an external BGP update: 209.165.201.0/24; next hop
is 192.168.200.2.
2. R4 receives an internal BGP update:
• By default, next-hop address does not change.
• Optionally, BGP on R1 can be configured to change the next-
hop address to its own address (typically a loopback address).
3. R4 forwards the update and changes the next-hop address to
192.168.11.1.
209.165.201.0/24 209.165.201.0/24
209.165.201.0/24
NH= 192.168.200.2 NH= 192.168.200.2
NH= 192.168.11.1
EBGP IBGP EBGP
IGP IGP IGP
R4 R3 R2 R1
192.168.11.1 10.1.1.1 192.168.200.2
NH = next hop
Routing Example (Cont.)
• Part 2: IGP
– R1 propagates the BGP next-hop address to all
routers in the domain:
• Edge subnet (192.168.200.0/30) for reachability of
external BGP next-hop addresses
• Loopback address (10.1.1.1/32) for reachability of
internal BGP neighbors
– R2 and R3 forward the information:
• Unchanged (required if the network also uses MPLS-
based services such as MPLS VPNs and Cisco MPLS
TE)
• Optionally, summarization can be used within IGP for
optimization
Routing Example (Cont.)
• Part 3: Routing Table
• End-to-end connectivity is provided
thorough recursive routing table lookups
(optimized by Cisco Express Forwarding):
– BGP for end prefixes
– IGP for BGP next-hop reachability
Overview of OSPF
– Link-state protocol: routers aware of network topology
– Hierarchical: dual-layer architecture:
• Backbone area: Area 0
• Nonbackbone areas interconnected through Area
0
OSPF Domain
Area 0
OSPF Domain
Area 0 ASBR
IS-IS Domain
Level 2 Area
L1L2 L1L2 L1L2 L1L2
L2 L2
L1 L1 L1
L1
IS-IS Characteristics
– Link-state routing protocol (routers aware of network
topology)
– Supports VLSMs
– Uses Dijkstra SPF algorithm, has fast convergence
– Uses hellos to establish adjacencies and LSPs to
exchange link-state information
– Efficient use of bandwidth, memory, and processor
– Supports two routing levels:
• Level 1: Builds common topology of system IDs in local area
and routes within area using lowest cost path.
• Level 2: Exchanges prefix information (area addresses)
between areas. Routes traffic to area using lowest-cost path.
IS-IS Characteristics (Cont.)
– Each router has topology information for its area.
– IS-IS is part of OSI and was originally used with CLNS
only.
– IS-IS still uses CLNS to maintain adjacencies and build
an SPF tree.
– Integrated IS-IS can also carry IP routing information in
its updates.
– Wide-style metric should be used for large high-speed
service provider networks (24-bit link metric, 32-bit
path metric).
– Link cost defaults to 10.
– Each router is identified using a unique NSAP address.
Router and Link Types
• Router types: IS-IS Domain
– Level 1 routers only peer with
other Level 1 routers. Level 2
Area L2 L2
– Level 2 routers only peer with L2
other Level 2 routers. L1 & L2
– Levels 1 and 2 routers can peer L1L2
L2
L1L2
IBGP
EBGP
EBGP EBGP
EBGP
192.168.1.1 192.168.1.2
EBGP Sessions
– EBGP sessions can form any topology, subject to
agreements between autonomous systems.
– Received EBGP updates are sent to all other neighbors.
– By default, EBGP neighbors must be directly connected.
AS 65001 AS 65003
AS 65002 AS 65006
AS 65004 AS 65005
IBGP Sessions
– By default, IBGP sessions require a full mesh between all routers within
an autonomous system:
• By default, IBGP updates received are not forwarded to other IBGP
neighbors.
• Does not scale in large autonomous systems.
– IBGP neighbors can be multiple hops away.
IBGP
EBGP EBGP
209.165.201.0/24
Customer ISP
AS 65001 AS 123
0.0.0.0/0
ADSL
Dual-Attached Customers
– Mitigate link and device failures
– Two design options:
• Primary and backup routing
• Load balancing
209.165.201.0/24
Customer 0.0.0.0/0 SP
AS 65001 AS 123
209.165.201.0/24
0.0.0.0/0
Multihomed Customers
– Mitigate link, device, and path failures
– Should connect to independent service
providers
– Two design options:
• Primary and backup routing
• Load balancing
SP
209.165.201.0/24
AS 123
Customer Full
AS 100 209.165.201.0/24
SP
Full AS 456
Upstream ISP
– Mitigates link, device, and path failures
– Should connect to independent upstream ISPs
– Two design options:
• Primary and backup routing
• Load balancing
– ISP receives the full Internet routing table
– ISP forwards the following:
• Summaries for owned address space
• Prefixes from BGP customers using independent
address space
Customer Summary SP
Customer
Full
AS 123
SP
AS 100 Summary
Customer
Full SP
Customer AS 456
Transit ISP
– Mitigates link, device, and path failures
– Routing policy depends on agreements with
other ISPs
– Tier 1 ISP forwards full Internet routing table
Tier 1 ISP
Full
AS 123
Tier 1 ISP Full Tier 1 ISP Full
AS 789 Full
AS 100 Full
Partial AS 456
Tier 2 ISP
Understanding OSPF Operation
Objectives
– Describe the functions performed by OSPF
– Describe the OSPF Packet Format
– Describe each of the OSPF packet types
– Describe OSPF neighbor adjacencies establishment, LSDB exchange,
and synchronization
– Describe the link-state flooding process
– Describe how to debug OSPF packets
– Describe OSPF network types
– Describe how the designated router (DR) and backup designated router
(BDR) are elected
– Describe OSPF in non-broadcast multiaccess (NBMA) networks
– Describe OSPF in Metro Ethernet and EoMPLS networks
– Describe OSPF in MPLS VPN networks
– Describe implementation steps when enabling OSPF on point-to-point,
point-to-multipoint, non-broadcast multiaccess, and broadcast links
OSPF Functions
• High-level functions of OSPF include the following:
– Discover neighbors and form adjacencies
– Flood link-state database (LSDB) information
– Compute the shortest path
– Install routes in the route-forwarding table
• Additional functions of OSPF include the following:
– Detect changes in the link state
– Propagate changes to maintain link-state database
synchronization
• Several OSPF packet types are involved.
OSPF Packet Format
CE1#debug ip ospf packet
OSPF packet debugging is on Type Packet Description
*Aug 16 09:18:53.974: OSPF: rcv. v:2 t:1 l:48 rid:10.1.1.1
Discovers
aid:0.0.0.11 chk:8224 aut:0 auk: from GigabitEthernet0/0 neighbors and
1 Hello
builds adjacencies
between them
Checks for
database
2 DBD
synchronization
between routers
Requests specific
3 LSR link-state records
from another router
Link IP OSPF Link
Sends specifically
Header Header Packet Trailer 4 LSU requested link-state
records
Acknowledges the
5 LSAck
Protocol ID Number 89 other packet types
OSPF Packet
Authen-
Version Packet Check- Authen-
Type Router ID Area ID tication Data
Number Length sum tication
Type
OSPF Packets
Hello
ospf[1010]: Recv: HLO l:48 rid:10.2.1.1 aut:0 auk: from 192.168.112.20 to 224.0.0.5 on
GigabitEthernet0/0/0/1, vrf default vrfid 0x60000000
OSPF: rcv. v:2 t:1 l:48 rid:10.1.1.1 aid:0.0.0.11 chk:8224 aut:0 auk: from GigabitEthernet0/0
Broadcast:
DR and BDR selection is required
Other routers form adjacencies with the DR and BDR only
Packets to the DR and BDR use 224.0.0.6
Packets from DR to all other routers use 224.0.0.5
Default OSPF hello interval is 10 seconds
Default OSPF dead interval is 40 seconds
Broadcast Point-to-point
Mobile Users
Business
IP Infrastructure Layer
Gi 0/0/0/1
OSPF Area 0
OSPF over NBMA Network Types
compliant modes
Nonbroadcast (NBMA)
RFC 2328-
Point-to-multipoint
Hello timer: Automatic
Partial-mesh/star One subnet Generates /32
30 seconds No DR and BDR
Point-to-multipoint nonbroadcast
Hello timer: Manual
Partial-mesh/star One subnet Generates /32
30 seconds No DR and BDR
Cisco modes
Broadcast
Full-mesh Hello timer: Automatic
One subnet Original subnet
partial-mesh 10 seconds DR and BDR
Point-to-point
Partial-mesh/star, Hello timer: Automatic
Different subnets Original subnet
using subinterface 10 seconds No DR and BDR
OSPF Adjacency over Metro
Ethernet and EoMPLS
– EoMPLS and Metro Ethernet service does not
participate in STP, nor does it learn MAC addresses.
– Customer routers R1 and R2 exchange Ethernet
frames via an interface or VLAN subinterfaces.
– OSPF behaves the same as on Ethernet.
• OSPF network type = multiaccess broadcast network
• DR and BDR are elected
• Routers form full adjacencies with DR and BDR only
Ethernet
interface or
L2 MPLS VPN backbone VLAN
OSPF subinterface
R1 PE1 PE2 R2
OSPF Adjacency Over MPLS VPN
– Customer routers run OSPF and exchange routing
updates with the PE routers.
• PE routers appear as another router in the customer’s
network.
• Service provider routers are hidden from the customer.
• Customer routers are unaware of MPLS VPN.
• Customer and service provider must agree on OSPF
parameters.
– Customer routers-to-PE connection can be of any
type.
• OSPF behaves per the connection type (point-to-point,
broadcast, NBMA) P2P,
Broadcast, or
NBMA
R1 PE1 PE2 R2
OSPF OSPF
Steps to Configure NBMA Mode
interface type number router ospf 1
ip ospf priority 0 Define the OSPF area 11
ip ospf network non-broadcast network type interface type number
! network non-broadcast
router ospf 1 Statically define a neighbor 192.168.101.11 priority 0
neighbor 192.168.101.10 neighbor relationship neighbor 192.168.101.21 priority 0
CE1 OSPF
Lo 0 PE1
10.1.10.1 192.168.101.11
CE2 Lo 0
192.168.101.10 10.1.1.1
Lo 0
192.168.101.21
10.2.10.1
router ospf 1
area 11
interface GigabitEthernet0/0 interface GigabitEthernet0/0/0/0
ip ospf network point-to-point network point-to-point
CE1
OSPF
Lo 0 Gi 0/0 PE1
10.1.10.1 192.168.101.11
Gi 0/0/0/0 Lo 0
192.168.101.10 10.1.1.1
router ospf 1
area 11
interface type number interface type number
ip ospf network point-to-multipoint network point-to-multipoint
CE1
OSPF
Lo 0 PE1
10.1.10.1 192.168.101.11
CE2 Lo 0
Lo 0 192.168.101.10
10.1.1.1
10.2.10.1 192.168.101.21
CE1
OSPF
Lo 0 PE1
10.1.10.1 192.168.101.11
CE2 Lo 0
Lo 0 192.168.101.10 10.1.1.1
10.2.10.1 192.168.101.21
RP/0/RSP0/CPU0:PE1#show ospf neighbor
Neighbors for OSPF 1
Neighbor ID Pri State Dead Time Address Interface
10.1.10.1 0 FULL/ - 00:01:49 192.168.101.11 type number
Neighbor is up for 00:06:18
10.2.10.1 1 FULL/ - 00:01:41 192.168.101.21 type number
Neighbor is up for 00:06:32
Total neighbor count: 2
IPv6 Support for OSPF Modes
CE1(config-if)#ipv6 ospf network ?
broadcast Specify OSPF broadcast multi-access network
non-broadcast Specify OSPF NBMA network
point-to-multipoint Specify OSPF point-to-multipoint network
point-to-point Specify OSPF point-to-point network
CE1
OSPFv3
PE1
CE2
RP/0/RSP0/CPU0:PE1(config)#router ospfv3 1
RP/0/RSP0/CPU0:PE1(config-ospfv3)#area 11
RP/0/RSP0/CPU0:PE1(config-ospfv3-ar)#interface type number
RP/0/RSP0/CPU0:PE1(config-ospfv3-ar-if)#network ?
broadcast Specify OSPFv3 broadcast multi-access network
non-broadcast Specify OSPFv3 NBMA network
point-to-multipoint Specify OSPFv3 point-to-multipoint network
point-to-point Specify OSPFv3 point-to-point network
Implementing OSPF Special
Area Types
Area 1 Area 2
ABR ABR
Localizes the impact of a
topology change
Interarea Route Summarization
– A summary route is generated if at least one subnet
within the area falls in the summary address range.
– A summarized route metric will be equal to the lowest
cost of all subnets within the summary address range.
– The ABR creates a route to Null0 to avoid loops, only for
the summary routes of connected areas.
Area 0
O IA 172.16.8.0 255.255.248.0
router ospf 1
O IA 172.16.16.0 255.255.252.0 area 1
range 172.16.8.0/21
range 172.16.16.0/22
O 172.16.8.0 255.255.255.0
O 172.16.9.0 255.255.255.0
O 172.16.10.0 255.255.255.0
O 172.16.11.0 255.255.255.0
Area 1 Area 2
O 172.16.12.0 255.255.255.0 ABR ABR
O 172.16.13.0 255.255.255.0
O 172.16.14.0 255.255.255.0
O 172.16.15.0 255.255.255.0
O 172.16.16.0 255.255.255.0
O 172.16.17.0 255.255.255.0
O 172.16.18.0 255.255.255.0
O 172.16.19.0 255.255.255.0
External Route Summarization
– Summarization can be used for external routes:
• On an AS boundary for type 5 LSAs (redistributed
routes)
• On an NSSA ABR for type 5 LSAs translated from
type 7 LSAs
– A summary route to Null0 will be created for each
summary range.
D 10.1.1.0 255.255.255.0 External Domain router ospf 1
D 10.1.2.0 255.255.255.0 summary-prefix 10.1.0.0/16
D 10.1.3.0 255.255.255.0
D 10.1.4.0 255.255.255.0
D 10.1.5.0 255.255.255.0
D 10.1.6.0 255.255.255.0
OSPF Domain
ASBR
O E2 10.1.0.0 255.255.0.0
Default Routes in OSPF
– A default route is injected into OSPF as an external type 5 LSA.
– Default route distribution is not on by default.
A smaller Service Provider A Service Provider B
routing table
OSPF Domain
Fewer resources used
in the router ASBR ASBR
External Routing
Domain
Normal area: Contains Stub area: Contains internal Totally stubby area: Not-so-stubby area: Totally NSSA:
all of the internal and and area routing information, Contains area routing Contains area and Summaries
external routing but not external routing information only; Cisco external routing suppressed
information information proprietary information
Configuring OSPF Area Types
router ospf 1 router ospf 1 router ospf 1 router ospf 1 router ospf 1
area 0 area 2 area 3 area 4 area 5
area 1 stub stub no-summary nssa nssa no-summary
OSPF Domain
Area 0
router ospf 1
area 2
stub no-summary
default-cost 10 Backbone
router ospf 1
area 2 Totally
stub
Stubby Area
OSPF NSSA and Totally NSSA Rules
– NSSA breaks stub area
rules.
– ASBR is allowed inside. OSPF Domain
Area 0
– LSA type 7 sent by ASBR.
– ABR converts LSA type 7
to LSA type 5. NSSA Totally
Area NSSA
– ABR sends the default Area
routes.
OSPF NSSA and Totally NSSA
Interarea Route
– NSSA: (LSA3) Passed
Backbone
• Behaves like stub Intra-area Route NSSA
(LSA1) ABR
area
• May introduce Stub Area
external
routes locally in the External Route
(LSA5) Blocked
area
NSSA NSSA External default route generated instead
ASBR Route (LSA7)
– Totally NSSA (no- NSSA External Route
Changes to LSA5
summary):
Interarea Route
• Behaves like totally (LSA3) Blocked
NSSA Backbone
stubby area Intra-area Route ABR
• May introduce (LSA1)
Stub Area
router ospf 1
area 2
nssa
router ospf 1
area 2
nssa no-summary
default-cost 10 Backbone
router ospf 1
area 2 Totally
nssa
Stubby Area
Introducing IS-IS Routing
Mobile Users
Business
IP Infrastructure Layer
IS-IS Domain
Level 2 Area
L1L2 L1L2 L1L2 L1L2
L2 L2
L1 L1 L1
L1
Integrated IS-IS Design Principles
– IP and CLNP addresses – Summarization:
must be planned. • Limits update traffic
• Minimizes router memory and CPU usage
– The two-level hierarchy
is used for scalability: – Default narrow metrics are limited to a
6-bit interface and 10-bit path metric.
• Limits LSP flooding
• Provides opportunity
– Wide metrics allow a 24-bit interface
for summarization and 32-bit path metric.
– The default metric is 10 on all
interfaces.
IS-IS Domain
Level 2 Area
L1L2 L1L2 L1L2 L1L2
L2 L2
Summarize Summarize Summarize Summarize
ABR Backbone L2
Area
49.0002
Area 2 L1L2
Internal Totally Stubby L1
Comparison of OSPF and Integrated IS-IS
• OSPF characteristics: • Integrated IS-IS characteristics:
– Area border inside routers (ABRs) – Area border on links
– Each link in only one area – Each router in only one area
– More complex to extend backbone – Simple extension of backbone
– Many small LSAs sent – Fewer LSPs sent
– Runs on top of the data link layer
– Runs on top of IP
– Requires IP and CLNS addresses
– Requires IP addresses
– Default metric is 10 for all interfaces
– Default metric is scaled by interface
– Easy to support new protocols with new TLV
bandwidth
tuples
– Not easy to extend – Equipment, personnel, and information not as
– Equipment, personnel, and information easily available
more readily available
Area 1
49.0001.0000.0C11.1111.00
49.0004.0000.0C99.9999.00
Level 1, Level 2, and Level 1-2 Routers
– Level 1 (similar to OSPF internal non-
backbone routers):
• Intra-area routing enables routers to
communicate. IS-IS Domain
49.00AA.0000.0C22.2222.00 49.00AA.0000.0C44.4444.00
R3-L1L2 R1-L1L2
49.00AA.0000.0C33.3333.00 49.00AA.0000.0C11.1111.00
49.00CC.0000.0C88.8888.00
49.00BB.0000.0C55.5555 .00
R5-L1L2 R8-L1L2
49.00C C.0000.0C99.9999.00
R6-L1 R7-L1 R9-L1
Area 49.00BB Area 49.00CC
49.00BB.0000.0C66.6666.00 49.00BB.0000.0C77.7777.00
Asymmetric IS-IS Routing
L1 Area 2 L1 Y
10 L1L2 15
10 10 10 L2
10 Area 3
10 L1L2
L1L2 L1
15 15
10
10
10
10 10
10 10
X L1L2 L1L2 L1L2
Area 5
L1 Area 1 L1 Area 4
Legend:
The path that X uses to reach Y
The path that Y uses to reach X
Symmetric IS-IS Routing
– Route leaking helps reduce suboptimal routing by allowing Level 2
information to be leaked into Level 1.
– An up/down bit in the TLV field is used.Legend:
The path that X uses to reach Y
The path that Y uses to reach X
L1 Area 2 L1 Y
10 L1L2 15
10 10 10 L2
10 10 Area 3
L1 L1L2
L1L2
15 15 10
10
10
10 10
10 10
X L1L2 L1L2 L1L2
Area 5
L1 Area 1 Level 2 route leaks into Level 1 LSDB. L1 Area 4
OSI and IS-IS PDUs
– A unit of data is a PDU:
• Network PDU = Datagram, packet
• Data-link PDU = Frame
– IS-IS PDUs are encapsulated directly into a data-link
frame.
– There is no CLNP or IP header in a PDU.
– IS-IS defines four types of PDUs:
• Hello PDU:
– End system hello (ESH)
– Intermediate system hello (ISH)
– IS-IS Hello (IIH)
• LSP PDU
• Partial sequence number PDU (PSNP)
• Complete sequence number PDU (CSNP)
Link-State Packet
PDU type, length, LSP ID,
– A router describes itself with an LSP. sequence number, remaining
– LSPs are sequenced to prevent duplication: lifetime
• LSPs assist with synchronization.
• Sequence numbers begin at 1.
• Sequence numbers are increased to indicate the LSP Header
newest LSP. TLV 1
– LSPs in LSDB have a remaining lifetime: TLV 2
• Allows synchronization And so on
• Decreasing timer IS neighbors
ES neighbors
– Each set of information includes a TLV. Authentication information
TLV Type Code Length Field Value Variable Length
Area address 1 Area ID length + 1 Areas
Intermediate system
2 Neighbor count + 1 IS neighbors
neighbors
Connected IP prefixes—4-byte metric,
IP internal reachability 128 Number of connected prefixes
4-byte prefix, 4-byte mask
IP external reachability Number of redistributed Redistributed IP prefixes—4-byte
130
prefixes metric, 4-byte prefix, 4-byte mask
Integrated IS-IS for IPv6
– Two TLVs are added to introduce IPv6 routing:
• IPv6 reachability TLV (0xEC or 236)
• IPv6 interface address TLV (0xE8 or 232)
– There is a new protocol identifier:
• IPv6 NLPID (0x8E or 142) advertised by IPv6-enabled
routers
– A multitopology extension is used:
• Single SPF instance for IPv4 and IPv6
• Separate SPF instances, one for IPv4 and one for IPv6
IS-IS Network Representation
– Generally, physical links can be placed in
these two groups:
• Broadcast: Multiaccess subnetworks that support
the addressing of a group of attached systems
• Point-to-point: Permanent or dynamically
established links
– Only two link-state representations are
available in IS-IS:
• Broadcast for LANs and multipoint WANs
• Point-to-point for all other topologies
– IS-IS has no concept of NBMA networks.
Broadcast Mode
– It is used for LAN and multipoint WAN interfaces.
– Adjacency is recognized through hellos; there are separate adjacencies
for Level 1 and Level 2.
– Designated IS (DIS) creates a pseudonode and represents a LAN.
– DIS for Level 1 and Level 2 may be different.
– DIS is elected, based on these criteria: The pseudonode is
• Only routers with adjacencies are eligible. logically connected to
all other nodes.
• The highest interface has priority.
• The highest SNPA (MAC) breaks ties. IS IS
– There is no backup DIS. DIS
L1 LSDB: Area 2
L1L2 L1L2
Separate LSDBs are L1 LSDB: Area 2 L1 LSDB: Area 2
maintained for Level 1 and Level 2 LSDB
Level 2 LSPs. Level 2 LSDB
Level 2 backbone
L1 LSDB: Area 1
Level 2 LSPs are flooded
Level 2 LSDB throughout the Level 2
backbone.
L1L2
L1 LSDB: Area 1
Level 1 LSPs are flooded
L1 Area 1 within an area.
LSDB Synchronization
– SNP packets are used to ensure synchronization and reliability:
• Contents are LSP descriptions
– PSNP is used:
• For acknowledgment of LSPs
• To request missing pieces of LSDB
– CSNP is used:
• Periodically by DIS on the LAN to ensure LSDB accuracy
• On point-to-point link when the link comes up
CSNP sent
periodically
R2-DIS 1. CSNP: LSP 76, 77, 78
R1
3. LSP 77
3. PSNP: ACK for new LSP
2. PSNP: I missed LSP 77
4. PSNP: ACK for LSP 77 1. Link went down
X
2. New LSP
R2 R3
LAN R1 Point-to-point
IS-IS Adjacencies
IS-IS adjacencies are established, based on the
area address and the router type.
L1 L1L2 L1L2
LAN
Level 1
Level 2
L1 L1L2
Area 1 Area 2
L1 No adj. L1 L2
L1 L1 L2 L1 L1 L1L2 L2 L1L2
L1 L1 L2 L2
Area 1 IPv6 IPv6 Area 3
IPv4 L1 IPv4
IPv4 IPv4
IPv6 IPv6
Area 1 L2
IPv6 Area 1 Area 2
IPv6 IPv6