Computer Networks. Instructor: Niklas Carlsson

Similar documents
Key Network-Layer Functions

Chapter 4 Network Layer

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

CSE 3214: Computer Network Protocols and Applications Network Layer

CMSC 332 Computer Networks Network Layer

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

Lecture 7. Network Layer. Network Layer 1-1

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

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

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

Network layer overview

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

CSC 4900 Computer Networks: Network Layer

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

Chapter 4 Network Layer: The Data Plane

TDTS06: computer Networks

Chapter 4: network layer

Chapter 4 Network Layer

CSC 401 Data and Computer Communications Networks

The Network Layer and Routers

Network Layer: outline

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

internet technologies and standards

Routers: Forwarding EECS 122: Lecture 13

Routers: Forwarding EECS 122: Lecture 13

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

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

CSCE 463/612 Networks and Distributed Processing Spring 2018

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

Lecture 16: Network Layer Overview, Internet Protocol

Chapter 4 Network Layer

Chapter 4 Network Layer

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

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

Chapter 4 Network Layer

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

Chapter 4: Network Layer

CSCD 330 Network Programming

Master Course Computer Networks IN2097

Network Layer Introduction

CSCE 463/612 Networks and Distributed Processing Spring 2018

Chapter 4 Network Layer

UNIT III THE NETWORK LAYER

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

Router Architecture Overview

internet technologies and standards

LS Example 5 3 C 5 A 1 D

NETWORK LAYER DATA PLANE

Router Architecture Overview

Chapter 4: Network Layer

Chapter 4 Network Layer: The Data Plane

CS 43: Computer Networks. 20: The Network Layer November 5, 2018

Chapter 4: Network Layer

TOC: Switching & Forwarding

COMP211 Chapter 4 Network Layer: The Data Plane

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

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

TOC: Switching & Forwarding

4.2 Virtual Circuit and Datagram Networks

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

Network Layer Enhancements

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

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

Routing, Routers, Switching Fabrics

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

CS 3516: Advanced Computer Networks

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

Chapter 4 Network Layer: The Data Plane

Chapter 4 Network Layer: The Data Plane

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

Chapter 4 Network Layer: The Data Plane

Network Layer: Router Architecture, IP Addressing

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

Chapter 4 Network Layer: The Data Plane

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

Chapter 4: Network Layer. Chapter 4 Network Layer. Chapter 4: Network Layer. Network layer. Chapter goals:

Network Layer PREPARED BY AHMED ABDEL-RAOUF

Network Layer: Data Plane 4-2

Module 3 Network Layer CS755! 3-1!

Chapter 4 Network Layer: The Data Plane

The Network Layer Forwarding Tables and Switching Fabric

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

Routers. Session 12 INST 346 Technologies, Infrastructure and Architecture

EPL606. Internetworking. Part 2a. 1Network Layer

CS 3516: Computer Networks

Router Architectures

Router Construction. Workstation-Based. Switching Hardware Design Goals throughput (depends on traffic model) scalability (a function of n) Outline

Internetworking With TCP/IP

Chapter 4 Network Layer: The Data Plane

TDTS06: Computer Networks

CS 43: Computer Networks The Network Layer. Kevin Webb Swarthmore College November 2, 2017

Switching / Forwarding

Announcement. Project 2 extended to 2/20 midnight Project 3 available this weekend Homework 3 available today, will put it online

CS 3516: Computer Networks

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

Chapter 4 Network Layer

Internet Architecture. Network Layer Overview. Fundamental Network Layer Function. Protocol Layering and Data. Computer Networks 9/23/2009

CSCI Computer Networks Fall 2016

Chapter 3 Transport, Network and Link Layers

Computer Networks. Wenzhong Li. Nanjing University

Transcription:

Computer Networks Instructor: Niklas Carlsson Email: niklas.carlsson@liu.se Notes derived from Computer Networking: A Top Down Approach, by Jim Kurose and Keith Ross, Addison-Wesley. The slides are adapted and modified based on slides from the book s companion Web site, as well as modified slides by Anirban Mahanti and Carey Williamson. 1

Key Network-Layer Functions forwarding: move packets from router s input to appropriate router output routing: determine the path taken by packets as they flow from a sender to a receiver 2

Interplay between routing and forwarding routing algorithm local forwarding table header value output link 0100 0101 0111 1001 3 2 2 1 value in arriving packet s header 0111 1 3 2 3

Interplay between routing and forwarding routing algorithm local forwarding table header value output link 0100 0101 0111 1001 3 2 2 1 Forwarding table uses: Destination address in Datagram networks Virtual circuit number in VC Networks value in arriving packet s header 0111 1 3 2 4

Connection-oriented vs connection-less 1) VC network provides network-layer connection-oriented service 2) Datagram network provides network-layer connectionless service 5

1) Virtual circuits (think phone networks) source-to-dest path behaves much like telephone circuit performance-wise network actions along source-to-dest path 6

Virtual circuits: signaling protocols call setup, teardown for each call before data can flow each packet carries VC identifier (not destination host address) every router on source-dest path maintains state for each passing connection link, router resources (bandwidth, buffers) may be allocated to VC application transport network data link physical 5. Data flow begins 6. Receive data 4. Call connected 3. Accept call 1. Initiate call 2. incoming call application transport network data link physical 7

VC implementation A VC consists of: 1. Path from source to destination 2. VC numbers, one number for each link along path 3. Entries in forwarding tables in routers along path Packet belonging to VC carries a VC number. VC number must be changed on each link. New VC number comes from forwarding table 8

Forwarding table VC # 12 1 2 3?? Forwarding table in Northwest router: interface number Incoming interface Incoming VC # Outgoing interface Outgoing VC # 1 12 3 22 2 63 1 18 3 7 2 17 1 97 3 87 Routers maintain connection state information! 9

Forwarding table VC # 12 1 2 3 22 32 Forwarding table in Northwest router: interface number Incoming interface Incoming VC # Outgoing interface Outgoing VC # 1 12 3 22 2 63 1 18 3 7 2 17 1 97 3 87 Routers maintain connection state information! 10

2) Datagram networks (used on the Internet) no call setup at network layer routers: no state about end-to-end connections no network-level concept of connection packets forwarded using destination host address packets between same source-dest pair may take different paths application transport network data link physical 1. Send data 2. Receive data application transport network data link physical 11

Forwarding table IP # 200.23.22.161??? 0 3 2 1 Forwarding table in Northwest router: interface number Prefix Outgoing interface 200.23.16.0/21 0 200.23.24.0/23 1 200.23.24.0/21 2 See example from last lecture (part 1) for details Routers aggregation and longest prefix matching 12

Forwarding table IP # 200.23.24.172??? 0 3 2 1 Forwarding table in Northwest router: interface number Prefix Outgoing interface 200.23.16.0/21 0 200.23.24.0/23 1 200.23.24.0/21 2 See example from last lecture (part 1) for details Routers aggregation and longest prefix matching 13

Datagram or VC network: why? Internet data exchange among computers elastic service, no strict timing req. smart end systems (computers) can adapt, perform control, error recovery simple inside network, complexity at edge many link types different characteristics uniform service difficult ATM evolved from telephony human conversation: strict timing, reliability requirements need for guaranteed service dumb end systems telephones complexity inside network 14

15

Interplay between routing and forwarding routing algorithm local forwarding table header value output link 0100 0101 0111 1001 3 2 2 1 value in arriving packet s header 0111 1 3 2 16

Inside a Router 17

Router Architecture Overview Two key router functions: run routing algorithms/protocol (RIP, OSPF, BGP) forwarding datagrams from incoming to outgoing link 18

Router Architecture Overview Two key router functions: run routing algorithms/protocol (RIP, OSPF, BGP) forwarding datagrams from incoming to outgoing link 19

Input Port Functions Physical layer: bit-level reception Data link layer: e.g., Ethernet Decentralized switching: given datagram dest., lookup output port using forwarding table in input port memory (caching of entries) goal: complete input port processing at line speed queuing: if datagrams arrive faster than forwarding rate into switch fabric 20

Three types of switching fabrics 21

Output Ports Buffering required when datagrams arrive from fabric faster than the transmission rate Need queue management policy (Drop-Tail, AQM) Also need packet scheduling policy (FCFS, WFQ) 22

Output port queueing buffering when arrival rate via switch exceeds output line speed queueing (delay) and loss due to output port buffer overflow! 23

Input Port Queuing? Fabric slower than input ports combined -> queueing may occur at input queues Head-of-the-Line (HOL) blocking: queued datagram at front of queue prevents others in queue from moving forward (even though o/p port is free for the other datagram) 24

25

More slides 26

Interplay between routing and forwarding routing algorithm local forwarding table header value output link 0100 0101 0111 1001 3 2 2 1 value in arriving packet s header 0111 1 3 2 27

Network service model Q: What service model for the channel transporting datagrams from sender to receiver? 28

Network layer service models: Network Architecture Service Model Bandwidth Guarantees? Loss Order Timing Congestion feedback Internet ATM ATM ATM ATM best effort CBR VBR ABR UBR none constant rate guaranteed rate guaranteed minimum none no yes yes no no no yes yes yes yes no yes yes no no no (inferred via loss) no congestion no congestion yes no 29

Network layer connection-oriented and connection-less service Datagram network provides network-layer connectionless service VC network provides network-layer connection-oriented service Analogous to the transport-layer services, but: Service: host-to-host No choice: network provides one or the other Implementation: in the core 30

Virtual circuits source-to-dest path behaves much like telephone circuit performance-wise network actions along source-to-dest path call setup, teardown for each call before data can flow each packet carries VC identifier (not destination host address) every router on source-dest path maintains state for each passing connection link, router resources (bandwidth, buffers) may be allocated to VC 31

VC implementation A VC consists of: 1. Path from source to destination 2. VC numbers, one number for each link along path 3. Entries in forwarding tables in routers along path Packet belonging to VC carries a VC number. VC number must be changed on each link. New VC number comes from forwarding table 32

Forwarding table VC number 12 1 2 3 22 32 Forwarding table in Northwest router: interface number Incoming interface Incoming VC # Outgoing interface Outgoing VC # 1 12 3 22 2 63 1 18 3 7 2 17 1 97 3 87 Routers maintain connection state information! 33

Virtual circuits: signaling protocols used to setup, maintain, and teardown VC used in ATM, frame-relay, X.25 not used in today s Internet application transport network data link physical 5. Data flow begins 6. Receive data 4. Call connected 3. Accept call 1. Initiate call 2. incoming call application transport network data link physical 34

Datagram networks no call setup at network layer routers: no state about end-to-end connections no network-level concept of connection packets forwarded using destination host address packets between same source-dest pair may take different paths application transport network data link physical 1. Send data 2. Receive data application transport network data link physical 35

Datagram or VC network: why? Internet data exchange among computers elastic service, no strict timing req. smart end systems (computers) can adapt, perform control, error recovery simple inside network, complexity at edge many link types different characteristics uniform service difficult ATM evolved from telephony human conversation: strict timing, reliability requirements need for guaranteed service dumb end systems telephones complexity inside network 36

37

Next Topic Routing Algorithms Routing in the Internet Readings: Chapter 4 in the K&R book 38

39

More slides 40

VC Networks: Connection setup 3 rd important function in some network architectures: ATM, frame relay, X.25 Before datagrams flow, two hosts and intervening routers establish virtual connection Routers get involved Network and transport layer conn service: Network: between two hosts Transport: between two processes 41

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) Input Port Memory Output Port System Bus 42

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 1 Gbps bus, Cisco 1900: sufficient speed for access and enterprise routers (not regional or backbone) 43

Switching via an Interconnection Network Overcomes bus bandwidth limitations Banyan networks, 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 Gbps through the interconnection network 44