CSC 4900 Computer Networks: Network Layer

Similar documents
Topic 4a Router Operation and Scheduling. Ch4: Network Layer: The Data Plane. Computer Networking: A Top Down Approach

Chapter 4 Network Layer: The Data Plane

CMSC 332 Computer Networks Network Layer

CSE 3214: Computer Network Protocols and Applications Network Layer

Chapter 4: network layer. Network service model. Two key network-layer functions. Network layer. Input port functions. Router architecture overview

Chapter 4 Network Layer

Chapter 4. Computer Networking: A Top Down Approach 5 th edition. Jim Kurose, Keith Ross Addison-Wesley, sl April 2009.

CSC 401 Data and Computer Communications Networks

Computer Networks. Instructor: Niklas Carlsson

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 11

NETWORK LAYER DATA PLANE

Network Layer: Router Architecture, IP Addressing

Chapter 4 Network Layer: The Data Plane

Key Network-Layer Functions

Lecture 4 - Network Layer. Transport Layer. Outline. Introduction. Notes. Notes. Notes. Notes. Networks and Security. Jacob Aae Mikkelsen

Lecture 16: Network Layer Overview, Internet Protocol

Network Layer: Data Plane 4-2

Chapter 4 Network Layer: The Data Plane. Part A. Computer Networking: A Top Down Approach

The Network Layer and Routers

Chapter 4: network layer

1-1. Switching Networks (Fall 2010) EE 586 Communication and. October 25, Lecture 24

Computer Networks LECTURE 10 ICMP, SNMP, Inside a Router, Link Layer Protocols. Assignments INTERNET CONTROL MESSAGE PROTOCOL

Chapter 4 Network Layer: The Data Plane

Last time. Wireless link-layer. Introduction. Characteristics of wireless links wireless LANs networking. Cellular Internet access

CSC358 Week 6. Adapted from slides by J.F. Kurose and K. W. Ross. All material copyright J.F Kurose and K.W. Ross, All Rights Reserved

Router Architecture Overview

Routers. Session 12 INST 346 Technologies, Infrastructure and Architecture

Network Layer: outline

Chapter 4 Network Layer

Lecture 7. Network Layer. Network Layer 1-1

Last time. BGP policy. Broadcast / multicast routing. Link virtualization. Spanning trees. Reverse path forwarding, pruning Tunneling

Data Communication & Networks G Session 7 - Main Theme Networks: Part I Circuit Switching, Packet Switching, The Network Layer

Network Layer: Chapter 4. The Data Plane. Computer Networking: A Top Down Approach

TDTS06: computer Networks

Chapter 4 Network Layer: The Data Plane

Chapter 4 Network Layer: The Data Plane

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

COMP211 Chapter 4 Network Layer: The Data Plane

Chapter 4: Network Layer

Chapter 4 Network Layer: The Data Plane

Network Layer Enhancements

Router Architecture Overview

LS Example 5 3 C 5 A 1 D

Network Layer PREPARED BY AHMED ABDEL-RAOUF

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

Network Layer: Control/data plane, addressing, routers

internet technologies and standards

Introduction to Computer Networking. Guy Leduc. Chapter 4 Network Layer: The Data Plane. Chapter 4: Network Layer Data Plane

Network layer overview

CSCE 463/612 Networks and Distributed Processing Spring 2018

Chapter 4 Network Layer: The Data Plane

The Network Layer. Antonio Carzaniga. April 22, Faculty of Informatics University of Lugano Antonio Carzaniga

CS 3516: Advanced Computer Networks

Routers: Forwarding EECS 122: Lecture 13

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

Routing, Routers, Switching Fabrics

CS 3516: Computer Networks

Routers: Forwarding EECS 122: Lecture 13

internet technologies and standards

Data Communications & Networks. Session 7 Main Theme Networks: Part I Circuit Switching, Packet Switching, The Network Layer

EECS 122: Introduction to Computer Networks Switch and Router Architectures. Today s Lecture

Generic Architecture. EECS 122: Introduction to Computer Networks Switch and Router Architectures. Shared Memory (1 st Generation) Today s Lecture

Network Superhighway CSCD 330. Network Programming Winter Lecture 13 Network Layer. Reading: Chapter 4

CSCI Computer Networks Fall 2016

Internet protocol stack

Chapter 4 Network Layer

Improving QOS in IP Networks. Principles for QOS Guarantees

Chapter 4 Network Layer: The Data Plane

Course on Computer Communication and Networks. Lecture 6 Network Layer part 1: Data Plane Chapter 4 (7/e) (6/e Ch4-first part)

UNIT III THE NETWORK LAYER

Chapter 4 Network Layer

Chapter 4 Network Layer

Mohammad Hossein Manshaei 1393

Router Architectures

The Network Layer. Antonio Carzaniga. November 24, Faculty of Informatics Università della Svizzera italiana

Communication Networks ( ) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner

Chapter 4 Network Layer

cs144 Midterm Review Fall 2010

TOC: Switching & Forwarding

CSCD 330 Network Programming

BROADBAND AND HIGH SPEED NETWORKS

Network Layer Introduction

TOC: Switching & Forwarding

Master Course Computer Networks IN2097

Master Course Computer Networks IN2097

CSC 4900 Computer Networks: TCP

Master Course Computer Networks IN2097

The Network Layer Forwarding Tables and Switching Fabric

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer

Chapter 6 Queuing Disciplines. Networking CS 3470, Section 1

CSE398: Network Systems Design

Part 5: Link Layer Technologies. CSE 3461: Introduction to Computer Networking Reading: Chapter 5, Kurose and Ross

EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane

CSC 4900 Computer Networks: Network Layer

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

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

Quality of Service (QoS)

CSC 4900 Computer Networks: Transport Layer

Chapter 4: Network Layer

Part1: Lecture 4 QoS

Transcription:

CSC 4900 Computer Networks: Network Layer Professor Henry Carter Fall 2017 Villanova University Department of Computing Sciences

Review What is AIMD? When do we use it? What is the steady state profile of TCP? Is this good or bad? Is TCP fair? Villanova University Department of Computing Sciences 2

Where in the Stack... Application Transport Everything Else! The Web, DNS, Bittorrent, etc Process to Process - Guarantees? Everything Else? What s that? Villanova University Department of Computing Sciences 3

Chapter 4: Network Layer Chapter goals: understand principles behind network layer services: network layer service models forwarding versus routing how a router works generalized routing rules instantiation, implementation in the Internet Villanova University Department of Computing Sciences 4

Chapter 4: Network Layer 4. 1 Introduction 4.2 What s inside a router 4.3 IP: Internet Protocol Datagram format 4.4 Generalized forwarding SDN Forwarding rules Examples in middleboxes IPv4 addressing IPv6 Villanova University Department of Computing Sciences 5

Network layer transport segment from sending to receiving host on sending side encapsulates segments into datagrams on receiving side, delivers segments to transport layer network layer protocols in every host, router router examines header fields in all IP datagrams passing through it this is the first layer that everything between you and the receiver looks at! Villanova University Department of Computing Sciences 6

Two Key Network-Layer Functions forwarding: move packets from router s input to appropriate router output routing: determine route taken by packets from source to dest. routing algorithms analogy: routing: process of planning trip from source to dest forwarding: process of getting through single interchange Think of it this way - this is the difference between figuring out the way to your destination using Google Maps and completing the next step in those directions! Villanova University Department of Computing Sciences 7

Per-Router Control Plane Individual routing algorithm components in each and every router interact in the control plane Routing Algorithm Local forwarding table header 0100 0110 0111 1001 output 3 2 2 1 control plane data plane values in arriving packet header 0111 1 3 2 Villanova University Department of Computing Sciences 8

Logically Centralized Control Plane A distinct (typically remote) controller interacts with local control agents (CAs) Remote Controller CA control plane data plane values in arriving packet header CA CA CA CA 0111 1 3 2 Villanova University Department of Computing Sciences 9

Connection setup 3 rd important function in some network architectures: ATM, frame relay, X.25 before datagrams flow, two end hosts and intervening routers establish virtual connection routers get involved network vs transport layer connection service: network: between two hosts (may also involve intervening routers in case of VCs) transport: between two processes Villanova University Department of Computing Sciences 10

Network service model Q: What service model for channel transporting datagrams from sender to receiver? Example services for individual datagrams: guaranteed delivery guaranteed delivery with less than 40 msec delay Example services for a flow of datagrams: in-order datagram delivery guaranteed minimum bandwidth to flow restrictions on changes in inter-packet spacing security Villanova University Department of Computing Sciences 11

Network layer service models: Network Architecture Service Model Bandwidth Loss Protection Order Guarantee Timing Guarantee Congestion feedback Internet best effort none no no no no (inferred via loss) Async Transfer Mode (ATM) CBR constant rate yes yes yes no congestion ATM ABR guaranteed minimum no yes no yes Villanova University Department of Computing Sciences 12

Chapter 4: Network Layer 4. 1 Introduction 4.2 What s inside a router 4.3 IP: Internet Protocol Datagram format 4.4 Generalized forwarding SDN Forwarding rules Examples in middleboxes IPv4 addressing IPv6 Villanova University Department of Computing Sciences 13

Router Architecture Overview Two key router functions: run routing algorithms/protocol (RIP, OSPF, BGP) forwarding datagrams from incoming to outgoing link Villanova University Department of Computing Sciences 14

Input Port Functions Decentralized switching: given datagram dest., lookup output port using forwarding table in input port memory goal: complete input port processing at line speed queuing: if datagrams arrive faster than forwarding rate into switch fabric Villanova University Department of Computing Sciences 15

Switching via Memory First generation routers Traditional computers with switching under direct control of CPU Packet copied to system s memory Speed limited by memory bandwidth (2 bus crossings per datagram) Villanova University Department of Computing Sciences 16

Switching Via a Bus datagram from input port memory to output port memory via a shared bus bus contention: switching speed limited by bus bandwidth 32 Gbps bus, Cisco 5600: sufficient speed for access and enterprise routers Villanova University Department of Computing Sciences 17

Switching Via An Interconnection Network overcome bus bandwidth limitations banyan networks, crossbar, other interconnection nets initially developed to connect processors in multiprocessor advanced design: fragmenting datagram into fixed length cells, switch cells through the fabric. Cisco 12000: switches 60 Gbps through the interconnection network Villanova University Department of Computing Sciences 18

Output Ports Buffering required when datagrams arrive from fabric faster than the transmission rate Scheduling discipline chooses among queued datagrams for transmission Villanova University Department of Computing Sciences 19

Output port queueing Buffering when arrival rate via switch exceeds output line speed Queueing (delay) and loss due to output port buffer overfilling! Villanova University Department of Computing Sciences 20

How much buffering? RFC 3439 rule of thumb: average buffering equal to typical RTT (say 250 msec) times link capacity C e.g., C = 10 Gps link: 2.5 Gbit buffer Recent recommendation: with N flows, buffering equal to: Villanova University Department of Computing Sciences 21

Input Port Queuing Fabric slower than input ports combined -> queueing may occur at input queues queueing delay and loss due to input buffer overfill! Head-of-the-Line (HOL) blocking: queued datagram at front of queue prevents others in queue from moving forward Villanova University Department of Computing Sciences 22

Scheduling Mechanisms scheduling: choose next packet to send on link FIFO (first in first out) scheduling: send in order of arrival to queue real-world example? discard policy: if packet arrives to full queue: who to discard? tail drop: drop arriving packet priority: drop/remove on priority basis random: drop/remove randomly packet arrivals queue (waiting area) link (server) packet departures Villanova University Department of Computing Sciences 23

Scheduling Policies: Priority priority scheduling: send highest priority queued packet arrivals high priority queue (waiting area) departures multiple classes, with different priorities class may depend on marking or other header info, e.g. IP source/dest, port numbers, etc. real world example? arrivals packet in service classify 1 2 departures low priority queue (waiting area) 3 link (server) 5 1 3 2 4 5 1 4 3 2 4 5 Villanova University Department of Computing Sciences 24

Scheduling Policies: Still More Round Robin (RR) scheduling: multiple classes cyclically scan class queues, sending one complete packet from each class (if available) real world example? arrivals packet in service 1 2 3 4 5 1 3 2 4 5 departures 1 3 3 4 5 Villanova University Department of Computing Sciences 25

Scheduling Policies: More Still Weighted Fair Queuing (WFQ): generalized Round Robin each class gets weighted amount of service in each cycle real-world example? Villanova University Department of Computing Sciences 26

Chapter 4: Network Layer 4. 1 Introduction 4.2 What s inside a router 4.3 IP: Internet Protocol Datagram format 4.4 Generalized forwarding SDN Forwarding rules Examples in middleboxes IPv4 addressing IPv6 Villanova University Department of Computing Sciences 27

The Internet Network layer Host, router network layer functions: Villanova University Department of Computing Sciences 28

IP datagram format Villanova University Department of Computing Sciences 29

IP Fragmentation & Reassembly network links have MTU (max.transfer size) - largest possible link-level frame. different link types, different MTUs large IP datagram divided ( fragmented ) within net one datagram becomes several datagrams reassembled only at final destination IP header bits used to identify, order related fragments Villanova University Department of Computing Sciences 30

IP Fragmentation and Reassembly Villanova University Department of Computing Sciences 31

Recap The network layer is responsible for inter-host communication, involving Forwarding Routing Router internals require processing at several layers of the IP stack and multiple queues Determining the appropriate queue scheduling strategy can have a major performance impact. IP fragmentation can result in transport segments being split across IP datagrams Villanova University Department of Computing Sciences 32

Next Time... Textbook Chapter 4.3-4.4 Remember, you need to read it BEFORE you come to class! Homework HW #1 graded Project #1 grades this week Villanova University Department of Computing Sciences 33