IP-adresses and subnet masks. Figure 19.9 Dotted-decimal notation.

Slides:



Advertisements
Similar presentations
Chapter 5 IPv4 Addresses TCP/IP Protocol Suite
Advertisements

19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Introduction to IPv4 Introduction to Networks.
Chapter 19 Network Layer: Logical Addressing Stephen Kim.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
Network Layer: Logical Addressing. 4-1 IPv4 ADDRESSES An IPv4 address is a 32-bit address that uniquely and universally defines the connection of a device.
TCP/IP Protocol Suite 1 Chapter 4 Objectives Upon completion you will be able to: IP Addresses: Classful Addressing Understand IPv4 addresses and classes.
© 2007 Cisco Systems, Inc. All rights reserved. 1 Network Addressing Networking for Home and Small Businesses – Chapter 5.
Chapter 18. IP: Internet Protocol Addresses
Week 5: Internet Protocol Continue to discuss Ethernet and ARP –MTU –Ethernet and ARP packet format IP: Internet Protocol –Datagram format –IPv4 addressing.
TCP/IP Protocol Suite 1 Chapter 4 Objectives Upon completion you will be able to: IP Addresses: Classful Addressing Understand IPv4 addresses and classes.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 PART IV NETWORK LAYER.
7/3/2015 Unit-3 : Network Layer 1 CS 1302 Computer Networks — Unit - 3 — — Network Layer — Text Book Behrouz.A. Forouzan, “Data communication and Networking”,
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 4 IP Addresses: Classful Addressing.
IP Addresses: Classful Addressing An IP address is a 32-bit address.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 19 Network Layer: Logical Addressing
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 19 Network Layer Logical Addressing © 2012 by McGraw-Hill Education. This is proprietary material.
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.
1 26-Aug-15 Addressing the network using IPv4 Lecture # 2 Engr. Orland G. Basas Prepared by: Engr. Orland G. Basas IT Lecturer.
4: Addressing Working At A Small-to-Medium Business or ISP.
Fall 2006Computer Networks19-1 Chapter 19. Host-to-Host Delivery: Internetworking, Addressing, and Routing 19.1 Internetworks 19.2 Addressing 19.3 Routing.
LECTURE # 20 IP ADDRESSING 1. Binary 2  All digital electronics use a binary method for communication.  Binary can be expressed using only two values:
IP Addressing and Network Software. IP Addressing  A computer somewhere in the world needs to communicate with another computer somewhere else in the.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
Chapter 8 Intro to Routing & Switching.  Upon completion of this chapter, you should be able to:  Describe the structure of an IPv4 address.  Describe.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Addressing Networking for Home and Small Businesses – Chapter 5.
© 2007 Cisco Systems, Inc. All rights reserved. 1 Network Addressing Networking for Home and Small Businesses – Chapter 5 Darren Shaver – Modified Fall.
 An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection.
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 Teeratorn Saneeyeng, KMUTNB.
Network Layer: Logical Addressing. Address Space Notations Classful Addressing Classless Addressing Network Address Translation (NAT) Topics Discussed.
SYSTEM ADMINISTRATION Chapter 8 Internet Protocol (IP) Addressing.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Network Protocols Chapter 5 (TCP/IP Suite Book): IPv4 Addresses
Chapter 4 Objectives Upon completion you will be able to: Classful Internet Addressing Understand IPv4 addresses and classes Identify the class of an.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 5 IPv4 Addresses.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 5 IPv4 Address.
© Cengage Learning 2014 How IP Addresses Get Assigned A MAC address is embedded on a network adapter at a factory IP addresses are assigned manually or.
Chapter 5.  Upon completion of this chapter, you should be able to:  Configure IP addresses  Identify & select valid IP addresses for networks  Configure.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer PART IV.
IP Addresses: Classful Addressing IP Addresses. INTRODUCTION 4.1.
IP ADDRESSING Lecture 2: IP addressing Networks and Communication Department 1.
CS4500CS4500 Dr. ClincyLecture1 Lecture #1 Chapter 5: Addressing (part 1 of 3)
NETWORKING (2) Dr. Andy Wu BCIS 4630 Fundamentals of IT Security.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 5 IPv4 Addresses.
TCP/IP Protocol Suite 1 Objectives Upon completion you will be able to: IP Addresses: Classful Addressing Understand IPv4 addresses and classes Identify.
1 Kyung Hee University Chapter 19 Network Layer: Logical Addressing.
Network Layer IP Address.
Network Layer/IP Protocols 1. Outline IP Datagram (IPv4) NAT Connection less and connection oriented service 2.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Discovery 2 Internetworking Module 4 JEOPARDY K. Martin.
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.
UNIT 4 NETWORK LAYER. Position of network layer 7/8/2016 UNIT-3 : NETWORK LAYER 2.
IP Addresses: Classful Addressing
4.3 Network Layer Logical Addressing
IP Addresses: Classful Addressing IP Addresses. CONTENTS INTRODUCTION CLASSFUL ADDRESSING Different Network Classes Subnetting Classless Addressing Supernetting.
PART IV Network Layer.
An IPv4 address is a 32-bit address that uniquely and universally defines the connection of a device (for example, a computer or a router) to the Internet.
CS 1302 Computer Networks — Unit - 3 — — Network Layer —
IP Addresses: Classful Addressing
Data Communications and Networking
INTERNET PROTOCOL Presented by: Md:Faruque-A-Azam ID:1642CSE00570 Batch:42 CSE,MIU.
Dr. John P. Abraham Professor UTRGV
Network Addressing.
Part IV Network layer 10. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Dr. John P. Abraham Professor UTPA
Introduction to Network
Presentation transcript:

IP-adresses and subnet masks

Figure 19.9 Dotted-decimal notation

IP addresses 32-bit address i today’s IP version 4 (IPv4). 128-bit in IPv6. Exampel of IP addres: binary form. At punctured decimal form this is Using hexadecimal form this is C10C5B1F.

Example 1 Change the following IP addresses from binary notation to dotted- decimal notation. a b

Example 1 Change the following IP addresses from binary notation to dotted- decimal notation. a b Solution We replace each group of 8 bits with its equivalent decimal number and add dots for separation: a b

Example 2 Change the following IP addresses from dotted-decimal notation to binary notation. a b

Example 2 Change the following IP addresses from dotted-decimal notation to binary notation. a b Solution We replace each decimal number with its binary equivalent: a b

Hierarchical Addressing Physical network address – A part used by the router Host address – Specific device, node or network interface on the physical network A networknode An example of hierarchical addressing

In classful addressing, the address space is divided into five classes: A, B, C, D, and E. Note:

Figure 9.5 IP address formats and classes

Figure Finding the class in binary notation

Figure Finding the address class

Example 3 Find the class of each address: 0 a b

Example 3 Find the class of each address: 0 a b Solution a.The first bit is 0; this is a class A address. b.The first 4 bits are 1s; this is a class E address.

Figure Finding the class in decimal notation

Example 4 Find the class of each address: a b c

Example 4 Find the class of each address: a b c Solution a.The first byte is 227 (between 224 and 239); the class is D. b.The first byte is 252 (between 240 and 255); the class is E. c.The first byte is 134 (between 128 and 191); the class is B.

Figure Netid and hostid

Figure Blocks in class A

Figure Blocks in class B

Figure Blocks in class C

Figure Network address

Figure Number of hosts and networks N bit host ID allows 2 N addresses, or 2 N -2 hosts in the network. The first address (the network address) and the last address (the broadcast address) are future addresses can not be used as host addresses. M free bit net ID allows 2 M networks.

Example 5 Given the address , find the network address.

Example 5 Given the address , find the network address. Solution The class is A. Only the first byte defines the netid. We can find the network address by replacing the hostid bytes ( ) with 0s. Therefore, the network address is

Example 6 Given the address , find the network address.

Example 6 Given the address , find the broadcast address. Solution The class is B. The first 2 bytes defines the netid. We can find the network address by replacing the hostid bytes (17.85) with 1s. Therefore, the broadcast address is

Example 7 Given the network address , find the class.

Example 7 Given the network address , find the class. Solution The class is A because the netid is only 1 byte.

Class-less addresses Today subnetting and classless addresses are used instead of class-ful addressing. Then a network can be devided into several subnets, each corresponding to a physical network. Arbitrary number of host-bits can be used. A 0 in the subnet mask means that the corresponding bit in the address belongs to the host-ID, and a 1 that it belongs to the Net ID or subnet ID. Example: Subnet mask = FFFF0000 (sixteen ones and sixteen zeros) means that the first 16 bits in the i IP-adressen are Net-ID or subnet ID, the rest are Host-ID.

Example: Network addresses Broadcast addresses Host addresses The mask is for all hosts

Figure Subnet mask

Figure Addresses in a network with and without subnetting

Table 19.1 Default masks Class In BinaryIn Dotted-Decimal Using Slash notation A /8 B /16 C /24

The network address can be found by applying the default mask to any address in the block (including itself). It retains the netid of the block and sets the hostid to 0s. Note:

Example 8 A router outside the organization receives a packet with destination address Show how it finds the network address to route the packet.

Example 8 A router outside the organization receives a packet with destination address Show how it finds the network address to route the packet. Solution The router follows three steps: 1.The router looks at the first byte of the address to find the class. It is class B. 2.The default mask for class B is The router ANDs this mask with the address to get The router looks in its routing table to find out how to route the packet to this destination. Later, we will see what happens if this destination does not exist.

Example 9 A router inside the organization receives the same packet with destination address Show how it finds the subnetwork address to route the packet. Solution The router follows three steps: 1.The router must know the mask. We assume it is /19, as shown in Figure The router applies the mask to the address, The subnet address is The router looks in its routing table to find how to route the packet to this destination. Later, we will see what happens if this destination does not exist.

Broadcast IP address Broadcast IP address is used when information needs to be sent to all the hosts on the same network ○Convenient in broadcast networks (such as Ethernet) Broadcast IP address is obtained when host bits are replaced by 1s.

Unicast, Multicast and Reserved Addresses Unicast address is used for one-to-one communication Multicast address is used for one-to-many communication (group communication) – D class Reserved addresses – Besides the addresses in class E reserved addresses are: ○Network addresses – all host bits are 0 ○Broadcast addresses – all host bits are 1 ○All network part 0 – host on this network ○ mask and all host addresses on this network are reserved for testing purposes = localhost. ○ – default route

Figure NAT

Figure Address translation

Figure Translation

Table 19.3 Five-column translation table Private Address Private Port External Address External Port Transport Protocol TCP TCP...

Table 19.2 Address ranges reserved for private NAT addresses Range Total to to to

Useful Programs These programs use ICMP to probe the Internet ○ping Sends packets that is echoed by remote computer Remote computer replies with echo packet Local computer reports receipt of reply ○traceroute Reports path to remote computer Sends packets to the destination starting with TTL=1 Each successive packet identifies next router along path Reports list of packets ○ipconfig – shows network configuration info Displays all configuration information

Ping - Example Four packets are sent. Each has different round-trip time (RTT). Why? Minimum, Maximum and average are also given.

Round-trip Time (RTT) Time for the packet to be sent and acknowledgement to come back to the sender Why the packets have different RTT? ○They might travel different paths ○The load in some of the routers might be high. Therefore packet’s waiting time at the routers can be different. ○Ping also shows the percentage of lost packets.

Traceroute - Example The source is sending three packets with TTL=1, then another three with TTL=2 and so on until TTL is by one bigger then the number of hops. A response is thus obtained from each hop where the packets are dropped. RTT for each packet is presented.

VisualRoute A program that displays visually (on a map) traceroute Trial version can be obtained free from

Ipconfig /all - Example

Figure IPv6 address

Ipconfig Displays all the information about the IP configuration. ○IP address ○Subnet mask ○Default gateway (router) ○DNS servers ○DHCP servers ○MAC (physical) address ○Host name ○Domain suffix ○…