Network layer: Overview. Network layer functions

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

IP addressing and forwarding Network layer

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

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

8.2 The Internet Protocol

Chapter 4 Network Layer

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

Lecture Computer Networks

CS 457 Lecture 19 Global Internet - BGP. Fall 2011

Internet Protocols Fall Lectures 7-8 Andreas Terzis

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

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

Chapter 4 Network Layer

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

IP Subnetting and Addressing

Internet Protocols Fall Outline

Subnetting,Supernetting, VLSM & CIDR

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

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

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

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

IP address format: Dotted decimal notation:

Internet Packets. Forwarding Datagrams

IP - The Internet Protocol

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

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

Savera Tanwir. Internet Protocol

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

04 Internet Protocol (IP)

Internet Control Protocols Reading: Chapter 3

Future Internet Technologies

Internet and IP addressing

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

Internet Protocols. Addressing & Services. Updated:

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

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

Unix System Administration

Internetworking and Internet-1. Global Addresses

What is a DoS attack?

Internet Protocol: IP packet headers. vendredi 18 octobre 13

Troubleshooting Tools

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

Master Course Computer Networks IN2097

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

RARP: Reverse Address Resolution Protocol

- IPv4 Addressing and Subnetting -

Technical Support Information Belkin internal use only

Network Layer: Network Layer and IP Protocol

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

IP Addressing. IP Addresses. Introductory material.

Internet Protocol Version 6 (IPv6)

Introduction to TCP/IP

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

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

NETWORK LAYER/INTERNET PROTOCOLS

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

IP Addressing Introductory material.

Lecture 8. IP Fundamentals

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

Transport and Network Layer

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

Efficient Addressing. Outline. Addressing Subnetting Supernetting CS 640 1

Variable length subnetting

2. IP Networks, IP Hosts and IP Ports

Internet Infrastructure Measurement: Challenges and Tools

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

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

1. How many unique network IDs are there in class A addresses? # of unique hosts?

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

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

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

Classful IP Addressing (cont.)

How do I get to

Instructor Notes for Lab 3

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

The Internet. Internet Technologies and Applications

Ethernet and IP A slightly less introductory networking class. Drew Saunders Networking Systems Stanford University

Internetworking and IP Address

ICS 351: Today's plan

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

IP Routing Features. Contents

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

Datacommunication. Internet Infrastructure IPv4 & IPv6

Internet and Intranet Protocols and Applications

The Network Layer. Raj Jain. Washington University in St. Louis

Chapter 9. IP Secure

COMP 631: COMPUTER NETWORKS. IP Addressing. Jasleen Kaur. Fall How to Deal With Heterogeneity & Scale?

(Refer Slide Time: 02:17)

Internet Architecture and Philosophy

TCP/IP Basis. OSI Model

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

Chapter 11. User Datagram Protocol (UDP)

Tutorial (03) IP addresses & Sub netting

Chapter 13 Internet Protocol (IP)

Network layer. Assignment 3

Network Security TCP/IP Refresher

Ethernet. Ethernet. Network Devices

Mobile Routing. When a host moves, its point of attachment in the network changes. This is called a handoff.

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

Transcription:

Network layer: Overview Network layer functions IP Routing and forwarding 1 Network layer functions Transport packet from sending to receiving hosts Network layer protocols in every host, router Three important functions: Path determination: route taken by packets from source to dest. Routing algorithms Switching: move packets from router s input to appropriate router output application transport application transport 2 1

IP addressing IP address: 32-bit identifier for host, router interface Interface: connection between host, router and link Routers typically have multiple interfaces Host may have multiple interfaces IP addresses associated with interface, not host, 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.3 223.1.3.2 223.1.1.1 = 11011111 00000001 00000001 00000001 223 1 1 1 3 IP addressing (2) IP address: Network part (high order bits) Host part (low order bits) What s a? (from IP address perspective) Device interfaces with same part of IP address Can ly 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 consisting of 3 IP s (for IP addresses starting with 223, first 24 bits are address) 4 2

IP addressing (3) How to find the s? Detach each interface from router, host Create islands of isolated s 223.1.1.1 223.1.1.2 223.1.1.4 223.1.1.3 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 Interconnected system consisting of six s 223.1.2.1 223.1.2.2 223.1.3.1 223.1.3.2 5 IP s: Subnets Sub divide address space Network part Host address 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/24 host part 6 3

Fixed subnetting (classful) class A 0 host 1.0.0.0 to 127.255.255.255 B C D 10 host 110 host 1110 multicast address 32 bits 128.0.0.0 to 191.255.255.255 192.0.0.0 to 239.255.255.255 240.0.0.0 to 247.255.255.255 7 Address management Problem: we are running out of s Solution Subnetting CIDR (Classless Inter Domain Routing) 8 4

CIDR Classless InterDomain Routing Class A is too large, Class C is too small Everyone has a Class B address!!! Solution: sites are given contiguous blocks of class-c addresses (256 addresses each) and a mask or parts of former class A/B s. 9 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 10 5

Hierarchical address structure Recall: CIDR 128.119.48.12/18 = 10000000 01110111 00110000 00001100 High order bits form the prefix Once inside the, can subnet: divide remaining bits Subnet example: 18 relevant bits 129.128.0.0/10 129.160.0.0/12 129.176.0.0/14 129.188.0.0/14 Note: Picture shows prefix masks, not interface addrs! Forwarding decision: longest prefix match 11 Forwarding vs. Routing Forwarding: the process of moving packets from input to output The forwarding table Information in the packet Routing: process by which the forwarding table is built and maintained One or more routing protocols Procedures (algorithms) to convert routing info to forwarding table. (Much more later ) 12 6

Forwarding with CIDR Packet should be sent towards the interface with the longest matching prefix Advertised addresses 1000 1101 0110 1000 110 1000 1101 00 1000 0110 1000 1100 1101 1000 1101 0011 1000 1101 1000 1101 001 13 Lookup (longest prefix match): Forwarding table: <Network>/<mask> <next-hop> IP Packets: destination IP address Find next-hop Example: Forwarding table Packets 134.96.252.0/24 A 134.96.252.200 134.96.0.0/16 C 134.96.254.2 134.96.240.0/20 B 134.96.239.200 134.96.252.192/28 B 134.97.239.200 134.96.252.128/28 A 134.96.252.191 14 7

IPv4 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 32 bits ver head. type of len service length fragment 16-bit identifier flgs offset time to upper Internet live layer 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. 15 ICMP: Internet Control Message Protocol Used by hosts, routers, gateways to communication -level information Error reporting: unreachable host,, 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 unreachable 3 1 dest host unreachable 3 2 dest protocol unreachable 3 3 dest port unreachable 3 6 dest 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 16 8

Network layer: Summary Network layer functions IP Routing and forwarding 17 9