Академический Документы
Профессиональный Документы
Культура Документы
Routing Overview
Routing is the decision of which path to take A routing algorithm decides which output link an incoming packet should be transmitted on
A routing table contains the mappings from the networks and host addresses to output ports on the router The routing algorithm builds this table
IP Routing
To be able to route a packet ,a router must know at minimum the following
Destination address
Neighbor routers from which it can learn about remote networks
Dynamic Routing
With out some sort of routing every incoming packet is sent out on every outgoing line except the one it arrived on. In effect : No routing table, no lookup! Problem: Vast number of duplicated packets
Another Cisco proprietary routing protocol that has a feature of both distance Vector and Link State; hence the name Hybrid routing Protocol. Has also a maximum hop count of 255 (default is 100) . Uses bandwidth and delay to determine the best route to an Internetwork
Has a link state characteristics synchronizes routing table between neighbors at startup. Famous for being a quiet protocol. Sends specific update only when topology changes (like (OSPF) and it also supports multiple protocols (unlike OSPF which is a routing protocol that can only route the most common routed protocol -IP). 8
Supports VLSM/CIDR
Router Functions
RouterX# show ip route D 192.168.1.0/24 via 10.1.1.1
Path Determination
Routing Metrics
Passes periodic copies of routing table to neighbor routers and accumulates distance vectors
After initial flood, passes small event-triggered link-state updates to all other routers
Configuring an Interface
RouterX(config)#interface type number RouterX(config-if)#
type includes serial, ethernet, token ring, fddi, hssi, loopback, dialer, null, async, atm, bri, tunnel, and so on
number is used to identify individual interfaces
RouterX(config)#interface type slot/port RouterX(config-if)#
Configuring IP Addresses
Unique addressing allows communication between end stations Path choice is based on destination address
Static Route
Uses a route that a network administrator enters into the router manually
Dynamic Route
Uses a route that a network routing protocol adjusts automatically for topology or traffic changes
Routing protocols are used between routers to determine paths to remote networks and maintain those networks in the routing tables. After the path is determined, a router can route a routed protocol to the learned networks.
An autonomous system is a collection of networks within a common administrative domain. Interior gateway protocols operate within an autonomous system. Exterior gateway protocols connect different autonomous systems.
Routers choose the routing source with the best administrative distance:
OSPF has an administrative distance of 110. EIGRP has an administrative distance of 90.
Routers pass periodic copies of their routing table to neighboring routers and accumulate distance vectors.
Each node maintains the distance from itself to each possible destination network.
Counting to Infinity
Router C concludes that the best path to network 10.4.0.0 is through router B.
Router A updates its table to reflect the new but erroneous hop count.
Routing Loops
It is never useful to send information about a route back in the direction from which the original information came.
Routers advertise the distance of routes that have gone down to infinity.
The router keeps an entry for the possibly down state in the network, allowing time for other routers to recompute for this topology change.
Triggered Updates
The router sends updates when a change in its routing table occurs.
After an initial flood of LSAs, link-state routers pass small, event-triggered link-state updates to all other routers.
Requires very strict network design Configuration can be complex when tuning various parameters and when design is complex
Static Routes
Configure unidirectional static routes to and from a stub network to allow communications to occur.
or
Router(config)#ip route 172.16.1.0 255.255.255.0 s0/0/0
This is a unidirectional route. You must have a route configured in the opposite direction.
Default Routes
This route allows the stub network to reach all known networks beyond Router A.
RouterX# show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static route Gateway of last resort is 0.0.0.0 to network 0.0.0.0 10.0.0.0/8 is subnetted, 1 subnets 10.1.1.0 is directly connected, Serial0/0/0 0.0.0.0/0 is directly connected, Serial0
C S*