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

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

CPSC Network Layer4-1 IP addresses: how to get one? Q: How does a host get IP address? r hard-coded by system admin in a file m Windows: control-panel->network->configuration-
COS 461 Fall 1997 Routing COS 461 Fall 1997 Typical Structure.
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 o Two issues in practice – Scale – Administrative autonomy o Autonomous system (AS) or region o Intra autonomous system routing protocol o Gateway routers.
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.
Quality of Service Requirements
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.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 24 Introduction to Computer Networks.
The Network Layer Chapter 5. The IP Protocol The IPv4 (Internet Protocol) header.
Chapter 5 The Network Layer.
EEC-484/584 Computer Networks Lecture 10 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 23 Introduction to Computer Networks.
Summary The Problem The Dijkstra’s Shortest Path Algorithm
Network Layer Design Isues Store-and-Forward Packet Switching Services Provided to the Transport Layer The service should be independent of the router.
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”
EECC694 - Shaaban #1 lec #7 Spring The OSI Reference Model Network Layer.
The Network Layer Chapter 5.
Routing Algorithms (Ch5 of Computer Network by A. Tanenbaum)
IP (Internet Protocol) –the network level protocol in the Internet. –Philosophy – minimum functionality in IP, smartness at the end system. –What does.
SAvPS – úvod Genči 2009 (bsaed on Tanenbaum’s slides.
Chapter 5 The Network Layer.
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.
1 Internet Protocol. 2 Connectionless Network Layers Destination, source, hop count Maybe other stuff –fragmentation –options (e.g., source routing) –error.
The Network Layer Chapter 5. Network Layer Design Isues Store-and-Forward Packet Switching Services Provided to the Transport Layer Implementation of.
Fall 2005Computer Networks20-1 Chapter 20. Network Layer Protocols: ARP, IPv4, ICMPv4, IPv6, and ICMPv ARP 20.2 IP 20.3 ICMP 20.4 IPv6.
Internetworking and Network Layer in Internet Lecture Tunneling, Internetwork Routing 2.Fragmentation 3.IP-Protocol 4.IP-Address Classes(A,B,C,D,E),
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Chapter 5 Network Layer.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
SPU Information Science Institute of Sripatum University Sripatum University 1 IS516 Computer Communication and Networks การสื่อสารคอมพิวเตอร์และเครือข่าย.
The Network Layer.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 21.
Internet Protocols (chapter 18) CSE 3213 Fall 2011.
The Network Layer Chapter 5 1/4/2016www.ishuchita.com1.
Chapter 5 The Network Layer.
1 Addressing, Internetworking. 2 Collection of Subnetworks The Internet is an interconnected collection of many networks.
IP Protocol CSE TCP/IP Concepts Connectionless Operation Internetworking involves connectionless operation at the level of the Internet Protocol.
-1- Georgia State UniversitySensorweb Research Laboratory CSC4220/6220 Computer Networks Dr. WenZhan Song Professor, Computer Science.
The Network Layer Congestion Control Algorithms & Quality-of-Service Chapter 5.
The Network Layer Design Issues & Routing Algorithms Chapter 5.
Assignment 1  Chapter 1:  Question 11  Question 13  Question 14  Question 33  Question 34  Chapter 2:  Question 6  Question 39  Chapter 3: 
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The Network Layer Chapter
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 Internetworking & The Network Layer in the Internet
COMPUTER NETWORKS CS610 Lecture-45 Hammad Khalid Khan.
THE NETWORK LAYER.
Chapter 5 The Network Layer.
Introduction to Computer Networks
Tanenbaum Chapter 5 Network
The Network Layer Network Layer Design Issues:
Network Layer Routing Networks: Routing.
Chapter 15. Internet Protocol
Chapter 4 Network Layer Computer Networking: A Top Down Approach 5th edition. Jim Kurose, Keith Ross Addison-Wesley, April Network Layer.
The Network Layer Congestion Control Algorithms & Quality-of-Service
Chapter 5 The Network Layer.
Presentation transcript:

The Network Layer Chapter 5

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 The environment of the network layer protocols. fig 5-1

Services Provided to the Transport Layer 1.The services should be independent of the router technology 2.The transport layer should be shielded from the number, type and topology of the routers present 3.The network addresses made available to the transport layer should use a uniform numbering plan, even across LANs and WANs Internet – Connection Less ATM – Connection-oriented.

Implementation of Connectionless Service Routing within a diagram subnet.

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

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 Broadcast Routing Multicast Routing Routing for Mobile Hosts Routing in Ad Hoc Networks

Routing Algorithms (2) Conflict between fairness and optimality. A – A’, B – B’, C – C’, can fill the channel, then X-X’ doesn’t get a chance

The Optimality Principle (a) A subnet. (b) A sink tree for router B. Optimality Principle – 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.

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

Dijkstra Dijkstra's algorithm to compute the shortest path through a graph. 5-8 top

Dijkstra Dijkstra's algorithm to compute the shortest path through a graph. 5-8 bottom

Flooding Robust but costly. a)Used military application b)Wireless Networks c)Distributed Database d)Metrics against which other routing algorithms are compared.

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

Distance Vector Routing (2) The count-to-infinity problem.

Hierarchical Routing Hierarchical routing. Problems – optimal paths are sacrificed

Hierarchical Routing How many levels of hierarchy 720 routers 720 routers in 24 regions Three levels of hierarchy – 8 clusters each containing 9 regions of 10 clusters

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

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

Setting Link Cost a)Bandwidth b)Delay – measured by sending special ECHO

Measuring Line Cost A subnet in which the East and West parts are connected by two lines. Including queueing delay may lead to a lot of oscillation Load spread over both lines

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

Few Problems Algorithm – Sequence number less means obsolete a)If sequence numbers wrap around, confusion will reign b)Router crashes, sequence number is lost c)Sequence number gets corrupted Aging and then dropping the packet When a link-state packet comes in to router it is not queued immediately rather wait if any other packets arrive

Distributing the Link State Packets The packet buffer for router B in the previous slide (Fig. 5-13). E has arrived twice. Cs copy arrive from F, then F will be ack not send

OSPF (Open Shortest Path First) a)Refreshed every 60 seconds. b)Hardware Problem router getting corrupt etc.

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

Broadcast Routing Multidimensional Routing – each packet contains either a list of destinations. When the packet comes, checks the set of destinations needed Spanning Tree – Reverse Path Forwarding – Broadcast. Checks if the packet has arrived following the correct hop or not. If correct hop then rebroadcast.

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. Typically done in Multi-state routing

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

Routing for Mobile Hosts (2) Packet routing for mobile users. 0. Register care of address

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

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

Route Discovery (2) Format of a ROUTE REQUEST packet.

Route Discovery (2) The (Source Address, Request ID) pair is looked up in a local history table Receiver looks up the destination in its route table. If a fresh route is known, then a ROUTE REPLY is sent. Destination sequence number is higher than the Destination sequence in the Route Discovery Packet Increments Hop count and rebroadcasts ROUTE REPLY Stores the data in a new entry in its reverse route table.

Route Discovery (3) Format of a ROUTE REPLY packet.

Route Discovery (3) IN response – Source addr, destination addr and Hop Count copied but Dest seq number taken from its counter Hopcount is set to 0, Lifetime field controls how long the route is valid. At each intermediate node 1.No route to I is known, 2.Sequence number of I in the ROUTE REPLY packet is greater than the value in the routing table 3.The sequence numbers are equal but the new route is shorter 4.Hop Count incremented 5.In large network Discovery increases with Time to Live incrementally being increased from 1, 2, 3

Route Maintenance Active Neigbors that have fed in those destinations to A in last t seconds (a) D's routing table before G goes down. (b) The graph after G has gone down.

Node Lookup in Peer-to-Peer Networks (a) A set of 32 node identifiers arranged in a circle. The shaded ones correspond to actual machines. The arcs show the fingers from nodes 1, 4, and 12. The labels on the arcs are the table indices. (b) Examples of the finger tables.

a)CASE STUDY – Key = 3, Key = 14, Key = 16

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.

General Principles of Congestion Control 1.Monitor the system. –detect when and where congestion occurs. 2.Pass information to where action can be taken. 3.Adjust system operation to correct the problem.

Congestion Prevention Policies Policies that affect congestion. 5-26

Congestion Control in Virtual-Circuit Subnets (a)A congested subnet. (b) A redrawn subnet, eliminates congestion and a virtual circuit from A to B. (b)Problem is in virtual circuits there may be provisioning but not real usage.

Congestion Control in Datagram Subnets u_new = au_old + (1 – a)f – instant line utilization where the constant a determines how fast the router forgets the history. If u_new is above a threshold action is taken. Warning Bit Went to destination and then source Every router along the path set the warning bit, traffic increased only when no router is in trouble.

Congestion Control in Datagram Subnets Choke Packets In this approach the router sends a choke packet back to the source The source on receiving the choke packets, reduce the traffic by X% Wait for the next choke packet

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. Sending choke packets to the source may be costly.

Load Shedding/ Random Early Detection a)Which packets to discard may depend on application Multimedia – old packets Text – Recent Packets Packets importance can be marked in the beginning (application layer), then which packets to discard can be taken. RED ---- Discard selected packets and not report, source knows when not getting acknowledgement and reduces the

Jitter Control (a) High jitter. (b) Low jitter. Schedule Delay according to Deadline Miss

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

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

Buffering Smoothing the output stream by buffering packets.

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

The Leaky Bucket Algorithm (a) Input to a leaky bucket. (b) Output from a leaky bucket. Output from a token bucket with capacities of (c) 250 KB, (d) 500 KB, (e) 750 KB, (f) Output from a 500KB token bucket feeding a 10-MB/sec leaky bucket.

The Token Bucket Algorithm (a) Before. (b) After. 5-34

If we call the burst length S sec, the token bucket capacity C bytes, the token arrival rate \rho bytes/sec and the maximum output rate M bytes/sec, we see an output burst contains a maximum of C + \rho. S bytes. We also know that the number of bytes in a maximum –speed burst of length S seconds is MS. ============================ Resource reservation – 1. Bandwidth, 2. Buffer Space, 3. CPU cycles T = 1/\mu x 1/(1- \lambda/\mu) \lambda/\mu – CPU utilization \mu = 1,000,000 packets/sec, \lambda = 950,000 packets/sec \

Admission Control (RFC 2210, 2211) An example of flow specification Token Bucket Rate is 1 Mbps and Token Bucket Size is 500 KB, the bucket can fill continuously for 4 sec Peak data rate – Maximum tolerable rate Smallest Packet which can be handled

Packet Scheduling (a) A router with five packets queued for line O. (b) Finishing times for the five packets.

The Network Layer in the Internet The IP Protocol IP Addresses Internet Control Protocols OSPF – The Interior Gateway Routing Protocol BGP – The Exterior Gateway Routing Protocol Internet Multicasting Mobile IP IPv6

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

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

The IP Protocol The IPv4 (Internet Protocol) header.

Version – IPV4/IPV6 IHL – how long the header is – in 32 bit word, minimum is 5, maximum is 15 (60 bytes) Type of Service – (6 bits) – four queuing priority, three discard probabilities and the historical class Total Length – header + data, maximum is 65,535 Identification Field – fragments of a datagram have same Identification value DF – Don’t Fragment (may mean moving through sub-optimal route, MF- More Fragments. (all except the last fragment set )

Fragment Offset – 8192 fragments per datagram (multiple of 8 bytes) Time to Live – Protocol – TCP, UDP Header Checksum - verified

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

Addressing Scheme for IPV4 a)Network Number --- Host number

IP Addresses IP address formats.

IP Addresses (2) Special IP addresses.

First Octet Rule for Class Determination a)A (1-126), B – (126 – 191), C – ( ) D -- (224 – 239)

Subnets A campus network consisting of LANs for various departments.

Subnets (2) A class B network subnetted into 64 subnets.

Directed broadcast Local broadcast within the network ‘This network’, ‘This host’ A host on this network -- loopback address

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

Address Moving in CIDR a)A packet comes in.addressed –compare it with each mask…. Largest Suffix match Aggregated entry of the three – /19 Omaha  Minneapolis, New York, Dallas, Denver /22

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

NAT a)While leaving – ip, port are put in table, checksum is calculated and inserted into the packets. b)While coming back – ip, port, checksum of ip and port checksum c)Three ranges of ip addresses as private – – –

NAT – criticism a)Architectural model of IP where each IP is identified by a single machine b)Internet from connection-less to connection-oriented c)NAT violates the most fundamental rule of protocol layering d)Processes on the Internet are not required to use TCP or UDP e)Some application insert IP address in their body – (FTP) – NAT doesn’t know about it.

Internet Control Message Protocol The principal ICMP message types. (encapsulated in an IP packet) 5-61

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

Optimization on ARP a)Caching b)Braodcast the mapping when booting c)Send it to router if not local

Dynamic Host Configuration Protocol Operation of DHCP. DHCP Relay, Broadcasts a DISCOVER, Leasing of IP, if not renewed it is taken back.

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

Salient Features a)O – open source b)Support variety of distant metrics c)Dynamic algorithm – have to adapt d)Load balancing and not the best path e)Hierarchical systems f)Security is needed OSPF supports connection – point-to-point/multiaccess with broadcast

OSPF (2) The relation between ASes, backbones, and areas in OSPF, every router has.

OSPF (3) The five types of OSPF messeges. 5-66

BGP – The Exterior Gateway Routing Protocol (a) A set of BGP routers. (b) Information sent to F. No transit through particular AS etc..

END HERE

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

Extension Headers IPv6 extension headers. 5-69

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

Extension Headers (3) The extension header for routing.

RSVP-The ReSerVation Protocol (a) A network, (b) The multicast spanning tree for host 1. (c) The multicast spanning tree for host 2.

RSVP-The ReSerVation Protocol (2) (a) Host 3 requests a channel to host 1. (b) Host 3 then requests a second channel, to host 2. (c) Host 5 requests a channel to host 1.

Expedited Forwarding Expedited packets experience a traffic-free network.

Assured Forwarding A possible implementation of the data flow for assured forwarding.

Label Switching and MPLS Transmitting a TCP segment using IP, MPLS, and PPP.

Internetworking How Networks Differ How Networks Can Be Connected Concatenated Virtual Circuits Connectionless Internetworking Tunneling Internetwork Routing Fragmentation

Connecting Networks A collection of interconnected networks.

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

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 Tunneling a packet from Paris to London.

Tunneling (2) Tunneling a car from France to England.

Internetwork Routing (a) An internetwork. (b) A graph of the internetwork.

Fragmentation (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.