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

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

Computer Networking Introduction

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

internet technologies and standards

COSC4377. TCP vs UDP Example Statistics

Chapter 4 Network Layer

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

Chapter 4 Network Layer. Network Layer 4-1

Chapter 4: Network Layer

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

Router Architecture Overview

internet technologies and standards

CMPE 80N: Introduction to Networking and the Internet

CSC 4900 Computer Networks: Network Layer

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

Network layer: Overview. Network Layer Functions

CSCE 463/612 Networks and Distributed Processing Spring 2017

Master Course Computer Networks IN2097

TDTS06: computer Networks

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

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

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

Network Layer: ICMP and Network Management

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

Chapter 4 Network Layer

Chapter 4 Network Layer

Chapter 4 Network Layer

Chapter 4 Network Layer: The Data Plane

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

CSC 401 Data and Computer Communications Networks

Network Layer: Internet Protocol

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

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

Network Layer: DHCP, ICMP, NAT, IPv6

Chapter 4 Network Layer

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

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

Chapter 4: network layer

Chapter 4 Network Layer: The Data Plane

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

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

Chapter 4 Network Layer: The Data Plane

Computer Network Fundamentals Spring Week 4 Network Layer Andreas Terzis

Different Layers Lecture 20

Chapter IV: Network Layer

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

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

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

Internetworking With TCP/IP

Lecture 19: Network Layer Routing in the Internet

Network Layer: Data Plane 4-2

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

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

COMP211 Chapter 4 Network Layer: The Data Plane

Network layer Network Layer 4-1

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

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

Chapter 4 Network Layer: The Data Plane

Internet Multicast Routing

IPv4. Christian Grothoff.

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

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

Lecture 5 The Network Layer part II. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

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 DATA PLANE

Chapter 4 Network Layer

Chapter 4 Network Layer

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

CSC 401 Data and Computer Communications Networks

Chapter 4: Network Layer

Network Layer (4): ICMP

CSEP 561 Internetworking. David Wetherall

Network Layer PREPARED BY AHMED ABDEL-RAOUF

CSC 4900 Computer Networks: Routing Protocols

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

Internet Control Message Protocol (ICMP)

CS 457 Lecture 11 More IP Networking. Fall 2011

Announcements. CS 5565 Network Architecture and Protocols. Project 2B. Project 2B. Project 2B: Under the hood. Routing Algorithms

CS-435 spring semester Network Technology & Programming Laboratory. Stefanos Papadakis & Manolis Spanakis

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

Information Network Systems The network layer. Stephan Sigg

CCNA Exploration Network Fundamentals. Chapter 06 Addressing the Network IPv4

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

Introduction to Internetworking

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

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

Internet Protocol. Outline Introduction to Internet Protocol Header and address formats ICMP Tools CS 640 1

ICS 451: Today's plan

Module 3 Network Layer CS755! 3-1!

Internetworking/Internetteknik, Examination 2G1305 Date: August 18 th 2004 at 9:00 13:00 SOLUTIONS

5.1 introduction 5.5 The SDN control 5.2 routing protocols plane. Control Message 5.3 intra-as routing in Protocol the Internet

Distributed Systems. 7. Network Layer. Werner Nutt

Topics for This Week

CSF645 Mobile Computing 行動計算. IPv6. (Internetworking With TCP/IP vol Part 31) 吳俊興國立高雄大學資訊工程學系

Chapter 19 Network Layer: Logical Addressing

IPv6 Protocols and Networks Hadassah College Spring 2018 Wireless Dr. Martin Land

Transcription:

Chapter 4: outline 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 4.5 routing algorithms link state distance vector hierarchical routing 4.6 routing in the Internet RIP OSPF BGP 4.7 broadcast and multicast routing Network Layer 4-1

Private IPv4 address v Private IPv4 address spaces 10.0.0.0/8: 10.0.0.0-10.255.255.255 172.16.0.0/12: 172.16.0.0-172.31.255.255 192.168.0.0/16: 192.168.0.0-192.168.255.255 Network Layer 4-2

Private IPv4 address v Private IPv4 address spaces 10.0.0.0/8: 10.0.0.0-10.255.255.255 172.16.0.0/12: 172.16.0.0-172.31.255.255 192.168.0.0/16: 192.168.0.0-192.168.255.255 v Write it into binary format? 10 = 8 + 2 = 1000 + 10 = 1010 172 = 128 + 32 + 8 + 4 = 10000000 + 100000 + 1000 + 100 = 10101100 192 = 128 + 64 = 10000000 + 1000000 = 11000000 Network Layer 4-3

NAT: network address translation Public IP address rest of Internet 138.76.29.7 10.0.0.4 Private IP address local network (e.g., home network) 10.0.0/24 10.0.0.1 10.0.0.2 10.0.0.3 all datagrams leaving local network have same single source NAT IP address: 138.76.29.7,different source port numbers datagrams with source or destination in this network have 10.0.0/24 address for source, destination (as usual) Network Layer 4-4

NAT: network address translation motivation: local network uses just one IP address as far as outside world is concerned: range of addresses not needed from ISP: just one IP address for all devices (Save public IP address) can change addresses of devices in local network without notifying outside world can change ISP without changing addresses of devices in local network devices inside local net not explicitly addressable (a security plus) Network Layer 4-5

NAT: network address translation implementation: NAT router must: outgoing datagrams: replace (source IP address, port #) of to (NAT IP address, new port #)... remote clients/servers will respond using (NAT IP address, new port #) as destination addr remember (in NAT translation table) every (source IP address, port #) to (NAT IP address, new port #) translation pair incoming datagrams: replace (NAT IP address, new port #) in dest fields with corresponding (source IP address, port #) stored in NAT table Network Layer 4-6

NAT: network address translation 2: NAT router changes datagram source addr from 10.0.0.1, 3345 to 138.76.29.7, 5001, updates table 2 NAT translation table WAN side addr LAN side addr 138.76.29.7, 5001 10.0.0.1, 3345 S: 138.76.29.7, 5001 D: 128.119.40.186, 80 10.0.0.4 S: 10.0.0.1, 3345 D: 128.119.40.186, 80 1 1: host 10.0.0.1 sends datagram to 128.119.40.186, 80 10.0.0.1 10.0.0.2 138.76.29.7 S: 128.119.40.186, 80 D: 138.76.29.7, 5001 3 3: reply arrives dest. address: 138.76.29.7, 5001 S: 128.119.40.186, 80 D: 10.0.0.1, 3345 4 10.0.0.3 4: NAT router changes datagram dest addr from 138.76.29.7, 5001 to 10.0.0.1, 3345 Network Layer 4-7

NAT: network address translation v 16-bit port-number field: 60,000 simultaneous connections with a single LAN-side address! v NAT is controversial: routers should only process up to layer 3 address shortage should instead be solved by Network Layer 4-8

NAT traversal problem v solution1: statically configure NAT to forward incoming connection requests at given port to server e.g., (123.76.29.7, port 2500) always forwarded to 10.0.0.1 port 25000 client? 138.76.29.7 NAT router 10.0.0.4 10.0.0.1 Network Layer 4-9

NAT traversal problem v solution 2: Universal Plug and Play (UPnP) Internet Gateway Device (IGD) Protocol. Allows NATed host to: v learn public IP address (138.76.29.7) v add/remove port mappings (with lease times) NAT router IGD 10.0.0.1 i.e., automate static NAT port map configuration Network Layer 4-10

NAT traversal problem v solution 3: relaying (used in Skype) NATed client establishes connection to relay external client connects to relay client 2. connection to relay initiated by client 3. relaying established 1. connection to relay initiated by NATed host 138.76.29.7 NAT router 10.0.0.1 Network Layer 4-11

Chapter 4: outline 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 4.5 routing algorithms link state distance vector hierarchical routing 4.6 routing in the Internet RIP OSPF BGP 4.7 broadcast and multicast routing Network Layer 4-12

ICMP: internet control message protocol v used by hosts & routers to communicate networklevel information error reporting: unreachable host, network, port, protocol echo request/reply (used by ping) v network-layer above IP: ICMP msgs carried in IP datagrams v ICMP message: type, code plus first 8 bytes of IP datagram causing error Type Code description 0 0 echo reply (ping) 3 0 dest. network unreachable 3 1 dest host unreachable 3 2 dest protocol unreachable 3 3 dest port unreachable 3 6 dest network unknown 3 7 dest host unknown 4 0 source quench (congestion control - not used) 8 0 echo request (ping) 9 0 route advertisement 10 0 router discovery 11 0 TTL expired 12 0 bad IP header Network Layer 4-13

Traceroute and ICMP v source sends series of UDP segments to dest through ordinary IP packets first set has TTL =1 second set has TTL=2, etc. unlikely port number v when nth set of datagrams arrives to nth router: router discards datagrams and sends source ICMP messages (type 11, code 0) ICMP messages includes name of router & IP address 3 probes 3 probes 3 probes v when ICMP messages arrives, source records RTTs stopping criteria: v UDP segment eventually arrives at destination host v destination returns ICMP port unreachable message (type 3, code 3) v source stops Network Layer 4-14

: motivation v initial motivation: 32-bit address space soon to be completely allocated. v additional motivation: header format helps speed processing/forwarding header changes to facilitate QoS datagram format: fixed-length 40 byte header no fragmentation allowed Network Layer 4-15

datagram format priority: identify priority among datagrams in flow flow Label: identify datagrams in same flow. (concept of flow not well defined). next header: identify upper layer protocol for data ver pri flow label payload len next hdr hop limit source address (128 bits) destination address (128 bits) data 32 bits Network Layer 4-16

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

Tunneling logical view: A B IPv4 tunnel connecting routers E F physical view: A B C D E F IPv4 IPv4 Network Layer 4-18

Tunneling logical view: A B IPv4 tunnel connecting routers E F physical view: A B C D E F IPv4 IPv4 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: B-to-C: inside IPv4 B-to-C: inside IPv4 E-to-F: Network Layer 4-19