CSC 401 Data and Computer Communications Networks

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

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: The Data Plane

COMP211 Chapter 4 Network Layer: The Data Plane

Chapter 4 Network Layer: The Data Plane

CS 3516: Advanced Computer Networks

Master Course Computer Networks IN2097

internet technologies and standards

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

Chapter 4: Network Layer

CMPE 80N: Introduction to Networking and the Internet

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 4900 Computer Networks: Network Layer

Network Layer: Router Architecture, IP Addressing

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

Network Layer: Data Plane 4-2

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

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

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

internet technologies and standards

Computer Networking Introduction

Chapter 4 Network Layer: The Data Plane

Router Architecture Overview

Chapter 4: network layer

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

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

CSCI Computer Networks Fall 2016

TDTS06: computer Networks

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

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

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

Network Layer: Internet Protocol

CSC 401 Data and Computer Communications Networks

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

Network layer: Overview. Network Layer Functions

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

CSCE 463/612 Networks and Distributed Processing Spring 2018

Network Layer PREPARED BY AHMED ABDEL-RAOUF

Chapter 4 Network Layer

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

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

Network Layer: Control/data plane, addressing, routers

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

Chapter 4 Network Layer

NETWORK LAYER DATA PLANE

Chapter 4: outline. 4.5 routing algorithms link state distance vector hierarchical routing. 4.6 routing in the Internet RIP OSPF BGP

Lecture 16: Network Layer Overview, Internet Protocol

CS 3516: Advanced Computer Networks

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)

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

The Network Layer Forwarding Tables and Switching Fabric

Chapter 4 Network Layer

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

IPv4. Christian Grothoff.

CS 3516: Computer Networks

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

EPL606. Internetworking. Part 2a. 1Network Layer

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

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

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.

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

Chapter 4 Network Layer

Computer Network Fundamentals Spring Week 4 Network Layer Andreas Terzis

ECE 4450:427/527 - Computer Networks Spring 2017

Internetworking With TCP/IP

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

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

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

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

Chapter 4 Network Layer

Lecture 11: Middleboxes and NAT (Duct tape for IPv4)

Network Layer. CMPS 4750/6750: Computer Networks

Routers. Session 12 INST 346 Technologies, Infrastructure and Architecture

COSC4377. TCP vs UDP Example Statistics

Computer Networking: A Top Down Approach Featuring the. Computer Networks with Internet Technology, William

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

ECE 158A: Lecture 7. Fall 2015

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

Chapter 4 Network Layer: The Data Plane

Chapter IV: Network Layer

CSC 401 Data and Computer Communications Networks

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

Networking Potpourri: Plug-n-Play, Next Gen

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

Chapter 4: Network Layer

Outline. IP Address. IP Address. The Internet Protocol. o Hostname & IP Address. o The Address

cs144 Midterm Review Fall 2010

Internet protocol stack

Distributed Systems. 7. Network Layer. Werner Nutt

Transcription:

CSC 401 Data and Computer Communications Networks Network Layer IPv4, Format and Addressing,, IPv6 Prof. Lina Battestilli Fall 2017

Chapter 4 Outline Network Layer: Data Plane 4.1 Overview of Network layer data plane control plane 4.2 What s inside a router 4.3 Internet Protocol (IP) datagram format, IPv4 addressing,, IPv6, NAT 4.4 Generalized Forward and SDN

The Internet network layer host, router network layer functions: transport layer: TCP, UDP network layer routing protocols path selection RIP, OSPF, BGP forwarding table IP protocol addressing conventions datagram format packet handling conventions ICMP protocol error reporting router signaling link layer physical layer

IP datagram format IP protocol version number header length (bytes) type of data max number remaining hops (decremented at each router) upper layer protocol to deliver payload to how much overhead? 20 bytes of TCP 20 bytes of IP = 40 bytes + app layer overhead ver head. len 16-bit identifier time to live type of service upper layer 32 bits flgs length fragment offset header 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) used for fragmentation/ reassembly e.g. timestamp, record route taken, specify list of routers to visit.

IP fragmentation, reassembly network links have MTU (max transmission unit) - 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 reassembly fragmentation: in: one large datagram out: 3 smaller datagrams

example: IP fragmentation, reassembly 4000 byte datagram 3980 bytes of payload MTU = 1500 bytes length =4000 ID =x fragflag =0 offset =0 1480 bytes of payload one large datagram becomes several smaller datagrams length =1500 ID =x fragflag =1 offset =0 Offset is specified in units of 8 bytes chunks offset = 1480/8 length =1500 length =1040 ID =x ID =x fragflag =1 fragflag =0 offset =185 offset =370 Does fragmentation have a cost?

IP addressing: introduction IP address: 32-bit identifier for host, router interface interface: connection between host/router and physical link router s typically have multiple interfaces host typically has one or two interfaces (e.g., wired Ethernet, wireless 802.11) IP addresses associated with each interface 223.1.1.1 223.1.1.3 dotted-decimal notation 223.1.2.1 223.1.1.4 223.1.2.9 223.1.3.27 223.1.2.2 223.1.3.1 223.1.3.2 223.1.1.1 = 11011111 00000001 00000001 00000001 223 1 1 1 Each interface must have a unique IP address

IP addressing: introduction Q: how are interfaces actually connected? A: we ll learn about that in chapter 6 and 7 223.1.1.2 223.1.1.1 223.1.1.4 223.1.2.9 223.1.2.1 A: wired Ethernet interfaces connected by Ethernet switches 223.1.1.3 223.1.3.27 223.1.3.1 223.1.2.2 223.1.3.2 For now: don t need to worry about how one interface is connected to another A: wireless WiFi interfaces connected by WiFi base station

Subnets no router IP address: subnet part - high order bits host part - low order bits netmask specifies subnet and host part bits. What s a subnet? device interfaces with same subnet part of IP address hosts on the same subnet can communicate with 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 subnet 223.1.3.2 network consisting of 3 subnets

Subnets recipe to determine the subnets, detach each interface from its host or router, creating islands of isolated networks each isolated network is called a subnet 223.1.1.0/24 223.1.2.0/24 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 subnet 223.1.3.2 223.1.3.0/24 Let s look at the the interfaces on my laptop subnet mask: /24

Subnets how many? 223.1.1.1 223.1.1.2 223.1.1.0/24 223.1.1.4 223.1.1.3 223.1.9.2 223.1.7.0 223.1.9.0/24 223.1.7.0/24 223.1.9.1 223.1.8.1 223.1.8.0 223.1.7.1 223.1.2.0/24 223.1.2.6 223.1.8.0/24 223.1.2.2 223.1.3.1 223.1.3.27 223.1.3.0/24 223.1.3.2

IP addressing: CIDR CIDR: Classless InterDomain Routing subnet portion of address of arbitrary length address format: a.b.c.d/x, where x is # bits in subnet portion of address subnet part host part 11001000 00010111 00010000 00000000 200.23.16.0/23 Broadcast Address 255.255.255.255 all hosts in a subnet get the those datagrams

Chapter 4 Outline Network Layer: Data Plane 4.1 Overview of Network layer data plane control plane 4.2 What s inside a router 4.3 Internet Protocol (IP) datagram format, IPv4 addressing,, IPv6, NAT 4.4 Generalized Forward and SDN

IP addresses: how to get one? Q: How does a host get IP address? hard-coded by system admin in a file Windows: control-panel->network->configuration->tcp/ip->properties UNIX: /etc/rc.config manually configure IP addresses routers by network admins : Dynamic Host Configuration Protocol: dynamically get address from as server plug-and-play, zeroconf protocol

: Dynamic Host Configuration Protocol goal: allow host to dynamically obtain its IP address from network when it joins the network can renew its lease on address in use allows reuse of addresses (only hold address while connected/ on ) support for mobile users who want to join network (more shortly) overview: host broadcasts discover msg [optional] server responds with offer msg [optional] host requests IP address: request msg server sends address: ack msg

client-server scenario 223.1.1.0/24 223.1.1.1 server 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 arriving client needs address in this network Relay agent 223.1.3.1 223.1.3.2 223.1.2.0/24 223.1.3.0/24

client-server scenario server: 223.1.2.5 request src: 0.0.0.0, 68 dest:: 255.255.255.255, 67 yiaddrr: 223.1.2.4 transaction ID: 655 lifetime: 3600 secs discover src : 0.0.0.0, 68 dest.: 255.255.255.255,67 yiaddr: 0.0.0.0 transaction ID: 654 offer src: 223.1.2.5, 67 dest: 255.255.255.255, 68 yiaddrr: 223.1.2.4 transaction ID: 654 lifetime: 3600 secs ACK src: 223.1.2.5, 67 dest: 255.255.255.255, 68 yiaddrr: 223.1.2.4 transaction ID: 655 lifetime: 3600 secs arriving client server runs over UDP, port 67 clients can renew lease Q: Why 4 steps? Only need an IP address?

: more than IP addresses can return more than just allocated IP address on subnet: address of first-hop router for client name and IP address of DNS sever network mask (indicating network versus host portion of address)

: example UDP IP Eth Phy UDP IP Eth Phy 168.1.1.1 router with server built into router connecting laptop needs its IP address, addr of first-hop router, addr of DNS server: use request encapsulated in UDP, encapsulated in IP, encapsulated in 802.1 Ethernet Ethernet frame broadcast (dest: FFFFFFFFFFFF) on LAN, received at router running server Ethernet demuxed to IP demuxed, UDP demuxed to

: example UDP IP Eth Phy server formulates ACK containing client s IP address, IP address of first-hop router for client, name & IP address of DNS server UDP IP Eth Phy router with server built into router encapsulation of server, frame forwarded to client, demuxing up to at client client now knows its IP address, name and IP address of DSN server, IP address of its first-hop router

Example What is the a.b.c.d/x notation for this example? 248 in binary is 11111000 30

IP addresses: how to get one? Q: how does 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

Hierarchical addressing: route aggregation hierarchical addressing allows efficient advertisement of routing info: 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.... Fly-By-Night-ISP ISPs-R-Us Send me anything with addresses beginning 200.23.16.0/20 Send me anything with addresses beginning 199.31.0.0/16 Internet

Hierarchical addressing: more specific routes ISPs-R-Us has a more specific route to Organization 1 Organization 0 200.23.16.0/23 Organization 2 200.23.20.0/23 Organization 7 200.23.30.0/23 Organization 1 200.23.18.0/23.... Fly-By-Night-ISP ISPs-R-Us Send me anything with addresses beginning 200.23.16.0/20 Internet Send me anything with addresses beginning 199.31.0.0/16 or 200.23.18.0/23 Why does that still work?

IP addressing: the last word... Q: How does an ISP get block of addresses? A: ICANN: Internet Corporation for Assigned Names and Numbers http://www.icann.org/ allocates addresses manages DNS assigns domain names, resolves disputes

Chapter 4 Outline Network Layer: Data Plane 4.1 Overview of Network layer data plane control plane 4.2 What s inside a router 4.3 Internet Protocol (IP) datagram format, IPv4 addressing,, IPv6, NAT 4.4 Generalized Forward and SDN

IPv6: motivation initial motivation: 32-bit address space soon to be completely allocated. additional motivation: header format helps speed processing/forwarding header changes to facilitate QoS IPv6 datagram format: fixed-length 40 byte header NO fragmentation allowed Work started in mid 1990s Feb 2011 IANA allocated the last pool of unassigned IPv4 addresses

IPv6 Address Structure IPv6 address has 128bits 2 128 (3.4x10 38 ) - 21 addresses/in 2 of the Earth surface Separated into subnet & interface portions: subnet prefix (n) interface ID (128-n) Addresses written in hexidecimal as 8 blocks of 16 bits, separated by : 2001:470:806d:1::9 prefixlen 64 2001:0470:806d:0001:0000:0000:0000:0009

IPv6 datagram format ver pri flow label payload len next hdr hop limit source address (128 bits) destination address (128 bits) data priority: identify priority among datagrams in flow flow Label: identify datagrams in same flow. next header: identify upper layer protocol for data 32 bits Other Changes from IPv4 checksum: removed entirely to reduce processing time at each hop options: allowed, but outside of header, indicated by Next Header field ICMPv6: new version of ICMP (e.g. Packet Too Big )

Transition from IPv4 to IPv6 not all routers can be upgraded simultaneously no flag days how will network operate with mixed IPv4 and IPv6 routers? tunneling: IPv6 datagram carried as payload in IPv4 datagram among IPv4 routers IPv4 header fields IPv4 source, dest addr IPv6 header fields IPv6 source dest addr UDP/TCP payload IPv4 payload IPv6 datagram IPv4 datagram

Tunneling logical view: A IPv6 B IPv6 IPv4 tunnel connecting IPv6 routers E IPv6 F IPv6 physical view: A B C D E F IPv6 IPv6 IPv4 IPv4 IPv6 IPv6 flow: X src: A dest: F data src:b dest: E Flow: X Src: A Dest: F src:b dest: E Flow: X Src: A Dest: F flow: X src: A dest: F data data data A-to-B: IPv6 B-to-C: IPv6 inside IPv4 B-to-C: IPv6 inside IPv4 E-to-F: IPv6

IPv6: adoption Google: 8% of clients access services via IPv6 NIST: 1/3 of all US government domains are IPv6 capable Long (long!) time for deployment, use 20 years and counting! think of application-level changes in last 20 years: WWW, Facebook, streaming media, Skype, Why?

References Some of the slides are identical or derived from 1. Slides for the 7 th edition of the book Kurose & Ross, Computer Networking: A Top-Down Approach, 2. Computer Networking, Nick McKeown and Philip Levis, 2014 Stanford University