Session Layer Detailed Notes
Session Layer Detailed Notes
It acts as a dialog controller, managing and controlling the dialog between two
computers or processes.
It is responsible for:
- Establishing the session (connection),
- Maintaining the session while data is being transferred, and
- Terminating the session after the communication ends.
Example: In video conferencing or online classes (Zoom, Google Meet), the Session
Layer is responsible for starting the session, keeping it alive, and ending it properly
when the meeting ends.
Purposes of Authentication:
- To ensure that only authorized users are allowed to communicate.
- To prevent security breaches and data leakage.
- To build trust between communicating entities.
Authentication Methods:
- Username & Password
- Digital Certificates (X.509)
- Biometric authentication (Fingerprint, Face ID)
- Token-based authentication (e.g., OAuth, JWT)
Example: When you log in to a banking website, before starting a secure session, the
server verifies your identity through username and password (authentication).
Then, an HTTPS session is established.
iv) SIP (Session Initiation Protocol): Used for initiating, maintaining, and
terminating real-time sessions such as voice calls (VoIP), video conferencing, and
instant messaging. SIP helps set up and tear down media sessions.
v) SMB (Server Message Block): A protocol for sharing files, printers, and serial
ports between nodes on a network. Widely used in Windows networks for session-
based access to shared resources.
1. Overview of Presentation Layer
• Its primary role is to translate, encrypt, and compress data for the
Application Layer.
• It ensures that data sent by the application layer of one system can be
understood by the application layer of another, despite differences in data
representation.
2. Data Conversion
• A protocol used for framing and error detection at the data link level, but
sometimes referenced for presentation tasks.
ii) Telnet
• The PAD device assembles and disassembles packets for transmission over
X.25 networks.
• Ensures that terminal data can be correctly interpreted over the packet
network.
Introduction to Application Layer
• The Application Layer is the 7th and topmost layer in the OSI model.
• Examples of application layer protocols include HTTP, FTP, SMTP, DNS, and
SNMP.
• The Application Layer facilitates services such as file transfers, email, web
browsing, and network resource sharing.
• DNS operates over UDP (mainly) and TCP for larger queries.
• POP3 (Post Office Protocol version 3) and IMAP (Internet Message Access
Protocol) are used to retrieve emails from the server.
• Web pages are written in HTML and are linked using hyperlinks.
• FTP is used to transfer files between a client and server over a network.
• Supports authentication with usernames and passwords.
• Operates over two TCP connections: control connection and data connection.
• FTP can work in active or passive mode depending on how the data
connection is established.