Lecture 10
Lecture 10
Lecture 01
Shashika Lokuliyana,M.Sc. (IT) SLIIT, B.Sc.(Sp.) Hons in IT (Spec. in CSN) (SLIIT), MIEEE, MCSSL
Lecturer
Department of Information Systems Engineering , Faculty of Computing
E: [email protected]
Today’s lecture overview
§ Types of addresses used in the Internet.
q Physical Addresses.
q Logical Addresses.
q Port Addresses.
§ IPv4.
§ Classful Addressing.
§ Subnetting.
§ Classless Addressing.
Classification of Addresses used in
Networks
Addresses
§ Universally unique.
§ Used in the Data Link Layer (i.e. LLC sublayer) of the OSI model.
Viewing the Physical Address
§ You can issue the command ipconfig /all in command
prompt of Windows to view your MAC address.
Port Addresses
§ We also discussed about port addresses in lecture 5 – ISO
OSI model.
§ Logical addresses are used in the Network Layer of the OSI model.
IPv4
IP
Addresses
IPv6
§ IP version 4 (IPv4) address is 32 bits long (i.e. 4 bytes).
111.56.45.78
Exercise
Find the error, if any, in the following IP address:
111.56.045.78
Classful Addressing
§ When IP addressing was first introduced, all IPv4 addresses
were divided into 5 classes.
Class Usage
Class A General purpose
Class B General purpose
Class C General purpose
Class D Multicasting
Class E Reserved for future use
Finding the class in binary notation
Exercise
Find the class :
227.12.14.87
Network ID (aka Net ID) and Host ID
§ When an organization reserves a set of IP addresses from
their ISP (Internet Service Provider) to use for the hosts
used within that organization, each IP address consist of two
parts.
Network ID Host ID
§ There are 2 bytes reserved for the host ID and hence, there are
216 = 65536 addresses for the organization to use in their hosts.
§ With class C, we get only 1 byte for the host ID. Hence we can go
up to 28 = 256 host addresses.
Mask in
Mask in dotted
Class Mask in binary slash (/)
decimal
notation
A 11111111 00000000 00000000 00000000 255.0.0.0 /8
LAN 1 LAN 2
§ Remember:
q You cannot use these ranges for machines/interfaces that are directly
connected to Internet.
Problems with Classful Addressing
§ Class A and B are too large for typical organizations and many IP
addresses will not be used and wasted.
§ Solutions:
q Short Term:
Ø Subnetting
Ø Classless Addressing
q Long Term: IPv6
Subnetting
§ Subnetting is one way of saving IP addresses. To understand
subnetting let’s take the following scenario.
Example
qA large organization has three departments. Namely, Finance,
Engineering and Sales.
qEach department has 500 computers.
qThe network administrators have finalized to keep the three
departments in three separate LANs for ease of administration.
Prefix Length - /n
All possible /n s
§ What is the first host address in the block if one of the addresses
is 140.120.84.24/20?
§ Find the last host address in the block if one of the addresses is
140.120.84.24/20.
Exercises
§ If one of the addresses is 190.87.140.202/29,
qWhat is the network address?
qWhat is the first host address?
qWhat is the last host address?