Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ

Similar documents
Chapter 5 (Week 9) The Network Layer ANDREW S. TANENBAUM COMPUTER NETWORKS FOURTH EDITION PP BLM431 Computer Networks Dr.

Chapter 5. The Network Layer. Network Layer Design Isues. Store-and-Forward Packet Switching 10/7/2010. Implementation of Connectionless Service

Chapter 5. The Network Layer

Chapter 5. The Network Layer. CEN Chapter 5 1

Chapter 5. The Network Layer FATİH ŞAHİN Network Layer Design Isues. Store-and-Forward Packet Switching

Computer Networks Prof. Ashok K. Agrawala

5.2 Routing Algorithms

Chapter 6. The Network Layer

Routing Algorithms. CS158a Chris Pollett Apr 4, 2007.

Outline EEC-682/782 Computer Networks I. Midterm 1 Statistics. Midterm 1 Statistics. High 99, Low 34, Average 66

Computer Networks. Routing

Jaringan Komputer. Network Layer. Network Layer. Network Layer. Network Layer Design Issues. Store-and-Forward Packet Switching

Chapter 22 Network Layer: Delivery, Forwarding, and Routing 22.1

Routing Algorithms McGraw-Hill The McGraw-Hill Companies, Inc., 2001

Telecommunication Protocols Laboratory Course. Lecture 3

ECE 333: Introduction to Communication Networks Fall 2001

Routing in packet-switching networks

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ

Routing. Advanced Computer Networks: Routing 1

C13b: Routing Problem and Algorithms

Routing. 4. Mar INF-3190: Switching and Routing

ECE 435 Network Engineering Lecture 11

CHAPTER 9: PACKET SWITCHING N/W & CONGESTION CONTROL

Chapter 6. The Network Layer

We will discuss about three different static routing algorithms 1. Shortest Path Routing 2. Flooding 3. Flow Based Routing

ECE 435 Network Engineering Lecture 11

II. Principles of Computer Communications Network and Transport Layer

EEC-484/584 Computer Networks

Routing, Routing Algorithms & Protocols

Computer Networks. Routing Algorithms

Layer 3: Network Layer. 9. Mar INF-3190: Switching and Routing

UNIT 2 ROUTING ALGORITHMS

Network Layer. For this purpose the network layer should:

Ad Hoc Networks: Issues and Routing

COMPUTER NETWORKS UNIT III Y3/S5

ETSF05/ETSF10 Internet Protocols Routing on the Internet

William Stallings Data and Computer Communications 7 th Edition. Chapter 12 Routing

ICMP, ARP, RARP, IGMP

CSE 461 Routing. Routing. Focus: Distance-vector and link-state Shortest path routing Key properties of schemes

EEC-684/584 Computer Networks

RAJIV GANDHI COLLEGE OF ENGINEERING AND TECHNOLOGY

EEC-484/584 Computer Networks

Unit 3: Dynamic Routing

This Lecture. BUS Computer Facilities Network Management. Switching Network. Simple Switching Network

William Stallings Data and Computer Communications. Chapter 10 Packet Switching

BLM6196 COMPUTER NETWORKS AND COMMUNICATION PROTOCOLS

Lecture on Computer Networks

CSCE 463/612 Networks and Distributed Processing Spring 2018

CSEP 561 Routing. David Wetherall

cs/ee 143 Communication Networks

Course 6. Internetworking Routing 1/33

To contain/reduce broadcast traffic, we need to reduce the size of the network (i.e., LAN).

EITF25 Internet Routing. Jens A Andersson

ETSF05/ETSF10 Internet Protocols. Routing on the Internet

Lecture 9. Network Layer (cont d) Network Layer 1-1

Lecture 4. The Network Layer (cont d)

Lecture 4 Wide Area Networks - Routing

Point-to-Point Network Switching. Computer Networks Term B10

Lecture (08, 09) Routing in Switched Networks

Review. Error Detection: CRC Multiple access protocols. LAN addresses and ARP Ethernet. Slotted ALOHA CSMA/CD

Chapter 12. Routing and Routing Protocols 12-1

Internetworking Part 1

Introduction to Internetworking

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

ICS 351: Today's plan. distance-vector routing game link-state routing OSPF

ECE 4450:427/527 - Computer Networks Spring 2017

Fairness Example: high priority for nearby stations Optimality Efficiency overhead

Internetworking Terms. Internet Structure. Internet Structure. Chapter 15&16 Internetworking. Internetwork Structure & Terms

UNIT-III NETWORK LAYER: NETWORK LAYER DESIGN ISSUES:

Outline. Addressing on the network layer ICMP IPv6 Addressing on the link layer Virtual circuits

Chapter 16 Networking

Internetworking. different kinds of network technologies that can be interconnected by routers and other networking devices to create an internetwork

The Network Layer. Network Layer Design Objectives

Distributed Routing. EECS 228 Abhay Parekh

CEN445 Network Protocols and Algorithms. Chapter 2. Routing Algorithms. Dr. Ridha Ouni

HW3 and Quiz. P14, P24, P26, P27, P28, P31, P37, P43, P46, P55, due at 3:00pm with both soft and hard copies, 11/11/2013 (Monday) TCP), 20 mins

Chapter 4 Network Layer. Network Layer 4-1

Hierarchical Routing. Our routing study thus far - idealization all routers identical network flat not true in practice

ITEC310 Computer Networks II

CSCD 330 Network Programming Spring 2018

CSCD 330 Network Programming Spring 2017

Position of IP and other network-layer protocols in TCP/IP protocol suite

IP Routing. Bharat S. Chaudhari International Institute of Information Technology Pune, India

Routing. Directly Connected IP Networks. Data link layer routing. ifconfig command

Routing Protocols and the IP Layer

CS 5114 Network Programming Languages Control Plane. Nate Foster Cornell University Spring 2013

Growth. Individual departments in a university buy LANs for their own machines and eventually want to interconnect with other campus LANs.

Chapter 5. The Network Layer

Network Layer (Routing)

IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia

Alternate Routing Diagram

Chapter 4: Network Layer. Lecture 12 Internet Routing Protocols. Chapter goals: understand principles behind network layer services:

Finish Network Layer Start Transport Layer. CS158a Chris Pollett Apr 25, 2007.

Computer Science 425 Distributed Systems CS 425 / ECE 428. Fall 2013

Lecture 8 Network Layer: Logical addressing

List of groups known at each router. Router gets those using IGMP. And where they are in use Where members are located. Enhancement to OSPF

Communication Networks - 3 general areas: data communications, networking, protocols

Network Layer Chapter 5

Lecture 7. Network Layer. Network Layer 1-1

Open Systems Interconnection (OSI) Routing Protocol

Transcription:

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ

Lecture 5: Network Layer Reference: Chapter 5 - Computer Networks, Andrew S. Tanenbaum, 4th Edition, Prentice Hall, 2003.

Contents The network layer design issues Routing algorithms Congestion control algorithms Quality of services Internetworking The network layer in the Internet 3

Network Layer Design Issues Store-and-Forward Packet Switching Services Provided to the Transport Layer Implementation of Connectionless Service Implementation of Connection-Oriented Service Comparison of Virtual-Circuit and Datagram Subnets 4

Store-and-Forward Packet Switching Router The environment of the network layer protocols. 5

Services Provided to the Transport Layer Network layer provides services to the transport layer Goals of network layer services Independent of router technology The transport layer should be shielded from the number, type and topology of routers Network addresses available to the transport layer should be uniformed and even across LANs and WANs 6

Two Classes of Services in the Network Layer Connection less service Packets are called datagrams The subnet is called a datagram subnet Packets may arrive at the destination by multiple paths Connection oriented service The connection is called Virtual Circuit The subnet is called a virtual circuit subnet All packets arrive at the destination by the same route 7

Implementation of Connectionless Service Routing within a diagram subnet. 8

Implementation of Connection- Oriented Service Routing within a virtual-circuit subnet. 9

Comparison of Virtual-Circuit and Datagram Subnets 10

Routing Algorithms To route packets from a source to a destination Distinction between routing and forwarding Routing: make decision on which route to use Forwarding: use routing tables to send packets Two class of algorithms Nonadaptive (static) Adaptive 11

Fairness vs Optimality Conflict between fairness and optimality. 12

The Optimality Principle If router J is on the optimal path from router I to router K, then the optimal path from J to K is also on the same route. (a) A subnet. (b) A sink tree for router B. 13

Common Routing Algorithms The Optimality Principle Shortest Path Routing Flooding Distance Vector Routing Hierarchical Routing Broadcast Routing Multicast Routing Routing for Mobile Hosts Routing in Ad Hoc Networks Link State Routing 14

Shortest Path Routing Use Dijkstra algorithm 15

Flooding Incoming packets are sent to every outgoing lines Generate vast numbers of duplicates Alternatives for improvement Tracking packets sent Use TTL (time-to-live) Selective flooding Not practical in most applications 16

Distance Vector Routing (1) Also known as Bellman-Ford and Ford-Fulkerson algorithm Originally was used in ARPANET Used in Internet under RIP Each router having a table of the best known distance to each destination and the preferred outgoing line to get there Periodically, a router exchanges its table with its neigbors Then, all routers recalculate their tables 17

Distance Vector Routing (2) (a) A subnet. (b) Input from A, I, H, K, and the new routing table for J. 18

Distance Vector Routing (3) The count-to-infinity problem a) initially, all routers are down b) Initially, all routers are up, then A is down 19

Link State Routing Each router must do the following: Discover its neighbors, learn their network address. Measure the delay or cost to each of its neighbors. Construct a packet telling all it has just learned. Send this packet to all other routers. Compute the shortest path to every other router. 20

Learning about the Neighbors (a) Nine routers and a LAN. (b) A graph model of (a). 21

Measuring Line Cost A subnet in which the East and West parts are connected by two lines. 22

Building Link State Packets (a) A subnet. (b) The link state packets for this subnet. 23

Distributing the Link State Packets The packet buffer for router B in the previous slide 24

Hierarchical Routing 25

Broadcast Routing Reverse path forwarding. (a) A subnet. (b) a Sink tree. (c) The tree built by reverse path forwarding. 26

Multicast Routing (a) A network. (b) A spanning tree for the leftmost router. (c) A multicast tree for group 1. (d) A multicast tree for group 2. 27

Routing for Mobile Hosts A WAN to which LANs, MANs, and wireless cells are attached. 28

Routing for Mobile Hosts (2) Packet routing for mobile users. 29

Routing in Ad Hoc Networks Possibilities when the routers are mobile: Military vehicles on battlefield. No infrastructure. A fleet of ships at sea. All moving all the time Emergency works at earthquake. The infrastructure destroyed. A gathering of people with notebook computers. In an area lacking 802.11. 30

Route Discovery (a) Range of A's broadcast. (b) After B and D have received A's broadcast. (c) After C, F, and G have received A's broadcast. (d) After E, H, and I have received A's broadcast. Shaded nodes are new recipients. Arrows show possible reverse routes. 31

Route Maintenance (a) D's routing table before G goes down. (b) The graph after G has gone down. 32