CS4470 Computer Networking Protocols

Slides:



Advertisements
Similar presentations
© N. Ganesan, All rights reserved. Chapter IP Addressing Format.
Advertisements

IPv4 Addresses. Internet Protocol: Which version? There are currently two versions of the Internet Protocol in use for the Internet IPv4 (IP Version 4)
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
IP Addressing and Subnetting
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.
CSCI 4550/8556 Computer Networks Comer, Chapter 18: IP: Internet Protocol Addresses.
© 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.
1 Spring Semester 2007, Dept. of Computer Science, Technion Internet Networking recitation #1 Subnet + CIDR.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets, 5e By Douglas E. Comer Lecture PowerPoints.
1 Internet Networking Spring 2006 Tutorial 1 Subnetting and CIDR.
Oct 26, 2004CS573: Network Protocols and Standards1 IP: Routing and Subnetting Network Protocols and Standards Autumn
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
1 IP Addressing (IPv4 ADDRESSES). 2 Universal Service Concept Any computer can communicate with any other computer in the world. Multiple independently.
Q and A, Ch. 21 IS333, Spring 2015 Victor Norman.
Chapter 21 IP Addressing “If we all did the things we are capable of doing, we would literally astound ourselves” - Thomas Alva Edison,
CS 6401 Efficient Addressing Outline Addressing Subnetting Supernetting.
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.
Spring Ch 18 IP Addresses. 2 Internet Protocol  Only protocol at Layer 3  Defines Internet addressing Internet packet format Internet routing.
Types of Addresses in IPv4 Network Range
Subnet & Classless Address Extensions Linda Wu (CMPT )
1 Internet Addresses (You should read Chapter 4 in Forouzan) IP Address is 32 Bits Long Conceptually the address is the pair ( NETID, HOSTID ) Addresses.
IP Addressing Introductory material. An entire module devoted to IP addresses.
IPv4 Addresses. Internet Protocol: Which version? There are currently two versions of the Internet Protocol in use for the Internet IPv4 (IP Version 4)
ES 101. Module 2 IP Addressing & Routing. Last Lecture Wide area networking Definition of “packets”
Efficient Addressing Outline Addressing Subnetting Supernetting CS 640.
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:
Universal Identifier UNIVERSAL IDENTIFIER Universal network = globally accepted method for identifying each computer. Host identifier = host is identify.
Layer 3: Internet Protocol.  Content IP Address within the IP Header. IP Address Classes. Subnetting and Creating a Subnet. Network Layer and Path Determination.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
Classful Internet Addresses Chapter 4. Universal Identifiers Designers of TCP/IP determined that each host on the internet would have a 32-bit identifier.
CS470 Computer Networking Protocols
CCNA Discovery Semester 3 Addressing in an Enterprise Network Chapter 4 K. Martin.
Q and A, Ch. 21 IS333, Spring 2016 Victor Norman.
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.
TCP/IP Addressing and Subnetting. IP Addressing Roadmap Format of IP Addresses Traditional Class Networks Network Masks Subnetting Supernetting Special.
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.
Discovery 2 Internetworking Module 4 JEOPARDY K. Martin.
IP – Subnetting and CIDR
IP Addressing and Subnetting
Binary Concepts By: Nathan Miller.
Introduction to Networks
LESSON Networking Fundamentals Understand IPv4.
Scaling the Network: Subnetting and Other Protocols
IP: Addressing, ARP, Routing
Network Layer: IP Addressing
Internet Networking recitation #1
IP.
Objective: Classful Internet Addressing
Ct1304 Lecture#4 IPV4 Addressing Asma AlOsaimi.
NET302 Lecture#3 IPV4 Addressing Asma AlOsaimi.
Chapter 9 Objectives Understand TCP/IP Protocol.
IPv4 Addresses.
Internet Protocol INTERNET PROTOCOL.
Dr. John P. Abraham Professor UTPA
Lecture#3 IPV4 Addressing Net 302- Asma AlOsaimi.
INTERNET PROTOCOL Presented by: Md:Faruque-A-Azam ID:1642CSE00570 Batch:42 CSE,MIU.
Dr. John P. Abraham Professor UTRGV
Ct1304 Lecture#4 IPV4 Addressing Asma AlOsaimi.
Scaling the Network: Subnetting and Other Protocols
Subnets in TCP/IP Networks © N. Ganesan, Ph.D.
Dr. John P. Abraham Professor UTPA
Layering and the TCP/IP protocol Suite
Lecture#3-IPV4 Addressing
Presentation transcript:

CS4470 Computer Networking Protocols 7/31/2018 CS4470 Computer Networking Protocols 9. IP addresses Huiping Guo Department of Computer Science California State University, Los Angeles

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 address or Internet address Unique across entire Internet Each IP address is divided into a prefix and a suffix Prefix identifies network to which computer is attached No two networks can be assigned the same network number Suffix identifies computer within that network No two computers on the same network can have the same suffix, but computers on different networks can have the same suffix Address format makes routing efficient 9. IP Addresses CS4470_F17

Properties of IP Addresses Network numbers (prefix) are unique Assignment of network numbers must be coordinated globally to ensure uniqueness Assigned by ICANN: Internet Corporation of Assigned Names and Numbers Host addresses (suffix) may be reused on different networks combination of network number prefix and host address suffix will be unique assignment of host addresses can be managed locally 9. IP Addresses CS4470_F17

Designing IP IP designers chose 32-bit addresses Still 32 bits in IP version 4 used today May cause a problem soon, not a large enough address space! Allocate some bits for prefix, some for suffix Large prefix, small suffix - many networks, few hosts per network Small prefix, large suffix - few networks, many hosts per network Because of variety of technologies, need to allow for both large and small networks 9. IP Addresses CS4470_F17

Classful Addressing Designers chose a compromise - multiple address formats that allow both large and small prefixes Each format is called an address class Class of an address is identified by first four bits 9. IP Addresses CS4470_F17

Address Classes Class A, B and C are primary classes Used for ordinary host addressing Owner of a class is assigned a prefix, gets to pick what machines they want in the suffix Classes A and B are all allocated! Class D is used for multicast, a limited form of broadcast Class E is reserved for future use 9. IP Addresses CS4470_F17

Compute the Class of an Address IP needs to separate the destination address into a prefix and suffix when it handles a packet Look at first dotted decimal number, and use this table: Just a little binary number conversion based on first 4 bits 9. IP Addresses CS4470_F17

Division of the Address Space Classing scheme does not yield equal number of networks in each class Class A: First bit must be 0 7 remaining bits identify Class A net 27 (= 128) possible class A nets For the rest: 9. IP Addresses CS4470_F17

Classful Addressing Example Organization with four networks, completely private network Assign Class A,B,C addresses as appropriate for number of hosts on each network 9. IP Addresses CS4470_F17

Limitations of the classful addressing scheme The IP address space is being exhausted All networks had to choose one of the three possible sizes, many addresses were wasted. Ex. A company requests a network address with a block of 1000 host address Has to get a class B address 216-1000 addresses are unused 9. IP Addresses CS4470_F17

Subnet and Classless Addressing Mechanisms to overcome the limitations Subnetting and Classless Addressing Take a single IP network number and allocate the IP addresses with that network number to several physical networks, which are referred to as subnets The postfix of the IP address is further divided into two parts: subnet id and host address Each subnet is assigned a subnet number All host in the same subnet share the same subnet number The network number and the subnet number now become the new network prefix 9. IP Addresses CS4470_F17

Subnet masks Classless and subnet addressing requires an additional piece of information stored with each address Known as address masks or subnet masks Used to specify the boundary between the network prefix and the host prefix 1 bits mark the network prefix 0 bits mark the host portion Default subnet mask: Class A: 255.0.0.0 Class B: 255.255.0.0 Class C: 255.255.255.0 9. IP Addresses CS4470_F17

Example We want to share a single class B address among several physical networks (subnets) We can use a subnet mask of 255.255.255.0 Top 24 bits are now defined to be the network number Lower 8 bits are the host number Since the top 16 bits identify the network in a class B address, there are 3 parts in the IP address: a network part, a subnet part and a host part 9. IP Addresses CS4470_F17

Subnetting example 9. IP Addresses CS4470_F17

Subnets and Subnet Masks Each host is configured with both an IP address and a subnet mask for the subnet to which it’s attached The bitwise AND of the two numbers defines the subnet number of the host and of all other hosts on the same subnet Eg: At H1, 128.96.34.15 AND 255.255.255.128 = 128.96.34.0 How will hosts use the subnet mask? A host: decides whether a destinations address in a packet is local or not When sending to a destination IP address, perform bitwise AND between the destination IP address and its own subnet mask If the result equals the subnet number of the sender, then it knows that the destination host is on the same subnet Otherwise, the packet needs to be sent to a router to be forwarded to another subnet. 9. IP Addresses CS4470_F17

Routers and subnets For simple IP, a router has a forwarding table that consists of entries of the form (networkNumber, NextHop) To support subnetting, the table now hold entries of the form Subnet number Subnet mask Next hop 128.96.34.0 255.255.255.128 Interface 0 128.96.34.128 Interface 1 128.96.33.0 255.255.255.0 Interface 2 9. IP Addresses CS4470_F17

Data forwarding algorithm D = destination IP address For each forwarding table entry(subnetNumber, subnetMask, nextHop) D1 = SubnetMask & D If D1 = subnetNumber, deliver datagram to nextHop (a router or a network) 9. IP Addresses CS4470_F17

What’s a subnet ? Another name of physical network 223.1.1.1 223.1.1.2 223.1.1.3 223.1.1.4 223.1.2.9 223.1.2.2 223.1.2.1 223.1.3.2 223.1.3.1 223.1.3.27 network consisting of 3 subnets subnet Another name of physical network A subnet is a collection of machines that can communicate with each other without the need for routing Every subnet has at least one router/gateway. If it didn’t, then the subnet couldn’t talk to any machines outside of its network. 9. IP Addresses CS4470_F17

Subnets Recipe To determine the subnets, detach each interface from its router, creating islands of isolated networks. Each isolated network is a subnet. 9. IP Addresses CS4470_F17

Subnets How many subnets? 6! 223.1.2.1 223.1.1.2 223.1.1.1 223.1.1.3 7/31/2018 223.1.2.1 223.1.1.2 223.1.1.1 223.1.1.3 223.1.1.4 223.1.2.2 223.1.2.6 223.1.3.2 223.1.3.1 223.1.3.27 223.1.7.0 223.1.7.1 223.1.8.0 223.1.8.1 223.1.9.1 223.1.9.2 Subnets How many subnets? 6! 9. IP Addresses CS4470_F17

CIDR Notation CIDR = Classless Inter-Domain Routing Notation for classless addresses Specifies the mask associated with an address Appends a slash to the address with the size of the mask in decimal Examples: 128.10.0.0/16 says 16 bit prefix, 16 bit suffix (Class B) 128.211.0.16/28 28 bit prefix, 4 bit suffix 9. IP Addresses CS4470_F17

7/31/2018 CIDR Example 1 9. IP Addresses CS4470_F17

Reserved Addresses RFC 1597 – Address Allocation for Private networks The following blocks are reserved for private networks 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 We’ll need a gateway to translate from these addresses to the Internet addresses Network Address Translation We should never see a machine on the Internet with one of these network prefixes (hopefully) 9. IP Addresses CS4470_F17

Special IP Addresses Network Address Directed Broadcast Address The network itself is assigned an address So no host can have all zero’s as its IP address suffix Prefix is the network prefix, suffix is all zero’s Eg. 128.211.0.0/16 Directed Broadcast Address Broadcast message to a network Prefix is the network prefix, suffix is all one’s So no host can have all one’s as its IP address suffix Can be routed Limited Broadcast Address Broadcast on the local LAN Entire address is all 1’s, i.e. 255.255.255.255 Won’t be routed 9. IP Addresses CS4470_F17

More Special IP Addresses This Computer Address To obtain an address automatically when booting, we may use IP to communicate… but we don’t have a correct IP address yet Use an address of all zero’s to indicate “this computer” Loopback Address Any address beginning with 127 indicates the local computer E.g. 127.0.0.1 most common, but could be 127.0.44.53 Use for testing network applications, no packets leave the computer 9. IP Addresses CS4470_F17

Special Address Summary 9. IP Addresses CS4470_F17