Presentation is loading. Please wait.

Presentation is loading. Please wait.

CSE677: Lecture “Router Architecture and Configuration Basics” Prasad Calyam, Senior Systems Developer/Engineer OARnet, A Division of Ohio Super Computer.

Similar presentations


Presentation on theme: "CSE677: Lecture “Router Architecture and Configuration Basics” Prasad Calyam, Senior Systems Developer/Engineer OARnet, A Division of Ohio Super Computer."— Presentation transcript:

1 CSE677: Lecture “Router Architecture and Configuration Basics” Prasad Calyam, Senior Systems Developer/Engineer OARnet, A Division of Ohio Super Computer Center pcalyam@osc.edu 21 st May 2007

2 Topics of Discussion r What kinds of Routers are on the Internet? r Introduction to Router Architecture m Switching Fabrics m Input and Output Port Queuing m Look-up Requirements and Techniques r How to access Router’s features? m Introduction to Cisco IOS m Configuring OSPF and BGP on a Cisco router r Conclusion

3 What kinds of Routers are on the Internet? r Router is a physical device in a network that directs packets to their intended destinations r Routers are used at Three levels in the Internet m Access Level Ex. Cisco 700 to 2500 Series m Enterprise/Distribution Level Ex. Cisco 2600 to 3600 Series m Core/Backbone Level Ex. Cisco 12000 GSR Series

4 Types and Sizes of Routers Home Networking or Access Router 10s of $$ Routers for Small/Medium sized Enterprise Networks 100s-1000s of $$ Router for Large Backbone Networks > 10,000s of $$

5 IP Network View: ISPs (E.g. OARnet - Ohio, MERIT - Michigan,…) (E.g. Time Warner, SBC Yahoo, WOW,…) (E.g. Internet2 - USA, DANTE - Europe, CANARIE - Canada,…)

6 Point of Presence (PoP) r PoP (Point of Presence) is a term used to reference a physical location where network equipment such as routers, switches, etc. are deployed. r It is also where telecommunication lines meet m An ISP hands-off traffic to another ISP

7 In-class Problem r “What is the approximate diameter of the Internet?” m Diameter definition: Maximum number of routers between two extreme hosts on the Internet. m You can discuss with your neighbors m HINT: Imagine how IP handles packets that may indefinitely circulate on the Internet and ultimately cause flooding.

8 Router Architecture Overiew r Router’s Primary Functions m Orchestrate routing algorithms/protocol (RIP, OSPF, BGP) m Switching datagrams from incoming to outgoing link at line speed Router Interface

9 Router Internal Functions

10 Input and Output Port Queuing r Input Queue m Line speed > switching fabric speed r Output Queue m Line speed < switching fabric speed r Data link processing involves the Frame Check Sequence calculation to confirm whether a frame is corrupted - before passing it to a switch fabric r Queueing (delay) and loss occurs due to input or output port buffer overflow! r Scheduling discipline performs contention management by choosing among queued datagrams for transmission; FIFO, QoS – TOS based, …

11 Switching Fabrics r Switching fabric transfers datagrams from input port memory to appropriate output port memory (avoids contention) r Switching via Shared memory m Speed is limited by memory access speed (i.e., Read/Write speed) r Switching via Shared Bus  Single frame at a time – Serial; Buffering allows Parallel frame handling m Speed is limited by bus capacitance m 1 Gbps bus, Cisco 1900: sufficient speed for access and enterprise routers (not regional or backbone) r Switching via Space division (crossbar) m Each input interface has access to the matrix that directly connects to the multiple output interfaces m Speed is limited by the scheduler

12 Look-up Requirements r Line speed switching versus forwarding decision making r IP lookup algorithm decides which output interface needs to be selected for packet forwarding r Requirements m Speed: Number of memory accesses m Storage requirements: Amount of memory m Scalability With length of prefix –IPv4 unicast (32b), IPv6 unicast (128b) With size of routing table Number and Types of QoS options m Flexibility in implementation (allows customization for different protocols)

13 In-class Problem r “If you are a router architect, how would you design a router to handle routing decisions?” m Consider the different lookup requirements m You can discuss with your neighbors m HINT: Recall the data search and retrieval tricks used in your database course

14 Look-up Techniques Networking Protocol Lookup Mechanism Techniques Used MPLS, EthernetExact match search – Direct lookup – Not suitable for large tables, ex. > 10 12 – Hashing using Hash Functions – Binary/Multi-way Search Trie/Tree – Associative lookup using Content Addressable Memory (CAM) – Compares all entries in parallel against incoming data IPv4, IPv6Longest-prefix match search - Radix trie and variants - Compressed trie - Binary search on prefix intervals

15 Content Addressable Memory r CAM is a special type of computer memory used in certain very high speed searching applications m It utilizes a hardware-based search-table concept to provide a higher performance alternative to software- based searching algorithms m CAM can be compared to the inverse of the RAM. When read, RAM produces the data for a given address. Conversely, CAM produces an address for a given data word (if data word is found in memory) m CAM is much faster than RAM – entire memory search in one clock cycle m CAM is very expensive compared to RAM – because additional comparison circuitry is required for every bit to match stored bits with input bits

16 How to access Router’s features? r Cisco Internetwork Operating System (IOS) m It’s the kernel of all Cisco routers and switches m It controls hardware to allow for configuring, monitoring and troubleshooting various router functions. Ex.: Setup of various network protocols Add security to control access and stop unauthorized network use r Memory in a Cisco Router m Cisco IOS resides in the Flash Memory m Startup configurations reside in NVRAM m All other temporary tables/buffers are created in RAM r Cisco IOS had 3 command modes of operation  Router> “ User Mode” to generally view statistics and stepping-stone to logging into privileged mode  Router# “ Privileged Mode” to view the router’s configuration, restart system, logon to config mode, …  Router(config)# “ Configuration Mode” to change the router’s configuration, configure interfaces, …  Router# ? Gives a list of all features available

17 Router# ?

18 Configuring OSPF on a router r OSPF m Link-state routing protocol that utilizes Dijkstra’s Shortest Path First Algorithm which allows for faster network convergence m Configuration Steps Configure IP addresses on Router Interfaces – R1 and R2 Create loopback (logical/virtual interface) on R1 and R2 Create OSPF on R1 with Area0 Create OSPF on R2 with Area0 Establish OSPF on R1 and R2 “Ping” both logical interfaces!

19 #sh ip route ospf

20 Configuring BGP on a router r BGP m Internet routing protocol that allows sharing of routing information between different autonomous systems m Configuration Steps for eBGP Configure IP addresses on Router Interfaces – R1 and R2 Create loopback (logical/virtual interface) on R1 and R2 Create BGP on R1 by creating AS 100 (Ex. OSU) domain Create BGP on R2 by creating AS 200 (Ex. UC) domain Establish BGP between R1 and R2 “Ping” both logical interfaces!

21 #sh ip route bgp

22 Questions?


Download ppt "CSE677: Lecture “Router Architecture and Configuration Basics” Prasad Calyam, Senior Systems Developer/Engineer OARnet, A Division of Ohio Super Computer."

Similar presentations


Ads by Google