0% found this document useful (0 votes)
71 views26 pages

Ministry of Water Resources and Electricity

The document discusses the OSI model and TCP/IP model. It provides details on the 7 layers of the OSI model including the application, presentation, session, transport, network, data link, and physical layers. It also describes the 4 layers of the TCP/IP model including the application, transport, internet, and network interface layers. The document compares the two models and explains why TCP/IP became more popular than OSI for networking protocols.

Uploaded by

meshel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views26 pages

Ministry of Water Resources and Electricity

The document discusses the OSI model and TCP/IP model. It provides details on the 7 layers of the OSI model including the application, presentation, session, transport, network, data link, and physical layers. It also describes the 4 layers of the TCP/IP model including the application, transport, internet, and network interface layers. The document compares the two models and explains why TCP/IP became more popular than OSI for networking protocols.

Uploaded by

meshel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 26

‫وزارة الموارد المائية والرى والكهرباء‬

‫‪Ministry Of Water Resources and Electricity‬‬

‫الشركة السودانية للتوليد المائى المحدودة‬


‫‪Sudanese Hydro Generation Co.Ltd‬‬

‫قسم تقنية المعلومات‬

‫برنامج التدريب ‪ :‬أساسيات الشبكات‬

‫إعداد‪ :‬محمد عبدالسالم‬


OSI Model

Open Systems Interconnection (OSI) is a set of internationally recognized,


non-proprietary standards for networking and for operating system involved
in networking functions.

7 Layers
7. Application Layer
6. Presentation Layer
5. Session Layer
4. Transport Layer
3. Network Layer
2. Data Link Layer
1. Physical Layer
LAYER 7 – The APPLICATION Layer

• The top layer of the OSI model


• Provides a set of interfaces for sending and
receiving applications and to use network
services, such as: message handling and
database query processing
• Responsibility: The application layer is
responsible for providing services to the user.
LAYER 6 – The PRESENTATION Layer
• Manages data-format information for networked communications
(the network’s translator)
• For outgoing messages, it converts data into a generic format for
network transmission; for incoming messages, it converts data from
the generic network format to a format that the receiving
application can understand
• This layer is also responsible for certain protocol conversions, data
encryption/decryption, or data compression/decompression
• A special software facility called a “redirector” operates at this
layer to determine if a request is network related on not and
forward network-related requests to an appropriate network
resource
LAYER 5 – The SESSION Layer

• Enables two networked resources to hold ongoing


communications (called a session) across a network
• Applications on either end of the session are able to ex
hange data for the duration of the session
This layer is:
• Responsible for initiating, maintaining and terminating
sessions
• Responsible for security and access control to session
information (via session participant identification)
• Responsible for synchronization services, and for
checkpoint services
LAYER 4 – The TRANSPORT Layer

• Manages the transmission of data across a network


• Manages the flow of data between parties by segmenting
long data streams into smaller data chunks (based on
allowed “packet” size for a given transmission medium)
• Reassembles chunks into their original sequence at the
receiving end
• Provides acknowledgements of successful transmissions
and requests resends for packets which arrive with errors
• The transport layer is responsible for the delivery
of a message from one process to another.
LAYER 3 – The NETWORK Layer

• Handles addressing messages for delivery, as


well as translating logical network addresses and
names into their physical counterparts
• Responsible for deciding how to route
transmissions between computers
• This layer also handles the decisions needed to
get data from one point to the next point along a
network path
• This layer also handles packet switching and
network congestion control
LAYER 2 – The DATA LINK Layer

• Handles special data frames (packets) between


the Network layer and the Physical layer
• At the receiving end, this layer packages raw data
from the physical layer into data frames for
delivery to the Network layer
• At the sending end this layer handles conversion
of data into raw formats that can be handled by
the Physical Layer
LAYER 1 – The PHYSICAL Layer

• Converts bits into electronic signals for outgoing messages


• Converts electronic signals into bits for incoming messages
• This layer manages the interface between the the computer and the
network medium (coax, twisted pair, etc.)
• This layer tells the driver software for the MAU (media attachment
unit, ex. network interface cards (NICs, modems, etc.)) what needs
to be sent across the medium
• The bottom layer of the OSI model
• The physical layer is responsible for movements of
• individual bits from one hop (node) to the next.
Summary
What is TCP/IP?

• TCP/IP is a set of protocols developed to allow cooperating


computers to share resources across a network
• TCP stands for “Transmission Control Protocol”
• IP stands for “Internet Protocol”
• They are Transport layer and Network layer protocols respectively
of the protocol suite
• The most well known network that adopted TCP/IP is Internet –
the biggest WAN in the world

11
What is a protocol?

• A protocol is a collection of rules and procedures for


two computers to exchange information
• Protocol also defines the format of data that is being
exchanged

12
Why TCP/IP is so popular?

• TCP/IP was developed very early


• Technologies were widely discussed and circulated in
documents called “Request for Comments” (RFC) – free
of charge
• Supported by UNIX operating system

13
TCP/IP Model

• Because TCP/IP was developed earlier than the OSI 7-


layer mode, it does not have 7 layers but only 4 layers
TCP/IP Protocol Suite

FTP, SMTP, Telnet, HTTP,…

TCP, UDP
IP, ARP, ICMP
Network Interface

14
Layer of Models

TCP/IP 4-layers OSI 7-layers

Application

Transport

Network

Network Interface

15
Layer-1 Application Layer
• Application layer protocols define the rules when
implementing specific network applications
• Rely on the underlying layers to provide accurate and
efficient data delivery
• Typical protocols:
• FTP – File Transfer Protocol
• For file transfer
• Telnet – Remote terminal protocol
• For remote login on any other computer on the network
• SMTP – Simple Mail Transfer Protocol
• For mail transfer
• HTTP – Hypertext Transfer Protocol
• For Web browsing
16
Layer-2 Transport Layer

Message
Application
Segments

Transport h M h M h M
Network
Network Interface

17
TCP and UDP
TCP – Transmission Control Protocol
• TCP is a connection-oriented protocol
• Does not mean it has a physical connection between sender
and receiver
• TCP provides the function to allow a connection virtually
exists – also called virtual circuit
• TCP provides the functions:
• Dividing a chunk of data into segments
• Reassembly segments into the original chunk
• Provide further the functions such as reordering and data
resend
• Offering a reliable byte-stream delivery service 18
Layer-3 Network Layer

Message
Application
Segments

h M h M h M
Transport
Network h h M h h M h h M
Network Interface Datagrams / Packets

19
Network Addresses and Subnets
• A header is added to each segment in the Network
layer
Total
Length

Time to Protocol Header


Live CheckSum
3 IP Source Address
Segment Destination Address

Segment

20
Layer-4 Data Link and Physical Layers

Message
Application
Segments

h M h M h M
Transport
Network h h M h h M h h M
Packets
Network Interface
h h h M h h h M
Frames 21
Concept

• OSI: Open Systems • TCP/IP: Transport


Interconnection. It Control
was developed by Protocol/Internet
ISO as a first step Protocol. TCP is used
toward international in connection with IP
standardization of the and operates at the
transport layer. IP is the
protocol used in
set of convention used
various layers. It
to pass packets from
deals with connecting one host to another.
open system..
Difference
• OSI makes the • TCP/IP does not
distinction between originally clearly
services, interfaces, and distinguish between
protocol. services, interface,
• The OSI model was and protocol.
devised before the
• TCP/IP model was
protocols were invented.
It can be made to work just a description of
in diverse the existing protocols.
heterogeneous The model and the
networks. protocol fit perfectly.
Difference (continue)

• The OSI model • The TCP/IP model


supports both has only one mode in
connectionless and the network layer
connection-oriented (connectionless) but
communication in the supports both modes
network layer, but in the transport layer,
only connection- giving the user
oriented choice.
communication in the
transport layer.
Difference
(continue)
• OSI emphasis on • TCP/IP treats reliability as
providing a reliable data an end to end Problem.
transfer service, Each The transport layer
layer of the OSI model handles all error detection
detects and handles and recovery, it was
errors, all data checksums,
transmitted includes acknowledgments, and
checksums. The transport timeouts to control
layer checks source- transmissions and
destination reliability. provides end-to-end
verification.
Difference (continue)

• Host on OSI • TCP/IP hosts


implementations do participate in most
not handle network network protocols.
operations.

Common questions

Powered by AI

TCP/IP's widespread adoption can be attributed to its early development, which allowed it to become well-established before other models like OSI. Its protocols were highly discussed in freely available documents called RFCs, encouraging widespread understanding and adoption. TCP/IP's direct support by UNIX operating systems further facilitated its spread. Additionally, the TCP/IP model's focus on practical implementation without clear distinctions between services, interfaces, and protocols made it simpler and quicker to deploy, enhancing its suitability for the internet's rapid expansion .

Packet switching, managed by the Network Layer (Layer 3) of the OSI Model, involves routing data packets through various paths to reach their destination. This layer handles addressing messages for delivery, translating logical addresses and names to their physical counterparts, and making routing decisions. Additionally, it manages packet switching by controlling network congestion and ensuring efficient data transmission across different network points. Packet switching allows for dynamic routing of data, improving the overall efficiency and resilience of network communications .

TCP, or Transmission Control Protocol, is a connection-oriented protocol at the Transport Layer that does not establish a physical connection between the sender and receiver but establishes a virtual circuit. It functions to divide data into segments, reassemble them at the destination, reorder them if necessary, and provide a reliable byte-stream delivery service with acknowledgment and data resending if errors occur. Unlike TCP, UDP (User Datagram Protocol) is connectionless, doesn't guarantee delivery, order, or error correction, providing faster but less reliable data transfer .

The Transport Layer, Layer 4 of the OSI Model, ensures reliable data transfer by managing the flow of data between parties. It segments long data streams into smaller chunks, known as packets, based on the allowable size for a given transmission medium. At the receiving end, these chunks are reassembled into their original sequence. The layer provides acknowledgments for successful transmissions and requests resends for packets that arrive with errors, thus ensuring the accurate delivery of messages from one process to another .

The Physical Layer is the bottom layer of the OSI model and is critical for the actual transmission and reception of data across a network medium. It is responsible for converting bits into electronic signals for outgoing messages and vice versa for incoming messages. This layer interacts directly with the network hardware and specifies the physical connection dimensions, such as cables and network cards, ensuring the movement of individual bits from one node to the next .

In the OSI model, both connectionless and connection-oriented communication are supported in the network layer, but only connection-oriented communication is supported in the transport layer. In contrast, the TCP/IP model supports only connectionless communication in the network layer but allows both connectionless and connection-oriented communications in the transport layer. This difference highlights that the OSI model places more emphasis on providing reliable data transfer services through error detection and handling within each layer, while TCP/IP handles these aspects primarily within the transport layer .

The OSI model places significant emphasis on error detection and data transfer reliability by incorporating these functions within its layered architecture. Each layer of the OSI model checks for and handles errors pertinent to its specific transmission processes, with built-in mechanisms such as checksums for data accuracy. The Transport Layer, in particular, focuses on ensuring reliable end-to-end communication by using acknowledgments, timeouts, and retransmission strategies to recover from transmission errors. This multi-layered approach provides comprehensive error detection and correction, enhancing overall communication robustness .

TCP/IP has several advantages over the OSI model. It was developed early and widely supported, especially with UNIX, and was disseminated freely via RFCs (Request for Comments). Unlike the OSI model, which was designed before protocol invention and can function across diverse networks, TCP/IP was built around existing protocols ensuring immediate practical applicability and efficiency. This made TCP/IP models fit native integration into existing network infrastructure, promoting faster adoption and compatibility, especially with the internet .

The Data Link Layer, Layer 2 of the OSI Model, is responsible for handling data frames between the Network layer and the Physical layer. It packages raw data from the Physical layer into frames suitable for delivery to the Network layer at the receiving end. At the sending end, it converts data into formats suitable for the Physical layer. This layer plays a crucial role in error detection and correction during data transmission, thus maintaining data integrity and ensuring that information is accurately transmitted across the network .

The Presentation Layer, Layer 6 of the OSI Model, manages data-format information for networked communications, acting as the network's translator. For outgoing messages, it converts data into a generic format suitable for network transmission; for incoming messages, it translates data from this generic format into a format comprehensible by the receiving application. Additionally, this layer handles protocol conversions, data encryption/decryption, and data compression/decompression. A special software facility called a 'redirector' determines if requests are network-related and forwards them to appropriate resources. These functions ensure that data is correctly formatted and secure, facilitating reliable data communication .

You might also like