Unit 2 Network Model
Unit 2 Network Model
BBA (Computer
Application)
Course Code: CA-207
Unit 2. Network Models
Unit 2. Network Models
2.1 OSI Reference Model : Functions of each Layer
2.2 TCP/IP Reference Model, Comparison of OSI and TCP/IP
Reference Model
2.3 TCP/IP Protocol Suite
2.4 Addressing
2.4.1Physical Addresses
2.4.2 Logical Addresses
2.4.3Port Addresses,
2.4.4 Specific Addresses
2.5 IP Addressing
2.5.1 Classfull Addressing
2.5.2 Classless Addressing
Network Model
2.7
Network virtual terminal, File transfer, access, and
Application layer management, Mail services, Directory services Application layer
Network layer Source to destination delivery, Logical addressing, Routing Network layer
Datalink layer Framing, Physical Addressing, Flow Control, Error Control, Datalink layer
Access control
Physical layer Transmission Media, Types of topology, Data rate, Physical layer
Synchronization of bit, Line configuration, Topology,
Transmission mode
physical layer
• The physical layer coordinates the functions required to carry a bit
stream over a physical medium.
• It deals with the mechanical and electrical specifications of the
interface and transmission medium.
Physical layer perform following function-
• The physical layer defines the characteristics of the interface
between the devices and the transmission medium. It also defines
the type of transmission medium.
• Representation of bits
• Data rate- The transmission rate-the number of bits sent each
second-is also defined by the physical layer. In other words, the
physical layer defines the duration of a bit.
• Synchronization of bits- The sender and receiver not only must use
the same bit rate but also must be synchronized at the bit level.
• Line configuration- The physical layer is concerned with the
connection of devices to the media. In a point-to-point
configuration, two devices are connected through a dedicated link.
In a multipoint configuration, a link is shared among several
devices.
• Physical topology- The physical topology defines how devices are
connected to make a network.
• Transmission mode- The physical layer also defines the direction of
transmission between two devices: simplex, half-duplex, or full-
duplex.
Data Link Layer
• The data link layer transforms the physical layer, a raw transmission
facility, to a reliable link.
The data link layer is responsible for moving frames from one hop (node)
to the next.
Other responsibilities of the data link layer include the following:
• Framing- The data link layer divides the stream of bits received from the
network layer into manageable data units called frames.
• Physical addressing- If frames are to be distributed to different systems on
the network, the data link layer adds a header to the frame to define the
sender and/or receiver of the frame.
• Flow control- If the rate at which the data are absorbed by the receiver is
less than the rate at which data are produced in the sender, the data link
layer imposes a flow control mechanism to avoid overwhelming the
receiver.
• Error control- The data link layer adds reliability to the physical layer by
adding mechanisms to detect and retransmit damaged or lost frames. It
also uses a mechanism to recognize duplicate frames.
• Access control- When two or more devices are connected to the same
link, data link layer protocols are necessary to determine which device has
control over the link at any given time.
Network Layer
• The network layer is responsible for the source-to-destination
delivery of a packet, possibly across multiple networks.
• the data link layer oversees the delivery of the packet between two
systems on the same network (links), the network layer ensures that
each packet gets from its point of origin to its final destination.
Other responsibilities of the network layer include the following:
• Logical addressing- The network layer adds a header to the
packet coming from the upper layer that, among other things,
includes the logical addresses of the sender and receiver.
• Routing- When independent networks or links are connected to
create internetworks (network of networks) or a large network,
the connecting devices (called routers) route or switch the
packets to their final destination.
Transport Layer
• The transport layer is responsible for process-to-process delivery of
the entire message.
• A process is an application program running on a host.
Other responsibilities of the transport layer include the following:
• Service-point addressing-The transport layer header must therefore
include a type of address called a service-point address (or port
address). The network layer gets each packet to the correct
computer; the transport layer gets the entire message to the correct
process on that computer.
• Segmentation and reassembly- A message is divided into
transmittable segments, with each segment containing a sequence
number.
• Connection control- The transport layer can be either
connectionless or connection oriented.
• Flow control- Like the data link layer, the transport layer is
responsible for flow control.
• Error control- Like the data link layer, the transport layer is
responsible for error control.
Session Layer
• The session layer is the network dialog controller. It establishes,
maintains, and synchronizes the interaction among communicating
systems.
• Specific responsibilities of the session layer include the following:
• Dialog control- The session layer allows two systems to enter into a
dialog. It allows the communication between two processes to take
place in either half duplex (one way at a time) or full-duplex (two
ways at a time) mode.
• Synchronization- The session layer allows a process to add
checkpoints, or synchronization points, to a stream of data.
Presentation Layer
• The presentation layer is concerned with the syntax and semantics
of the information exchanged between two systems.
Specific responsibilities of the presentation layer include the following:
POP
• POP stands for Post Office Protocol and the latest version is known as
POP3 (Post Office Protocol version 3).
• This is a simple protocol used by User agents for message retrieval
from mail servers.
• It uses TCP for establishing connections.
OSI Model TCP/IP model
It is developed by ISO (International Standard It is developed by ARPANET (Advanced Research Project
Organization) Agency Network).
OSI model provides a clear distinction between TCP/IP doesn’t have any clear distinguishing points
interfaces, services, and protocols. between services, interfaces, and protocols.
OSI refers to Open Systems Interconnection. TCP refers to Transmission Control Protocol.
OSI model use two separate layers physical and data link
TCP/IP uses only one layer (link).
to define the functionality of the bottom layers.
In the OSI model, the data link layer and In TCP, physical and data link are both
physical are separate layers. combined as a single host-to-network layer.
Session and presentation layers are not a There is no session and presentation layer
part of the TCP model. in TCP model.
It is defined after the advent of the It is defined before the advent of the
Internet. internet.
• Physical address can only be passed in the same network and not in
different networks. The purpose of using Physical address is to
identify devices in the same network.
• Advantages
• Physical address can uniquely identify devices and deliver data
packets accurately.
• We can restrict access to any network by allowing only those devices
which have the authorized MAC addresses to connect. Thus, it can
also be used for network security.
• Disadvantages
• MAC addresses can be easily spoofed. Thus, the devices can easily
gain unauthorized access to a network.
• As physical addresses cannot traverse through the routers therefore
they can only be used in local networks and not between different
networks.
Logical Address
• Logical address also referred to as IP (Internet Protocol) address is an
universal addressing system.
• It is used in the Network layer.
• This address facilitates universal communication that are not
dependent on the underlying physical networks.
• There are two types of IP addresses – IPv4 and IPv6.
• IPv4- 32 bit long
• Below is a diagram representing the working mechanism of Logical
address:
23 Telnet
7 Echo
22 SSH(Secure Shell)
Application-Specific Addresses
• Some applications have user-friendly addresses that
are designed for that specific application.
• Examples include the e-mail address (for
example, [email protected]) and the Universal
Resource Locator (URL) (for example,
www.mhhe.com). The first defines the recipient of an
e-mail; the second is used to find a document on the
World Wide Web.
Transport Layer-
IP
Network
Solution
We replace each group of 8 bits with its equivalent
decimal number (see Appendix B) and add dots for
separation
Change the following IPv4 addresses from dotted-decimal
notation to binary notation.
Solution
We replace each decimal number with its binary
equivalent (see Appendix B).
CLASSES OF IP ADDRESSES
Classful IP Addressing
The classful addressing, groups the IP address into specific sizes called class
A, class B, class C, class D and class E.
Classless IP Addressing
The classless addressing also called Classless Inter-Domain Routing
(CIDR), is an improved IP addressing system.
It increases the effectiveness of IP address allocation because of the absence
of class distribution.
Classful IP Addressing
The 32-bit IP address is divided into five sub-classes.
These are: Class A, Class B, Class C, Class D and Class E
Classful IP Addressing
Solution
a. The first bit is 0. This is a class A address.
b. The first 2 bits are 1; the third bit is 0. This is a class C address.
c. The first byte is 14; the class is A.
d. The first byte is 252; the class is E.
TYPES OF IP ADDRESSES
IP addresses can be classified into two types: public and private.
Multicast
• Multicast transmission is sending a packet to a multicast address group.
• For example, the PC at 172.16.4.1 sends a multicast packet to the multicast
group address 224.10.10.5.
Classless Addressing
• Classless Inter-Domain Routing (CIDR) is another name for
classless addressing.