Communication Networks NETW 501

Slides:



Advertisements
Similar presentations
4/12/2015© 2009 Raymond P. Jefferis IIILect Internet Protocol - Continued.
Advertisements

CSE 561 – Bridging and Routing David Wetherall Spring 2000.
Chapter 4 Distributed Bellman-Ford Routing
Courtesy: Nick McKeown, Stanford
1 Computer Networks Internetworking Devices. 2 Repeaters Hubs Bridges –Learning algorithms –Problem of closed loops Switches Routers.
Routing So how does the network layer do its business?
Chapter 4 Distance Vector Problems, and Link-State Routing Professor Rick Han University of Colorado at Boulder
Summary The Problem The Dijkstra’s Shortest Path Algorithm
1 Distance Vector Routing Protocols Dr. Rocky K. C. Chang 14 November 2006.
© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Introducing Distance Vector Routing.
DataLink Layer1 Ethernet Technologies: 10Base2 10: 10Mbps; 2: 200 meters (actual is 185m) max distance between any two nodes without repeaters thin coaxial.
Review: routing algorithms. –Choose the appropriate paths. –Routing algorithms Flooding Shortest path routing (example). –Dijkstra algorithm. –Bellman-Ford.
1 Note 8: Packet Switching Networks Routing in Packet Networks.
Packet-Switching Networks Routing in Packet Networks.
Lecture 17 Ethernet r Widely deployed because: m First LAN technology m Simpler and less expensive than token LANs and ATM m Kept up with the speed race:
5: DataLink Layer5a-1 Chapter 5: The Data Link Layer Last time: r multiple access protocols and LANs r link layer addressing, ARP r specific link layer.
Network Layer Routing in Packet Networks Shortest Path Routing Topic 6: Routing (Network Layer) Reference A. Leon-Garcia and I. Widjaja, Communication.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Chapter 5 Network Layer.
Review: –Ethernet What is the MAC protocol in Ethernet? –CSMA/CD –Binary exponential backoff Is there any relationship between the minimum frame size and.
1 Week 5 Lecture 2 IP Layer. 2 Network layer functions transport packet from sending to receiving hosts transport packet from sending to receiving hosts.
OSI Model. Switches point to point bridges two types store & forward = entire frame received the decision made, and can handle frames with errors cut-through.
Distance Vector Local Signpost Direction Distance Routing Table For each destination list: Next Node Distance Table Synthesis Neighbors exchange table.
1 Computer Communication & Networks Lecture 21 Network Layer: Delivery, Forwarding, Routing Waleed.
Ch 22. Routing Direct and Indirect Delivery.
5: DataLink Layer 5a-1 Bridges and spanning tree protocol Reference: Mainly Peterson-Davie.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
4: DataLink Layer1 Hubs r Physical Layer devices: essentially repeaters operating at bit levels: repeat received bits on one interface to all other interfaces.
Network-Layer Routing Routing tasks are methods of finding the paths for packet from their sources to their destinations. Routers are responsible mainly.
Network Layer (2). Review Physical layer: move bits between physically connected stations Data link layer: move frames between physically connected stations.
CS 6401 Intra-domain Routing Outline Introduction to Routing Distance Vector Algorithm.
4. Interconnecting Networks: Routers. © Tallal Elshabrawy 2 Bridges Vs Routers BRIDGES DO WELL IN SMALL (FEW HUNDRED HOSTS) WHILE ROUTERS USED IN LARGE.
Chapter 7 Packet-Switching Networks Shortest Path Routing.
IP tutorial - #2 Routing KAIST Dept. of CS NC Lab.
Network Layer4-1 Chapter 4: Network Layer 4. 1 Introduction 4.2 Virtual circuit and datagram networks 4.3 What’s inside a router 4.4 IP: Internet Protocol.
Network Layer Routing Networks: Routing.
The network layer: routing
CS 5565 Network Architecture and Protocols
Centralized vs Distributed Routing
Advanced Computer Networks
Chapter 4 Data Link Layer Switching
Chapter 3 Part 1 Switching and Bridging
EEC-484/584 Computer Networks
THE NETWORK LAYER.
CS 457 – Lecture 12 Routing Spring 2012.
Network Layer Introduction Datagram networks IP: Internet Protocol
Intra-Domain Routing Jacob Strauss September 14, 2006.
Routing: Distance Vector Algorithm
LAN switching and Bridges
Routing in Packet Networks Shortest Path Routing
EEC-484/584 Computer Networks
Road Map I. Introduction II. IP Protocols III. Transport Layer
Communication Networks NETW 501
Communication Networks NETW 501
Communication Networks NETW 501
Intradomain Routing Outline Introduction to Routing
Communication Networks NETW 501
Chapter 7 Packet-Switching Networks
RFC 1058 & RFC 2453 Routing Information Protocol
LAN switching and Bridges
Communication Networks NETW 501
ECE453 – Introduction to Computer Networks
EEC-484/584 Computer Networks
Network Layer Routing Networks: Routing.
Communication Networks
Network Layer (contd.) Routing
LAN switching and Bridges
EE 122: Intra-domain routing: Distance Vector
Network Layer Routing.
Chapter 4 Network Layer A note on the use of these ppt slides:
Presentation transcript:

Communication Networks NETW 501 Lecture 11 Interconnecting Networks: Routers Course Instructor: Dr.-Ing. Maggie Mashaly maggie.ezzat@guc.edu.eg C3.220

Bridges vs. Routers Both store and forward devices Routers: Network layer devices Bridges: Datalink layer devices Routers maintain routing tables, implement routing algorithms Bridges maintain forwarding tables, implement filtering, learning and spanning tree algorithms BRIDGES do well in SMALL Networks (few hundred hosts) while ROUTERS used in LARGE Networks (thousands of hosts)

Bridges Characteristics Advantages: Bridge operation is simpler requiring less processing bandwidth Limitations: Homogeneous link layer (e.g., all Ethernet) is desirable for transparent bridging Topologies are restricted with bridges: a spanning tree must be built to avoid cycles As a result of the spanning tree algorithm the root bridge may represent a bottleneck Bridges do not offer protection from broadcast storms (endless broadcasting by a host will be forwarded by a bridge)

Routers Characteristics Goal: Scalable interconnection of a large numbers of networks of different types Advantages: Arbitrary topologies can be supported, cycling is limited by TTL (time-to-live counters) and good routing protocols. Provides firewall protection against broadcast storms Disadvantages: Require IP address configuration (not plug and play) Require higher processing bandwidth

Router Functions Forwarding Routing Queuing Buffer Management Move packet from input link to the appropriate output link Purely local computation Must go by very fast (executed for ever packet) Routing Keep track of network topology so you know where to forward packets Queuing Buffer (i.e., store) packets if router can’t forward it right now Buffer Management Drop packet if you run out of buffer space

Routing Algorithm Classification Global or decentralized information? Global all routers have complete topology, link cost info “link state” algorithms Decentralized router knows physically-connected neighbors, link costs to neighbors iterative process of computation, exchange of info with neighbors “distance vector” algorithms Static or dynamic? Static routes change slowly over time Dynamic routes change more quickly periodic update in response to link cost changes

Routing Approaches Static Distance vector Link state Type in the right answers and hope they are always true Distance vector Tell your neighbors what you know about everyone Link state Tell everyone what you know about your neighbors

Bellman-Ford Distance Vector Routing Algorithms Assumption Each router knows own address & cost to reach neighbors Objective Calculate routing table containing next-hop information for every destination at each router Distributed Bellman-Ford algorithm Each router maintains a vector of costs to all destinations Initialize neighbors with known cost, others with infinity Periodically send copy of distance vector to neighbors On reception of a vector, If neighbor’s path to a destination is shorter, switch to it

Note: (a,b)=(next hop, total cost to destination) Bellman-Ford Algorithm: Shortest Path to Node 6 Note: (a,b)=(next hop, total cost to destination) Step (Iteration) Node 1 Node 2 Node 3 Node 4 Node 5 Initial (-1,∞) 1 (6,1) (6,2) 2 (3,3) (5,6) 3 (4,4) 4

Bellman-Ford Algorithm Iteration Node 1 Node 2 Node 3 Node 4 Node 5 Initial (-1, ) 1 2 3 Table entry @ node 1 for dest SJ Table entry @ node 3 for dest SJ 3 1 5 4 6 2 San Jose

Bellman-Ford Algorithm Iteration Node 1 Node 2 Node 3 Node 4 Node 5 Initial (-1, ) 1 (6,1) (6,2) 2 3 D3=D6+1 n3=6 D6=0 1 3 1 5 4 6 2 San Jose 2 D6=0 D5=D6+2 n5=6

Bellman-Ford Algorithm Iteration Node 1 Node 2 Node 3 Node 4 Node 5 Initial (-1, ) 1 (6, 1) (6,2) 2 (3,3) (5,6) 3 3 1 3 1 5 4 6 2 3 San Jose 6 2

Bellman-Ford Algorithm Iteration Node 1 Node 2 Node 3 Node 4 Node 5 Initial (-1, ) 1 (6, 1) (6,2) 2 (3,3) (5,6) 3 (4,4) 1 3 3 1 5 4 6 2 3 San Jose 6 4 2

Network disconnected; Loop created between nodes 3 and 4 Bellman-Ford Algorithm Iteration Node 1 Node 2 Node 3 Node 4 Node 5 Initial (3,3) (4,4) (6, 1) (6,2) 1 (4, 5) 2 3 1 5 3 3 1 5 4 6 2 3 San Jose 4 2 Network disconnected; Loop created between nodes 3 and 4

Node 4 could have chosen 2 as next node because of tie Bellman-Ford Algorithm Iteration Node 1 Node 2 Node 3 Node 4 Node 5 Initial (3,3) (4,4) (6, 1) (6,2) 1 (4, 5) 2 (3,7) (5,5) 3 5 7 3 3 1 5 4 6 2 5 3 San Jose 2 4 Node 4 could have chosen 2 as next node because of tie

Bellman-Ford Algorithm Iteration Node 1 Node 2 Node 3 Node 4 Node 5 Initial (3,3) (4,4) (6, 1) (6,2) 1 (4, 5) 2 (3,7) (5,5) 3 (4,6) (4, 7) 5 7 7 3 1 5 4 6 2 5 San Jose 2 4 6 Node 2 could have chosen 5 as next node because of tie

Bellman-Ford Algorithm Iteration Node 1 Node 2 Node 3 Node 4 Node 5 1 (3,3) (4,4) (4, 5) (6,2) 2 (3,7) (2,5) 3 (4,6) (4, 7) (5,5) 4 (2,9) 7 7 9 3 5 4 6 2 1 5 San Jose 6 2 Node 1 could have chose 3 as next node because of tie

Counting to Infinity Problem 3 1 2 4 X (a) (b) Nodes believe best path is through each other (Destination is node 4) Update Node 1 Node 2 Node 3 Before break (2,3) (3,2) (4, 1) After break 1 (3,4) 2 (2,5) 3 (3,6) 4 (2,7) 5 (3,8) …

Problem: Bad News Travel Slowly Solutions: Split Horizon Do not report route to a destination to the neighbor from which route was learned Poisoned Reverse Report route to a destination to the neighbor from which route was learned, but with infinite distance Breaks erroneous direct loops immediately Does not work on some indirect loops

Nodes believe best path is through each other Split Horizon with Poison Reverse 3 1 2 4 X (a) (b) Nodes believe best path is through each other Update Node 1 Node 2 Node 3 Before break (2, 3) (3, 2) (4, 1) After break (-1, ) Node 2 advertizes its route to 4 to node 3 as having distance infinity; node 3 finds there is no route to 4 1 Node 1 advertizes its route to 4 to node 2 as having distance infinity; node 2 finds there is no route to 4 2 Node 1 finds there is no route to 4

Dijkstra Algorithm 3 1 5 4 6 2 Iteration N Node 2 Node 3 Node 4 Node 5 Initial {1} 3 2 5 ∞ 1 {1,3} 4 {1,2,3} 7 {1,2,3,6} {1,2,3,4,6} {1,2,3,4,5,6}

References NETW 501 Lectures slides by Assoc. Prof. Tallal El-Shabrawy “Communication Networks 2nd Edition”, A. Leon-Garcia and I. Widjaja, McGraw Hill, 2013 “Computer Networks 4th Edition”, A. S. Tanenbaum, Pearson International