Lecture 5 Addressing in Networking
Lecture 5 Addressing in Networking
TN 122
Lecture 4 – Addressing in Networking
Introduction; TCP/IP Revisit
6
Physical addresses
l Physical address is also known as link address.
l The address of a node as defined by its LAN or WAN.
l Being included in the frame used by data link layer.
l Lowest level address.
l Size and format of these addresses vary depending on
the network.
l Ethernet uses a 6-byte physical address that is imprinted on
the Network Interface Card (NIC).
07:01:02:01:2C:4B
A 6-byte (12 hexadecimal digits) physical address
MAC address format
aining six hexadecimal The first six hexadecimal dig
omprise the interface which are administered by
serial number. IEEE, identify the manufact
or vendor.
Physical Address
11
Example : physical addresses
12
Logical Address
l A universal addressing system is needed in which
each host can be identified uniquely, regardless of the
underlying physical network.
l Logic addresses are designed for this purpose.
l Logical address is necessary for universal
communications that are independent of underlying
physical networks.
l Physical addresses are not adequate in an internetwork
environment where different networks can have different
address formats.
Example
• Next slide shows a part of an internet with two routers connecting
three LANs.
• Each device (computer or router) has a pair of addresses (logical
and physical) for each connection.
• Each computer is connected to only one link and so has only one pair of
addresses.
• Each router is connected to three networks. So each router has three pairs of
addresses, one for each connection.
• The computer with logical address A and physical address 10
needs to send a packet to the computer with logical address P
and physical address 95. We use letters to show logical
addresses and numbers for physical addresses, but note that
both are actually numbers.
14
Example : logical addresses
Logical Address
l The identifier used in the IP layer of the TCP/IP
protocol suite to identify each device connected to
the Internet is called the Internet address or IP
address.
l An IP address is a 32-bit address that uniquely and
universally defines the connection of a host or a
router to the Internet.
l IP addresses are unique. They are unique in the
sense that each address defines one, and only one,
connection to the Internet. Two devices on the
Internet can never have the same address.
IP Address
l Note
Solution
We replace each decimal number with its binary equivalent:
a. 01101111 00111000 00101101 01001110
b. 11011101 00100010 00000111 01010010
Examples
Example 3