Lecture 03 - CNW
Lecture 03 - CNW
Lecture 03 - CNW
Computers
Networks
Lecture
3
Topics
Network Devices
What is an IP address ?
Types of IP addressing
Classes of IP address
Private IP Addresses
Network Addresses
Introduction to Sub-networks
1
3
Host A Host D
5
Switch
4
3
3
Host B
Host C
EEE51101 – Computers Networks 4 2020/2021
How LAN switches work?
1. Node A sends data to host B.
2. The switch gets the first packet of data from node A. The
switch reads the MAC address and saves the address to the
lookup table. The switch now knows where to find Node A
whenever a packet with this address arrives. This process is
called learning.
Mac address Port No
0000.74a3.0023 1
An open mind….
Binary format:
27 26 2 5 2 4 23 2 2 21 20
To represent 4 in binary =
00000100
IP Address: 7.4.3.2 =
in binary: 00000111.00000100.00000011.00000010
In Binary:
10001100.10110011.11110000.11001000
11111111.11111111.00000000.00000000
10001100.10110011.00000000.00000000
By doing this, the computer has found that
our Network Address is 140.179.0.0
EEE51101 – Computers Networks 39 2020/2021
Another Example:
Suppose we have the address of:
206.15.143.89? What class is it?
Class C
What is the subnet mask?
255.255.255.0
What is the Network Address?
206.15.143.0
S S H H H H H H
Two Bits Borrowed from the Host Field to form a third layer
of hierarchy - A Subnet Field
Two Bits must always remain so a maximum of 6 Bits may
be borrowed from a Class C network
How many bits can be borrowed from a Class B network?
From a Class A network?
EEE51101 – Computers Networks 47
47 2020/2021
Class C Subnets
Network Network Network Host
S S H H H H H H
S S H H H H H H
The number of Hosts per subnet is calculated using
the following formula:
# Hosts/Subnet = 2# Host Bits Remaining
# Hosts = 26 = 64 hosts/subnet
EEE51101 – Computers Networks 54 2020/2021
How Many Hosts/Subnet?
6 Host Bits Remain = 26 = 64 Hosts
If there are 6 Host Bits remaining you do
NOT get 64 Hosts/Subnet. Why?
Each subnetwork has its own Subnetwork
Address and Broadcast Address - Both of
these addresses are Reserved and cannot
be used!
Thus only 62 Hosts are available.
thank you
for your
attention
Exercise