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



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

Efficient Addressing. Outline. Addressing Subnetting Supernetting CS 640 1

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

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

IP Subnetting and Addressing

HOST AUTO CONFIGURATION (BOOTP, DHCP)

Variable length subnetting

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

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

8.2 The Internet Protocol

A DHCP Primer. Dario Laverde, 2002 Dario Laverde

ICS 351: Today's plan

Technical Support Information Belkin internal use only

Internetworking and Internet-1. Global Addresses

IP addressing and forwarding Network layer

IP Addressing. IP Addresses. Introductory material.

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

Application Protocols for TCP/IP Administration

Tutorial (03) IP addresses & Sub netting

04 Internet Protocol (IP)

Chapter 3: IP Addressing and VLSM

How To Make A Network Address Prefix Smaller

IP Addressing Introductory material.

(Refer Slide Time: 02:17)

PART IV. Network Layer

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)

Chapter 4 Network Layer

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

Chapter 19 Network Layer: Logical Addressing 19.1

Chapter 12 Supporting Network Address Translation (NAT)

Internet Protocol: IP packet headers. vendredi 18 octobre 13

TCP/IP Basis. OSI Model

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

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

Lecture Computer Networks

Advanced IP Addressing

Internet Protocols Fall Lectures 7-8 Andreas Terzis

Lab 5-5 Configuring the Cisco IOS DHCP Server

IP Addressing A Simplified Tutorial

Classful IP Addressing (cont.)

IP address format: Dotted decimal notation:

Internetworking and IP Address

Subnetting,Supernetting, VLSM & CIDR

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

DHCP Server. Heng Sovannarith

CCNA Tutorial Series SUBNETTING

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

Future Internet Technologies

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

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

Configuration of the DHCP server

SUBNETS, CIDR, AND CLASSLESS ADDRESSING

2. IP Networks, IP Hosts and IP Ports

Lecture 8. IP Fundamentals

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

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

Ch 6: Networking Services: NAT, DHCP, DNS, Multicasting

Internet Control Protocols Reading: Chapter 3

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

VLSM & IP ADDRESSING EXAMPLE QUESTIONS with answers;

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

Unix System Administration

ICS 351: Today's plan. IP addresses Network Address Translation Dynamic Host Configuration Protocol Small Office / Home Office configuration

Internet Protocol Address

No need to operate a DHCP server. If a server s IP address changes, clients will lose the ability to access it!

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

Internet Protocol version 4 Part I

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

The Subnet Training Guide

Ref: A. Leon Garcia and I. Widjaja, Communication Networks, 2 nd Ed. McGraw Hill, 2006 Latest update of this lecture was on

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.

Lab#2: IP Addressing and Subnetting

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

How To Plan Out Your Own Version Of Hpl (Dhcp) On A Network With A Network (Dns) On Your Network (Dhpl) On An Ipad Or Ipad On A Pc Or Ipa On A Server On A

Transport and Network Layer

Planning for Information Network

Internet Protocols. Addressing & Services. Updated:

Lab IP Addressing Overview

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

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

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

Ch 6: Networking Services: NAT, DHCP, DNS, Multicasting, NTP

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

Instructor Notes for Lab 3

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

Savera Tanwir. Internet Protocol

Introduction to IP v6

LAN TCP/IP and DHCP Setup

The IP Transmission Process. V1.4: Geoff Bennett

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

CONFIGURING TCP/IP ADDRESSING AND SECURITY

Chapter 4 Connecting to the Internet through an ISP

Transcription:

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

Today CIDR Subnetting Private IP addresses ICMP, IMAP, and DHCP Protocols 2

Packet Encapsulation ** Creative Commons: http://en.wikipedia.org/wiki/file:udp_encapsulation.svg 3

IP Addressing Classful addressing scheme separates groups of addresses into classes Class A 8 bits used for network (256) 24 bits used for hosts and network devices (16,777,216) Binary address starts with 0 Class B 16 bits for networks (65,536) 16 bits for hosts and network devices (65,536) binary address starts with 10 Class C 24 bits for the network (16,777,216) 8 bits for the host (256) Binary address starts with 110

Classless Inter-Domain Routing Classful addressing scheme wasteful IP address space exhaustion Class B net allocated enough for 65K hosts Even if only 2K hosts in that network Solution: Classless Inter Domain Routing (CIDR) Eliminate class distinction No A,B,C Keep multicast class D 5

Classless Addressing Addresses allocated in contiguous blocks Number of addresses assigned always power of 2 Network portion of address is of arbitrary length Address format: a.b.c.d/x x is number of bits in network portion of address network 11001000 00010111 1 0000000 00000000 200.23.128.0/17 host 6

Subnet Motivation network 11001000 00010111 1 0000000 00000000 200.23.128.0/17 host This network can have 2 15 = 32,768 hosts! Imagine the size of the routing tables if we had a flat network of all these hosts! We want to split this network up into smaller networks 7

Subnet Motivation network 11001000 00010111 1 0000000 00000000 200.23.128.0/17 host We probably want to split this network up into smaller networks (subnets) due to Security reasons Logistical reasons Routing reasons 8

Let s play with a small example network 11000000 10101000 00001010 00000000 192.168.10.0/24 Suppose you have this private class C network, and you need to divide it evenly You will have hosts 0-127 Friend will have hosts 128-255 host 9

Let s play with a small example Dividing the network into subnets involves using some of the host bits as the subnet ID network 11000000 10101000 00001010 00000000 192.168.10.0/24 host What bit of the host of the address do we have to flip to signify >= 128 for the host ID? 10

Let s play with a small example network 11000000 10101000 00001010 0 0000000 192.168.10.0/25 Can address hosts 0-127 network Can address hosts 128-255 subnet ID host 11000000 10101000 00001010 1 0000000 192.168.10.128/25 subnet ID host 11

Let s play with a small example Now, how can routers easily figure out where destination IP address 192.168.10.202 should be routed? network 11000000 10101000 00001010 0 0000000 192.168.10.0/25 subnet ID host 192.168.10.0/25 or 192.168.10.128/25 subnet? 12

Let s play with a small example network 11000000 10101000 00001010 0 0000000 192.168.10.0/25 A subnet number is the network + subnet ID + zeros for the host 192.168.10.0 subnet ID host A subnet mask consists of all 1 s for the network+subnet ID and all 0 s for the host What is this subnet mask? 13

Let s play with a small example network 11000000 10101000 00001010 0 0000000 192.168.10.0/25 Subnet mask: 255.255.255.128 subnet ID 11111111 11111111 11111111 10000000 host 14

Let s play with a small example network 11000000 10101000 00001010 1 0000000 192.168.10.128/25 Subnet mask: 255.255.255.128 subnet ID 11111111 11111111 11111111 10000000 host 15

Subnet Masks We can figure out where to route by noting that dest subnet = subnet mask & dest IP addr 16

Subnet Masks dest subnet = subnet mask & dest IP addr Let s say destination IP is 192.168.10.202 and lets & with subnet mask 11000000 10101000 00001010 110001010 & 11111111 11111111 11111111 100000000 11000000 10101000 00001010 100000000 192. 168. 10. 128 We send packet to 192.168.10.128/25 network! 17

Longest-Prefix Match Suppose two network IDs exist: 1) 128.186.0.0/16 2) 128.186.134.0/24 Suppose you have destination IP of 128.186.134.100 Both subnet mask & IP of 1 and 2 will yield match what to do? Longest-prefix match route to network with the most matching host bits. 18

Subnetting Notes Would use a default router if nothing matches Not necessary for all ones in subnet mask to be contiguous Can put multiple subnets on one physical network Subnets not visible from the rest of the Internet

Routing with CIDR Destination IP is BA.DB.EE.F2 20

Special IP Addresses Network address: host id = all 0 s Local broadcast address: all 1 s Used during system startup Directed broadcast address: host id = all 1 s Routers will forward this broadcast address Local host address (this computer): all 0 s Used during system startup Loopback address network id = 127, any host id (e.g. 127.0.0.1) 21

Private IP Addresses Some addresses are not globally routable IP packets created by these addresses cannot be transmitted into the public domain Commonly used for home, office, and enterprise LANS 22

Private IP Addresses Address Range CIDR Number of Addresses 10.0.0.0 10.255.255.255 10.0.0.0/8 16,777,216 172.16.0.0 172.31.255.255 172.16.0.0/12 1,048,576 192.168.0.0 192.168.255.255 192.168.0.0/16 65,535 23

Private IP addresses Router uses Network Address Translation (NAT) to send IP packets from private IP addresses onto public networks Router places it s own IP address as destination Maintains table, knows which host to route addresses Router keeps translation table 24

IP Address Configuration May configure a network statically by giving each host it s IP address and routing information (like gateway) Or may configure a server to do this for you dynamically 25

DHCP Server Dynamic Host Configuration Protocol (DHCP) DHCP server is responsible for providing configuration information to hosts There is at least one DHCP server for an administrative domain DHCP server maintains a pool of available addresses

DHCP Protocol State Protocol DHCPDISCOVER (client) DHCPOFFER (server) DHCPREQUEST (client) DHCPACK (server) DHCPNAK (server) DHCPINFORM (client)

DHCP Newly booted or attached host sends DHCPDISCOVER message to a special IP address (255.255.255.255) Rest of messages are unicast back and forth

DHCP IP leases are valid for a predefined period of time (T1) Leases are renewed at T1/2 Leases are released if they have not been renewed at the expiration of the lease time

Internet Control Message Protocol (ICMP) Defines a collection of error messages that are sent back to the source host whenever a router or host is unable to process an IP datagram successfully Destination host unreachable due to link /node failure Reassembly process failed TTL had reached 0 (so datagrams don't cycle forever) IP header checksum failed