CS 3516: Advanced Computer Networks

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

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

CSC 401 Data and Computer Communications Networks

Chapter 4 Network Layer: The Data Plane

Computer Networking Introduction

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

COMP211 Chapter 4 Network Layer: The Data Plane

Master Course Computer Networks IN2097

Chapter 4 Network Layer: The Data Plane

Network Layer: Router Architecture, IP Addressing

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

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

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

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

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

internet technologies and standards

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

CSC 4900 Computer Networks: Network Layer

internet technologies and standards

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

EPL606. Internetworking. Part 2a. 1Network Layer

Chapter 4: network layer

Chapter 4 Network Layer: The Data Plane

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

Chapter 4 Network Layer: The Data Plane

TDTS06: computer Networks

CS 3516: Computer Networks

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

Network Layer: Internet Protocol

Network Layer: Data Plane 4-2

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

Chapter 4 Network Layer

Chapter 4 Network Layer: The Data Plane

Chapter 4 Network Layer: The Data Plane

Chapter 4 Network Layer: The Data Plane

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

Router Architecture Overview

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

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

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

Network Layer: DHCP, ICMP, NAT, IPv6

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

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

Network layer: Overview. Network Layer Functions

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

CS 3516: Advanced Computer Networks

CSCE 463/612 Networks and Distributed Processing Spring 2018

Chapter 4 Network Layer

Chapter 4 Network Layer

CSCI Computer Networks Fall 2016

Chapter 4 Network Layer: The Data Plane

NETWORK LAYER DATA PLANE

CMPE 80N: Introduction to Networking and the Internet

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

CS 3516: Computer Networks

The Network Layer Forwarding Tables and Switching Fabric

Chapter 4 Network Layer

CS 3516: Advanced Computer Networks

ECE 4450:427/527 - Computer Networks Spring 2017

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

Network Layer: Control/data plane, addressing, routers

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

Chapter 4 Network Layer: The Data Plane

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

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

Lecture 16: Network Layer Overview, Internet Protocol

Network Layer PREPARED BY AHMED ABDEL-RAOUF

Chapter 4 Network Layer

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

IPv4. Christian Grothoff.

Internetworking With TCP/IP

CS 3516: Computer Networks

Routers. Session 12 INST 346 Technologies, Infrastructure and Architecture

CSC 401 Data and Computer Communications Networks

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

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

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

Distributed Systems. 7. Network Layer. Werner Nutt

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

Internet Network Protocols IPv4/ IPv6

Chapter 4: Network Layer. TDTS06 Computer networks. Subnets. Subnets. Subnets. IP Addressing: introduction

Addressing protocols. TELE3118 lecture notes Copyright by Tim Moors Aug-09. Copyright Aug-09, Tim Moors

CS 3516: Advanced Computer Networks

Networking Potpourri: Plug-n-Play, Next Gen

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

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

Chapter IV: Network Layer

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

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

CS118 Discussion 1A, Week 9. Zengwen Yuan Dodd Hall 78, Friday 10:00 11:50 a.m.

Chapter 4 Network Layer: The Data Plane

CSC 401 Data and Computer Communications Networks

How to deal with large numbers (millions) of entities in a system? IP devices in the internet (0.5 billion) Users in P2P network (millions)

Computer Network Fundamentals Spring Week 4 Network Layer Andreas Terzis

ECE 158A: Lecture 7. Fall 2015

CS 3516: Computer Networks

Putting it all together

CSCD 330 Network Programming Spring 2018

Transcription:

Welcome to CS 3516: Advanced Computer Networks Prof. Yanhua Li Time: 9:00am 9:50am M, T, R, and F Location: Fuller 320 Fall 2017 A-term 1 Some slides are originally from the course materials of the textbook Computer Networking: A Top Down Approach, 7th edition, by Jim Kurose, Keith Ross, Addison-Wesley March 2016. Copyright 1996-2017 J.F Kurose and K.W. Ross, All Rights Reserved.

Chapter 4-5: outline 4.1 introduction 4.4 IP: Internet Protocol datagram format IPv4 addressing Classful addressing Classless Inter-Domain Routing Network Layer 4-2

IP addressing: Classful addressing White board Network Layer 4-3

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 11001000 00010111 00010000 00000000 200.23.16.0/23 host part Network Layer 4-4

IP addressing: introduction v IP address: 32-bit identifier for host, router interface v 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) v IP addresses associated with each interface a subnet = a group of IP addresses = a group of interfaces 223.1.1.2 223.1.1.1 223.1.1.3 223.1.1.4 223.1.2.9 223.1.3.27 223.1.3.1 223.1.2.1 223.1.2.2 223.1.3.2 223.1.1.1 = 11011111 00000001 00000001 00000001 223 1 1 1

IP addressing: introduction Q: how are interfaces actually connected? A: we ll learn about that in chapter 6, 7. 223.1.1.2 223.1.1.1 223.1.1.4 223.1.2.9 223.1.2.1 223.1.1.3 223.1.3.27 223.1.2.2 A: wired Ethernet interfaces connected by Ethernet switches 223.1.3.1 223.1.3.2 For now: don t need to worry about how one interface is connected to another (with no intervening router) A: wireless WiFi interfaces connected by WiFi base station Network Layer 4-6

Subnets v IP address: a.b.c.d/x subnet part - high order bits host part - low order bits vwhat s a subnet? can physically reach each other without intervening router device interfaces with same subnet part of IP address 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 Network Layer 4-7

Subnets recipe v to determine the subnets, detach each interface from its host or router, creating islands of isolated networks v 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 subnet mask: /24 Network Layer 4-8

Subnets 223.1.1.0/24 223.1.1.2 how many? 223.1.1.1 223.1.1.4 223.1.1.3 223.1.9.0 223.1.7.0 223.1.9.0/24 223.1.7.0/24 223.1.9.1 223.1.2.6 223.1.8.1 223.1.8.0/24 223.1.8.0 223.1.7.1 223.1.3.27 223.1.2.1 223.1.2.2 223.1.3.1 223.1.3.2 223.1.2.0/24 223.1.3.0/24 Network Layer 4-9

IP addresses: how to get one? Q: How does a host get IP address? v hard-coded by system admin in a file Windows: control-panel->network->configuration- >tcp/ip->properties UNIX: /etc/rc.config v : Dynamic Host Configuration Protocol: dynamically get address plug-and-play Network Layer 4-10

: Dynamic Host Configuration Protocol goal: allow host to dynamically obtain its IP address from network server when it joins network can renew the lease allows reuse of addresses support for mobile users overview: host broadcasts discover msg [optional] server responds with offer msg [optional] host requests IP address: request msg server sends address: ack msg Network Layer 4-11

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 223.1.2.0/24 223.1.3.1 223.1.3.2 223.1.3.0/24 Network Layer 4-12

client-server scenario Transport Layer protocol: UDP server: 223.1.2.5 discover src : 0.0.0.0, 68 dest.: 255.255.255.255,67 yiaddr: 0.0.0.0 transaction ID: 654 Broadcast: is there a server out there? arriving client request offer src: 0.0.0.0, 68 dest:: 255.255.255.255, 67 yiaddrr: 223.1.2.4 that transaction IP address! ID: 655 lifetime: 3600 secs Broadcast: OK. I ll take src: 223.1.2.5, 67 dest: 255.255.255.255, 68 yiaddrr: 223.1.2.4 transaction ID: 654 lifetime: 3600 secs Broadcast: I m a server! Here s an IP address you can use ACK src: 223.1.2.5, 67 dest: 255.255.255.255, 68 yiaddrr: 223.1.2.4 transaction ID: 655 lifetime: 3600 secs Broadcast: OK. You ve got that IP address! Network Layer 4-13

client-server scenario Transport Layer protocol: UDP server: 223.1.2.5 discover src : 0.0.0.0, 68 dest.: 255.255.255.255,67 yiaddr: 0.0.0.0 transaction ID: 654 arriving client request offer src: 0.0.0.0, 68 dest:: 255.255.255.255, 67 yiaddrr: 223.1.2.4 transaction ID: 655 lifetime: 3600 secs 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 Network Layer 4-14

: more than IP addresses can return more than just allocated IP address on 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 address of first-hop router for client name and IP address of DNS sever network mask (indicating network versus host portion of address) 223.1.1.3 223.1.3.1 223.1.2.2 223.1.3.27 subnet 223.1.3.0/24 223.1.3.2 subnet mask: /24 Network Layer 4-15

: example UDP IP Eth Phy UDP IP Eth Phy 168.1.1.1 router with server built into router v v v 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 v Ethernet demuxed to IP demuxed, UDP demuxed to Network Layer 4-16

: example UDP IP Eth Phy UDP IP Eth Phy router with server built into router v v v DCP server formulates ACK containing client s IP address, IP address of first-hop router for client, name & IP address of DNS server 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 Network Layer 4-17

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 Network Layer 4-18

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.... Fly-By-Night-ISP Send me anything with addresses beginning 200.23.16.0/20 Internet 200.23.30.0/23 ISPs-R-Us Send me anything with addresses beginning 199.31.0.0/16 Network Layer 4-19

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 Send me anything with addresses beginning 199.31.0.0/16 or 200.23.18.0/23 Internet Network Layer 4-20

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 Network Layer 4-21

Questions Network Layer 4-22