|
IP RoutingHere are my notes on how IP packets get moved around the Internet. Take the Brainbench certification test on IP Routing & Switching, Cisco Network Design, and Cisco Network Support
| Distance-vector RIP, IGRP Link-state Hybrid EIGRP OSPF LSAs IGPs OSPF areas EGPs |
|
Cisco Router Operation
show startup-config Cisco developed its IOS (Internet Operating System) to control their routers. New verions of IOS can be remotely installed (using a priviledge Cisco command) by copying an IOS image file from a TFTP server into the router's Flash memory:
IOS images from Cisco require registration of a valid service contract number on the Cisco site. The setup-config file can also be invidually downloaded from a TFTP server:
This prompt means that the copy was a success:
When a router reboots, its startup-config in Flash memory is loaded into the running-config memory area within NVRAM.
show running-config
To show the version of IOS currently running on the router:
Changes to a router's configuration updates the running configuration. To restore interactive changes from the startup file:
To make interactive changes permanent, copy the currently running configuration to Flash RAM:
To remotely backup configuration files to a TFTP server:
copy running-config tftp To enable and disable IP routing on the router, use this Global configuration command:
| $122 Local Area Networks: A Client/Server Approach, 2nd Edition by James E. Goldman, Phillip T. Rawles (NY:John Wiley, Feb. 2000) 980 pages This page includes information from Cisco's Internetworking Technology Handbook Cisco's illustrated explanation of BGP, IGRP, and EIGRP.
For the time and date of a Cisco router:
To set the time and the date on a Cisco router (using a Privileged command):
To change the name of a router (using a Global configuration command):
SolarWinds offers a shareware alternative to the Cisco TFTP server.
|
Monitoring and Debugging
For CPU utilization experienced by a router:
To view the routing updates coming in and going out of the router, use this privileged command for protocols ip, ipx, or appletalk:
|
|
Routing Protocol Options Overview
This section describes the various protocols used to connect machines on a network. Each gateway server has a Routing Table which tells the gateway the route to specific destinations. Traffic is directed through the internet by routers, which uses Routing Table to direct traffic to its ports connected to other routers. Routing tables can be static or dynamic: Static routing is based on routing tables manually updated by network administrators. To add, change, or remove static routes on a Microsoft NT network use this command:
Routers that do dynamic routing send out special packets to exchange with other routers on their network. Dynamic routers send their routing table to other routers and use route discovery protocols (routing protocols) to request updates from other routers. Dynamic routers use algorithms (a set of rules) to choose the best path to route a packet toward its destination. The two primary types of dynamic route discovery protocols are: distance-vector and link-state. If a router cannot find a packet's destination network in its table, as a “last resort” it will use a default route to forward the traffic through a single exit point. Distance-vector Routing ProtocolsDistance-vector protocols -- such as (the most popular) Routing Information Protocol (RIP) for TCP/IP and XNS for IPX -- broadcast to all neighboring routers (typically every 60 to 90 seconds over UDP port 520) routing-update messages containing all or a portion of their routing tables. This relatively simple algorithm favors the routing path with the shortest number of hops. The hop count is incremented by 1 for each router that must be traversed, with a 15-hop count limit. The number of hops to the destination is considered the router's metric or cost to get to the destination. Routing protocols using distance-vector are simple to configure and deploy. They are typically used on networks with fewer than 50 routers because they create traffic on the network and their announcements are slow to converge (the time it takes for a network to stabilize after a change in one of the networks). For example, if a router in a 10-hop network goes down, it could take five minutes (30 seconds times 10 hops) for the most distant router to learn of it. All the while, that distant router is trying to send packets.
|
show CDP Neighbor
Before the above, (in config-if Configuration mode) enable an interface to a connected neighbor on the route
For the path (hops) to the ip (or AppleTalk) address of another router or node on the internetwork:
To show the RIP or IGRP routing table for a router:
To display the IP multicast routing table:
To list routing protocol updates (such as RIP broadcasts) sent and received by a router:
To view IP related configuration settings for a router interface:
To view all parameters related to specific interfaces on a Cisco router:
To view all parameters related to all interfaces on a Cisco router:
For the routing protocols configured on the router:
For information relating to the IP routing protocol:
For route tables maintained by RIP or IGRP:
To turn on RIP or IGRP routing:
DebuggingTo view update messages sent and received by a router using RIP, use this Privileged command:debug ip rip
To view statistics related to IGRP update messages on the router, use this Privileged command:
To turn off debugging, use this Privileged mode command:
|
Link-State Routing ProtocolsLink state Routing -- such as Open Shortest Path First (OSPF) for TCP/IP and NetWare Link Services Protocol (NLSP) for IPX -- send (typically every five minutes) Link State Packets (LSPs) that contain information about the networks to which the router is connected. So it is more efficient than distance vector routing.Link-state routing communicate changes in network topology incrementally.
|
CIDR (Classless Inter-Domain Routing), documented Sept. 1993 in RFC 1517-1520, provide for arbitrarily sized networks rather than the classful ABC scheme of IPv4.
|
show controller
|
Hyrbrid Routing Protocol Enhanced IGRPEIGRP (Enhanced Interior Gateway Routing Protocol) developed by Cisco, integrates the capabilities of link-state protocols into distance vector protocols. It is more stable and efficient than IGRP.To allow Enhanced IGRP to be added gradually into an existing IGRP network, an automatic-redistribution mechanism imports IGRP routes into EIGRP, and vice versa. EIGRP adds the Diffusing update algorithm (DUAL) developed at SRI International by Dr. J.J. Garcia-Luna-Aceves. DUAL enables a router running EIGRP to find alternate paths without waiting on updates from other routers. EIGRP uses DUAL to determine whether a path advertised by a neighbor is looped or loop-free. It can do this because DUAL has a finite-state machine -- it tracks all routes advertised by all neighbors. DUAL uses distance information to select routes for insertion in a routing table based on feasible successors -- a least-cost path to a destination that is guaranteed not to be part of a routing loop. DUAL tests for feasible successors whenever a neighbor's metric changes or when a topology changes. EIGRP has fast convergence time because DUAL avoids the time to perform diffusing computations routes to determine a new successor. EIGRP recomputes when no feasible successors exist but neighbors still advertise the destination. EIGRP can quickly adapt to alternate routes from its store of all its neighbors' routing tables. If EIGRP can't find an appropriate route, it queries its neighbors to discover an alternate route. EIGRP consumes less bandwidth than IGRP because it sends to other routers partial updates only when the metric for a route changes. Propagation of partial updates is automatically bounded so that only those routers that need the information are updated. EIGRP supports multiple network layer protocols because it has a module architecture that redistributes routes learned from many predecessor legacy routing protocols: EIGRP avoids sending packets to down routers because it uses a neighbor discovery/recovery mechanism to dynamically learn about other routers on its directly attached network. EIGRP discovers when neighbors become unreachable or inoperative with low achieved because it periodically sends small hello packets so that neighboring routers know it's functioning. This is made more efficient because Enhanced IGRP sends a single multicast hello packet to inform the receivers that the packet need not be acknowledged. This takes advantage of a provision of the Reliable Transport Protocol (RTP) (responsible for guaranteed, ordered delivery of packets) for sending multicast packets quickly when unacknowledged packets are pending, which helps ensure that convergence time remains low in the presence of varying speed links. RTP is only used for update (used to convey reachability of destinations so neighbor can build up their topology table), and query multicasts and reply unicasts sent to tell the originator not to recompute a destination when no feasible successors are found. Enhanced IGRP detects out-of-order packets because it uses sequence numbers to match acknowledgments with data packets, examing the last sequence number received from a neighbor against a transmission list is used to queue packets for possible retransmission on a per-neighbor basis. EIGRP can estimate an optimal retransmission interval because it keeps round-trip timers in the neighbor-table. Enhanced IGRP also supports variable-length subnet mask (VLSM), so it can operate on native Ipv6 networks -- configured to summarize on any bit boundary at any interfaceo.
|
Autonomous System Partioning
Each AS has an identifying number assigned by the IANA. The public pool enforced by ARIN.NET is between 1 and 64512. The range 64512 through 65535 is reserved for private use within an each AS. A single-homed (aka stub) AS has only one exit point to the internetwork backbone.
Routing within an AS is handled using Interior Gateway Protocols (IGPs).
Border routers (those that run EBGP with other ASs) running OSPF learn about exterior routes through one of the exterior gateway protocols (EGPs): This Partitioned architecture -- operating on a hierarchy of nodes -- reduces the number of entries in network routers' routing tables. Routers within an AS need to be concerned with routers within its AS and edge routers only know about other edge routers. If every router had to know about the existence of every other router, routing tables could quickly become unmanageable.
|
As Areas and OSPFAn AS can be divided into a number of areas (or domains) that group contiguous networks and attached hosts.OSPF is an intra-AS (interior gateway) routing protocol, although it is capable of receiving routes from and sending routes to other ASs. Routers using OSPF accumulate link-state information into a topological database. All routers within the same area have identical topological databases. Routers with multiple interfaces participate in multiple areas. Traffic between areas are sent through Area Border Routers (ABRs) on the OSPF backbone, which is a separate area. ABRs maintain a separate topological database for each area. The topology within one area are invisible to routers in other areas. The backbone topology is invisible to all intra-area routers. ABRs can use virtual links to non-contiguous routers.
|
Exterior Gateway Protocols (EGPs)Exterior Gateway Protocols (EGPs) are used primarily on the Internet and in larger campus networks which span several autonomous systems (ASs).
|
Windows Router Configuration
Windows 2000Unlike previous versions, Windows 2000 supports both RIP and OSPF dynamic routing protocols.On Windows 2000, start the RIP service from the Management Console for RRAS. OSPF runs natively on Windows 2000. To eliminate routing loops that occur between two adjacent routers, specify split-horizon so that routes are not sent back to the same router which initially advertised the route. Specify the poison-reverse methods of updates to temporarily inactivating routes that have increased in hop count by more than 1. An increasing hop count for the same route indicates a routing loop, and temporarily removing or inactivating the route will stop the looping. If the route continues to loop, then the route is declared invalid and is not used. This eliminates routing loops that can occur with too many routers. Windows NT4OSPF can be run on NT 4 after downloading and running an NT4 RRAS update from Microsoft.
|
Flood Insurance
Network administrators can craft their own detection rules.
|
Access Lists
A sample list command:
To create an IP Access list:
access-list [list #] deny [ip address] [wildcard mask] Wildcard masks are not subnet masks. Wild card masks are only used in Access lists and their purpose is to let the router know which bits it needs to check in the source IP address of packets to determine whether they should be filtered by the Access list.
To group an access list:
appletalk access-group [list number] [out or in] ipx access-group [list number] [out or in]
|
CIDR (Classless Inter-Domain Routing), documented Sept. 1993 in RFC 1517-1520, provide for arbitrarily sized networks rather than the classful ABC scheme of IPv4.
|
Related:
Datacom Equipment
TCP Addressing
| Your first name: Your family name: Your location (city, country): Your Email address: |
Top of Page
Thank you! |