Ch04 - Network Protocols
Ch04 - Network Protocols
Protocols
Hi
TCP connection
req.
Hi
TCP connection
What is the reply.
time? Get http://gaia.cs.umass.edu/index.htm
2:00
<file>
time
The receiving computer must perform the same steps, but in reverse
order
accept the data from the NIC
remove transmitting information that was added by the transmitting
computer
reassemble the packets of data in to the original message
5 Chapter 4: Protocols Prep.By Tewodros. T
The key elements of a protocol
syntax: refers to the structure or format of the data
semantics: refers to the meaning of each section of bits
timing: refers to when data should be sent and how fast they can be sent
Functions of protocols
each device must perform the same steps the same way so that the data will
arrive and reassemble properly;
if one device uses a protocol with different steps, the two devices will not be
able to communicate with each other
The following are categories of functions that form the basis of protocols
encapsulation
segmentation and reassembly
connection control
addressing
multiplexing
transmission services
a) Encapsulation
• the inclusion of control information to data is called encapsulation. Each
frame contains not only data but also control information
• such control information falls into three categories: address (sender/receiver),
error-detecting code and protocol control (information about protocol functions)
11 Chapter 4: Protocols Prep.By Tewodros. T
protocol suite: is a set of protocols that work together to provide
comprehensive network communication services.
A protocol suite may be specified by a standards organization or
developed by a vendor.
Adding additional/control info to original message is called
Encapsulation
protocols that work together to provide a layer or layers of the model are known as a protocol
stack or suite, e.g. TCP/IP
• each layer handles a different part of the communications process and has its own protocol
Data Communication Standards:- standards are essential for interoperability.
Interoperability: all manufacturer devices/equipment communicate seamlessly in data
communication
data communication standards fall into two categories
I. De facto standards: that have not been approved by an organized body; mostly set by
manufacturers
II. De jure standards: those legislated by an officially recognized body such as:
• International Organization for Standardization (ISO)
• International Telecommunication Union Telecommunication Standards Sector
(ITU-T)
• American National Standards Institute (ANSI)
• Institute of Electrical and Electronics Engineers (IEEE)
• Electronic Industries Association (EIA)
20 Chapter 4: Protocols Prep.By Tewodros. T
20
Some examples of de facto standards include:
Hayes command set for controlling modems
Kermit Communications Protocol
Xmodem Communications Protocol
Hewlett-Packard Printer Control Language (PCL) for laser printers
PostScript page description language for laser printers
The QWERTY system for typewriters and keyboards
The data link layer is the only layer which add header and
trailer
The physical layer don’t have both header and trailer
Encapsulation: the process of adding header and trailer
information
Encapsulation : adds information to a packet as it travels to its
destination.
Decapsulation :reverses the process by removing the info, so a
destination device can read the original data.
28 Chapter 4: Protocols Prep.By Tewodros. T
Encapsulation and decapsulation using the OSI model
Presentation Presentation
Layer
PH AH Data Layer
Session Session
Layer SH PH AH Data Layer
Transport Transport
Layer TH SH PH AH Data Layer
Physical Physical
Layer Bits Layer
34
Chapter 4: Protocols Prep.By Tewodros. T
TCP/IP Encapsulation
User data
Application
Application
Header User data
TCP
TCP Header Application data
IP TCP segment
Ethernet frame