Reference Material - Chapter 2
Reference Material - Chapter 2
Reference Material - Chapter 2
Network Models
Introduction
• In communication and networking, protocol defines the rules that all
communicating parties must follow
• Communicating parties include
• Sender
• Receiver
• Intermediate devices
• Simple communication may need only one simple protocol.
• Complex communication needs to divide tasks between different layers.
• So need a protocol at each layer
• Protocol layering
Introduction
A single-layer protocol
Exchange using
OSI model
Layers in OSI Model: Application Layer
• The application layer enables the user, whether human or software, to access the network.
• It provides user interfaces and support for services.
Layers in OSI Model: Presentation Layer
• The presentation layer is concerned with the syntax and semantics of the information
exchanged between two systems.
• The presentation layer is responsible for translation (different coding systems), compression,
and encryption.
Layers in OSI Model: Session Layer
• The services provided by the first three layers (physical, data link, and network) are not
sufficient for some processes.
• The session layer is the network dialog controller.
• It establishes, maintains, and synchronizes the interaction among communicating systems.
• Other responsibilities: authentication, authorization, dialog control and synchronization.
A network session is a temporary and interactive information interchange between two or
more devices communicating over a network.
Layers in OSI Model: 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.
• Whereas the network layer oversees source-to-destination delivery of individual packets, it
does not recognize any relationship between those packets.
• Other responsibilities: service point addressing, segmentation and reassembly, connection
control, and end-to-end flow control.
Layers in OSI Model: Transport Layer
Layers in OSI Model: Network Layer
• This layer is responsible for the source-to-destination delivery of a packet, possibly across
multiple networks (links).
• DLL oversees the delivery of the packet between two systems on the same network (links)
• If two systems are connected to the same link, there is usually no need for a network layer.
• Other responsibilities: logical addressing and routing.
Layers in OSI Model: Data Link Layer
• The data link layer is responsible for moving frames from one hop (node) to the next.
• This layer transforms the physical layer, a raw transmission facility, to a reliable link.
• It makes the physical layer appear error-free to the upper layer (network layer).
• Other responsibilities: framing, physical addressing, flow control, error control, and access
control (prevent data collision), Hop-to-hop delivery
Layers in OSI Model: Data Link Layer
Layers in OSI Model: Physical Layer
• This layer is responsible for the movement of bits from one hop (node) to the next.
• It deals with the mechanical and electrical specifications of the interface and transmission
medium.
• It is also concerned with the data rate, synchronization of bits, line configuration, physical
topology, and transmission mode.
OSI Model: Layers Summary
TCP/IP Protocol Suite
• Data-link Layer
• Internet is made up of several links (LANs and WANs) connected by
routers
• Overlapping sets of links between host and destination
• Routers choose best links
• Data-link layer takes the datagram and moves it across the link using
various protocols for the specific type of link
• Takes a datagram and encapsulates it in a packet called a frame
• Link layer provides complete error detection and correction or only
error correction
TCP/IP Protocol Suite: Description of
each Layer
• Network Layer
• Responsible for creating a connection between source
computer and destination computer
• Communication is host-to-host
• Separate network layer to have modular implementation
• Internet Protocol
• Routing
• defines format of datagram, structure of addresses and routes
packet from source to destination
• Connectionless protocol
• No flow control, error control and congestion control
TCP/IP Protocol Suite: Description of
each Layer
• Network Layer
• Includes unicast and multicast routing protocols
• Creates forwarding tables for routers to help them in routing
process
• Other protocols that help IP in delivery
• Internet Control Message Protocol (ICMP) helps IP to report some
problems when routing a packet
• Internet Group Management Protocol (IGMP) helps IP in
multicasting
• Dynamic Host Configuration Protocol (DHCP) helps IP to get
network-layer network layer address for a host
• Address Resolution Protocol (ARP) helps IP to find link layer
address of a host or router when its network layer address is given
TCP/IP Protocol Suite: Description of
each Layer
• Transport Layer (I/II)
• Gets message from application program and deliver it to
corresponding application program on the destination host
• Independent of application layer
• Transmission Control Protocol (TCP)
• Connection oriented protocol
• Establishes a logical connection between transport layers at
two hosts before transferring data
• Creates logical pipe between two TCPs for transferring stream
of bytes
• Provides Flow control, error control and congestion control
TCP/IP Protocol Suite: Description of
each Layer
• Application Layer
• Communication between two processes
• Process sends a request to other process and receives a response
• Duty - Process to process communication
• Hypertext Transfer Protocol (HTTP)
• Vehicle for accessing World Wide Web
• Simple Mail Transfer Protocol (SMTP)
• Used in e-mail service
• File Transfer Protocol (FTP)
• Used for transferring files from one host to another
TCP/IP Protocol Suite: Description of
each Layer
• Application Layer
• Terminal Network (TELNET) and Secure Shell (SSH)
• Used for accessing a site remotely
• Simple Network Management Protocol (SNMP)
• Administrator uses to manage Internet at global and local levels
• Domain Name System (DNS)
• Used by other protocols to find the network-layer address of a
computer
• Internet Group Management Protocol
• Collects membership in a group
TCP/IP Protocol Suite: Encapsulation
and Decapsulation
Encapsulation / Decapsulation
TCP/IP Protocol Suite: Addressing
Relationship of layers and addresses in TCP/IP
Physical Address
◼ Called as link address also
◼ Defined by LAN/WAN
◼ Size and Format depends upon network
◼ E.g: Ethernet uses 6-byte(48-bit) address imprinted on NIC
Logical Address
A → C via FTP
❑ In TCP/IT port address is of 16 bits in
length
TCP/IP and OSI