Sirak Kaewjamnong Computer Network Tech and Security

Slides:



Advertisements
Similar presentations
Cisco S3 C5 Routing Protocols. Network Design Characteristics Reliable – provides mechanisms for error detection and correction Connectivity – incorporate.
Advertisements

Computer Networks with Internet Technology William Stallings
Courtesy: Nick McKeown, Stanford
Computer Networks with Internet Technology William Stallings
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.1 Routing Working at a Small-to-Medium Business or ISP – Chapter 6.
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization –All routers are identical –Network is flat. Not true in Practice Hierarchical.
CCNA 2 v3.1 Module 6.
Routing and Routing Protocols
Routing.
Institute of Technology Sligo - Dept of Computing Chapter 11 Layer 3 Protocols Paul Flynn.
1 Dynamic Routing Protocols I RIP Relates to Lab 4. The first module on dynamic routing protocols. This module provides an overview of routing, introduces.
1 ECE453 – Introduction to Computer Networks Lecture 10 – Network Layer (Routing II)
1 Semester 2 Module 6 Routing and Routing Protocols YuDa college of business James Chen
ROUTING ON THE INTERNET COSC Aug-15. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
Fundamentals of Networking Discovery 2, Chapter 6 Routing.
Switching and Routing Technique
1 Chapter 27 Internetwork Routing (Static and automatic routing; route propagation; BGP, RIP, OSPF; multicast routing)
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
University of the Western Cape Chapter 11: Routing Aleksandar Radovanovic.
Routing/Routed Protocols. Remember: A Routed Protocol – defines logical addressing. Most notable example on the test – IP A Routing Protocol – fills the.
Routing and Routing Protocols Routing Protocols Overview.
1 Introducing Routing 1. Dynamic routing - information is learned from other routers, and routing protocols adjust routes automatically. 2. Static routing.
M.Menelaou CCNA2 ROUTING. M.Menelaou ROUTING Routing is the process that a router uses to forward packets toward the destination network. A router makes.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 6 Routing and Routing Protocols.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.1 Module 6 Routing and Routing Protocols.
Introduction to Dynamic Routing Protocol
Code : STM#520-1 Samsung Electronics Co., Ltd. OfficeServ7400 Router Operation Distribution EnglishED01.
1 Chapter 27 Internetwork Routing (Static and automatic routing; route propagation; BGP, RIP, OSPF; multicast routing)
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
1. 2 Anatomy of an IP Packet IP packets consist of the data from upper layers plus an IP header. The IP header consists of the following:
Chapter 15 Interior Routing Protocols 1 Chapter 15 Interior Routing Protocols.
CIS Routing in IP. Introduction Routers forward IP datagrams from one router to another on path from source to destination Router must have idea.
Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.
Static versus Dynamic Routes Static Route Uses a protocol route that a network administrators enters into the router Static Route Uses a protocol route.
1 Internet Routing. 2 Terminology Forwarding –Refers to datagram transfer –Performed by host or router –Uses routing table Routing –Refers to propagation.
Page 110/27/2015 A router ‘knows’ only of networks attached to it directly – unless you configure a static route or use routing protocols Routing protocols.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_a Routing Protocols: RIP, OSPF, BGP Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -0/35- OfficeServ 7x00 Enterprise IP Solutions Quick Install Guide.
CCNA 2 Week 6 Routing Protocols. Copyright © 2005 University of Bolton Topics Static Routing Dynamic Routing Routing Protocols Overview.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts.
Routing and Routing Protocols
Cisco Systems Networking Academy S2 C 11 Routing Basics.
Routing Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific Institute of Information.
ICS 156: Networking Lab Magda El Zarki Professor, ICS UC, Irvine.
IP Routing Principles. Network-Layer Protocol Operations Each router provides network layer (routing) services X Y A B C Application Presentation Session.
Chapter 5 IP Routing Routing Protocol vs. Routed Protocol.
1 Version 3.1 Module 6 Routed & Routing Protocols.
Teknik Routing Pertemuan 10 Matakuliah: H0524/Jaringan Komputer Tahun: 2009.
1 7-Jan-16 S Ward Abingdon and Witney College Dynamic Routing CCNA Exploration Semester 2 Chapter 3.
Routing protocols. 1.Introduction A routing protocol is the communication used between routers. A routing protocol allows routers to share information.
ITI-510 Computer Networks ITI 510 – Computer Networks Meeting 3 Rutgers University Internet Institute Instructor: Chris Uriarte.
© 2002, Cisco Systems, Inc. All rights reserved..
Routing Protocols Brandon Wagner.
Computer Networks22-1 Network Layer Delivery, Forwarding, and Routing.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
1 Chapter 4: Internetworking (IP Routing) Dr. Rocky K. C. Chang 16 March 2004.
1 Chapter 14-16a Internet Routing Review. Chapter 14-16: Internet Routing Review 2 Introduction Motivation: Router performance is critical to overall.
Chapter 25 Internet Routing. Static Routing manually configured routes that do not change Used by hosts whose routing table contains one static route.
Cisco 2 - Routers Perrine modified by Brierley Page 13/21/2016 Chapter 4 Module 6 Routing & Routing Protocols.
ROUTING ON THE INTERNET COSC Jun-16. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.1 Routing Working at a Small-to-Medium Business or ISP – Chapter 6.
Routing and Routing Protocols CCNA 2 v3 – Module 6.
+ Dynamic Routing Protocols 2 nd semester
Working at a Small-to-Medium Business or ISP – Chapter 6
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
CCNA 2 v3.1 Module 6 Routing and Routing Protocols
Routing.
Dynamic Routing and OSPF
Working at a Small-to-Medium Business or ISP – Chapter 6
Routing.
Presentation transcript:

Sirak Kaewjamnong Computer Network Tech and Security Routing Concept Sirak Kaewjamnong Computer Network Tech and Security

Agenda Basic concepts Routing components Classes of routing protocol Internet routing protocol

What’s Routing Routing - path finding from one end to the other Routing occurs at layer 3 Bridging occurs at layer 2 Physical link Data link layer Network layer Transport layer Session layer Presentation layer Application layer Physical link Data link layer Network layer Transport layer Session layer Presentation layer Application layer Physical link Data link layer Network layer Network B Network A

IP Routing IP performs: search for a matching host address search for a matching network address search for a default entry Routing done by IP router, when it searches the routing table and decide which interface to end a packet out. incoming which interface ?

Routing Tables Routing is carried out in a router by consulting routing table. No unique format for routing tables, typically table contains: address of a destination IP address of next hop router network interface to be used subnet mask for the this interface distance to the destination

Routing Component Three important routing elements : algorithm database protocol Algorithm : can be differentiate based on several key characteristics Database : table in routers or routing table Protocol: the way information for routing to be gathered and distributed

Routing Algorithm Design goals Optimality - compute the best route Simplicity/low overhead - efficient with a minimum software and utilization overhead Robustness/stability- perform correctly in the face of unusual circumstances Rapid convergence- responds quickly when the network changes Flexibility- accurate adapt to a variety of network

Routing Protocols Routing protocol : protocol to exchange of information between routers about the current state of the network Routing protocol jobs create routing table entries keep routing table up-to-date compute the best choice for the next hop router

Routing Metrics How do we decide that one route is better than another? Solution : using a metric as a measurement to compare routes Metrics may be distance, throughput, delay, error rate, and cost. Today, IP supports Delay, Throughput, Reliability and Cost (DTRC)

Hop Count A hop is defined as a passage through one router 2 hops

Routing Algorithm Types Static V.S. Dynamic Source routing V.S. Hop-by-hop Centralize V.S. Distributed Distance vector V.S. Link state

Routing Algorithm: Static Route Manually configuration routing table Can’t react dynamically to network change such as router’s crash Work well with small network or simple topology Unix hosts use command route to add an entry point to point connection route to this way only, no need for update

Routing Algorithm: Static Technique Flooding Every incoming packet is sent out every outgoing Retransmit on all outgoing at each node Simple technique, require no network information Generate vast numbers of duplicate packet flooding incoming

Routing Algorithm: Dynamic Route Network protocol adjusts automatically for topology or traffic changes Unix hosts run routing daemon routed or gated

Routing Algorithm: Dynamic Route operation Routing protocol maintains and distributes routing information Routing Table Routing Table Routing Protocol Routing Protocol Update Routing Information

Routing Algorithm: Source Routing Source will determine the entire route Routers only act as store-forward devices Hop-by-hop Routers determine the path based on theirs own calculation

Routing Algorithm: Distance Vector Distance means routing metric Vector means destination Flood routing table only to its neighbors RIP is an example Also known as Bellmann-Ford algorithm or Ford-Fulkerson algorithm

Distance Vector Algorithm Using hop count as a metric Each router periodically sends a copy of its routing table to neighbors send <network X, hopcount Y> R1 R2 R3 W X Z Y routing table W 0 X 0 Y 1 Z 2 routing table W 1 X 0 Y 0 Z 1 routing table W 2 X 1 Y 0 Z 0

Distance Vector Routing Update Step by step from router to router Slow convergence recompute R1’s routing table recompute R2’s routing table  recompute R3’s routing table  topology change Œ R1 R2 R3 R2 sends out the updated table  R3 sends out the updated table Ž

Distance Vector: Broadcast (I) The first round I, 1 hop J, 1 hop R1 J, 1 hop K, 1 hop M, 1 hop N, 1 hop J I I, 1 hop K, 1 hop L, 1 hop R3 K R2 N, 1 hop O, 1 hop N L M R5 L, 1 hop M, 1 hop O 1 hop O R4

Distance Vector: Broadcast (II) The second round I, 1 hop J, 1 hop K, 2 hops L, 2 hops M, 2 hops N, 2 hops J, 1 hop K, 1 hop M, 1 hop N, 1 hop I, 2 hops L, 2 hops O, 2 hops R1 N, 1 hop O, 1 hop J, 2 hops K, 2 hops M, 1 hop L, 2 hops J I R3 K R2 N I, 1 hop K, 1 hop L, 1 hop J, 2 hops M, 2 hops N, 2 hops O, 2 hops L M R5 O R4 L, 1 hop M, 1 hop O, 1 hop I, 2 hops K, 2 hops J, 2 hops N, 2 hops

Distance Vector: Broadcast (III) The third round I, 1 hop J, 1 hop K, 2 hops L, 2 hops M, 2 hops N, 2 hops O, 3 hops J, 1 hop K, 1 hop M, 1 hop N, 1 hop I, 2 hops L, 2 hops O, 2 hops R1 N, 1 hop O, 1 hop J, 2 hops K, 2 hops M, 1 hop L, 2 hops I, 3 hops J I R3 K R2 N I, 1 hop K, 1 hop L, 1 hop J, 2 hops M, 2 hops N, 2 hops O, 2 hops L M R5 O R4 L, 1 hop M, 1 hop O, 1 hop I, 2 hops K, 2 hops J, 2 hops N, 2 hops

Distance Vector: Crashed Recovery New complete route of R1 R1 J I R3 R2 K R1 routing table hop via 1 N/A 2 R2 2 R3 3 R5 L N net I J K L M N O M R5 O net I J K L M N O hop via 1 N/A 2 R2 3 R2 4 R2 R4

Count to Infinity R2 does not hear any thing from R3 R1 says : don’t worry, I can reach R3 in 2 hops, R2 update hop count to 3 R1 sees R2’s update, then update itself to 4 and so on…… R3 crashed R1 I R2 J R3 2 1 initial 2 3 1st round 4 3 2nd round 4 5 3rd round hop count to R3

Split Horizon Solve by set distance “16” as infinity No destination can be more than 15 hops away from any other Distance to X is not reported on the line that packet for X are sent Actually, it reports with infinity R1 I R2 J R3 R3 crashed to R3 to R3

Dijkstra’s Shortest Path First Algorithm Routers send out update messages whenever the state of a link changes. Hence the name: “Link State” algorithm. Each router calculates lowest cost path to all others, starting from itself. At each step of the algorithm, router adds the next shortest (i.e. lowest-cost) path to the tree. Finds spanning tree routed on source router.

Open Shortest Path First (OSPF) RIP limited in large internets OSPF preferred interior routing protocol for TCP/IP based internets Link state routing used

Routing Algorithm: Link State Flood routing information to all nodes Each router finds who is up and flood this information to the entire routers Use the link state to build a shortest path map to everybody OSPF is an example Also known as Shortest Path First (SPF) algorithm

Flooding Packet sent by source router to every neighbor Incoming packet resent to all outgoing links except source link Duplicate packets already transmitted are discarded Prevent incessant retransmission All possible routes tried so packet will get through if route exists Highly robust At least one packet follows minimum delay route Reach all routers quickly All nodes connected to source are visited All routers get information to build routing table High traffic load

Link State Overview Using cost as a metric Exchange its connection and cost to its neighbors Each router compute the set of optimum path to all destination (Shortest Path First) W X Y Z link state W 0 X 0 link state X 0 Y 0 link state Y 0 Z 0

Link State Concept Each router initially begins with directly connected network Determine full knowledge of distant routers and theirs connection R1 Œ exchange link state packets R2  R4 build topological database Routing Table R3 Ž compute SPF update routing table 

Link State Routing Update Send information to other routers Fast convergence R1 R4 topology change R2 R3

OSPF Overview Router maintains descriptions of state of local links Transmits updated state information to all routers it knows about Router receiving update must acknowledge Lots of traffic generated Each router maintains database Directed graph

Link Costs Cost of each hop in each direction is called routing metric OSPF provides flexible metric scheme based on type of service (TOS) Normal (TOS) 0 Minimize monetary cost (TOS 2) Maximize reliability (TOS 4) Maximize throughput (TOS 8) Minimize delay (TOS 16)

Areas Make large internets more manageable Configure as backbone and multiple areas Area – Collection of contiguous networks and hosts plus routers connected to any included network Backbone – contiguous collection of networks not contained in any area, their attached routers and routers belonging to multiple areas

Operation of Areas Each are runs a separate copy of the link state algorithm Topological database and graph of just that area Link state information broadcast to other routers in area Reduces traffic Intra-area routing relies solely on local link state information

Comparison Distance Vector Link State pass a copy of pass links state update whole routing table add metric from calculate the shortest path router to router to other routers frequent periodic update: event updated: fast slow convergence convergence

Internet Routing Architecture Autonomous System IGP EGP/BGP IGP EGP/BGP IGP Autonomous System BGP4 BGP4 Autonomous System IGP IGP BGP4 Autonomous System EGP/BGP EGP/BGP EGP/BGP EGP/BGP IGP IGP IGP IGP Autonomous System

Routing in the Internet The Internet uses hierarchical routing The Internet is split into Autonomous Systems (AS’s) Within an AS, the administrator chooses an Interior Gateway Protocol (IGP) Examples of IGPs: RIP (rfc 1058), OSPF (rfc 1247). Between AS’s, the Internet uses an Exterior Gateway Protocol AS’s today use the Border Gateway Protocol, BGP-4 (rfc 1771)

Autonomous System AS is a collectionof LANs and WANs and the interconnectting routers which under the control of one management authority The same AS runs the same Interior Gateway Protocol Why setting up AS? - establish a direct link to each other rather than route through the core Internet How to select AS? - register and get the AS number from IAB

Gateway Protocol Interior gateway protocol Exterior gateway protocol exchange routing information between routers within a single AS RIP, RIP II, OSPF Exterior gateway protocol collect network-reachablity information for the AS EGP, BGP

Interior Routing Protocols RIP Uses distributed Bellman-Ford algorithm. Updates sent every 30 seconds. No authentication. Originally in BSD UNIX. OSPF Link-state updates sent (using flooding) as and when required. Every router runs Dijkstra’s algorithm. Authenticated updates. Autonomous system may be partitioned into “areas”.

Exterior Routing Protocols Problems: Topology: The Internet is a complex mesh of different AS’s with very little structure. Autonomy of AS’s: Each AS defines link costs in different ways, so not possible to find lowest cost paths. Trust: Some AS’s can’t trust others to advertise good routes (e.g. two competing backbone providers), or to protect the privacy of their traffic (e.g. two warring nations). Policies: Different AS’s have different objectives (e.g. route over fewest hops; use one provider rather than another).

Border Gateway Protocol (BGP-4) BGP is not a link-state or distance-vector routing protocol. BGP advertises complete paths (a list of AS’s). Example of path advertisement: “The network 171.64/16 can be reached via the path {AS1, AS5, AS13}”. Paths with loops are detected locally and ignored. Local policies pick the preferred path among options. When a link/router fails, the path is “withdrawn”.

References http://www.cisco.com/en/US/products/hw/routers/ps274/index.html http://www.cisco.com/en/US/products/hw/routers/ps274/products_data_sheet09186a008010fba1.html Computer Networks with Internet Technology By William Stallings Chapter 11 Interior Routing Protocols