Академический Документы
Профессиональный Документы
Культура Документы
IP Addressing 1
Communication on Internet
Each host contains an unique IP address
Processes on the Network Layer add source and destination IP
addresses on each outgoing packet
Packet is sent to the nearest router (on the same LAN)
Router forwards the packet based on IP address using its routing
table
Packet reaches destination through the network of routers
End router transmits the packet to the host
IP Address
A 32 bit number (IP v4)
Represented as dotted decimal format
Assigned by IANA to maintain uniqueness
128
16
32
13
(Decimal)
1 0 0 0 0 0 0 0 . 0 0 0 1 0 0 0 0 . 0 0 1 0 0 0 0 0 . 0 0 0 0 1 1 0 1 (Binary)
Example
140.179.220.200
Written in binary form:
140
.179
.220
.200
10001100.10110011.11011100.11001000
We see the address in the decimal form
The computer sees it in the binary form
CT046-3-3 Network Troubleshooting
Octets
The 32-bit IP address is broken up into 4 octets, which
are arranged into a dotted-decimal notation scheme.
An octet is a set of 8 bits & not a musical instrument.
Example of an IP version 4:
172.64.126.52
Classes of IP address
Classes determine number of bits to be examined for
network address
They are called classful IP Address.
There are 5 classes of IP address namely A, B, C, D, E
Networks and Hosts:
- Class A: 128 Networks with 16 million hosts each
- Class B: 16384 Networks with upto 64K hosts each
- Class C: 2 million Networks with 256 hosts each
- Class D: Used for multicasting
- Class E: Reserved
Classes of IP address
A
Network
1 0 Network
1 1 0
Net
1 1 1 0
1 1 1 1 0
Host
Network
Network
Host
Host
Network
Multicast address
Host
1.0.0.0 to
127.255.255.255
Host
128.0.0.0 to
191.255.255.255
Host
192.0.0.0 to
223.255.255.255
224.0.0.0 to
239.255.255.255
240.0.0.0 to
247.255.255.255
Identifying Classes
Classes can be identified by examining the value in the
first octet of IP address
Ranges of values in the first octet for different classes :
Class A : 0 127
Class B : 128 191
Class C : 192 223
N.H.H.H
N.N.H.H
N.N.N.H
Examples
192.168.20.3
- Class : C
- Network Address: 192.168.20.0
- Broadcast Address: 192.168.20.255
127.0.4.1
- Class : A
- Network Address: 127.0.0.0
- Broadcast Address: 127.255.255.255
185.23.5.1
- Class : B
- Network Address: 185.23.0.0
- Broadcast Address: 185.23.255.255
CT046-3-3 Network Troubleshooting
Subnetting
Introduction
There are only 3 usable IP address classes:
Class A
Class B
Class C
Class A networks have the highest number of available
hosts.
Class C networks have the fewest number of hosts.
Introduction
Subnetting
A network has its own unique address, such as a Class
B network with the address 172.20.0.0 which has all
zeroes in the host portion of the address.
From the basic definitions of a Class B network & the
default Class B subnet mask, this network can be
created as a single network that contains 65,534
individual hosts.
Subnetting (Cont.)
Through the use of subnetting, the network can be
logically divided into subnets with fewer hosts on each
subnetwork.
It does not improve the available shared bandwidth only,
but it cuts down on the amount of broadcast traffic
generated over the entire network as well.
Subnetting (Cont.)
Example of subnetting:
When the network administrator divides the 172.20.0.0 network
into 5 smaller networks:
172.20.1.0
172.20.2.0
172.20.3.0
172.20.4.0
172.20.5.0
The outside world stills sees the network as 172.20.0.0, but the
internal routers now break the network addressing into the 5
smaller subnetworks.
CT046-3-3 Network Troubleshooting
Subnetting (Cont.)
From the example, only a single IP address is used as
reference to the network.
Instead of 5 network addresses, only one network
reference is included in the routing tables of routers on
other networks.
Why Subnet?
Work from the most significant (LHS) bits of the first octet after the
network number and calculate the number of bits needed to create
the required number of sub networks
Answer this !
5 bits are borrowed
- How many usable subnets?
- How many usable hosts?
We need 32 usable subnets
- How many bits to borrow?
- How many usable subnets?
- How many usable host?
Answer this !
5 bits are borrowed
- No of usable subnets : 30
- No of usable hosts : 6
We need 32 usable subnets
- No of bits to borrow : 6
- No of usable subnets : 62
- No of usable host : 2
Subnet Mask
Used to tell devices which part of the IP address in
network number including subnet and which part is the
host
Uses the same format as IP addressing i.e. 32 bit long
and divided into four octets
Have all 1s in the network portion and all 0s in the host
portion
ANDing process
IP address:
1001000.11001000.11001000.00001010
200 .
200 .
200 . 10
AND
Subnet Mask:
11111111.11111111.11111111.00000000
200 .
CT046-3-3 Network Troubleshooting
200 . 200 .
host bits
200.129.41.0000 0000
break here
200.129.41.0001 ^ 0000
200.129.41.16
200.129.41.0001 ^ 0001
200.129.41.17
200.129.41.0001 ^ 0010
200.129.41.18
200.129.41.0001 ^ 1110
200.129.41.30
200.129.41.0001 ^ 1111
200.129.41.31
Last usable
subnet address:
CT046-3-3 Network Troubleshooting
200.129.41.0010 ^ 0000
200.129.41.32
200.129.41.0011 ^ 0000
200.129.41.48
200.129.41.0100 ^ 0000
200.129.41.64
.
.
.
200.129.41.1110 ^ 0000
200.129.41.224
N . N .x x x x x x x x . x x x x x x x x
host bits
132.178.0000000 0.00000000
break here
132.178.0000001 ^ 0.00000000
subnet address:
First usable host
132.178.2.0
132.178.0000001 ^ 0.00000001
132.178.2.1
132.178.0000001 ^ 0.00000010
132.178.2.2
132.178.3.254
132.178.0000001 ^ 1.11111111
132.178.0000001 ^ 1.11111110
132.178.3.255
132.178.1011011 ^ 0.00000000
132.178.182.0
132.178.1111110 ^ 0.00000000
132.178.252.0
132.178.119.112
132.178.0111011 ^ 1.01110000
255.255.1111111 ^ 0.00000000
132.178.0111011 ^
132.178.118.0