CSCE 463/612 Networks and Distributed Processing Spring 2018

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

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

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

COMP211 Chapter 4 Network Layer: The Data Plane

Router Architecture Overview

Chapter 4: Network Layer

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

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

Chapter 4: network layer

Master Course Computer Networks IN2097

Network Layer PREPARED BY AHMED ABDEL-RAOUF

CSCI Computer Networks Fall 2016

Lecture 16: Network Layer Overview, Internet Protocol

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

internet technologies and standards

CSC 401 Data and Computer Communications Networks

internet technologies and standards

Network Layer: Control/data plane, addressing, routers

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

TDTS06: computer Networks

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

Network layer: Overview. Network Layer Functions

Chapter 4 Network Layer

CMPE 80N: Introduction to Networking and the Internet

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

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

Chapter 4 Network Layer: The Data Plane

CSC 401 Data and Computer Communications Networks

Network Layer: Router Architecture, IP Addressing

Network Layer: Internet Protocol

Chapter 4 Network Layer

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

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

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

Chapter 4 Network Layer

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

Chapter 4 Network Layer: The Data Plane

Network Layer: Data Plane 4-2

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

Chapter 4 Network Layer: The Data Plane

Chapter 4 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

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

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

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

CS 3516: 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

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)

CS 3516: Advanced Computer Networks

Routers. Session 12 INST 346 Technologies, Infrastructure and Architecture

Computer Networking Introduction

Chapter 4 Network Layer: The Data Plane

NETWORK LAYER DATA PLANE

RSC Part II: Network Layer. 3. IP addressing. II.5 Network routing. II. 1 Basic Network layer concepts II.2 Introduction to IP

Δίκτυα Υπολογιστών ΙΙ. Κώστας Μαγκούτης Επίκουρος Καθηγητής Τμήμα Μηχανικών Η/Υ και Πληροφορικής Πανεπιστήμιο Ιωαννίνων

Chapter 4 Network Layer: The Data Plane

CS 3516: Advanced Computer Networks

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

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

The Network Layer Forwarding Tables and Switching Fabric

The Network Layer and Routers

Chapter 4 Network Layer

Network Layer: outline

Chapter 4 Network Layer

ECE 158A: Lecture 7. Fall 2015

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

CSC 4900 Computer Networks: Network Layer

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

Chapter 4 Network Layer: The Data Plane

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

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

CMSC 332 Computer Networks Network Layer

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

CSE 3214: Computer Network Protocols and Applications Network Layer

Computer Networks. Instructor: Niklas Carlsson

Chapter 4: Network Layer

The Network Layer Forwarding Tables and Switching Fabric

IPv4. Christian Grothoff.

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

Computer Network Fundamentals Spring Week 4 Network Layer Andreas Terzis

Internet Technology 3/23/2016

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

Internetworking With TCP/IP

EECS 3214: Computer Networks Protocols and Applications

Network layer. Key Network-Layer Functions. Network service model. Interplay between routing and forwarding. CSE 4213: Computer Networks II

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

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

Chapter 4 Network Layer: The Data Plane

CSC 4900 Computer Networks: Network Layer

Key Network-Layer Functions

CS4/MSc Computer Networking. Lecture 4 The network layer: Forwarding, Routing, IP and Internet routing protocols

LS Example 5 3 C 5 A 1 D

CS4/MSc Computer Networking. Lectures 6-8 The network layer: Forwarding, Routing, IP and Internet routing protocols

Department of Computer and IT Engineering University of Kurdistan. Network Layer. By: Dr. Alireza Abdollahpouri

Network Technology 1 5th - Network Layer. Mario Lombardo -

UNIT III THE NETWORK LAYER

Transcription:

CSCE 463/612 Networks and Distributed Processing Spring 2018 Network Layer II Dmitri Loguinov Texas A&M University April 3, 2018 Original slides copyright 1996-2004 J.F Kurose and K.W. Ross 1

Chapter 4: Roadmap 4.1 Introduction 4.2 Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol 4.5 Routing algorithms 4.6 Routing in the Internet 4.7 Broadcast and multicast routing 2

Router Architecture Overview Two key router functions: Run routing algorithms/protocol (RIP, OSPF, BGP) Forward datagrams from incoming to outgoing link Terminology: port = interface capable of sending/receiving port 1 port M in out Switch fabric hardware 3

Input Port (Queue) Functions Physical layer: bit-level reception Data link layer (e.g., Ethernet, ATM, Token Ring, 802.11b): see ch. 5 Decentralized switching: Given datagram destination, look up 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 4

Switching Via Memory First generation routers (1960s-mid 1980s): Traditional computers with switching under direct control of CPU Packet copied to system memory Speed limited by CPU, memory latency/bandwidth, and bus bandwidth (two bus crossings per datagram) Honeywell 316 (1969) 5

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 in Cisco 1900: sufficient speed for access and small enterprise networks (not ISPs) 6

Switching Via An Interconnection Network Overcomes bus bandwidth limitations Crossbar: packets transmitted in parallel as long as they do not occupy the same horizontal or vertical bus Cisco 12000 (1996): uses an interconnection network CSR-X (2013): 1600 lbs, 84 rack, 7.6 KWatt, 800 Gbps/slot 16 slots/rack = 12.8 Tbps Up to 72 racks (922 Tbps) 7

Output Ports Buffering/queuing required when datagrams arrive from fabric faster than the transmission rate Scheduling discipline chooses among queued datagrams for transmission Customer traffic: single FIFO drop-tail queue ISP traffic: multiple queues with WRR or priority queuing 8

Output Port Queuing time t time t+3 Packets going to same output port must be processed sequentially, causing delay in input ports Buffering when arrival rate via switch fabric exceeds output line speed Queuing delay and loss due to output buffer overflow time units of switch fabric 9

Input Port Queuing Additional reasons for input-port queuing: Head-of-Line (HOL) blocking: queued datagram at front of queue prevents others in queue from moving forward time t time t+1 Queuing delay and loss due to input buffer overflow! How likely is this compared to output port queuing/loss? 10

Chapter 4: Roadmap 4.1 Introduction 4.2 Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol 4.5 Routing algorithms 4.6 Routing in the Internet 4.7 Broadcast and multicast routing 11

The Internet Network Layer Host and router network layer functions: Transport layer: TCP, UDP Network layer Routing protocols Path selection RIP, OSPF, BGP IGMP protocol Multicast forwarding table IP protocol Datagram format Addressing conventions ICMP protocol Error reporting Ping, traceroute Link layer physical layer 12

Chapter 4: Roadmap 4.1 Introduction 4.2 Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP IPv6 4.5 Routing algorithms 4.6 Routing in the Internet 4.7 Broadcast and multicast routing 13

IP Datagram Format IP protocol version number Header length (in 4-byte words) QoS requested Max number remaining hops (decremented at each router) Upper layer protocol to deliver payload to How much overhead with TCP? 20 bytes of TCP 20 bytes of IP = 40 bytes ver hdr len 16-bit identifier time to live type of service upper layer 32 bits flgs length fragment offset Internet checksum 32 bit source IP address 32 bit destination IP address Options (if any) data (variable length, typically a TCP or UDP segment) Total datagram length (bytes) For fragmentation/ reassembly E.g. timestamp, record route taken, specify list of routers to visit 14

IP Fragmentation & Reassembly Network links have varying MTUs (maximum transmission units) largest possible link-level frames Different link types, different MTUs (most common 1500) Large IP datagram divided ( fragmented ) within network One datagram becomes several datagrams Reassembled only at final destination IP header bits used to identify, order related fragments fragmentation: in: one large datagram out: 3 smaller datagrams reassembly 15

IP Fragmentation and Reassembly Example 4000 byte datagram (including IP header) MTU = 1500 bytes length =4000 ID =x fragflag =0 offset =0 One large datagram becomes several smaller datagrams 1480 bytes in payload offset is in 8-byte words: 185 = 1480/8 length =1500 length =1500 length =1040 ID =x ID =x ID =x fragflag =1 fragflag =1 fragflag =0 offset =0 offset =185 offset =370 16

Chapter 4: Roadmap 4.1 Introduction 4.2 Virtual circuit and datagram networks 4.3 What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP IPv6 4.5 Routing algorithms 4.6 Routing in the Internet 4.7 Broadcast and multicast routing 17

IP Addressing: Introduction IP address: 32-bit identifier for host or router interface Interface: connection between host/router and physical link Also called a port Routers typically have multiple interfaces Can hosts have multiple interfaces? Yes, it s called multihoming 223.1.1.1 223.1.1.2 223.1.1.3 223.1.3.1 223.1.1.4 223.1.2.9 223.1.3.27 223.1.3.2 223.1.2.1 223.1.2.2 223.1.1.1 = 11011111 00000001 00000001 00000001 223 1 1 1 18

Subnets IP address: Subnet prefix: k bits Host suffix: 32-k remaining bits What s a subnet (LAN)? Network composed of devices with the same subnet prefix of IP address Can physically reach each other without intervening router 223.1.1.1 223.1.1.2 223.1.2.1 223.1.1.4 223.1.2.9 223.1.1.3 223.1.3.1 223.1.2.2 223.1.3.27 LAN 223.1.3.2 network consisting of 3 subnets 223.8.3.2 223.1.3.200 19

Subnets 223.1.1.0/24 223.1.2.0/24 Recipe To determine the subnets, detach each interface from its host or router, creating islands of isolated networks Each isolated network is a subnet Subnet mask: 255.255.255.0 or /24 223.1.3.0/24 20

Subnets 223.1.1.2 How many? 223.1.1.1 223.1.1.3 223.1.1.4 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

IP Addressing: CIDR In the early Internet, only subnets with 8, 16, or 24 bit prefixes were allowed ( class A, B, C networks) This was inflexible and wasteful as well CIDR: Classless InterDomain Routing Subnet portion of address of arbitrary length Address format: a.b.c.d/x, where x is # bits in the subnet portion of address subnet host part part 11001000 00010111 00010000 00000000 200.23.16.0/23 22

IP Addresses: How to Get One? Q: How does a host get an IP address? Either hard-coded by system admin in a file Windows: Control-panel network configuration tcp/ip properties Linux: /etc/rc.config Or dynamically assigned by DHCP (Dynamic Host Configuration Protocol) Plug-and-play (more in Chapter 5) 23

IP Addresses: How to Get One? Q: How does a network get subnet part of IP addr? A: Gets allocated portion of its provider ISP s address space ISP's block 11001000 00010111 00010000 00000000 200.23.16.0/20 Organization 0 11001000 00010111 00010000 00000000 200.23.16.0/23 Organization 1 11001000 00010111 00010010 00000000 200.23.18.0/23 Organization 2 11001000 00010111 00010100 00000000 200.23.20.0/23....... Organization 7 11001000 00010111 00011110 00000000 200.23.30.0/23 Task: split this ISP into one /21, three /23, and eight /26 24

Hierarchical Addressing: Route Aggregation Hierarchical addressing allows efficient advertisement of routing information: Organization 0 200.23.16.0/23 Organization 1 200.23.18.0/23 Organization 2 200.23.20.0/23. Organization 7 200.23.30.0/23 ISP-A ISP-B Send me anything with addresses beginning with 200.23.16.0/20 Send me anything with addresses beginning with 199.31.0.0/16 Internet 25

Hierarchical Addressing: More Specific Routes ISP-B has a more specific route to Organization 1 Organization 0 200.23.16.0/23 Organization 2 200.23.20.0/23... ISP-A. Organization 7 200.23.30.0/23 Organization 1 200.23.18.0/23 ISP-B Send me anything in 200.23.16.0/20 Send me anything in 199.31.0.0/16 or 200.23.18.0/23 Internet 26

IP Addressing: Last Word... Q: How does an ISP get a block of addresses? A: ICANN: Internet Corporation for Assigned Names and Numbers assigns IPs to regional registries These are ARIN (North/South America), RIPE (Europe), APNIC (Asia-Pacific), and AfriNIC (Africa) These registries process ISP and user requests for subnet space Also manage DNS and resolve disputes Quiz #3 covers Chapter 3: P7-9, 22-24, 26-28, 31-37, 40-41, 43-49 Chapter 4: P1-17 (including today s lecture) 27