Download as pdf or txt
Download as pdf or txt
You are on page 1of 15

Baghdad, Iraq

University of Technology
Department of Electrical Engineering
Division Electronic Engineering

Computer Networks
Lecture 2-2
Network Models and addressing

4th year (semester 2)


2019-2020

Lecturer Dr. Khalida Sh. Rijab


Network Models and addressing Dr. Khalida Sh. Rijab 1
2- TCP/IP protocol suite
TCP-Transmission Control Protocol /IP -Internet Protocol
 This protocol was developed prior to the OSI model.
 The layers in the TCP/IP protocol suite do not exactly match those in the OSI model.
 The original TCP/IP protocol suite was defined as having four layers: host-to
network, internet, transport, and application.
 when TCP/IP is compared to OSI, we can say that the TCP/IP protocol suite is made
of five layers: physical, data link, network, transport, and application.
as shown in fig(1)
 The layers of the TCP/IP protocol suite relatively independent protocols that can be
mixed and matched depending on the needs of the system whereas the OSI model
specifies which functions belong to each of its layers.

Network Models and addressing Dr. Khalida Sh. Rijab 2


TCP/IP is a hierarchical protocol
made up of interactive modules,
each of which provides a specific
functionality; however, the modules
are not necessarily interdependent.

Physical and Data Link Layers


At the physical and data link layers,

 TCPIIP does not define any


specific protocol.
 It is not really a layer at all, in the
normal sense of the term, but
rather an interface between
hosts and transmission.
fig(1)

Network Models and addressing Dr. Khalida Sh. Rijab 3


Network layer:
At the network layer or (internetwork layer) supports the internetworking
protocols (IP- is a host-to-host protocol, meaning that it can deliver a packet
from one physical device to another), in turn, uses four supporting protocols :
 ARR, Address Resolution Protocol.
 RARP, Reverse Address Resolution Protocol.
 ICMP Internet Control Message Protocol.
 IGMP Internet Group Message Protocol.
Transport Layer:
There are three protocols: User Datagram Protocol (UDP), Transmission Control
Protocol (TCP), and Stream Control Transmission Protocol (SCTP). Which are transport
level protocols responsible for delivery of a message from a process (running program)
to another process.

Application Layer
The application layer in TCP/IP is equivalent to the combined session, presentation,
and application layers in the OSI model. Many protocols are defined at this layer.
See (43,44,45) pages of the book
Network Models and addressing Dr. Khalida Sh. Rijab 4
ADDRESSING
Four levels of addresses are used in an internet employing the TCP/IP
protocols:
 physical (link) addresses
 logical (IP) addresses
 port addresses
 specific addresses.

fig(2)

Network Models and addressing Dr. Khalida Sh. Rijab 5


Each address is related to a specific layer in the TCPIIP architecture

fig(3): Relationship of layers and addresses in TCPIIP


Network Models and addressing Dr. Khalida Sh. Rijab 6
1-Physical Addresses
The address is also known as the link address, and it is the:
o address of a node as defined by its LAN or WAN.
o included in the frame used by the data link layer.
o lowest-level address.
o have authority over the network (LAN or WAN).
o The size and format of these addresses vary depending on the network. For
example:
Ethernet-uses a 6-byte (48-bit) physical address that is imprinted on the
network interface card (NIC).
LocalTalk (Apple), however, has a I-byte dynamic address that changes each
time the station comes up.

Network Models and addressing Dr. Khalida Sh. Rijab 7


Example (1)
In Figure(4) a node with physical address 10 sends a frame to a node with physical address 87.
The two nodes are connected by a link (bus topology LAN). The computer with physical address 10
is the sender, and the computer with physical address 87 is the receiver.

fig(4)

The data link layer at the sender receives data from an upper layer. It encapsulates the data in a frame,
adding a header and a trailer. The header, among other pieces of information, carries the receiver and
the sender physical (link) addresses. Note that in most data link protocols, the destination address, 87 in
this case, comes before the source address (10 in this case).

Network Models and addressing Dr. Khalida Sh. Rijab 8


Example (2)
Most local-area networks use a 48-bit (6-byte) physical address written as 12 hexadecimal
digits; every byte (2 hexadecimal digits) is separated by a colon, as shown below:

07:01:02:01 :2C:4B
A 6-byte (12 hexadecimal digits) physical address

2- Logical Addresses
o Logical Addresses (IP address) is necessary for universal communications that are independent
of physical address.
o A universal addressing system is needed in which each host can be identified separately
(individual).
o The length of logical addresses is 32bit.
o No two publicly addressed and visible hosts on the Internet can have the same IP address.
o The IP address uniquely defines a host on the Internet.
o Its added at the header of network layer.

Network Models and addressing Dr. Khalida Sh. Rijab 9


Example (3)
Figure (5) 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. In
this case, each computer is connected to only
one link and therefore has only one pair of
addresses. Each router, however, is connected
to three networks (only two are shown in the
figure). 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.
The physical addresses will change from hop to hop,
but the logical addresses usually remain the same.
fig(5) (IP addresses)

Network Models and addressing Dr. Khalida Sh. Rijab 10


3- Port Addresses
o In the TCP/IP model, the label assigned to a process is called a port address.
o A port address in TCP/IP is 16 bits in length.
o Its added at the header of transport layer.
o The end objective of Internet communication is a process communicating with another
process
IP address and the physical address are necessary for a quantity of data to travel from a source
to the destination host. Today computers are devices can run multiple processes at the same
time. For the processes to receive data simultaneously, we need method to label the different
processer. In order words, they need addresses.

example, computer A can communicate with computer C by using TELNET. At the same time,
computer A communicates with computer B by using the File Transfer Protocol (FTP). For these
processes to receive data simultaneously, we need a method to label the different processes.
In other words, they need addresses (port addresses).

Network Models and addressing Dr. Khalida Sh. Rijab 11


Example (4)
Figure (6) shows two computers communicating via the Internet. The sending computer is running
three processes at this time with port addresses a, b, and c. The receiving computer is running two
processes at this time with port addresses j and k. Process a in the sending computer needs to
communicate with process j in the receiving computer.

 Although both computers are using the same application,


FTP, for example, the port addresses are different because
one is a client program and the other is a server program.
 The transport layer encapsulates data from the application
layer in a packet and adds two port addresses (a and j),
source and destination.
 The packet from the transport layer is then encapsulated
in another packet at the network layer with logical source
and destination addresses (A and P).
 Finally, this packet is encapsulated in a frame with the
physical source and destination addresses of the next hop.
We have not shown the physical addresses because they
change from hop to hop inside the cloud designated as the
Internet.

Network Models and addressing Dr. Khalida Sh. Rijab fig(6) (IP addresses) 12
The physical addresses will change from hop to hop, but the logical and
port addresses remain the same from the source to destination.

Example (5)
A port address is a 16-bit address represented by one decimal number as
shown.

753
A 16-bit port address represented as one single number

Network Models and addressing Dr. Khalida Sh. Rijab


fig(3) 13
4- Specific Addresses:
Some applications have user- friendly addresses that are designed for that
specific addresses. There are addresses, will be changed to the corresponding
port and logical addresses by the sending computer.
Examples:
 the e-mail address (for example, forouzan@fhda.edu) defines the recipient
of an e-mail
 and the Universal Resource Locator (URL) (for example, www.mhhe.com) is
used to find a document on the World Wide Web

These addresses, however, get changed to the corresponding port and logical
addresses by the sending computer

Network Models and addressing Dr. Khalida Sh. Rijab 14


Thank you
and
good luck

Network Models and addressing Dr. Khalida Sh. Rijab 15

You might also like