The Network Layer Forwarding Tables and Switching Fabric

Similar documents
The Network Layer Forwarding Tables and Switching Fabric

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

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

Quiz. Segment structure and fields Flow control (rwnd) Timeout interval. Phases transition ssthresh setting Cwnd setting

Master Course Computer Networks IN2097

Router Architecture Overview

Network Layer PREPARED BY AHMED ABDEL-RAOUF

internet technologies and standards

Chapter 4: network layer

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

CS 43: Computer Networks. 21: The Network Layer & IP November 7, 2018

Chapter 4: Network Layer

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

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

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

COMP211 Chapter 4 Network Layer: The Data Plane

Network Layer: Control/data plane, addressing, routers

CSC 401 Data and Computer Communications Networks

TDTS06: computer Networks

Subnets. IP datagram format. The Internet Network layer. IP Fragmentation and Reassembly. IP Fragmentation & Reassembly. IP Addressing: introduction

Network Layer: Router Architecture, IP Addressing

Chapter 4 Network Layer

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

internet technologies and standards

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

CSCI Computer Networks Fall 2016

CSC 401 Data and Computer Communications Networks

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

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

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

Routers. Session 12 INST 346 Technologies, Infrastructure and Architecture

Chapter 4 Network Layer: The Data Plane

Lecture 16: Network Layer Overview, Internet Protocol

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

Network Layer: Data Plane 4-2

Network layer: Overview. Network Layer Functions

Last time. Network layer. Introduction. Virtual circuit vs. datagram details. IP: the Internet Protocol. forwarding vs. routing

CSC 4900 Computer Networks: Network Layer

NETWORK LAYER DATA PLANE

CSCE 463/612 Networks and Distributed Processing Spring 2018

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing

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

Chapter 4 Network Layer: The Data Plane

Chapter 4 Network Layer

Network Layer: Internet Protocol

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

Computer Networking Introduction

CMPE 80N: Introduction to Networking and the Internet

Data Communications & Networks. Session 7 Main Theme Networks: Part I Circuit Switching, Packet Switching, The 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: The Data Plane

Hierarchical Routing. Our routing study thus far - idealization all routers identical network flat no true in practice. administrative autonomy

Chapter 4 Network Layer

Chapter 4 Network Layer

CSCD58 WINTER 2018 WEEK 6 - NETWORK LAYER PART 1. Brian Harrington. February 13, University of Toronto Scarborough

Chapter 4 Network Layer: The Data Plane

CS 3516: Advanced Computer Networks

Chapter 4 Network Layer: The Data Plane

Chapter 4 Network Layer: The Data Plane

Chapter 4 Network Layer

Network Layer: outline

CMSC 332 Computer Networks Network Layer

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

IPv4. Christian Grothoff.

Chapter 4 Network Layer: The Data Plane

IPv4 addressing, NAT. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley.

CS 3516: Advanced Computer Networks

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

Chapter 4 Network Layer

EPL606. Internetworking. Part 2a. 1Network Layer

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

Chapter 4 Network Layer: The Data Plane

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

Summary Chapter 4. Smith College, CSC 249 March 2, q IP Addressing. q DHCP dynamic addressing

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

Chapter 4 Network Layer: The Data Plane

Different Layers Lecture 20

CSE 3214: Computer Network Protocols and Applications Network Layer

ECE 4450:427/527 - Computer Networks Spring 2017

Internet Technology 3/23/2016

Computer Network Fundamentals Spring Week 4 Network Layer Andreas Terzis

EITF25 Internet Techniques and Applications L7: Internet. Stefan Höst

RSC Part II: Network Layer 3. IP addressing (2nd part)

Lecture 17: Network Layer Addressing, Control Plane, and Routing

Network layer. Network Layer 4-1. application transport network data link physical. network data link physical. network data link physical

Network Layer. CMPS 4750/6750: Computer Networks

ECE 158A: Lecture 7. Fall 2015

3.7 TCP congestion. reliable data transfer. sliding window. Lecture 4: Transport layer III: flow control and congestion control & Network layer I: IP

Distributed Systems. 7. Network Layer. Werner Nutt

IP - The Internet Protocol

CS 3516: Computer Networks

Internetworking With TCP/IP

Networking Potpourri: Plug-n-Play, Next Gen

EEC-484/584 Computer Networks

ECPE / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

cs144 Midterm Review Fall 2010

CS 457 Lecture 11 More IP Networking. Fall 2011

Information Network Systems The network layer. Stephan Sigg

ECPE / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

Transcription:

The Network Layer Forwarding Tables and Switching Fabric Smith College, CSC 249 February 27, 2018 1 Network Layer Overview q Network layer services v v Desired services and tasks Actual services and tasks q Forwarding versus routing v v Routing algorithms path selection Routing algorithms creation of forwarding table q Inside a router: switching fabric q Three Network Layer protocols v v v IP for addressing and forwarding Routing protocols determining the best path ICMP messaging protocol 2 1

Network layer q Transport a segment from sending to receiving host, but implemented in the core q The sending side encapsulates segments into datagrams q The receiving side delivers segments to transport layer q Network layer protocols run in every host & router v Router examines header fields in all IP datagrams passing through it application transport 3 application transport Network Layer Services of IP? q Guaranteed delivery? q Guaranteed minimum delay? q In-order datagram delivery? q Guaranteed minimum bandwidth to flow? q Restrictions on changes in interpacket spacing? q IP Provides? à Best-effort service 5 2

Key Network-Layer Functions 1. routing: determine route taken by packets from source to destination vnetwork-wide routing algorithms 2. forwarding: move packets from router s input link to appropriate output link vinternal to a single router 6 Router Architecture Overview Two key router functions: q 1. run routing algorithms/protocol q 2. forward datagrams from incoming to outgoing link 7 3

Four sources of packet delay Find an analogy for each category below in the caravan example. A transmission propagation B nodal processing queueing 8 Three types of switching fabric Current Implementations Older Options 9 4

Queuing in Routers q Where can queuing occur? q Why does it occur? 10 Input Port Functions Physical layer: bit-level reception Data link layer: e.g., Ethernet see chapter 5 Use Forwarding Table: q goal: complete input port processing at line speed q queuing occurs if datagrams arrive faster than forwarding rate into switch circuitry ( switching fabric ) 11 5

Input Port Queuing q Circuitry slower than input ports combined -> queueing may occur at input queues q Head-of-the-Line (HOL) blocking: queued datagram at front of queue prevents others in queue from moving forward q queuing delay and loss due to input buffer overflow 12 Output Ports q Buffering required when datagrams arrive from circuitry faster than the line transmission rate q Scheduling discipline chooses among queued datagrams for transmission 13 6

Output Port Queuing q Packet scheduler at the output port v Select one queued packet for transmission FCFS =? Weighted-fair-queuing share the outgoing link fairly among connections 14 Discussion Questions q Questions on handout 15 7

16 17 8

Interplay between routing and forwarding routing algorithm local forwarding table header value output link 0100 0101 0111 1001 3 2 2 1 Ø Create versus use the forwarding table Address value in arriving packet s header 0111 1 3 2 18 IP Addressing: Overview q IP address: 32-bit identifier for each interface on a host or router. v Dotted-decimal notation q Interface: connection between host/router and link v routers typically have multiple interfaces v hosts typically have one interface v IP addresses associated with each interface 223.1.1.1 223.1.1.2 223.1.1.3 223.1.2.9 223.1.3.1 223.1.3.27 223.1.2.1 223.1.2.2 223.1.3.2 223.1.1.1 = 11011111 00000001 00000001 00000001 223 1 1 1 19 9

Subnets q A subnet contains: v devices that can ly reach each other without an intervening router q IP address: v subnet portion (high order bits) v host portion (low order bits) q Subnet mask notation: v Differentiates the versus host part of the address v e.g., the leftmost 24 bits are for the 223.1.3.0/24 223.1.1.1 223.1.2.1 223.1.1.2 223.1.1.4 223.1.2.9 223.1.2.2 223.1.1.3 223.1.3.27 subnet 223.1.3.1 223.1.3.2 20 Subnets 223.1.1.2 How many subnets are in this figure? 223.1.1.1 223.1.1.4 223.1.1.3 223.1.9.2 223.1.7.0 223.1.9.1 223.1.8.1 223.1.8.0 223.1.7.1 223.1.2.6 223.1.3.27 223.1.2.1 223.1.2.2 223.1.3.1 223.1.3.2 21 10

IP addressing: CIDR CIDR: Classless InterDomain Routing v Subnet portion of address of arbitrary length v Address format: a.b.c.d/x x is the number of bits in subnet portion of address These x most significant bits are the prefix v Addresses of all hosts in the same subnet have the same left most x bits subnet part the prefix 11001000 00010111 00010000 00000000 200.23.16.0/23 host part 22 Forwarding table 2 32 = 4 billion possible addresses So the table could have 4 billion entries! Destination Address Range Link Interface 11001000 00010111 00010000 00000000 through 0 11001000 00010111 00010111 11111111 11001000 00010111 00011000 00000000 through 1 11001000 00010111 00011000 11111111 11001000 00010111 00011001 00000000 through 2 11001000 00010111 00011111 11111111 otherwise 3 11

Longest prefix matching Prefix Match Link Interface 11001000 00010111 00010*** ********* 0 11001000 00010111 00011000 ********* 1 11001000 00010111 00011*** ********* 2 otherwise 3 Examples DA: 11001000 00010111 00010110 10100001 Which interface? DA: 11001000 00010111 00011000 10101010 Which interface? 24 Forwarding Table Ranges qwhat are the assumptions and implications of having large ranges of IP addresses forwarded to the same outgoing link? qwhy is CIDRized ( classless ) addressing an improvement over classful addressing, that restricted the prefix to complete bytes? 25 12

TCP segment structure 32 bits source port # dest port # head len sequence number acknowledgement number not used checksum UAP R S F Receive window Urg data pnter Options (variable length) application data (variable length) 26 Internet Protocol: IP datagram format IP protocol version number header length (bytes) max number remaining hops (decremented at each router) upper layer protocol to deliver payload to how much overhead with TCP? q 20 bytes of TCP q 20 bytes of IP q = 40 bytes + app layer overhead ver head. len 16-bit identifier time to live 32 bits type of service upper layer flgs length data (variable length, typically a TCP or UDP segment) fragment offset Internet checksum 32 bit source IP address 32 bit destination IP address Options (if any) total datagram length (bytes) for fragmentation/ reassembly 27 13

Routing and Forwarding routing algorithm local forwarding table header value output link 0100 0101 0111 1001 3 2 2 1 Ø Create versus use the forwarding table Address value in arriving packet s header 0111 1 3 2 28 Determining the needed submask q IPv4 address dotted decimal notation with 4 bytes = 32 bits v 2 32 = 4 billion ( = 4,294,967,296) v 2 8 = 256 = numbers 0 through 255 v 2 16 = 65,536 = numbers 0 through 65,535 q If you need addresses for 1000 hosts, what should you request for a subnet mask? v xxx.xxx.xxx.xxx/_?_ q... For 5000 hosts? 29 14

Binary Number Sanity Check q 2 2 = 4 = 0100 q 2 3 = 8 = 1000 (one nibble) q 2 4 = 16 = 0001 0000 q 2 8 = 256 = 0001 0000 0000 (one byte) q 2 10 = 1024 = 0100 0000 0000 q 2 11 = 2048 = 1000 0000 0000 30 Longest prefix (subnet) matching Prefix Match Link Interface 11001000 00010111 00010*** ********* 0 11001000 00010111 00011000 ********* 1 11001000 00010111 00011*** ********* 2 otherwise 3 Examples Addr: 11001000 00010111 00010110 10100001 Which interface? Addr: 11001000 00010111 00011000 10101010 Which interface? 31 15

Discussion Questions q Back to the questions on handout 32 Smith College IP Addressing q Smith uses a variety of masks now, but most of the campus uses 255.255.254.0 rather than the much more common 255.255.255.0. q The reason goes back to our original subnets using the original Ethernet. q There weren t many subnets within Smith and the administrators thought they might need to support more than 256 hosts per subnet. 33 16

Smith College IP Addressing q The Science Center is mostly different from the rest of campus, because the CATS move machines around a lot and they are responsible for assigning the IP addresses within the science buildings. q Ford Hall has a 255.255.248.0 mask to allow for 2048 hosts in the building. q Bass and McConnell share a subnet of the same size, as do Burton and Sabin-Reed. 34 Smith College IP Addressing Possible QUESTIONS: 1) What mask would you need to support (x) hosts on a subnet? 2) Given a mask of 255.255.254.0, are the machines with IP addresses 131.229.22.50 and 131.229.23.243 on the same subnet? 3) How many hosts are supported in the range 131.229.22.00/23? 35 17

Smith College IP Addressing q Most people really want to identify a 131.229.23.x address as being on a different subnet from a 131.229.22.y address, whether it is or not. q QUESTION: When would hosts with the above masks be in the same subnet and when would they not be? (how would you specify the mask in each case?) 36 Booting Up q How to boot up a computer v How does a computer know where to start itself? q How to enter a computer v How does a computer know how to start communicating with other computers? v How does it get its own source IP address v Which devices/hosts does an entering computer need to communicate with first, and how does it do this? 37 18

IP addresses: how to get one? Q: How does get subnet part of IP address? A: Is allocated a portion of its provider ISP s address space, which gets that from ICANN (Internet Corp. for Assigned Names and Numbers) Q: How does a host get an IP address? q hard-coded by system administrator in a file, or q DHCP: Dynamic Host Configuration Protocol: dynamically get address from as server v plug-and-play 38 DHCP: Dynamic Host Configuration Protocol Goal: allow host to dynamically obtain its IP address from server when it joins a v Can renew its lease on the IP address it is using v Allows reuse of addresses once one host leaves v Support for mobile users to join s DHCP overview: 1) host broadcasts DHCP discover msg 2) DHCP server responds with DHCP offer msg 3) host requests IP address: DHCP request msg 4) DHCP server sends address: DHCP ack msg 39 19

DHCP client-server scenario A 223.1.1.1 DHCP server 223.1.2.1 B 223.1.1.2 223.1.1.4 223.1.2.9 223.1.1.3 223.1.3.27 223.1.2.2 E 223.1.3.1 223.1.3.2 arriving DHCP client needs address in this 40 DHCP client-server scenario DHCP server: 223.1.2.5 DHCP discover src : 0.0.0.0, 68 dest.: 255.255.255.255,67 yiaddr: 0.0.0.0 transaction ID: 654 arriving client time DHCP request DHCP offer src: 0.0.0.0, 68 dest:: 255.255.255.255, 67 yiaddr: 223.1.2.4 transaction ID: 655 Lifetime: 3600 secs src: 223.1.2.5, 67 dest: 255.255.255.255, 68 yiaddr: 223.1.2.4 transaction ID: 654 Lifetime: 3600 secs DHCP ACK src: 223.1.2.5, 67 dest: 255.255.255.255, 68 yiaddr: 223.1.2.4 transaction ID: 655 Lifetime: 3600 secs yiaddr = your internet address broadcast address, 255.255.255.255 à sent to every host in the subnet 41 20

Summary q There are many possible layer services à IP provides none q Forwarding vs. Routing v Forwarding tables q Inside a router v The internet in miniature v Switching fabric (circuitry) q The IP datagram q IP addressing structure 42 Midterm Topics q Know the principles for each layer v Know what the actual Internet implementation is (versus what might be desired) q Chapter 1 mainly sources of packet delay, v How (and which ones) to calculate v Understanding of all sources of delay q Applications v Architectures, mainly client-server v Types of connections parallel, FTP-data and control, etc. v What we did with Telnet v Socket programming 43 21

Midterm Topics q Transport Layer v Transport layer desired services v UDP and TCP actual services v Multiplexing/demultiplexing v Checksum v Connection management v Elements of reliable data transport v Timing diagrams with SEQ, ACK, SYN, etc v Congestion control elements and algorithm v Flow control 44 Midterm Topics q Network layer v The sources of packet delay, at the router Queueing at the input and output ports, why, how, terms... v The definition of / difference between forwarding and routing v Basic structure of IPv4 addresses v DHCP and NAT (today s topics) 45 22