Vorlesung Kommunikationsnetze

Similar documents
IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia

Network Layer: Internet Protocol

Introduction to Internetworking

Network Layer. The Network Layer. Contents Connection-Oriented and Connectionless Service. Recall:

Network Layer. Recall: The network layer is responsible for the routing of packets The network layer is responsible for congestion control

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

Network layer: Overview. Network Layer Functions

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

EITF25 Internet Techniques and Applications L7: Internet. Stefan Höst

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

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

CSCI-1680 Network Layer: IP & Forwarding John Jannotti

Computer Network Fundamentals Spring Week 4 Network Layer Andreas Terzis

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

CC231 Introduction to Networks Dr. Ayman A. Abdel-Hamid. Internet Protocol Suite

TSIN02 - Internetworking

The Interconnection Structure of. The Internet. EECC694 - Shaaban

TSIN02 - Internetworking

CS 356: Computer Network Architectures. Lecture 10: IP Fragmentation, ARP, and ICMP. Xiaowei Yang

Networks. an overview. dr. C. P. J. Koymans. Informatics Institute University of Amsterdam. February 4, 2008

Lecture Computer Networks

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

ROUTING INTRODUCTION TO IP, IP ROUTING PROTOCOLS AND PROXY ARP

Lecture 8. Basic Internetworking (IP) Outline. Basic Internetworking (IP) Basic Internetworking (IP) Service Model

The Internet Protocol. IP Addresses Address Resolution Protocol: IP datagram format and forwarding: IP fragmentation and reassembly

TCP /IP Fundamentals Mr. Cantu

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

ICS 451: Today's plan

Lecture 8. Reminder: Homework 3, Programming Project 2 due on Thursday. Questions? Tuesday, September 20 CS 475 Networks - Lecture 8 1

TCP/IP and the OSI Model

Internetwork Protocols

II. Principles of Computer Communications Network and Transport Layer

ET4254 Communications and Networking 1

SEN366 (SEN374) (Introduction to) Computer Networks

Internet Protocol (IP)

ICMP (Internet Control Message Protocol)

TCP/IP Protocol Suite

Dongsoo S. Kim Electrical and Computer Engineering Indiana U. Purdue U. Indianapolis

CHAPTER-2 IP CONCEPTS

CCNA Exploration Network Fundamentals. Chapter 06 Addressing the Network IPv4

Internet Protocols (chapter 18)

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca Instructor: Nicholas DeMarinis

CS475 Networks Lecture 8 Chapter 3 Internetworking. Ethernet or Wi-Fi).

Module 7 Internet And Internet Protocol Suite

ICMP (Internet Control Message Protocol)

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

IP - The Internet Protocol

Internetworking Part 2

Lecture 11: Networks & Networking

Lecture 17 Overview. Last Lecture. Wide Area Networking (2) This Lecture. Internet Protocol (1) Source: chapters 2.2, 2.3,18.4, 19.1, 9.

Router Architecture Overview

EP2120 Internetworking/Internetteknik IK2218 Internets Protokoll och Principer

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

Chapter 4 Network Layer

Guide to Networking Essentials, 6 th Edition. Chapter 5: Network Protocols

Your Name: Your student ID number:

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

Communication Systems DHCP

Prof. Shervin Shirmohammadi SITE, University of Ottawa. Internet Protocol (IP) Lecture 2: Prof. Shervin Shirmohammadi CEG

Master Course Computer Networks IN2097

Networking for Data Acquisition Systems. Fabrice Le Goff - 14/02/ ISOTDAQ

User Datagram Protocol

Aside: Interaction with Link Layer Computer Networking. Caching ARP Entries. ARP Cache Example

To make a difference between logical address (IP address), which is used at the network layer, and physical address (MAC address),which is used at

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

IPv4. Christian Grothoff.

IP Address Assignment

CS519: Computer Networks. Lecture 2: Feb 2, 2004 IP (Internet Protocol)

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

The Internet Protocol (IP)

Chapter 4: Network Layer

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

OSI Network Layer. Network Fundamentals Chapter 5. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

internet technologies and standards

Addressing and Routing

ICS 351: Networking Protocols

Internetworking Terms. Internet Structure. Internet Structure. Chapter 15&16 Internetworking. Internetwork Structure & Terms

Different Layers Lecture 20

On Distributed Communications, Rand Report RM-3420-PR, Paul Baran, August 1964

Introduction to routing in the Internet

Lecture 2: Basic routing, ARP, and basic IP

ECE 461 Internetworking Fall Quiz 1

The Internetworking Problem. Internetworking. A Translation-based Solution

Lecture 9: Internetworking

EE 610 Part 2: Encapsulation and network utilities

CSE/EE 461 The Network Layer. Application Presentation Session Transport Network Data Link Physical

Configuring Routes on the ACE

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

Interconnecting Networks with TCP/IP

Network Layer PREPARED BY AHMED ABDEL-RAOUF

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

Chapter 5 TCP/IP SUITE

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

2/22/2008. Outline Computer Networking Lecture 9 IP Protocol. Hop-by-Hop Packet Forwarding in the Internet. Internetworking.

Telecom Systems Chae Y. Lee. Contents. Overview. Issues. Addressing ARP. Adapting Datagram Size Notes

Internet Protocol Addressing and Routing. Redes TCP/IP

The Network Layer. Internet solutions. Nixu Oy PL 21. (Mäkelänkatu 91) Helsinki, Finland. tel fax.

Chapter 09 Network Protocols

Agenda L2 versus L3 Switching IP Protocol, IP Addressing IP Forwarding ARP and ICMP IP Routing First Hop Redundancy

Internetworking Part 2

Transcription:

Picture 15 13 Vorlesung Kommunikationsnetze Prof. Dr. H. P. Großmann mit B. Wiegel sowie A. Schmeiser und M. Rabel Sommersemester 2009 Institut für Organisation und Management von Informationssystemen Internet Protocol Version 4 Address Resolution Protocol (ARP) Internet Control Message Protocol (ICMP)

Page 2 Content Specifications Internet Protocol Version 4 (Ipv4) Motivation Overview Tasks Fragmentation Addressing Routing Address Resolution Protocol (ARP) Internet Control Message Protocol (ICMP)

Page 3 Specifications The formal specification of the Internet protocols are standardized in the Request for Comments (RFCs). IP ICMP ARP TCP UDP RFC 791 RFC 792 RFC 826 RFC 793 RFC 768

Page 4 OSI and IP Protocol Stacks O S I M o d e l 7. 6. 5. 4. Protocol Suite Application Presentation A p p l i c a t i o n (e.g. F T P, TELNET) Session Transport 3. Network 2. Data Link 1. Internet P h y s ic a l TCP or UDP I P LAN or WAN Te c h n o l o g y (e.g. Ethernet)

Page 5 Motivation We have LANs with their local limitations (e.g. maximum segment length) and own addressing (e.g. Ethernet - 48 bit MAC Addresses) We want a connection between the LANs and hosts distributed all over the world

Page 6 Connected LANs Motivation (2) In te r n e t Network 1 Network 2

Page 7 Motivation (3) What do we need? a protocol that supports as many kinds of LANs as possible uniform addresses routing

Page 8 Overview IP (Internet Protocol) is a connectionless and unreliable packet delivery system

Page 9 Connectionless Communication Service (also called datagram transmission) the data is divided into segments each segment is supplied with a header that contains destination and source address each datagram is transferred independently through the network

Page 10 Unreliable Service no guarantee that a packet is delivered correctly or doesn t get lost reliability must be provided by the upper layers (e.g. TCP)

Page 11 Tasks of IP Fragmentation Addressing and Routing

Page 12 Fragmentation In networks which are IP-connected, different frame sizes can be used (e.g. Ethernet and FDDI) when the size of a IP datagram exceeds the size of the underlying MTU, fragmentation occurs

Page 13 IP Addresses To every interface there can be assigned an IP address, which is a unique 32 bit address IP addresses are usually written as four decimal numbers, separated by points: W.X.Y.Z W: X: Y: Z: 1. Byte, 2. Byte, 3. Byte, 4. Byte e.g. 134.60.40.100 the IP addresses are assigned by a central authority the Network Information Center (NIC)

Page 14 Addressing (at the beginning) 5 Classes of IP Addresses class A C scheme: 2 parts first part for the network ID second part for the host ID class D Multicast Address (assigning a group of hosts) class E Addresses: reserved for future use

Page 15 IP Address Classes 32 Bit-Address 0 31 class A 0 class B 10 class C 11 0 class D 111 0 multicast class E 11110 reserved for future use 28 net id 224 host id 216 net id 216 host id 224 net id 28 host id

Page 16 Scaling Problems Exhaustion of the class-b network address space. (One fundamental cause of this problem is the lack of a network class of a size which is appropriate for mid-sized organization; class-c, with a maximum of 254 host addresses, is too small while class-b, which allows up to 65534 addresses, is too large to be widely allocated.) Growth of routing tables in Internet routers is beyond the ability to be managed effectively by current software (and people). Eventual exhaustion of the 32-bit IP address space.

Page 17 Addressing example four "class c" addresses for one network: decimal Sub 1 Sub 2 Sub 3 Sub 4 192.168.0.0 192.168.1.0 192.168.2.0 192.168.3.0 binary 11000000. 10101000. 00000000. 00000000 11000000. 10101000. 00000001. 00000000 11000000. 10101000. 00000010. 00000000 11000000. 10101000. 00000011. 00000000 four networks with the netmask Mask 255.255.255.0 11111111. 11111111. 11111111. 00000000

Page 18 Supernetting Organizations with more than one class C network can merge these networks by moving bits from the network portion of the address into the host portion of the address. Example: decimal Sub 1 Sub 2 Sub 3 Sub 4 192.168.0.0 192.168.1.0 192.168.2.0 192.168.3.0 binary 11000000. 10101000. 00000000. 00000000 11000000. 10101000. 00000001. 00000000 11000000. 10101000. 00000010. 00000000 11000000. 10101000. 00000011. 00000000 one network with the netmask Mask 255.255. 252.0 11111111. 11111111. 11111100. 00000000

Page 19 Supernetting Chart e q bitsu Supernet a l Mask Number of Class C s Number of Hosts 14 255.252.0.0 1024 262144 15 255.254.0.0 512 131072 16 255.255.0.0 256 65536 17 255.255.128.0 128 32768 18 255.255.192.0 64 16384 19 255.255.224.0 32 8192 20 255.255.240.0 16 4096 21 255.255.248.0 8 2048 22 255.255.252.0 4 1024 23 255.255.254.0 2 512

Page 20 Subnetting Any organization with a network of any size can subdivide the available host address space according to its network topology Example: University of Ulm class B address: 134.60.X.Y X is used for local subnets Y is used for the hosts RFC 950, Internet Standard Subnetting Procedure

Page 21 Classless Inter-Domain Routing (CIDR) Bitwise Variable-Length Subnetting a.b.c.d/n n: from 0 to 32 RFC1519, an address assignment and aggregation strategy For example: 192.24.0.0/18 Mask Networks Hosts 255.255.192.0 192.24.0.0 192.24.63.0 16384 Routing prefix aggregation Two or more contiguous CIDR classes can be aggregated and advertised together

Page 22 Private Address Space There are 3 blocks of the IP address space reserved for private internets: 10.0.0.0-10.255.255.255 (class A) 172.16.0.0-172.31.255.255 (class B) 192.168.0.0-192.168.255.255 (class C) RFC 1918, Address Allocation for Private Internets

Page 23 Single and Multihomed Host a host which is connected to one LAN is called single homed host a host which is connected to more than one LAN is called a multihomed host the host needs an IP address for each network

Page 24 Example Ethernet 134.60.1.x 134.60.1.60 Host Host Host 134.60.1.15 134.60.1.14 134.60.5.7 134.60.5.52 134.60.5.x Host 134.60.5.99 Router 134.60.1.99 134.60.5.48 Firewall 134.60.6.1 In te r n e t

Page 25 IP Header 1 Byte Version IHL 1 Byte Type of Service Identification TTL (Time to Live) 1 Byte 1 Byte Total Length Flags Protocol Fragment Offset Header Checksum Source Address Destination Address Options Data

Page 26 IP Header Explanation (1) Version (4 bits): IPv4 (at the moment) or IPv6 IHL (4 bits): Internet Header Length (minimum 20 Bytes) Service Type (8 bits): Not widely supported. It specifies the wants of the service datagram. It contains 3-bit precedence from 0 (normal) to 7 (network control) 1-bit D: for delay preferred 1-bit T: for throughput preferred 1-bit R: for reliability preferred 2 remaining bits are unused

Page 27 Type of Service (8 Bits) 3 Bits Precedence 1 Bit 1 Bit 1 Bit 2 Bits D T R Unused 0 normal.. 7 network control reliability throughput delay

Page 28 IP Header Explanation (2) Total Length (16 bits): Length of header and data Each host must be able to handle a length of 576 Bytes, today most hosts accept longer packets, too Datagram Identification (16 bits): Used to allow the destination to re-assemble fragments. All fragments of a datagram contain the same identification. Fragmentation Flags: MF More Fragmentation DF Don t fragment Fragment Offset: tells where this fragment belongs in the current datagram

Page 29 IP Header Explanation (3) Time to Live (TTL) (8bits): Maximum number of routers to pass. Each router decrements that number; when it hits zero, the datagram is discarded. It was intended to record seconds, but now it is used to count hops. Protocol: layer 4 protocol (e.g. TCP, UDP) Header Checksum: If an error is found in the checksum, the datagram is discarded. A higher layer protocol has to care for retransmission. It has to be calculated by every router, because of the change of the TTL.

Page 30 Routing Each host and gateway in the Internet has a routing table Example for a routing table of a host: Destination 134.90.1.1 134.60.40.0 127.0.0.0 0.0.0.0 Gateway 134.60.50.1 0.0.0.0 0.0.0.0 134.60.40.99 Netmask 255.255.255.255ppp0 255.255.255.0 255.0.0.0 0.0.0.0 Iface eth0 lo eth0 The entry, for which the following statement results in the longest match of true values, is chosen: IP address of the datagram to send (binary AND) Netmask = Destination

Page 31 ARP (Address Resolution Protocol) Interface Cards (e.g. for Ethernet) only recognize MAC addresses they accept only Broadcasts and Frames with their own MAC address A host or gateway that wants to send an IP datagram to a host (with a known IP address) must find out which MAC address corresponds to that host. ARP (Address Resolution Protocol) is used.

Page 32 ARP (2) The host or gateway sends a broadcast message on the Ethernet that asks the host with the specified IP address to respond with its Ethernet address. Every host on the Ethernet receives this broadcast packet, but only the specified one will respond. For the future the result is cached in an ARP table.

Page 33 ARP (3) Host A Host B Host C Broadcast (IP C) Ethernet Reply (MAC C)

Page 34 ICMP (Internet Control Message Protocol) ICMP messages, delivered in IP packets, are used for out-of-band messages related to network operation or mis-operation. Since ICMP uses IP, ICMP packet delivery is unreliable, so hosts cannot count on receiving ICMP packets for any network problem.

Page 35 Some ICMP Functions (1) Announce network errors, such as a host or entire portion of the network being unreachable, due to some type of failure. Announce network congestion. When a router begins buffering too many packets, due to an inability to transmit them as fast as they are being received, it will generate ICMP Source Quench messages. Directed at the sender, these messages should cause the rate of packet transmission to be slowed. Of course, generating too many Source Quench messages would cause even more network congestion, so they are used sparingly.

Page 36 Some ICMP Functions (2) Assist Troubleshooting. ICMP supports an Echo function, which just sends a packet on a round-trip between two hosts. Ping, a common network management tool, is based on this feature. Ping will transmit a series of packets, measuring average round-trip times and computing loss percentages. Announce Timeouts. If an IP packet's TTL field drops to zero, the router discarding the packet will often generate an ICMP packet announcing this fact.