03 Internet Addressing



Similar documents
Internet Protocol Address

04 Internet Protocol (IP)

Internetworking and Internet-1. Global Addresses

Guide to TCP/IP, Third Edition. Chapter 2: IP Addressing and Related Topics

RARP: Reverse Address Resolution Protocol

2. What is the maximum value of each octet in an IP address? A. 28 B. 255 C. 256 D. None of the above

Efficient Addressing. Outline. Addressing Subnetting Supernetting CS 640 1

APPENDIX B. Routers route based on the network number. The router that delivers the data packet to the correct destination host uses the host ID.

Question Question Question EdTech 552: Lab 3 Answer Sheet

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

Internetworking and IP Address

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

HOST AUTO CONFIGURATION (BOOTP, DHCP)

Computer Networks. Introduc)on to Naming, Addressing, and Rou)ng. Week 09. College of Information Science and Engineering Ritsumeikan University

Technical Support Information Belkin internal use only

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

Address Resolution Protocol (ARP), Reverse ARP, Internet Protocol (IP)

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

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

Dynamic Host Configuration Protocol (DHCP) 02 NAT and DHCP Tópicos Avançados de Redes

TCP/IP works on 3 types of services (cont.): TCP/IP protocols are divided into three categories:

Introduction to LAN/WAN. Network Layer (part II)

One of the most important topics in any discussion of TCP/IP is IP. IP Addressing

IP Addressing and Subnetting. 2002, Cisco Systems, Inc. All rights reserved.

LAN TCP/IP and DHCP Setup

IP addresses have hierarchy (network & subnet) Internet names (FQDNs) also have hierarchy. and of course there can be sub-sub-!!

Transport and Network Layer

How To Manage Address Management In Ip Networks (Netware)

This tutorial will help you in understanding IPv4 and its associated terminologies along with appropriate references and examples.

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

Desirable Properties Of An Internet Addressing Scheme

IP Address Structure

Networking Basics for Automation Engineers

Internet Protocol version 4 Part I

1 Data information is sent onto the network cable using which of the following? A Communication protocol B Data packet

8.2 The Internet Protocol

Unix System Administration

Lab a Basic Subnetting

Networking Test 4 Study Guide

Table of Contents 1 IP Addressing Configuration 1-1

Internetworking Microsoft TCP/IP on Microsoft Windows NT 4.0

Network Layers. CSC358 - Introduction to Computer Networks

Chapter 2 TCP/IP Networking Basics

Internet Working 5 th lecture. Chair of Communication Systems Department of Applied Sciences University of Freiburg 2004

Module 10 Subnetting Class A, B and C addresses. Solutions to the Lab Exercises a, b, c and d

Mobile IP. Bheemarjuna Reddy Tamma IIT Hyderabad. Source: Slides of Charlie Perkins and Geert Heijenk on Mobile IP

Lecture 8. IP Fundamentals

Internet Protocols. Addressing & Services. Updated:

How do I get to

ICS 351: Today's plan

The IP Transmission Process. V1.4: Geoff Bennett

Chapter 14: Distributed Operating Systems

TCP/IP Networking Terms you ll need to understand: Techniques you ll need to master:

Module 15: Network Structures

Number of bits needed to address hosts 8

Network Security TCP/IP Refresher

What communication protocols are used to discover Tesira servers on a network?

Operating System Concepts. Operating System 資 訊 工 程 學 系 袁 賢 銘 老 師

Chapter 3 LAN Configuration

Subnetting,Supernetting, VLSM & CIDR

Chapter 16: Distributed Operating Systems

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

SSVP SIP School VoIP Professional Certification

Instructor Notes for Lab 3

PART IV. Network Layer

Internet Addresses (You should read Chapter 4 in Forouzan)

First Workshop on Open Source and Internet Technology for Scientific Environment: with case studies from Environmental Monitoring

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

AutoDownload: SQL Server and Network Trouble Shooting

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

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

Application. Transport. Network. Data Link. Physical. Network Layers. Goal

Slide 1 Introduction cnds@napier 1 Lecture 6 (Network Layer)

2. IP Networks, IP Hosts and IP Ports

Chapter 25 Domain Name System Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Lab PC Network TCP/IP Configuration

Lab 5 Explicit Proxy Performance, Load Balancing & Redundancy

Network and Host Addresses , Cisco Systems, Inc. All rights reserved. INTRO v1.0a 6-4

Part A:Background/Preparation

Communications and Networking

Lab IP Addressing Overview

Network Layer: Address Mapping, Error Reporting, and Multicasting

Understand Names Resolution

Chapter 4. IP Addresses: Classful Addressing

TCP/IP, Addressing and Services

Application Protocols for TCP/IP Administration

hp ProLiant network adapter teaming

CS101 Lecture 19: Internetworking. What You ll Learn Today

IP Addressing Introductory material.

TCP/IP Network Essentials. Linux System Administration and IP Services

ccna question and answers

CCNA R&S: Introduction to Networks. Chapter 5: Ethernet

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

Introduction to Network Operating Systems

IP address format: Dotted decimal notation:

Transcription:

SE 4C03 Winter 2007 03 Internet Addressing William M. Farmer Department of Computing and Software McMaster University 13 January 2007

IP Addresses There are two Internet naming systems: 1. The primary system is the internet address system which uses binary IP addresses. 2. The secondary system is the domain name system (DNS) which uses natural language DNS names. IP addresses are 32-bit integers. Composed of four 8-bit octets. Represented as four integers, usually in base 2 or base 10, separated by dots. base 2: 11000111.00010001.00101000.11010010. base 10: 199.17.40.210. 2

IP Address Assignment IP addresses are assigned to network interfaces, not hosts. A host with one network interface is assigned an IP address by default. A network interface is normally assigned a unique IP address. In practice, an interface may be assigned more than one address. In some rare cases, an interface may be assigned no address at all. In certain cases, different interfaces may have the same IP address. 3

Class Networks (1) IP addresses are organized into class networks to facilitate address assignment and packet routing. Class A: 0nnnnnnn.iiiiiiii.iiiiiiii.iiiiiiii. Class B: 10nnnnnn.nnnnnnnn.iiiiiiii.iiiiiiii. Class C: 110nnnnn.nnnnnnnn.nnnnnnnn.iiiiiiii. Class D: 1110bbbb.bbbbbbbb.bbbbbbbb.bbbbbbbb. A class network is really a set of IP addresses and not a network. The Internet Corporation for Assigned Names and Numbers (ICANN) is responsible for assigning class A, B, and C networks to organizations. Each address in a class A, B, or C network is a pair (N, I ) where N is its network identification and I is its a interface (or host) identification. n and i denote bits in the network and interface identifications, respectively. 4

Class Networks (2) By convention, the address in a class A, B, or C network whose interface bits are all 0 (e.g., 199.17.40.0) is the network address for the class. By convention, the address in a class A, B, or C network whose interface bits are all 1 (e.g. 199.17.40.255) is the (direct) broadcast address for the class. The limited broadcast address is 255.255.255.255. The addresses in a class D network are for multicasting. Some addresses in the above classes and the addresses of the form 1111bbbb.bbbbbbbb.bbbbbbbb.bbbbbbbb are reserved. 5

The Loopback Each host running TCP/IP has a virtual interface called the loopback interface which is the only interface on a virtual network called the loopback network. The network and interface addresses of the loopback are 127.0.0.0 and 127.0.0.1, respectively. 6

Weaknesses of IP Address System Some hosts (e.g., a multi-homed host) have more than one IP address. The class networks are too rigid. There are not enough IP addresses for future expansion. 7

Subnets IP addresses are also organized into subnets to facilitate address assignment, network organization, and routing. Each subnet is a set of addresses determined by: 1. A subnet address (e.g., 199.17.35.96). 2. A subnet mask (e.g., 255.255.255.240). Each address in a subnet is pair (S, I ) where S is its subnet identification and I is its interface (or host) identification. Special cases: Set of all IP addresses. Class A, B, and C networks. Individual interface (or host) IP address. 8

Subnet Conventions Usually, but not necessarily, the subnet identification of a class A, B, or C address is an extension of the network identification of the address. Usually, but not necessarily, the subnet mask consists of a block of 1s followed by a block of 0s. By convention, there is one subnet corresponding to each SPN. Each interface on the SPN is assigned the same subnet address and subnet mask. 9

Address Resolution Problem High-level IP addresses are used for communication across an internet and are assigned independently of physical hardware addresses. Low-level physical addresses are needed for physically delivering a packet to an interface on a network. How are IP addresses mapped to physical addresses? A solution is an address resolution function f that maps each IP address i to a physical address f (i). The function must be changed as the internet changes. The function must be represented efficiently. 10

Address Resolution Solutions 1. Physical addresses are encoded in IP addresses. Possible for pronet networks. Not viable for Ethernet. 2. Each machine contains a table that represents the local part of an address resolution function. Awkward for Ethernet because physical addresses change when a host or interface is replaced. 3. IP addresses are bound to physical addresses dynamically. 11

Address Resolution Protocol (ARP) Used for dynamically binding an IP address to a physical address (especially on Ethernet networks). ARP process: 1. A host h A broadcasts a request for the physical address which resolves an IP address i. 2. The host h B with the network interface having the address i sends a reply to h A containing the physical address of the interface. The results of ARP queries are kept in a cache on each host. When a sender requests a physical address, it can include its physical address in the message. 12

Complications Several packets may simultaneously need to know the same physical address. The host of the requested physical address may be down. The cache may contain out-of-date bindings. When a host boots it can send a broadcast message informing the other computers on the network of its physical address. Hosts may provide bogus address bindings. At boot-time a diskless host knows its physical address but not its IP address. The host must get its IP address from a server on another computer. 13

Reverse Address Resolution Protocol (RARP) Used for obtaining the IP address that is bound to a physical address. RARP process: 1. A host h A broadcasts a request for the IP address which reversely resolves a physical address p. 2. The RARP servers which receive the request send replies back to the h A containing the requested IP address. Some scheme is needed to keep all the RARP servers from sending replies at the same time (and causing collisions on an Ethernet network). 14

ARP and RARP Messages ARP and RARP messages are encapsulated in a physical frame. ARP and RARP share the same message format. Type field says the data is an ARP or RARP message. The message itself is held in the data portion of the frame. Each message has the following address fields: Sender IP address. Sender physical address. Target IP address. Target physical address. 15