Subnet Design and IP Addressing

Slides:



Advertisements
Similar presentations
Chapter 19 Network Layer: Logical Addressing Stephen Kim.
Advertisements

1 Computer Communication & Networks Lecture 17 & 18 Network Layer: Logical Addressing Waleed Ejaz.
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
© 2007 Cisco Systems, Inc. All rights reserved.ICND1 v1.0—1-1 Building a Simple Network Understanding the TCP/IP Internet Layer.
Chapter 21 Exercises 1. A router forwards packets between networks. (Given a destination host address, it must be able to figure out which network that.
Chapter 18. IP: Internet Protocol Addresses
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets, 5e By Douglas E. Comer Lecture PowerPoints.
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
1 IP: Internet Protocol Addresses. 2 Internet Protocol (IP) Only protocol at Layer 3 Fundamental in suite Defines –Internet addressing –Internet packet.
IP Addressing. TCP/IP addresses -Addressing in TCP/IP is specified by the Internet Protocol (IP) -Each host is assigned a 32-bit number -Called the IP.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets, 5e By Douglas E. Comer Lecture PowerPoints.
1 IP Addressing (IPv4 ADDRESSES). 2 Universal Service Concept Any computer can communicate with any other computer in the world. Multiple independently.
Network Layer IS250 Spring 2010
Chapter 21 IP Addressing “If we all did the things we are capable of doing, we would literally astound ourselves” - Thomas Alva Edison,
IP Addressing. Each TCP/IP host is identified by a logical IP address. –The IP address is a network layer address –No dependence on the Data-Link layer.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 19 Network Layer Logical Addressing © 2012 by McGraw-Hill Education. This is proprietary material.
NETWORK LAYER IP Addressing 1. ANNOUNCEMENT: Rescheduled  NO PRACTICAL SESSIONS ON TUESDAY 22, November 2010  Rescheduled sessions: MONDAY: November.
Functions 1.  How long is MAC address?  How is mac address used in data communication?  What is a frame?  What does an IP address look like? 2.
Layering and the TCP/IP protocol Suite  The TCP/IP Protocol only contains 5 Layers in its networking Model  The Layers Are 1.Physical -> 1 in OSI 2.Network.
1 TCOM 509 – Internet Protocols (TCP/IP) Lecture 02_b Instructor: Dr. Li-Chuan Chen Date: 09/08/2003 Based in part upon slides of Prof. J. Kurose (U Mass),
IP Addressing. Dotted Decimal Notation IP addresses are written in a so-called dotted decimal notation Each byte is identified by a decimal number in.
Spring Ch 18 IP Addresses. 2 Internet Protocol  Only protocol at Layer 3  Defines Internet addressing Internet packet format Internet routing.
1 TCP/IP introduction ผศ. ดร. อนันต์ ผลเพิ่ม Anan Phonphoem, Ph.D. Computer Engineering Department Kasetsart.
4: Addressing Working At A Small-to-Medium Business or ISP.
INTRODUCTION TO IP ADDRESS Ravi Chandra Gurung. IP ADDRESSES.
IP Addressing Introductory material. An entire module devoted to IP addresses.
G64INC Introduction to Network Communications Ho Sooi Hock Internet Protocol.
IP Addresses & Classes Presented By: M.Usman Khan Ghauri Nauman Aslam.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Extending LANs Asst. Prof. Chaiporn Jaikaeo,
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Transport Layer Protocols – UDP and TCP Asst.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. IP version 6 Asst. Prof. Chaiporn Jaikaeo,
Chapter 18 IP: Internet Protocol Addresses
Chapter 4, slide: 1 CS 372 – introduction to computer networks* Friday July 23, 2010 Announcements: r Midterms are graded. r Lab 4 is posted. Acknowledgement:
ICS 156: Lecture 2 (part 1) Today:  IP addressing  Data link protocols and ARP  Notes about lab.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CLASSLESS INTER-DOMAIN ROUTING {CIDR} & SUBNETTING PHILLIP LAFLEUR NATHAN GRAMMES JONATHAN BENNETT.
Universal Identifier UNIVERSAL IDENTIFIER Universal network = globally accepted method for identifying each computer. Host identifier = host is identify.
SUBNET Communication Technologies CIS 505 Prepare by Thanantinee Tantivejakul.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
Connecting LANs, Backbone Networks, and Virtual LANs : Data Communication and Computer Networks Asst. Prof. Chaiporn Jaikaeo, Ph.D.
Chapter 5 IPv4 Address.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc. Internetworking, WANs, and Dynamic Routing.
Chapter 18 IP: Internet Protocol Addresses. Internet protocol software used to make the internet appear to be a single, seamless communication system.
IP Internet Protocol Fundamental packet format that computers use to exchange information. Is a set of technical rules that defines how computers communicate.
21-IP addressing Dr. John P. Abraham Professor UTPA.
CS470 Computer Networking Protocols
Network Layer (part2)6-1 INT-201: Computer Network and Communication System อ. ดร. ภัทร ลีลาพฤทธิ์ Dr. Pattara Leelaprute Computer Engineering Department.
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 19 Omar Meqdadi Department of Computer Science and Software Engineering University.
IP ADDRESSING Lecture 2: IP addressing Networks and Communication Department 1.
21-IP addressing Dr. John P. Abraham Professor UTPA.
Chapter 8: IP Addressing
Introduction to Internetworking. 2 The IP Addressing Scheme (IPv4) (psu.edu) Dotted Decimal Notation: A notation more convenient for humans.
COMPUTER NETWORKS CS610 Lecture-26 Hammad Khalid Khan.
1 ECE453 – Introduction to Computer Networks Lecture 11 – Network Layer III – IP Protocol.
IP Addressing. A 32-bit logical naming convention A dotted-decimal notation is used: – –Each number represents 8 bits. Number is Part.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. 1 Computer Networks and Internets, 5e By Douglas E. Comer Lecture PowerPoints.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 IP Addresses: Classful Addressing.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
IP – Subnetting and CIDR
The Concept of Universal Service
Network Layer: IP Addressing
Chapter-5 TCP/IP Suite.
CS4470 Computer Networking Protocols
IP Addresses: Classful Addressing
Objective: Classful Internet Addressing
Layering and the TCP/IP protocol Suite
Presentation transcript:

Subnet Design and IP Addressing Asst. Prof. Chaiporn Jaikaeo, Ph.D. chaiporn.j@ku.ac.th http://www.cpe.ku.ac.th/~cpj Computer Engineering Department Kasetsart University, Bangkok, Thailand Adapted from the notes by Lami Kaya and lecture slides from Anan Phonphoem © 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. © The McGraw-Hill Companies, Inc.

Outline IP Address CIDR

Internet Addresses Internet protocol must hide physical network details Application doesn’t care about physical Need address to communicate without knowing underlying network of each other Address should be Unique Uniform addressing scheme Independent to physical networks

Internet Model Revisited router sender router receiver Application Transport Network Data Link Physical Application Transport Network Data Link Physical Network D.L. P.L. Network D.L. P.L. Transmission medium

Network Layer Revisited Data 1.1 5.7 1.1, 1.2, 6.1, 5.7, ... are logical addresses 1.1 1.2 Network 1 R1 6.1 Network 6 6.6 6.3 R3 R2 5.2 Router 3.3 Network 5 5.7 Network 3 3.8

IP Addressing Scheme Unique 32-bit binary number (4 bytes) Assigned to each network interface Used for identify host and communicate Two-level hierarchical address prefix (network ID) – assigned globally suffix (Node/host ID) – assigned locally Address must be coordinated globally Network ID Host ID Prefix Suffix

Internet Classes Traditional addressing scheme Classful Addressing

IP Address Class

IP Address Classes B 25% A 50% C 12.5% D E

No. of Networks / Hosts

IP address in decimal notation 0 0 0 0 1 0 1 1 x 27 26 25 24 23 22 21 20 8 + 2 + 1 = 11

Example: IP address practice Binary Dotted Decimal #1 10011110 01101100 00100000 00010010 158.108.32.18 #2 00001100 00011001 00000001 00010111 12.25.1.23 #3 11001001 01111101 10001001 11010101 201.125.137.213

Class ranges of Internet Address

IP address in decimal notation www.ku.ac.th

Class A example

Class C example

Network Address

Internet Example Network and Host addresses

A Network with Two Levels of Hierarchy Network -> Host

A Network with Three Levels of Hierarchy Network -> Subnet -> Host

Addresses with and without Subnetting

Classful Subnet Masks Class Binary Dotted-Decimal CIDR Notation A 11111111 00000000 00000000 00000000 255.0.0.0 /8 B 11111111 11111111 00000000 00000000 255.255.0.0 /16 C 11111111 11111111 11111111 00000000 255.255.255.0 /24

Subnet Masks

Example: Subnet Mask Find the network ID of each of the following hosts with specified subnet masks: IP: 192.168.5.3 Mask: 255.255.255.0 IP: 172.130.10.20 Mask: 255.255.255.0 IP: 192.168.10.5 Mask: 255.255.255.128 IP: 158.108.228.178 Mask: 255.255.240.0

Outline IP Address CIDR

Classless Inter-Domain Routing CIDR - Classless Inter-Domain Routing Introduced in 1993 to replace classful network design in the Internet To slow the growth of routing tables on routers To help slow the rapid exhaustion of IPv4 addresses No longer restrict network addresses as one or more 8-bit groups

CIDR Notation Specifies mask with prefix size Example: More convenient than binary representation Example: NetID: 158.108.0.0 Subnet Mask: 255.255.0.0 CIDR notation: 158.108.0.0/16

CIDR Host Address

Example: CIDR Notation Convert mask to corresponding prefix size 255.0.0.0 255.192.0.0 255.255.255.252 Convert prefix size to corresponding mask /8 /12 /16 /20 /28

Example: CIDR Notation Find the network ID of each of the following hosts with specified prefix size: IP: 192.168.5.3/24 IP: 172.130.10.20/18

Special IP Addresses Network Address Directed Broadcast Address all hosts = 0; e.g. 158.108.0.0/16 Directed Broadcast Address Broadcast to a specified network all hosts = 1; e.g. 158.108.255.255/16 Limited Broadcast Address Broadcast to local network all 1; e.g. 255.255.255.255 This computer Address all 0; e.g. 0.0.0.0 Loopback Address 127.0.0.0/8  127.x.x.x

Loopback Addresses Allow programmers to test the program logic quickly without needing two computers and without sending packets across a network During loopback testing no packets ever leave a computer the IP software forwards packets from one application to another The loopback address never appears in a packet traveling across a network

Loopback Addresses โปร เซส โปร โปร เซส เซส / A A A Loopback Interface Process A โปร โปร เซส เซส A A A Process B Outgoing packet from Loopback to Process TCP/UDP / 127.0.0.1 127.0.0.1 Loopback Interface IP Incoming packet to Loopback Interface Data Link Physical Other Addresses

Directed Broadcast Address Use for sending to all nodes in class range Class A broadcast example: 10.255.255.255 Class B broadcast example: 158.108.255.255 Class C broadcast example: 202.100.15.255

Special IP Address

Example: Subnet Design You are given an IP address block 12.6.8.0/24 You want to divide this block into subnets Subnet A to serve 28 hosts Subnet B to serve 40 hosts Subnet C to serve 70 hosts List the designed subnets with the following information (1) subnet ID, (2) mask, (3) first usable address, (4) last usable address, (5) directed broadcast address

Example: Subnet Design Design subnetting scheme Subnet C (70 hosts) /25 block (128 addrs) Original /24 block (256 addrs) Subnet A (28 hosts) /26 block (64 addrs) Subnet B (40 hosts) /26 block (64 addrs)

Example: Subnet Design Create summary table Subnet SubNet ID Subnet Mask First Host IP Last Host IP Broadcast Addr C 12.6.8.0 255.255.255.128 12.6.8.1 12.6.8.126 12.6.8.127 A 12.6.8.128 255.255.255.192 12.6.8.129 12.6.8.190 12.6.8.191 B 12.6.8.192 12.6.8.193 12.6.8.254 12.6.8.255