Network Layer. Goals of This Lecture. Internet Reference Model. Outline of the Class

Similar documents
The Internet. The Internet is an interconnected collection of netw orks.

Networking: Network layer

EEC-684/584 Computer Networks

Initial motivation: 32-bit address space soon to be completely allocated. Additional motivation:

ROUTING INTRODUCTION TO IP, IP ROUTING PROTOCOLS AND PROXY ARP

EEC-484/584 Computer Networks

Routing in the Internet

OSI Network Layer. Chapter 5

Internet Routing Protocols Part II

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061. Lecture 2. Internetworking IPv4, IPv6

Exercise Sheet 4. Exercise 1 (Routers, Layer-3-Switches, Gateways)

Introduction to routing in the Internet

II. Principles of Computer Communications Network and Transport Layer

Open Shortest Path First (OSPF)

Introduction to Information Science and Technology 2017 Networking II. Sören Schwertfeger 师泽仁

Topics for This Week

Chapter 4: Advanced Internetworking. Networking CS 3470, Section 1

The Interconnection Structure of. The Internet. EECC694 - Shaaban

OSI Network Layer. Network Fundamentals Chapter 5. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

Integrated Services. Integrated Services. RSVP Resource reservation Protocol. Expedited Forwarding. Assured Forwarding.

Introduction to routing in the Internet

Principles. IP QoS DiffServ. Agenda. Principles. L74 - IP QoS Differentiated Services Model. L74 - IP QoS Differentiated Services Model

Routing. Advanced Computer Networks: Routing 1

BGP. Daniel Zappala. CS 460 Computer Networking Brigham Young University

IPv6: An Introduction

CHAPTER 18 INTERNET PROTOCOLS ANSWERS TO QUESTIONS

Planning for Information Network

RETELE DE CALCULATOARE

Solution of Exercise Sheet 4. Exercise 1 (Routers, Layer-3-Switches, Gateways)

HY 335 Φροντιστήριο 8 ο

Computer Networking Introduction

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

Basic Idea. Routing. Example. Routing by the Network

Prof. Shervin Shirmohammadi SITE, University of Ottawa. Internet Protocol (IP) Lecture 2: Prof. Shervin Shirmohammadi CEG

IP - The Internet Protocol

Routing by the Network

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

Protocols. End-to-end connectivity (host-to-host) Process-to-Process connectivity Reliable communication

Chapter 7: Routing Dynamically. Routing & Switching

Routing Protocols. Autonomous System (AS)

The Internet. 9.1 Introduction. The Internet is a global network that supports a variety of interpersonal and interactive multimedia applications.

Inter-networking. Problem. 3&4-Internetworking.key - September 20, LAN s are great but. We want to connect them together. ...

IT220 Network Standards & Protocols. Unit 8: Chapter 8 The Internet Protocol (IP)

TCP/IP Networking. Training Details. About Training. About Training. What You'll Learn. Training Time : 9 Hours. Capacity : 12

CS610 Computer Network Final Term Papers Solved MCQs with reference by Virtualians Social Network

Router Architecture Overview

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

Top-Down Network Design, Ch. 7: Selecting Switching and Routing Protocols. Top-Down Network Design. Selecting Switching and Routing Protocols

Why dynamic route? (1)

Chapter 5 Network Layer

CC231 Introduction to Networks Dr. Ayman A. Abdel-Hamid. Internet Protocol Suite

Review for Chapter 4 R1,R2,R3,R7,R10,R11,R16,R17,R19,R22,R24, R26,R30 P1,P2,P4,P7,P10,P11,P12,P14,P15,P16,P17,P22,P24,P29,P30

Unit C - Network Addressing Objectives Purpose of an IP Address and Subnet Mask Purpose of an IP Address and Subnet Mask

Chapter 4: outline. Network Layer 4-1

Real-Time Applications. Delay-adaptive: applications that can adjust their playback point (delay or advance over time).

CSCD 330 Network Programming Spring 2018

IPv6 Protocols and Networks Hadassah College Spring 2018 Wireless Dr. Martin Land

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

Chapter 7. Local Area Network Communications Protocols

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

Routing Protocols. The routers in an internet are responsible for receiving and. forwarding IP datagrams through the interconnected set of

Internet Protocol, Version 6

Multicast and Quality of Service. Internet Technologies and Applications

Clase Nº4. Jorge Sa Silva. University of Coimbra Portugal

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

The Network Layer. Internet solutions. Nixu Oy PL 21. (Mäkelänkatu 91) Helsinki, Finland. tel fax.

ECE 428 Internet Protocols (Network Layer: Layer 3)

Internet Routing Protocols, DHCP, and NAT

Chapter 5. The Network Layer. CEN Chapter 5 1

BLM6196 COMPUTER NETWORKS AND COMMUNICATION PROTOCOLS

CSc 450/550 Computer Networks Internet Routing

Network Layer/IP Protocols

Chapter 6. The Network Layer

Lecture 14: Performance Architecture

CSCD 330 Network Programming Spring 2017

Lecture 4 The Network Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

cs/ee 143 Communication Networks

COMPUTER NETWORK. Homework #3. Due Date: May 22, 2017 in class

TSIN02 - Internetworking

IPv6. IPv4 & IPv6 Header Comparison. Types of IPv6 Addresses. IPv6 Address Scope. IPv6 Header. IPv4 Header. Link-Local

Last time. Transitioning to IPv6. Routing. Tunneling. Gateways. Graph abstraction. Link-state routing. Distance-vector routing. Dijkstra's Algorithm

IP Protocols. ALTTC/Oct

Chapter 4: Network Layer

Routing. Info 341 Networking and Distributed Applications. Addresses, fragmentation, reassembly. end-to-end communication UDP, TCP

Internetworking Part 2

Chapter 4: Network Layer

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

Lecture 3. The Network Layer (cont d) Network Layer 1-1

QoS in IPv6. Madrid Global IPv6 Summit 2002 March Alberto López Toledo.

Computer Networks ICS 651. IP Routing RIP OSPF BGP MPLS Internet Control Message Protocol IP Path MTU Discovery

CSCD 433/533 Advanced Networks Spring Lecture 22 Quality of Service

CS118 Discussion, Week 6. Taqi

Linux System Administration

Vanguard Managed Solutions

Unicast Routing Protocols (RIP, OSPF, and BGP)

Routing Protocols --- Exterior Gateway Protocol

CSCI Topics: Internet Programming Fall 2008

UNIT III. 3.1 Circuit switching vs. packet switching / Packet switched networks. Figure 3.1.1: Switching Techniques

CS 457 Lecture 11 More IP Networking. Fall 2011

Transcription:

Goals of This Lecture Network Layer Kuang Chiu Huang TCM NCKU Through the lecture and in-class discussion, students are enabled to describe role and functions of the network layer, and compare different routing protocols. In addition, students can tell the differences between Diffserv and Intserv. 2 Outline of the Class Internet Reference Model IP address Routing protocols 3

Motivation for the Network Layer How do I structure packets? How do I get a packet through the network? How do I find a host on a local subnet? How do I deal with the diversity of subnets? Getting a Packet Through the Network Need addresses that are globally unique Need network devices that know about other network devices Need a routing algorithm for finding a path Need a mechanism for accommodating diverse networks Internet (IP) Addresses When an organization connects to the Internet, it obtains a set of IP addresses for its computers The current addresses consist of 32 bit binary numbers (IPv4) (theoretically up to 2 32 = 4.29 billion addresses) Internet (IP) Addresses Routing each address uniquely would require enormous routing tables take a lot of time Solution: allocate addresses in blocks

IP Addresses IP Addresses Block sizes Big users (Class A) - 128 available, each for 16 million hosts Meduim users (Class B) - 16,384 available, each for 65,000 hosts Small users (Class C) - 2 million available, each for 256 hosts Class A 0 netid Class B 1 0 Class C 1 1 0 netid netid hostid hostid hostid IP Addresses Binary numbers are hard to remember, so use decimal equivalents Divide decimal digit string into four sets of numbers separated by dots Example 136.142.185.57 Translate into binary Decimal to Binary Convert decimal to sum of binary exponents (0-7): 2 7 =128, 2 6 =64, 2 5 =32, 2 4 =16, 2 3 =8, 2 2 =4, 2 1 =2, 2 0 =1 136=128+8= 2 7 + 2 3 142=128+8+4+2= 2 7 + 2 3 + 2 2 + 2 1 10001000 10001110 10111001 00111001

Networks, Subnets & Addresses IP Addresses and Domain Names Getting Through the Network: Routing Need routing strategies Maximum throughput Least cost Minimum delay Implement via routing tables in nodes Routing tables must be computed by a routing algorithm Autonomous System A set of routers and networks managed by a single organization That exchange information by a common protocol and A path exists between any pair of nodes

Types of Routing Example Network Interior router protocol Within an AS Constructs a detailed model of interconnectivity within an AS Exterior router protocol Between ASs BGP Exchanges reachability information among ASs Routing Tables Routing in the Internet Hierarchical and network specific (instead of host specific) to reduce the size of the routing tables Packet is first delivered to the AS The AS sends it to the right network The network sends it to the host

Autonomous Systems Routing Protocols Used so that routers can exchange routing information Common routing protocols RIP OSPF BGP Border Gateway Protocol Exterior protocol Path vector algorithm Finds a path through the collection of autonomous systems Neighbor acquisition Neighbor reachability Network reachability Assumes the existence of an interior protocol in each AS Reachability information is shared with neighboring AS s Neighbor Acquisition Neighbors are two routers that share the same network Acquisition occurs when the acquisition procedure results in the two routers agreeing to share routing information Acquisition procedure One router sends Open Other returns Keepalive if it accepts the request

Neighbor Reachability Needed to maintain acquired relationships Procedure: both routers periodically send Keepalive messages to each other Network Reachability Each router maintains a database of Networks it can reach Preferred route for reaching each network When this changes, and Update is sent to the neighbor(s) This propagates the reachability information through the network Open Shortest Path First (OSPF) OSPF Interior router protocol Link state algorithm Approach Each router maintains descriptions of the state of the attached links Periodically broadcasts updated state information to all routers it knows about OSPF computes routes that minimize cost Distributed algorithm Each router maintains a database of the known topology Autonomous System Directed Graph of AS

OSPF Router 6 s view Routing Information Protocol General Interior protocol Distance vector protocol: minimize distance to the destination Algorithm does the following Share is knowledge about the AS with its neighbors Shares only with its neighbors Shares are regular intervals Computes shortest distance based on its knowledge of the network Open Shortest Path First General Interior protocol Link state algorithm Find the least cost route for the current state of the network Algorithm does the following Shares its knowledge about its neighborhood Shares it with every other router (floods the network) Shares whenever there are changes Uses a complete picture of the network to calculate routes Getting an IP address Static Assigned and configured at startup Permanently dedicated to a device Dynamic IP Addresses are leased from a pool Use Dynamic Host Configuration Protocol (DHCP)

DHCP Operations I New Host broadcasts a Discover message via UDP to Port 67 Destination address: 255.255.255.255 Source address: 0.0.0.0 DHCP server responds with an Offer message Transaction ID of Discover Proposed IP address Network mask IP address lease time DHCP Operations II New Host responds with an DHCP Request Mirrors information in Offer Goes to selected DHCP server in the case of multiple servers Server responds with a DHCP ACK Confirms parameters Initiates lease Leases can be renewed upon expiration The Internet Protocol Internetworking Allow independently owned and administered networks to interconnect This was one of the key features of IP in the 1980s Local Local (access) (access) network network R Internet Internet R Local Local (access) (access) network network

Problem: Dissimilar Networks Different networks have different maximum packet sizes Eg. Ethernet (1518 bytes max) and Token Ring (65kbits max) How do we enable these to communicate with each other? Dissimilar Networks Solution Fragment the large packets Send each packet with its own IP header IP (version 4) Header Version IHL Type of Service Total Length Identification Flags Fragment Offset Time to Live Protocol Header Checksum Source Address Destination Address IPv6 Began as an attempt in 1992 to address address space exhaustion As the Internet was commercialized, new capabilities were added RFC 1752 on the design was issued in 1995 Additional RFCs issued subsequently

Improvements over IPv4 IPv6 Header Expanded address space 128 bit addresses 6*10 23 addresses/m 2 of the earth s surface Support for dynamic addressing Support for anycasting Improved option mechanisms Some not examined by routers Allows for expansion of supported features Security Authentication Support for resource allocation Enables QoS by labelling flows Support for RSVP Challenges with IPv6 End system conversion - Accomplished with recent Linux, Unix, Windows, Mac operating systems Need cutover of intermediate systems (eg., routers) Difficult coordination problem Interim support mechanisms for IPv4 exist Quality of Service (QoS) Increasingly important on the Internet Types of QoS Minimum throughput Maximum delay Bounds on delay variation (jitter) Maximum packet loss

Elastic Categories of Traffic Can adjust to changes in delay and throughput access Examples: File transfer, e-mail, web access Inelastic Does not adapt well, if at all, to changes Examples: Real-time voice, audio and video Supporting QoS in IPv4 Differentiated services (DiffServ) approach Breaks traffic into different classes Can only provide statistical performance guarantees Integrated services (IntServ) approach Reserves resources on the network Can provide absolute guarantees Does not scale well DiffServ Mechanism DiffServ Operation Use Type of Service (TOS) field The value of the TOS field reflects the precedence of the packet This precedence results in a Per-Hop Behavior (PHB)

DiffServ Operation Classifier: Sorts packets into classes Meter Measures traffic for conformance to a user profile Users pay varying prices for different profiles DiffServ Operation Marker Mark/re-mark packets as needed, depending on the results of the meter Out of bounds packets are marked as normal Remarking may also be necessary at the boundary of a domain Shaper/Dropper Drop packets for a given class when it exceeds the profile specification DiffServ Operation IntServ Architecture Routers adapt to the ToS field information by selecting the appropriate Route Network service Queueing discipline Service providers charge based on the ToS field parameters

RSVP Used to establish reservations Can be initiated by the sender or receiver Reservations are assigned to flows from the sender to the receiver IntServ Operation Reservations must be made before a flow can begin (i.e., admission control) Traffic for a flow follows the route along which the resources are available Traffic with similar requirements are grouped into classes and sent together Scheduler sorts the packets into the appropriate queues Why Are QoS Not Offered? Uncertainty as to the correct network architecture Cost of upgrading networks to QoS capable routers in the face of uncertain demand Coordination between service providers Different meanings for different classes Lack of trust Thank you! Q & A 56