Chapter 5 The Network Layer.

Slides:



Advertisements
Similar presentations
The Network Layer Chapter 5. Network Layer Design Issues Store-and-Forward Packet Switching Services Provided to the Transport Layer Implementation of.
Advertisements

Network Layer – Routing 2 Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
COS 461 Fall 1997 Routing COS 461 Fall 1997 Typical Structure.
1 CONGESTION CONTROL. 2 Congestion Control When one part of the subnet (e.g. one or more routers in an area) becomes overloaded, congestion results. Because.
TELE202 Lecture 8 Congestion control 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »X.25 »Source: chapter 10 ¥This Lecture »Congestion control »Source:
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Chapter 5 Network Layer.
Congestion Control Algorithms
The Network Layer Functions: Congestion Control
The Network Layer Chapter 5. Network Layer Design Isues a)Store-and-Forward Packet Switching b)Services Provided to the Transport Layer c)Implementation.
Review: Routing algorithms Distance Vector algorithm. –What information is maintained in each router? –How to distribute the global network information?
Computer Networks NYUS FCSIT Spring 2008 Milos STOLIC, Bs.C. Teaching Assistant
1 The Network Layer Chapter 5. 2 Network Layer Design Isues Store-and-Forward Packet Switching Services Provided to the Transport Layer Implementation.
1 Quality of Service Requirements Techniques for Achieving Good Quality of Service Integrated Services Differentiated Services Label Switching and MPLS.
UNIT-IV Computer Network Network Layer. Network Layer Prepared by - ROHIT KOSHTA In the seven-layer OSI model of computer networking, the network layer.
The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.
Chapter 5 The Network Layer.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 22 Introduction to Computer Networks.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 23 Introduction to Computer Networks.
Teknik Routing Pertemuan 20 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
Network Layer Design Isues Store-and-Forward Packet Switching Services Provided to the Transport Layer The service should be independent of the router.
Chapter 10 Introduction to Wide Area Networks Data Communications and Computer Networks: A Business User’s Approach.
1 K. Salah Module 5.0: Internetworking & Network Layer Basic concepts Congestion Control Routing Protocols –Flooding –Source routing –Distance vector routing.
Extending Networks. Three Levels of Extension Physical Layer –Repeaters Link Layer –Bridges –Switches Network –Routers: “Connecting networks”
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 21 Introduction to Computer Networks.
EECC694 - Shaaban #1 lec #7 Spring The OSI Reference Model Network Layer.
Networks: Routing1 Network Layer Routing. Networks: Routing2 Network Layer Concerned with getting packets from source to destination. The network layer.
The Network Layer Chapter 5.
Routing Algorithms (Ch5 of Computer Network by A. Tanenbaum)
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
SAvPS – úvod Genči 2009 (bsaed on Tanenbaum’s slides.
Routing Protocols RIP, OSPF, BGP. A Routing Protocol’s Job Is to Find a “Best” Path between Any Pair of Nodes Routers in a network exchange their routing.
The Network Layer Week 5. Network Layer Design Isues Store-and-Forward Packet Switching Services Provided to the Transport Layer Implementation of Connectionless.
Chi-Cheng Lin, Winona State University CS412 Introduction to Computer Networking & Telecommunication Chapter 5 Network Layer.
Objectives: Chapter 5: Network/Internet Layer  How Networks are connected Network/Internet Layer Routed Protocols Routing Protocols Autonomous Systems.
The Network Layer Chapter 5. Network Layer Design Isues Store-and-Forward Packet Switching Services Provided to the Transport Layer Implementation of.
Network and Communications Ju Wang Chapter 5 Routing Algorithm Adopted from Choi’s notes Virginia Commonwealth University.
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.
EEC-484/584 Computer Networks Lecture 9 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
10/19/20151 The Network Layer. 10/19/20152 Introduction Route packets through subnet So, it must know the topology of the subnet It should also be able.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Chapter 5 Network Layer.
The Network Layer.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 21.
1 Computer Communication & Networks Lecture 21 Network Layer: Delivery, Forwarding, Routing Waleed.
Routing Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific Institute of Information.
THE NETWORK LAYER.
Teknik Routing Pertemuan 10 Matakuliah: H0524/Jaringan Komputer Tahun: 2009.
The Network Layer Chapter 5 1/4/2016www.ishuchita.com1.
Lecture Network layer -- May Congestion control Algorithms.
Chapter 5 The Network Layer.
1 Addressing, Internetworking. 2 Collection of Subnetworks The Internet is an interconnected collection of many networks.
-1- Georgia State UniversitySensorweb Research Laboratory CSC4220/6220 Computer Networks Dr. WenZhan Song Professor, Computer Science.
Distributed Systems 8. Network Layer Theory Simon Razniewski Faculty of Computer Science Free University of Bozen-Bolzano A.Y. 2015/2016.
Chapter 5 Network Layer.
Assignment 1  Chapter 1:  Question 11  Question 13  Question 14  Question 33  Question 34  Chapter 2:  Question 6  Question 39  Chapter 3: 
The Network Layer UNIT-4 snistforum.com. Network Layer Design Issues Store-and-Forward Packet Switching Services Provided to the Transport Layer Implementation.
The Network Layer Chapter 5 Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education- Prentice Hall, 2011.
1 Computer Networks Chapter 5. Network layer The network layer is concerned with getting packets from the source all the way to the destination. Getting.
Network Layer Routing Networks: Routing.
Network Layer COMPUTER NETWORKS Networking Standards (Network LAYER)
THE NETWORK LAYER.
Chapter 5 The Network Layer.
Introduction to Computer Networks
Tanenbaum Chapter 5 Network
Kuliah 5 ROUTING.
The Network Layer Network Layer Design Issues:
PRESENTATION COMPUTER NETWORKS
EEC-484/584 Computer Networks
Network Layer Routing Networks: Routing.
Delivery, Forwarding, and Routing
Chapter 5 The Network Layer.
Presentation transcript:

Chapter 5 The Network Layer

Highlights Network Layer Design Issues Routing Algorithms Congestion Control Algorithms Quality of Service Internetworking The Network Layer in the Internet(ip)

Network Layer Design Isues 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

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

Services Provided to the Transport Layer Design Goal: The services should be independent of the router technology. The transport layer should be shielded from the number, type, and topology of the routers present. The network addresses made available to the transport layer should use a uniform numbering plan, even across LANs and WANs. Two classes service: Connection-Oriented Service (Telephone companies) Connectionless Service (Internet community)

Implementation of Connectionless Service Routing within a diagram subnet.

Datagram(2) B B.1 B.3 B.2 B.3 B.2 B.1 A C.3 C.2 C.1 C.3 C.1 C.2 C B 4 C.1 A 1 B.1 3 5 C.3 C.2 C

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

Virtual Circuit(2) vc1: A--1--2--4--B vc2: A--1--3--5--C vc1 vc2 1.1 1.3 1.2 1.1 1.3 1.2 1.1 A 2.3 2.2 2.1 2.3 2.2 2.1 C vc1 B vc1: A--1--2--4--B vc2: A--1--3--5--C 2 4 A 1 3 5 vc2 C

Comparison of Virtual-Circuit and Datagram Subnets 5-4

Routing Algorithms The Optimality Principle Shortest Path Routing Flooding Distance Vector Routing Link State Routing Hierarchical Routing

Routing Algorithms(2) If the subnet uses datagrams internally, routing decisions are made for every arriving data packet . Session Routing If the subnet uses virtual circuits internally, routing decisions are made only when a new virtual circuit is being set up. Thereafter, data packets just follow the previously-established route.

Routing Algorithms(3) simplicity robustness stability fairness properties are desirable in a routing algorithm: correctness simplicity robustness stability fairness optimality

Conflict between fairness and optimality. Routing Algorithms (4) Conflict between fairness and optimality.

Routing Algorithms(5) Routing algorithms can be grouped into two major classes: nonadaptive and adaptive. Nonadaptive algorithms do not base their routing decisions on measurements or estimates of the current traffic and topology. Instead, the choice of the route to use to get from I to J (for all I and J) is computed in advance, off-line, and downloaded to the routers when the network is booted. This procedure is sometimes called static routing. Adaptive algorithms, in contrast, change their routing decisions to reflect changes in the topology, and usually the traffic as well.

The Optimality Principle It states that if router J is on the optimal path from router I to router K, then the optimal path from J to K also falls along the same route. To see this, call the part of the route from I to Jr1 and the rest of the route r2. If a route better than r2 existed from J to K, it could be concatenated with r1 to improve the route from I to K, contradicting our statement that r1r2 is optimal. As a direct consequence of the optimality principle, we can see that the set of optimal routes from all sources to a given destination form a tree rooted at the destination. Such a tree is called a sink tree I r1 J rx r1+r2 r1+rx r2 K

The Optimality Principle(2) (a) A subnet. (b) A sink tree for router B. The goal of all routing algorithms is to discover and use the sink trees for all routers

Shortest Path Routing The first 5 steps used in computing the shortest path from A to D. The arrows indicate the working node.

Example of SP N D(B) D(C) D(D) D(E) D(F) D(G) D(H) Initially { A } 2     6  { A, B } 9  4  6  { A, B, E } 9  6 5  { A, B, E, G } 9  6 9 { A, B, E, G, F } 9  8 { A, B, E, G, F, H } 9 10 { A, B, E, G, F, H, C } 10 { A, B, E, G, F, H, C, D }

Example of SP(2) Route Table of Node A Shortest Path Dest Next-hop B B C B D B C E B F B A E F D G B H B G H

Flooding No network info required Packet sent by node to every neighbor Incoming packets retransmitted on every link except incoming link Eventually a number of copies will arrive at destination Each packet is uniquely numbered so duplicates can be discarded Nodes can remember packets already forwarded to keep network load in bounds Can include a hop count in packets

Flooding Example

Properties of Flooding All possible routes are tried Very robust At least one packet will have taken minimum hop count route Can be used to set up virtual circuit All nodes are visited Useful to distribute information (e.g. routing)

Distance Vector Routing . Distance Vector: Each router sends a vector of distances to its neighbors. The vector contains distances to all nodes in the network.

Distance Vector Routing(2) Each node maintains a set of triples (Destination, Cost, NextHop) Exchange updates directly connected neighbors . periodically (on the order of several seconds<30s>) . whenever table changes (called triggered update) Each update is a list of pairs: . (Destination, Cost) Update local table if receive a “better” route Refresh existing routes; delete if they time out

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

Distance Vector Routing (4) rapidly to good news, but leisurely to bad news. The count-to-infinity problem. Set infinity to 16

Distance Vector Routing(5)  Split Horizon: A B C D Route of C Vector to B Vector to D Dest Dist Nexthop Dest Dist Dest Dist A 2 B A  A 2 B 1 B B 1 B 1 C 0 -- C C D 1 D D 1 D 1

Distance Vector Routing(6)  Split Horizon: A B C D E 1 2 3 4 initially  2 3 4 1 exchange   3 4 2 exchange    4 3 exchange     4 exchange

Distance Vector Routing(7) Split Horizon

Distance Vector Routing(8) The problem is that when X tells Y that it has a path somewhere, Y has no way of knowing whether it itself is on the path

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.

Learning about the Neighbors It accomplishes this goal by sending a special HELLO packet on each point-to-point line. The router on the other end is expected to send back a reply telling who it is. These names must be globally unique When two or more routers are connected by a LAN, the situation is slightly more complicated

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

Measuring Line Cost The most direct way to determine this delay is to send over the line a special ECHO packet that the other side is required to send back immediately. By measuring the round-trip time and dividing it by two, the sending router can get a reasonable estimate of the delay One issue is whether to take the load into account when measuring the delay

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

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

Distributing the Link State Packets Use flooding to distribute LSP Each LSP labeled with a 32-bits sequence Each LSP protected by a checksum Each LSP stamped by a age

Distributing the LSPs Some refinements to this algorithm make it more robust. When a link state packet comes in to a router for flooding, it is not queued for transmission immediately. Instead it is first put in a holding area to wait a short while

Distributing the Link State Packets(2) The packet buffer for router B (Fig. 5-14).

Computing the New Route Use Dijkstra's algorithm

Examples of Link State Routing OSPF(Open Shortest Path First) IS-IS (Intermediate System-Intermediate System),

Hierarchical Routing Hierarchical routing.

Congestion Control Algorithms General Principles of Congestion Control Congestion Prevention Policies Congestion Control in Virtual-Circuit Subnets Congestion Control in Datagram Subnets Load Shedding Jitter Control

Congestion When too much traffic is offered, congestion sets in and performance degrades sharply.

Congestion Reason Burst data Slow processors Low bandwidth packets come from different lines are routed to the same output line, have to be queued before sending If memory is insufficient, some packets will be lost Adding too much memory may gets worse Slow processors Low bandwidth Congestion tends to be spreaded

Comparison of congestion control and flow control Congestion control is a global issue, it concerns the carrying capacity of subnet Sometimes use feedback Flow control relates to the point-to-point traffic, it make sure that a fast sender cannot continually transmit data faster than the receiver is able to absorb it. Always use feedback A host can get a “slow down” indication either because of receiver or subnet

General Principles of Congestion Control open loop attempt to solve the problem by good design, in essence, to make sure it does not occur in the first place. Once the system is up and running, midcourse corrections are not made closed loop based on the concept of a feedback loop explicit feedback, implicit feedback

General Principles of Congestion Control (closed loop) Monitor the system . detect when and where congestion occurs. Pass information to where action can be taken. Adjust system operation to correct the problem.

Congestion Prevention Policies (open loop) 5-26 Policies that affect congestion.

Congestion Control in Virtual-Circuit Subnets (a) A congested subnet. (b) A redrawn subnet, eliminates congestion and a virtual circuit from A to B.

Congestion Control in Datagrams Subnets Warning bit Router in congestion set the warning bit in the packet’s header Choke packets When the source host receive choke, it should reduce the traffic sharply. If no choke packets arrive for a period, the host may increase the flow slowly.

Hop-by-Hop Choke Packets (a) A choke packet that affects only the source. (b) A choke packet that affects each hop it passes through.

Loading Shedding When routers are being inundated by packets that they cannot handle, they just throw them away. (old is better than new) is often called wine and (new is better than old) is often called milk.

Jitter Control The variation in the packet arrival times is called High jitter, for example, having some packets taking 20 msec and others taking 30 msec to arrive will give an uneven quality to the sound or movie.

Jitter Control(2) (a) High jitter. (b) Low jitter.

Quality of Service Requirements Techniques for Achieving Good Quality of Service Integrated Services Differentiated Services Label Switching and MPLS

How stringent the quality-of-service requirements are. 5-30 How stringent the quality-of-service requirements are.

Smoothing the output stream by buffering packets.

The Leaky Bucket Algorithm (a) Input to a leaky bucket. (b)Output from a leaky bucket.

The Leaky Bucket Algorithm (a) A leaky bucket with water. (b) a leaky bucket with packets.

Traffic Shaping- The Token Bucket Algorithm (a) A leaky bucket with water. (b) a leaky bucket with packets.

The Token Bucket Algorithm Output from a token bucket with capacities of (c) 250 KB, (d) 500 KB, and (e) 750 KB.

Calculating the length of the maximum rate burst If we call the burst length S sec, the token bucket capacity C bytes, the token arrival rate r bytes/sec, and the maximum output rate M bytes/sec, we see that an output burst contains a maximum of C + rS bytes. We also know that the number of bytes in a maximum-speed burst of length S seconds is MS. Hence we have: C + rS = MS S = C/(M - r). For our parameters of C = 250 KB, M = 25 MB/sec, and r=2 MB/sec, we get a burst time of about 11 msec

The Leaky Bucket +Token Bucket

Internetworking How Networks Differ Concatenated Virtual Circuits Connectionless Internetworking Tunneling Internetwork Routing Fragmentation Firewalls

A collection of interconnected networks. Connecting Networks A collection of interconnected networks.

Some of the many ways networks can differ. How Networks Differ Some of the many ways networks can differ.

How Networks Can Be Connected (a) Two Ethernets connected by a switch. (b) Two Ethernets connected by routers.

Concatenated Virtual Circuits Internetworking using concatenated virtual circuits.

Connectionless Internetworking A connectionless internet.

Tunneling a packet from Paris to London.

Tunneling a car from France to England.

Internetwork Routing An internetwork. (b) A graph of the internetwork. interior gateway protocol exterior gateway protocol

(a) Transparent fragmentation. (b) Nontransparent fragmentation.

Fragmentation (2) Fragmentation when the elementary data size is 1 byte. (a) Original packet, containing 10 data bytes. (b) Fragments after passing through a network with maximum packet size of 8 payload bytes plus header. (c) Fragments after passing through a size 5 gateway.

The Network Layer in the Internet The IP Protocol IP Addresses Subnets Internet Control Protocols OSPF – The Interior Gateway Routing Protocol BGP – The Exterior Gateway Routing Protocol CIDR-Classless InterDomain Routing IPv6

Design Principles for Internet Make sure it works. Keep it simple. Make clear choices. Exploit modularity. Expect heterogeneity. Avoid static options and parameters. Look for a good design; it need not be perfect. Be strict when sending and tolerant when receiving. Think about scalability. Consider performance and cost.

Collection of Subnetworks The Internet is an interconnected collection of many networks.

The IPv4 (Internet Protocol) header. The IP Protocol The IPv4 (Internet Protocol) header.

The IP Protocol (2) 5-54 Some of the IP options.

IP Addresses IP address formats.

IP Addresses (2) Special IP addresses.

A campus network consisting of LANs for various departments. Subnets A campus network consisting of LANs for various departments.

A class B network subnetted into 64 subnets.

CIDR – Classless InterDomain Routing 5-59 A set of IP address assignments.

NAT – Network Address Translation Placement and operation of a NAT box.

Internet Control Message Protocol 5-61 The principal ICMP message types.

ARP– The Address Resolution Protocol Three interconnected /24 networks: two Ethernets and an FDDI ring.

Dynamic Host Configuration Protocol Operation of DHCP.

OSPF – The Interior Gateway Routing Protocol (a) An autonomous system. (b) A graph representation of (a).

The relation between ASes, backbones, and areas in OSPF.

The five types of OSPF messeges. 5-66 The five types of OSPF messeges.

BGP – The Exterior Gateway Routing Protocol (a) A set of BGP routers. (b) Information sent to F.

The IPv6 fixed header (required). The Main IPv6 Header The IPv6 fixed header (required).

Extension Headers 5-69 IPv6 extension headers.

The hop-by-hop extension header for large datagrams (jumbograms). Extension Headers (2) The hop-by-hop extension header for large datagrams (jumbograms).

The extension header for routing. Extension Headers (3) The extension header for routing.