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



Similar documents
Internetworking and Internet-1. Global Addresses

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

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

ICS 351: Today's plan

Internetworking and IP Address

Efficient Addressing. Outline. Addressing Subnetting Supernetting CS 640 1

PART IV. Network Layer

8.2 The Internet Protocol

Internet Protocol Address

Computer Network Foundation. Chun-Jen (James) Chung. Arizona State University

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

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

IP Addressing A Simplified Tutorial

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

Lecture Computer Networks

Internet Protocols Fall Lectures 7-8 Andreas Terzis

IP Addressing Introductory material.

Module 2: Assigning IP Addresses in a Multiple Subnet Network

CSC458 Lecture 6. Homework #1 Grades. Inter-domain Routing IP Addressing. Administrivia. Midterm will Cover Following Topics

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

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

Internet Addresses (You should read Chapter 4 in Forouzan)

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

- IPv4 Addressing and Subnetting -

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

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

Variable length subnetting

We Are HERE! Subne\ng

Internetworking With TCP/IP

IP Addressing. IP Addresses. Introductory material.

Savera Tanwir. Internet Protocol

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

Future Internet Technologies

IP address format: Dotted decimal notation:

Lab#2: IP Addressing and Subnetting

Lecture 8. IP Fundamentals

Chapter 19 Network Layer: Logical Addressing 19.1

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

CCNA Tutorial Series SUBNETTING

CE363 Data Communications & Networking. Chapter 6 Network Layer: Logical Addressing

IP Subnetting and Addressing

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

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

Tutorial (03) IP addresses & Sub netting

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

WHITE PAPER. Understanding IP Addressing: Everything You Ever Wanted To Know

Raritan Valley Community College Academic Course Outline. CISY Advanced Computer Networking

What is VLAN Routing?

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

VLSM and CIDR Malin Bornhager Halmstad University

COURSE AGENDA. Lessons - CCNA. CCNA & CCNP - Online Course Agenda. Lesson 1: Internetworking. Lesson 2: Fundamentals of Networking

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

Ethernet. Ethernet. Network Devices

Advanced IP Addressing

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

04 Internet Protocol (IP)

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

Computer Networks By Bahaa Q. Al-Mussawi Subnetting Basics Reduced network traffic Optimized network performance Simplified management

Subnet + CIDR. Internet Networking recitation #1. 11: , Internet Networking,

The IP Transmission Process. V1.4: Geoff Bennett

Classful IP Addressing (cont.)

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

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

Top-Down Network Design

Internet Protocols. Addressing & Services. Updated:

TCP/IP Basis. OSI Model

Chapter 1 Personal Computer Hardware hours

HOST AUTO CONFIGURATION (BOOTP, DHCP)

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

Chapter 3 LAN Configuration

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

CSET 4750 Computer Networks and Data Communications (4 semester credit hours) CSET Required IT Required

: Interconnecting Cisco Networking Devices Part 1 v2.0 (ICND1)

Networking Test 4 Study Guide

Topics. Subnetting. The Basics of Subnetting Subnet Mask Computing subnets and hosts Subnet Routing Creating a Subnet Example of Subnetting 1/37

Transport and Network Layer

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

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

Chapter 5: Sample Questions, Problems and Solutions Bölüm 5: Örnek Sorular, Problemler ve Çözümleri Örnek Sorular (Sample Questions):

SUPPORT DE COURS. Dr. Omari Mohammed Maître de Conférences Classe A Université d Adrar Courriel : omarinmt@gmail.com

Network Protocol Configuration

Chapter 12 Supporting Network Address Translation (NAT)

Datacommunication. Internet Infrastructure IPv4 & IPv6

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

College 5, Routing, Internet. Host A. Host B. The Network Layer: functions

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

How To Use A Network Over The Internet (Networking) With A Network (Netware) And A Network On A Computer (Network)

RARP: Reverse Address Resolution Protocol

SUBNETS, CIDR, AND CLASSLESS ADDRESSING

Networking TCP/IP routing and workload balancing

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

Workstation ARP. Objective. Background / Preparation

Interconnecting Cisco Network Devices 1 Course, Class Outline

Network Security TCP/IP Refresher

JOB READY ASSESSMENT BLUEPRINT COMPUTER NETWORKING FUNDAMENTALS - PILOT. Test Code: 4514 Version: 01

Chapter 4 Network Layer

Transcription:

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

Think-Pair-Share: IP addressing What is the need for IP addresses? Why not have only MAC addresses? Given that IP addresses are required, come up with a suitable way of structuring them. What are the pros and cons of your solution? Analogy: Think about a post-office. What information needs to be maintained by each postoffice in order to route a letter from here to anywhere? IIT Bombay cs 348 2

IP Addressing Addresses need to be globally unique, so they are hierarchical Another reason for hierarchy: aggregation reduces size of routing tables at the expense of longer routes IIT Bombay cs 348 3

Network layer Need: Hide type of subnet Ethernet, Token Ring, FDDI... Hide topology of subnets Provides: Uniform addressing Packet delivery IIT Bombay cs 348 4

IP characteristics IP can run on Ethernet (CSMA/CD) FDDI (token ring) telephone trunks (SONET or PDH) wireless links (CSMA/CA) satellite links (ALOHA) other technologies like X.25, ISDN underlying technology can be upgraded without affecting TCP/IP IIT Bombay cs 348 5

Network layer functions Internetworking uniform addressing scheme Routing choice of appropriate paths from source to destination Congestion Control avoid overload on links/routers IIT Bombay cs 348 6

Addressing Address: byte-string that identifies a node; usually unique physical address: device level Ethernet HWaddr 00:1c:c0:ae:a7:65 network address: network level inet addr:10.129.5.151 logical address: application level www addr: www.cse.iitb.ac.in IIT Bombay cs 348 7

Address Resolution Protocol (ARP) RFC 1010 Address resolution provides mapping between IP addresses and datalink layer addresses point-to-point links don t use ARP, have to be configured manually 32-bit IP address ARP RARP 48-bit Ethernet address IIT Bombay cs 348 8

ARP request/reply; cache ARP requests are broadcasts Who owns IP address x.x.x.x.?. ARP reply is unicast ARP cache is created and updated dynamically arp a displays entries in cache Every machine broadcasts its mapping when it boots IIT Bombay cs 348 9

IP addressing Internet Protocol (IP) connectionless packet delivery and best-effort quality of service Every host interface has its own IP address Routers have multiple interfaces, each with its own IP address IIT Bombay cs 348 10

IP addressing example 10.1.1.2 223.1.5.2 10.1.1.3 10.1.1.4 10.1.1.1 223.1.5.1 223.1.5.2 11011111 00000001 00000101 00000010 223 1 5 2 IIT Bombay cs 348 11

At a host: Destination on my net? IP forwarding If yes, use ARP and deliver directly. If not, give to default gateway. At a gateway: Am I the destination IP? If yes, deliver packet to higher layer. If not, which interface to forward on? consult Routing Tables to decide. IIT Bombay cs 348 12

Think-Pair-Share: Address space Why 32 bit address space? How many bits should be allocated for network number and host number? How does a router know which bits to consider for network number and which ones for host number? IIT Bombay cs 348 13

IPv4 addresses Logical address at network layer 32 bit address space Network number, Host number boundary identified by a subnet mask can aggregate addresses within subnets Machines on the same "network" have same network number IIT Bombay cs 348 14

Address classes Class A addresses - 8 bits network number Class B addresses - 16 bits network number Class C addresses - 24 bits network number Distinguished by leading bits of address leading 0 => class A (first byte < 128) leading 10 => class B (first byte in the range 128-191) leading 110 => class C (first byte in range 192-223) IIT Bombay cs 348 15

IPv4 addresses class A 0network host 1.0.0.0 to 127.255.255.255 B 10 network host 128.0.0.0 to 191.255.255.255 C 110 network host 192.0.0.0 to 239.255.255.255 D 1110 multicast address 240.0.0.0 to 247.255.255.255 32 bits Source: Unknown IIT Bombay cs 348 16

IPv4 address issues Inefficient: wasted addresses Inflexible: fixed interpretation Not scalable: Number of networks is growing Not enough network numbers IIT Bombay cs 348 17

Group Activity IP addressing IPv4 addressing is inefficient due to wasted addresses in class A and class B networks. It is also not scalable to growing number of networks. Design a solution to fix the above IP address inefficiency problems. What are the pros and cons of your solution? IIT Bombay cs 348 18

IP addressing schemes Sub-netting: Subnet Masks Create sub networks within an address space. CIDR: Classless InterDomain Routing Variable interpretations for the network number. DHCP: Dynamic Host Configuration Protocol Assign addresses dynamically from a pool. NAT: Network Address Translation Private IP addresses within intranet; Translate to a public IP address at gateway before internet access. So reuse is possible. Ipv6: 128 bit address space IIT Bombay cs 348 19

Subnet mask IIT Bombay cs 348 20

Subnet addressing Internal routers & hosts use subnet mask to identify subnet ID and route packets between subnets within the network Subnet mask can end on any bit Mask must have contiguous 1s followed by contiguous zeros. Routers do not support other types of masks. IIT Bombay cs 348 21

Classless Inter Domain Routing (CIDR) Medium sized networks choose class B addresses, leading to wasted space allow ways to represent a set of class C addresses as a block, so that class C space can be used use a CIDR mask IIT Bombay cs 348 22

CIDR IIT Bombay cs 348 23 Source: keshav

Closure Self-study: Read about CIDR (Classless Interdomain Routing). Tutorial question: Given an IP address 144.16.116.2 and subnet mask 255.255.255.192. Identify the Net:Subnet and the Host parts of the IP address. IIT Bombay cs 348 24