Professional Documents
Culture Documents
Chapter 02 - Network Models
Chapter 02 - Network Models
Network Models
◼ Let's consider what action are performed while we send a letter to someone.
➢ Step 1:
▪ We choose a means to write the letter. For example, post card, or
an envelope etc.
▪ We write your message in that.
▪ Put the TO and FROM addresses.
▪ Post the letter to the nearest sub-post office.
➢ Step 1:
▪ You choose an application to write the mail.
▪ You write your message in it.
▪ You write the TO address in it (the FROM address is already
there)
▪ Your mail is then, encrypted, translated (to MIME format).
The data unit that we get after this phase is called a “message”.
➢ Step 3:
▪ The logical address (IP address) of your computer and the
destination’s computer is attached to the segment.
The data unit that we get after this phase is called a “datagram /
packet”.
➢ Step 4:
▪ The physical address (MAC address) of your computer and the
next hop is attached to the packet.
The data unit that we get after this phase is called a “frame”.
The next hop takes appropriate action (to be discussed later) and send
it to the next hop. This process continues. Finally, the frame reaches the
destination, where the reverse steps are performed to get the mail.
◼ The concept of layered architecture for data communication over the network
is realized / implemented through the network models.
◼ It is a practical model currently used for data communication over the internet
or any network (this is the reason why it is called the internet model).
[NOTE]: The OSI model is a theoretical model. It doesn’t have any direct implementation. It is
used as a reference model.
◼ Functionalities / Duties:
➢ The application layer is responsible for providing services (applications)
that enables the user (human or software) to access the network.
Examples of services include:
▪ E-mail
▪ Remote login
▪ File access & transfer
▪ Browsing
➢ The application layer is also concerned with:
▪ Translation
▪ Encryption
▪ Compression
[NOTE]: Before we study the transport layer, we must 1st discuss the “addressing technique”
used in internet.
[NOTE - If IP address can identify a node uniquely and universally, why do we need a physical
address?]: IP address specify the source and the destination only. How to specify the next hop?
For this, the physical address is there. Similarly, physical address alone won’t be enough (as
already discussed), because without knowing the destination the next hop can’t be decided.
◼ Functionalities / Duties:
➢ Prime Responsibility:
▪ Process-to-process delivery of the entire application layer
message.
The data unit thus formed (by encapsulating application layer message
with transport layer header) is called a segment / user datagram. It is
the unit of data transmitted and processed by the transport layer.
[NOTE]: The transport layer protocols, in general, use two types of segments.
Data segments (segments that carry application layer data along with some
control information) and control segments (carry control information only).
◼ Functionalities / Duties:
➢ Prime Responsibility:
▪ Source-to-destination (host-to-host) delivery of the transport
layer data unit (segment or user datagram).
[NOTE]: Since source-to-destination delivery normally involves delivering a
packet across (outside) networks, it is also referred to as internetworking.
[NOTE]: The network layer protocols, in general, use two types of packets.
Data packets (packets that carry transport layer data along with some control
information) and control packets (carry control information only).
[NOTE]: Normally, for efficiency, routing & forwarding are NOT done by
hosts. They are done by routers. The hosts usually use a “static routing table”
(information is entered manually) having an entry for only one router, called
the “default router” (the host usually knows only this router). The host sends
all its IP packets to the default router. The default router, depending upon the
destination address of a packet, finds an optimal route for it (does the routing)
and forwards the packet on that route (through one of its interfaces).
Dr. N. K. Pani, Dept. of CSEA, IGIT Sarang | 2.24
▪ Address resolution: Refers to converting the logical address to
physical address and vice versa.
▪ Error reporting: Refers to reporting any error that occurs during
packet transmission to the source.
[NOTE]: Since the routing protocols are deployed at the routers (not at host), and the
number of routing protocols are many, they are generally not mentioned in the
network layer in the TCP/IP protocol suite.
◼ Functionalities / Duties :
➢ Prime Responsibility:
▪ Hop-to-hop (node-to-node) delivery of the network layer data unit
(packet or datagram).
[NOTE]: Padding is only done while making frames (in data link
layer), not while making segments (transport layer) or packets
(network layer), because some data link layer protocols specifies a
minimum frame size (for example, Ethernet has the minimum frame
size of 46 bytes), whereas there is no minimum size for a segment or
packet (they can be zero bytes).
[NOTE]: The data link layer protocols, in general, use two types of frames.
Data frames (frames that carry network layer data along with some control
information) and control frames (carry control information only). For control
frames padding not applicable.
▪ Flow control (of the frame) In data link layer, flow control & error control
▪ Error control (of the frame) collectively are called data link control.
➢ Data link control (flow & error control) is handled at the LLC sub-layer.
[NOTE]: The multiple access functionality (hence the MAC sub-layer) is required only
if the link is shared (for example, in LANs). It is not required if the link is dedicated
(for example, in PPP)
➢ Framing is handled
▪ Either at the LLC sub-layer alone. It is for protocols that operate
in the LLC sub-layer only, for example PPP (For PPP MAC sub-layer
is not required because, PPP work with dedicated links).
➢ In other words, TCP/IP accepts any protocol(s) at data link layer (or at
physical layer) that provides (can provide) the required services.
◼ Functionalities / Duties:
➢ Prime Responsibility:
▪ Converting data (0/1) to electromagnetic signals. This is
because, data (0/1) itself can’t be transmitted through a medium.
(5)
Application Layer SNMP DNS SMTP, POP3, TELNET FTP HTTP
[Provides (Helping (Helping IMAP4 (Remote (File (Browsing) ...
Applications] Protocol) Protocol) (E-Mail) Access) Transfer)
TCP UDP
(4)
(Port addressing, (Port addressing,
Transport Layer
Fragmentation & Reassembly, Making Datagrams)
[Process-to-
Segmenting (Making Segments),
Process Delivery]
Connection control,
Flow & Error Control)
[Cont.]
Dr. N. K. Pani, Dept. of CSEA, IGIT Sarang | 2.36
LANs
(Framing,
LLC
(2) PPP LLC Sub-layer for All LANs
Flow & Error Control)
Data link Layer (It is common for all LANs)
[Hop-to-Hop HDLC
Delivery] (Framing, Ethernet Token Bus Token Ring
MAC
...
Multiple Access) MAC MAC MAC
[Fig. 2.5:
Data
Exchange
Using The
TCP / IP
Model: A
Practical
Example]
◼ OSI:
➢ Stands for Open Systems Interconnection.
➢ It is a model / standard introduced in late 1970’s.
➢ It was designed to govern all aspect of data communication between
two independent systems (nodes) in a network.
◼ ISO:
➢ Stands for International Standards Organization.
➢ It is an organization / multi-dimensional body established in 1947.
➢ It is dedicated for worldwide agreement on international standards.
[NOTE]: The OSI model is a theoretical model. It doesn’t have any direct implementation. It is
used as a reference model. That is why is also often called “OSI reference model”.