Chapter 4 roadmap. Network Layer 4-35

Similar documents
IP addressing and forwarding Network layer

Network layer: Overview. Network layer functions IP Routing and forwarding

Chapter 4 Network Layer

Classful IP Addressing. Classless Addressing: CIDR. Routing & Forwarding: Logical View of a Router. IP Addressing: Basics

CS 43: Computer Networks IP. Kevin Webb Swarthmore College November 5, 2013

IP addressing. Interface: Connection between host, router and physical link. IP address: 32-bit identifier for host, router interface

Network layer" 1DT066! Distributed Information Systems!! Chapter 4" Network Layer!! goals: "

8.2 The Internet Protocol

CS 457 Lecture 19 Global Internet - BGP. Fall 2011

Internet Packets. Forwarding Datagrams

Chapter 4 Network Layer

Network layer. Assignment 3

Network Layer: Network Layer and IP Protocol

IP - The Internet Protocol

Scaling the Network: Subnetting and Other Protocols. Networking CS 3470, Section 1

Lecture Computer Networks

Future Internet Technologies

Chapter 3. TCP/IP Networks. 3.1 Internet Protocol version 4 (IPv4)

Chapter 3: Review of Important Networking Concepts. Magda El Zarki Dept. of CS UC Irvine

Internet Protocol: IP packet headers. vendredi 18 octobre 13

Gary Hecht Computer Networking (IP Addressing, Subnet Masks, and Packets)

Network Layer IPv4. Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS. School of Computing, UNF

IP Address Classes (Some are Obsolete) Computer Networking. Important Concepts. Subnetting Lecture 8 IP Addressing & Packets

Internet Protocols Fall Lectures 7-8 Andreas Terzis

Компјутерски Мрежи NAT & ICMP

Classful IP Addressing (cont.)

Internet Control Protocols Reading: Chapter 3

Technical Support Information Belkin internal use only

IP Network Layer. Datagram ID FLAG Fragment Offset. IP Datagrams. IP Addresses. IP Addresses. CSCE 515: Computer Network Programming TCP/IP

RARP: Reverse Address Resolution Protocol

Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols

Mobile IP Network Layer Lesson 02 TCP/IP Suite and IP Protocol

04 Internet Protocol (IP)

Transport and Network Layer

- IPv4 Addressing and Subnetting -

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ

Subnetting,Supernetting, VLSM & CIDR

Course Overview: Learn the essential skills needed to set up, configure, support, and troubleshoot your TCP/IP-based network.

IP address format: Dotted decimal notation:

Internetworking. Problem: There is more than one network (heterogeneity & scale)

Overview Computer Networking. IP Address Classes (Some are Obsolete) Outline. Lecture 9 IP Packets. CIDR IP addressing. Forwarding examples

NETWORK LAYER/INTERNET PROTOCOLS

DHCP, ICMP, IPv6. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley DHCP. DHCP UDP IP Eth Phy

Internet Protocol Version 6 (IPv6)

Interconnection of Heterogeneous Networks. Internetworking. Service model. Addressing Address mapping Automatic host configuration

TCP/IP Fundamentals. OSI Seven Layer Model & Seminar Outline

Master Course Computer Networks IN2097

Internet Infrastructure Measurement: Challenges and Tools

Lecture 15. IP address space managed by Internet Assigned Numbers Authority (IANA)

Guide to Network Defense and Countermeasures Third Edition. Chapter 2 TCP/IP

Internet and IP addressing

Internet Architecture and Philosophy

Networking Test 4 Study Guide

Introduction to TCP/IP

Network Layer 4- density - A Top Down Approach

Internet Protocol (IP) IP - Network Layer. IP Routing. Advantages of Connectionless. CSCE 515: Computer Network Programming IP routing

Internet Protocols. Addressing & Services. Updated:

IP Subnetting and Addressing

Computer Networks. Lecture 3: IP Protocol. Marcin Bieńkowski. Institute of Computer Science University of Wrocław

Troubleshooting Tools

Network-Oriented Software Development. Course: CSc4360/CSc6360 Instructor: Dr. Beyah Sessions: M-W, 3:00 4:40pm Lecture 2

Internet Protocols Fall Outline

Lehrstuhl für Informatik 4 Kommunikation und verteilte Systeme. Auxiliary Protocols

Chapter 11. User Datagram Protocol (UDP)

EITF25 Internet Techniques and Applications L5: Wide Area Networks (WAN) Stefan Höst

Unix System Administration

Procedure: You can find the problem sheet on Drive D: of the lab PCs. 1. IP address for this host computer 2. Subnet mask 3. Default gateway address

What is a DoS attack?

The Internet. Internet Technologies and Applications

IP Addressing Introductory material.

2. IP Networks, IP Hosts and IP Ports

Internetworking and Internet-1. Global Addresses

Internetworking and IP Address

IP Addressing. IP Addresses. Introductory material.

BASIC ANALYSIS OF TCP/IP NETWORKS

Savera Tanwir. Internet Protocol

Overview of TCP/IP. TCP/IP and Internet

Datagram-based network layer: forwarding; routing. Additional function of VCbased network layer: call setup.

Overview. Securing TCP/IP. Introduction to TCP/IP (cont d) Introduction to TCP/IP

IP Addressing. -Internetworking (with TCP/IP) -Classful addressing -Subnetting and Supernetting -Classless addressing

The internetworking solution of the Internet. Single networks. The Internet approach to internetworking. Protocol stacks in the Internet

ProCurve Networking IPv6 The Next Generation of Networking

Firewalls und IPv6 worauf Sie achten müssen!

PPS Internet-Praktikum. Prof. Bernhard Plattner Institut für Technische Informatik und Kommunikationsnetze (TIK)

Themen der Praktikumsnachmittage. PPS Internet-Praktikum. Zielsetzung. Infrastruktur im ETF B5

Introduction to IP v6

Datacommunication. Internet Infrastructure IPv4 & IPv6

Internet Firewall CSIS Packet Filtering. Internet Firewall. Examples. Spring 2011 CSIS net15 1. Routers can implement packet filtering

Efficient Addressing. Outline. Addressing Subnetting Supernetting CS 640 1

CS 348: Computer Networks. - IP addressing; 21 st Aug Instructor: Sridhar Iyer IIT Bombay

How do I get to

Tutorial (03) IP addresses & Sub netting

Network Security TCP/IP Refresher

TCP/IP Basis. OSI Model

Ethernet. Ethernet. Network Devices

IPv6 Advantages. Yanick Pouffary.

Layer Four Traceroute (and related tools) A modern, flexible path-discovery solution with advanced features for network (reverse) engineers

Internet Addresses (You should read Chapter 4 in Forouzan)

ACHILLES CERTIFICATION. SIS Module SLS 1508

Internet and Intranet Protocols and Applications

Transcription:

Chapter 4 roadmap 4.1 Introduction and Network Service Models 4.2 Routing Principles 4.3 Hierarchical Routing 4.4 The Internet (IP) Protocol 4.4.1 IPv4 addressing 4.4.2 Moving a datagram from source to destination 4.4.3 Datagram format 4.4.4 IP fragmentation 4.4.5 ICMP: Internet Control Message Protocol 4.4.6 DHCP: Dynamic Host Configuration Protocol 4.4.7 NAT: Network Address Translation 4.5 Routing in the Internet 4.6 What s Inside a Router 4.7 IPv6 4.8 Multicast Routing 4.9 Mobility Network Layer 4-35

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

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 may have multiple interfaces IP addresses associated with each interface 223.1.1.1 223.1.2.1 223.1.1.2 223.1.1.4 223.1.2.9 223.1.1.3 223.1.3.1 223.1.3.27 223.1.2.2 223.1.3.2 223.1.1.1 = 11011111 00000001 00000001 00000001 223 1 1 1 Network Layer 4-37

IP Addressing IP address: network part (high order bits) host part (low order bits) What s a network? (from IP address perspective) device interfaces with same network part of IP address can physically reach each other without intervening router 223.1.1.1 223.1.2.1 223.1.1.2 223.1.1.4 223.1.2.9 223.1.1.3 223.1.3.1 223.1.3.27 LAN 223.1.2.2 223.1.3.2 network consisting of 3 IP networks (for IP addresses starting with 223, first 24 bits are network address) Network Layer 4-38

IP Addressing 223.1.1.2 How to find the networks? Detach each interface from router, host 223.1.1.1 223.1.9.2 223.1.1.3 223.1.7.0 223.1.1.4 create islands of isolated networks 223.1.9.1 223.1.8.1 223.1.8.0 223.1.7.1 223.1.2.6 223.1.3.27 Interconnected system consisting of six networks 223.1.2.1 223.1.2.2 223.1.3.1 223.1.3.2 Network Layer 4-39

IP Addresses given notion of network, let s re-examine IP addresses: class-full addressing: class A B C D 0 network host 10 network host 110 network host 1110 multicast address 32 bits 1.0.0.0 to 127.255.255.255 128.0.0.0 to 191.255.255.255 192.0.0.0 to 223.255.255.255 224.0.0.0 to 239.255.255.255 Network Layer 4-40

IP addressing: CIDR Classful addressing: inefficient use of address space, address space exhaustion e.g., class B net allocated enough addresses for 65K hosts, even if only 2K hosts in that network CIDR: Classless InterDomain Routing network portion of address of arbitrary length address format: a.b.c.d/x, where x is # bits in network portion of address network part 11001000 00010111 00010000 00000000 host part 200.23.16.0/23 Network Layer 4-41

IP addresses: how to get one? Q: How does host get IP address? hard-coded by system admin in a file Wintel: control-panel->network->configuration- >tcp/ip->properties UNIX: /etc/rc.config DHCP: Dynamic Host Configuration Protocol: dynamically get address from as server plug-and-play (more shortly) Network Layer 4-42

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

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

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-45

IP addressing: the last word... Q: How does an ISP get block of addresses? A: ICANN: Internet Corporation for Assigned Names and Numbers allocates addresses manages DNS assigns domain names, resolves disputes Network Layer 4-46

Getting a datagram from source to dest. IP datagram: misc fields source IP addr dest IP addr data A forwarding table in A Dest. Net. next router Nhops 223.1.1 1 223.1.2 223.1.1.4 2 223.1.3 223.1.1.4 2 223.1.1.1 datagram remains unchanged, as it travels source to destination addr fields of interest here B 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 223.1.3.1 223.1.3.2 E Network Layer 4-47

Getting a datagram from source to dest. Starting at A, send IP datagram addressed to B: misc fields 223.1.1.1 223.1.1.3 data look up net. address of B in forwarding table find B is on same net. as A link layer will send datagram directly to B inside link-layer frame B and A are directly connected A B forwarding table in A Dest. Net. next router Nhops 223.1.1 1 223.1.2 223.1.1.4 2 223.1.3 223.1.1.4 2 223.1.1.1 223.1.2.1 223.1.1.2 223.1.1.4 223.1.2.9 223.1.1.3 223.1.3.1 223.1.3.27 223.1.2.2 223.1.3.2 E Network Layer 4-48

Getting a datagram from source to dest. misc fields Starting at A, dest. E: look up network address of E in forwarding table E on different network A, E not directly attached routing table: next hop router to E is 223.1.1.4 link layer sends datagram to router 223.1.1.4 inside linklayer frame datagram arrives at 223.1.1.4 223.1.1.1 223.1.2.3 data continued.. A B forwarding table in A Dest. Net. next router Nhops 223.1.1 1 223.1.2 223.1.1.4 2 223.1.3 223.1.1.4 2 223.1.1.1 223.1.2.1 223.1.1.2 223.1.1.4 223.1.2.9 223.1.1.3 223.1.3.1 223.1.3.27 223.1.2.2 223.1.3.2 E Network Layer 4-49

Getting a datagram from source to dest. Arriving at 223.1.4, destined for 223.1.2.2 misc fields 223.1.1.1 223.1.2.3 data Dest. Net router Nhops interface 223.1.1 1 223.1.1.4 look up network address of E in router s forwarding table E on same network as router s interface 223.1.2.9 router, E directly attached link layer sends datagram to 223.1.2.2 inside link-layer frame via interface 223.1.2.9 datagram arrives at 223.1.2.2!!! (hooray!) 223.1.2 1 223.1.2.9 223.1.3 1 223.1.3.27 A B forwarding table in router 223.1.1.1 223.1.2.1 223.1.1.2 223.1.1.4 223.1.2.9 223.1.1.3 223.1.3.1 223.1.3.27 223.1.2.2 223.1.3.2 E Network Layer 4-50

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 with TCP? 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 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 E.g. timestamp, record route taken, specify list of routers to visit. Network Layer 4-51

IP Fragmentation & Reassembly network links have MTU (max.transfer size) - 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 Network Layer 4-52

IP Fragmentation and Reassembly Example 4000 byte datagram MTU = 1500 bytes length =4000 ID =x length =1500 fragflag =0 ID =x offset =0 One large datagram becomes several smaller datagrams fragflag =1 offset =0 length =1500 ID =x fragflag =1 offset =1480 length =1040 ID =x fragflag =0 offset =2960 Network Layer 4-53

ICMP: Internet Control Message Protocol used by hosts, routers, gateways to communication network-level information error reporting: unreachable host, network, port, protocol echo request/reply (used by ping) network-layer above IP: ICMP msgs carried in IP datagrams 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-54