Module 3 Protocols&Models 2025
Module 3 Protocols&Models 2025
Standards Organizations Explain the role of standards organizations in establishing protocols for network
interoperability.
Reference Models Explain how the TCP/IP model and the OSI model are used to facilitate
standardization in the communication process.
Data Encapsulation Explain how data encapsulation allows data to be transported across the
network.
Data Access Explain how local hosts access local resources on a network.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 2
3.1 The Rules
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 3
The Rules
Communications Fundamentals
Networks can vary in size and complexity. It is not enough to
have a connection; devices must agree on “how” to communicate.
There are three elements to any communication:
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 5
The Rules (Rule Establishment)
• Individuals must use established rules or agreements to govern the
conversation.
• The first message is difficult to read because it is not formatted properly. The
second shows the message properly formatted
6
The Rules
Rule Establishment (Cont.)
Protocols must account for the following requirements:
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 7
The Rules
Network Protocol Requirements
Common computer protocols must be in agreement and include the following
requirements:
1-Message encoding
2-Message formatting and encapsulation
3-Message size
4-Message timing
5-Message delivery options
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 8
The Rules
1-Message Encoding
• Encoding is the process of converting information into another acceptable form for
transmission.
• Decoding reverses this process to interpret the information.
9
The Rules
2-Message Formatting and Encapsulation
• When a message is sent, it must use a specific format or structure.
• Message formats depend on the type of message and the channel that is used to
deliver the message.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 10
The Rules
3-Message Size
Encoding between hosts must be in an appropriate format for the medium.
• Messages sent across the network are converted to bits ( 0 or 1)
• The bits are encoded into a pattern of light, sound, or electrical impulses.
• The destination host must decode the signals to interpret the message.
01011010
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 11
The Rules 4-Message Timing
• Some protocols are proactive and attempt to prevent collisions; other protocols are reactive and
establish a recovery method after the collision occurs.
Congestion occurs when the demand for bandwidth exceeds the amount available. Network
bandwidth is measured in the number of bits that can be
transmitted in a single second, or bits per second (bps)
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 12
The Rules 5-Message Delivery Options
Note: Broadcasts are used in IPv4 networks, but are not an option for Pv6.
Later we will also see “Anycast” as an additional delivery option for IPv6. 13
Types of Data Transmissions
Unicast Broadcast
Multicast
The Rules
A Note About the Node Icon
• Documents may use the node icon , typically a circle, to represent all devices.
• The figure illustrates the use of the node icon for delivery options.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 15
3.2 Protocols
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 16
Protocols
Network Protocol Overview
Network protocols define a common
Protocol Type Description
set of rules.
• Can be implemented on devices in:
Network enable two or more devices to communicate
• Software Communications over one or more networks
TCP/IP
• Hardware
Network Security secure data to provide authentication,
• Both data integrity, and data encryption
• Protocols have their own:
Routing enable routers to exchange route
• Function information, compare path information, and
• Format select best path
Service used for the automatic detection of
• Rules Discovery devices or services
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 17
Protocols Network Protocol Functions
• Devices use agreed-upon protocols to communicate .
Function Description
Guaranteed
• Each protocol has its own function and format.
192.168.1.24
10101
Protocol Function
Hypertext Transfer Governs the way a web server and a web client interact
Protocol (HTTP) Defines content and format
Internet Protocol (IP) Delivers messages globally from the sender to the receiver 192.168.1.24
NIC:Network Interface Card, NIC has uniqie MAC adress
Ethernet Delivers messages from one NIC to another NIC onCiscothe
© 2016 and/orsame Ethernet
its affiliates. All Local
rights reserved. Cisco Confidential 19
Video to watch 5 M
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 20
Protocol Suites
Network Protocol Suites
Protocols must be able to work with other protocols.
Protocol suite:
• A group of inter-related protocols necessary to perform a communication function
• Sets of rules that work together to help solve a problem
The protocols are viewed in terms of layers:
• Higher Layers
• Lower Layers- concerned with moving
data and provide services to upper layers
Layered Approach: Protocols are organized
into layers, with each layer responsible for
specific tasks. For example, the TCP/IP model has four layers: Application, Transport, Internet, and
Network Access. Each layer interacts with
the layers directly above and below it. © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 21
Example of Common Protocols include:
• The most common network access layer LAN protocols are Ethernet and WLAN
(wireless LAN).
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 24
Protocol Suites
TCP/IP Protocol Suite
• TCP/IP is the protocol suite used by the internet and includes many protocols.
• TCP/IP is:
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 25
Protocol Suites TCP/IP Communication Process
• A web server encapsulating and sending a • A client de-encapsulating the web page for
web page to a client. the web browser
Encapsulation De-capsulation
Encapsulation
De-capsulation
26
3.4 Standards Organizations
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 27
Standards Organizations
Open Standards
Open standards encourage:
• interoperability
• competition
• innovation
• non-profit organizations
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 28
Standards Organizations
• Internet Society (ISOC) - Promotes the open
Internet Standards
development and evolution of internet
• Internet Architecture Board (IAB) -
Responsible for management and
development of internet standards
• Internet Engineering Task Force (IETF) -
Develops, updates, and maintains internet
and TCP/IP technologies
• Internet Research Task Force (IRTF)
- Focused on long-term research
related to internet and TCP/IP protocols
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 29
Standards Organizations
Internet Standards (Cont.)
Standards organizations involved with the
development and support of TCP/IP
• Internet Corporation for Assigned Names
and Numbers (ICANN) - Coordinates IP
address allocation, the management of
domain names, and assignment of other
information
• Internet Assigned Numbers Authority (IANA)
- Oversees and manages IP address allocation,
domain name management, and protocol
identifiers for ICANN
Video to watch 5 M
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 32
Reference Models
The Benefits of Using a Layered Model
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 33
Reference Models
The Benefits of Using a Layered Model (Cont.)
These are the benefits of using a layered model:
• Assist in protocol design because protocols that operate at a specific layer have defined
information that they act upon and a defined interface to the layers above and below
• Foster competition because products from different vendors can work together
• Prevent technology or capability changes in one layer from affecting other layers above
and below
• Provide a common language to describe networking functions and capabilities
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 34
The OSI Reference Model
All People Seem To Need Domino Pizza
OSI Model Description
Layer
7 - Application Contains protocols used for process-to-process communications.
Provides for common representation of the data transferred between
6 - Presentation
application layer services.
3 - Network Provides services to exchange the individual pieces of data over the
network.
2 - Data Link Describes methods for exchanging data frames over a common media.
HTTP: Hypertext Transfer Protocol. Pulls a web page from a web server.
It uses TCP (guaranteed connection) protocol to communicate with the web server first.
DNS: Domain Name System: The user pings a URL in the CMD
It resolves a URL (Universal Resource Locator) to an IP address.
Example: cisco.com= 72.163.4.185
DHCP: Dynamic Host Configuration Protocol. Your PC looks for an IP address.
It provides an IP address automatically to the end device like a PC or printer.
FTP: File Transport Protocol. A user tries to download or upload a file
It downloads and uploads files from another pc, like a uTorrent computer.
Presentation layer:
It specifies the data type. It checks if the data is a text, picture, or voice.
It encrypts the message as well.
Session layer:
Session: It maintains the connection between two devices.
Transport layer manages traffic between two devices.
TCP: Transport Control Protocol: guaranteed connection (three handshake communication. It is a
email use TCP connection-oriented protocol. Sequency packets number
UDP: User Datagram Protocol. No guaranteed connection. Used for voice, video, and data
streaming. It is a connectionless protocol.
OSI model sub-protocols cont.
Network layer provides an IP address. The router works at this layer.
Breaking up segments into network packets and reassembling the packets on
the receiving end.
Routing packets by discovering the best path across a physical network.
IPv4 and IPv6 address.
ICMP: Internet Control Message Protocol (ping uses this protocol to have echo
Request and echo Reply.
Data link layer works with physical address (MAC). Ethernet frames. Switches work at
this layer.
LLC: talks to the upper layer like the network layer. it controls the synchronization,
flow control, and error checking functions of the data link layer.
MAC: check the MAC address
Physical layer: change the message to bits and send it to another PC. Cables, and hub work
at this layer
OSI and TCP model Encapsulation
Encapsulation
Reference Models
The TCP/IP Reference Model
TCP/IP
Description
Layer
Application Represents data to the user, plus encoding and dialog control.
Network Controls the hardware devices and media that make up the network.
Access
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 39
Reference Models
OSI and TCP/IP Model Comparison
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 40
3.6 Data Encapsulation
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 41
Data Encapsulation
Segmenting Messages Segmenting is the process of breaking up messages
into smaller units.
Multiplexing is the processes of taking multiple streams
of segmented data and interleaving them together.
Segmenting messages has two primary benefits:
• Increases speed - Large amounts of data can be
sent over the network without tying up a
communications link.
• Increases efficiency - Only segments
which fail to reach the destination need to be
retransmitted, not the entire data stream.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 42
Data Encapsulation
Sequencing
Sequencing messages is the process of numbering the segments so that the
message may be reassembled at the destination. numbering packets
TCP is responsible for sequencing the individual segments.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 43
Data Encapsulation Protocol Data Units(PDU)
Encapsulation is the process where protocols add
Hello Mike their information to the data.
• At each stage of the process, a PDU has a
different name to reflect its new functions.
• There is no universal naming convention for
PDUs, in this course, the PDUs are named
according to the protocols of the TCP/IP
suite.
• PDUs passing down the stack are as follows:
data
1. Data (Data Stream)
S
P 1. Segment
F 2. Packet
B 3. Frame © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 44
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 45
Data Encapsulation
Encapsulation Example
A frame check sequence (FCS) is an error-detecting code added to a frame in a communication protocol
Data Encapsulation
De-encapsulation Example
• Data is de-encapsulated as it moves up
the stack.
• When a layer completes its process,
that layer strips off its header and
passes it up to the next level to be
processed. This is repeated at each
layer until it is a data stream that the
application can process.
1. Received as Bits (Bit Stream)
2. Frame
3. Packet
4. Segment
5. Data (Data Stream)
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 47
Encapsulation and decapsulation process
Encapsulation De-capsulation
3.7 Data Access: MAC address
Video1 to watch 8 M
Both the data link and network layers use addressing to deliver data from source to
destination
Network layer source and destination addresses - Responsible for delivering the IP packet
from original source to the final destination.
(192.168.1.15)
Data link layer source and destination addresses – Responsible for delivering the data link
frame from one network interface card (NIC) to another NIC on the same network.
00 1A 3F F1 4C C6
50
Network layer: source and Destination IP address
ICMP: Internet Control Message Protocol
Ip
Data link: Source and Destination MAC address (Frame)
ARP: Address Resolution Protocol
ARP
Data Access
Layer 3 Logical Address (Network layer)
IP address ia logical address
IP Packet Destination
Address
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 53
Data Access
Layer 3 (network layer) Logical Address
(Cont.)
An IP address contains two parts:
• Network portion (IPv4) or Prefix (IPv6)
• The left-most part of the address indicates the network
group which the IP address is a member.
• 192.168.1.110
172.16.1.99
• Each LAN or WAN will have the same network portion.
• Host portion (IPv4) or Interface ID (IPv6)
• The remaining part of the address identifies a specific device
within the group.
192.168.1.15
• This portion is unique for each device on the network. Network Host
54
Data Access (network layer)
Devices on the Same Network ( Local IP address)
When devices are on the same network the source and destination will have the same number in
the network portion of the address.
• PC1 – 192.168.1.110
• FTP Server – 192.168.1.9
Default getaway
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 55
Data Access (network layer)
Devices on a Remote Network
• What happens when the actual
(ultimate) destination is not on the
same LAN and is remote?
• What happens when PC1 tries to
reach the Web Server?
• Does this impact the network and data
link layers?
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 57
Data Access
Role of the Data Link (MAC) Layer Addresses: Same IP Network (local
When devices are on the same Ethernet
network the data link frame will use the
actual MAC address of the destination NIC.
MAC addresses are physically embedded into
the Ethernet NIC and are local addressing.
• The Source MAC address will be that of
the originator on the link.
• The Destination MAC address will
always be on the same link as the
source, even if the ultimate destination
is remote.
Local network
broadcast
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 58
Data Access
Role of the Data Link Layer Addresses (MAC): Different IP Networks (Remote)
When the final destination (computer) is
remote, Layer 3 will provide Layer 2 with the
local default gateway IP address, also known
as the router address. (192.168.1.1)
• The default gateway (DGW) is the router
interface IP address that is part of this
LAN and will be the “door” or “gateway” to
all other remote locations in internet.
https://www.youtube.com/watch?
v=pCcJFdYNamc
Data Access
Role of the Data Link Layer Addresses: Different IP Networks (Cont.)
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 62
Data Access
Data Link Addresses (Cont.)
The MAC addressing for the second hop is:
• Source – (First Router- exit interface) sends frame
• Destination – (Second Router) receives frame
source source
source
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 63
Data Access
Data Link Addresses (Cont.)
The MAC addressing for the last segment is:
• Source – (Second Router- exit interface) sends frame
• Destination – (Web Server NIC) receives frame
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 64
Data Access
Data Link Addresses (Cont.)
• Notice that the packet (IP address) is not modified, but the frame (Mac address) is changed,
therefore the L3 IP addressing does not change from segment to segment like the L2 MAC
addressing.
• The L3 addressing remains the same since it is global and the ultimate destination is still the Web
Server.
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 65
MAC and IP addresses
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 68
Ethernet cable
Cables types
Straight Thru ________pc to switch
pc to Hub
switch to router
Cross over _ _ _ _ _ _ Pc to pc
Pc to router
Server to router
Hub to hub
Switch to switch
Router to router
Roll over Pc to router console
Serial connection- WAN
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 70
Why we are using a crossover cable between the Router and the PC?
Both Routers and PCs use the same two wires to send (TX), and two wires to receive (TX ) RX1.
Straight Crossover
TX1=Transmit RX1=Receive TX1=Transmit Rx3= Receive
TX2=Transmit RX2=Receive TX2=Transmit Rx6=Receive
RX3= Receive TX3=Transmit RX3=Receive TX1=Transmit
RX6= Receive TX6=Transmit RX9=Receive TX2=Transmit
Why we are using two IP and MAC addresses in our computers?