Presentation is loading. Please wait.

Presentation is loading. Please wait.

INTRODUCTION  Network Layer is the third layer in the seven layer OSI model  It provides logical addressing and routing  The protocols in this layer.

Similar presentations


Presentation on theme: "INTRODUCTION  Network Layer is the third layer in the seven layer OSI model  It provides logical addressing and routing  The protocols in this layer."— Presentation transcript:

1 INTRODUCTION  Network Layer is the third layer in the seven layer OSI model  It provides logical addressing and routing  The protocols in this layer are IPv4/IPv6,IPx,OSPF,RIP,ICMP  IP is a communication protocol for relaying datagrams across networks  IP transfers packets from source to destination based on IP address by adding header

2 INTRODUCTION CONT....  IP address is used for host/network interface identification and location addressing  IP has two versions – IPv4, IPv6  IPv4 address is divided into five classes based on priority bit(s), they are 1 Class A 2 Class B 3 Class C 4 Class D 5 Class E

3 IP Addressing ClassIP RangeConfigurationUses A0-126N.H.H.H For government and large corporations B128-191N.N.H.H Large and medium sized companies C192-223N.N.N.H Other than Class A and Class B addresses D224-239- Multicast addressing E240-255- Research, testing and experimentation

4 8/6/15 Subnetting Subnetting requires a three step procedure: Determine the number of host bits to be used for the subnetting. Subnetting a Class B Network ID Required Number of Subnets Number of Subnet Bits Subnet MaskNumber of Hosts per Subnet 1-21255.128.0.0 or /98,388,606 33-646255.252.0.0 or /14262,142 2,097,153-4,194,30422255.255.255.252 or /302

5 8/6/15 Enumerate the new subnetted network Ids. Based on the number of host bits we need for our subnetting, we list the new subnetted network IDs. There are two main approaches: Binary: Binary Subnetting Technique for Network ID 192.168.0.0 11000000.10101000. 100 00000.00000000 - 192.168.128.0/19 11000000.10101000. 101 00000.00000000 - 192.168.160.0/19 Decimal: Decimal Subnetting Technique for Network ID 192.168.0.0 3232268288 - 192.168.128.0/19 Enumerate the IP addresses for each new subnetted network ID. Based on the enumeration of the subnetted network IDs, we must list the valid IP addresses for new subnetted network IDs. There are two main approaches: Binary: the range of IP addresses for the 3 bit subnetting of 192.168.0.0 is  11000000.10101000. 000 00000.00000001 - 11000000.10101000. 000 11111.11111110 - its ip range - 192.168.0.1 - 192.168.31.254 Decimal:  3232235521 – 3232243710 -its ip range- 192.168.0.1 - 192.168.31.254

6 8/6/15 Subnet Masks With the advent of subnetting, one can no longer rely on the definition of the IP address classes to determine the network ID in the IP address. A new value is needed to define which part of the IP address is the network ID and which part is the host ID regardless of whether class-based or subnetted network IDs are being used. RFC 950 defines the use of a subnet mask (also referred to as an address mask) as a 32-bit value that is used to distinguish the network ID from the host ID in an arbitrary IP address. The bits of the subnet mask are defined as follows: All bits that correspond to the network ID are set to 1. All bits that correspond to the host ID are set to 0. Address ClassBits for Subnet MaskNetwork Prefix Class A11111111 00000000 00000000 00000000/8 Class B11111111 11111111 00000000 00000000/16 Class C11111111 11111111 11111111 00000000/24

7 Subnetting Example Host IP address: 138.101.114.225 Network Mask: 255.255.0.0(or by /16) Subnet Mask:255.255.255.0 Major network Address: 138.101.0.0 Major network broadcast Address: 138.101.255.255 Total range of hosts if not subnetted: 138.101.0.1-138.101.255.254 Step1: Convert the ip address and mask to binary Ip address:10001010. 01100101. 01110010. 11100001 Mask : 11111111. 11111111. 11111111. 00000000 Step2: Finding the subnet address Simply performing bitwise and of ip address with its subnet mask: Ip address:10001010. 01100101. 01110010. 11100001 Mask : 11111111. 11111111. 11111111. 00000000 ------------------------------------------------------------------------------------ Network : 10001010.01100101.01110010.00000000 The network address is: 138.101.114.0

8 Subnetting Example contd Finding the subnet range/ host range Ip address:10001010. 01100101. 01110010. 11100001 Mask : 11111111. 11111111. 11111111. 00000000 ------------------------------------------------------------------------------------ Network : 10001010.01100101.01110010.00000000 using the network mask divide the subnet from the remaining address using the subnet mask divide the subnet from the hosts such that the hosts are chosen from last 1 and first 0 in the subnet mask. So the total number of subnet: 2^8=256 Subtract 2 if all 1's and all 0's cannot be used The total number of hosts=2^8-2=254 per subnet Subtraction of 2 because of the subnet address and broadcast address. SD GD subnet counting range Host counting range


Download ppt "INTRODUCTION  Network Layer is the third layer in the seven layer OSI model  It provides logical addressing and routing  The protocols in this layer."

Similar presentations


Ads by Google