Day-15 Protocols and Models
Day-15 Protocols and Models
PROTOCOLS AND
11001010101010
11001010101010
MODELS
11001010110001101010
11001010110001101010
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.
11001010101010
11001010101010
There are three elements to any communication:
• There will be a source (sender).
• There will be a destination (receiver).
• There will be a channel (media) that provides for the path of communications to occur.
11001010110001101010
11001010110001101010
THE RULES
Communications Protocols
11001010101010
• These rules will vary depending on the protocol.
11001010110001101010
11001010110001101010
THE RULES
Rule Establishment
11001010101010
properly formatted
11001010110001101010
11001010110001101010
THE RULES
Rule Establishment
11001010101010
• Common language and grammar
• Speed and timing of delivery
• Confirmation or acknowledgment requirements
11001010110001101010
11001010110001101010
THE RULES
Network Protocol Requirements
Common computer protocols must be in agreement and include the following requirements:
• Message encoding
11001010101010
11001010101010
• Message formatting and encapsulation
• Message size
• Message timing
• Message delivery options
11001010110001101010
11001010110001101010
THE RULES
Message Encoding
• Encoding is the process of converting information into another acceptable form for transmission.
• Decoding reverses this process to interpret the information.
11001010101010
11001010101010
11001010110001101010
11001010110001101010
THE RULES
Message Formatting and Encapsulation
11001010101010
11001010110001101010
11001010110001101010
THE RULES
Message Size
11001010101010
• The bits are encoded into a pattern of light, sound, or electrical impulses.
• The destination host must decode the signals to interpret the message.
11001010110001101010
11001010110001101010
THE RULES
Message Timing
11001010101010
and the speed at which it can be delivered.
Response Timeout – Manages how long a device waits when it does not hear a reply from the
destination.
Access method - Determines when someone can send a message.
• There may be various rules governing issues like “collisions”. This is when more than one
device sends traffic at the same time and the messages become corrupt.
• Some protocols are proactive and attempt to prevent collisions; other protocols are reactive
and establish a recovery method after the collision occurs.
11001010110001101010
11001010110001101010
THE RULES
Collisions
*A collision domain represents an area on a *Each port on a switch represents a separate
LAN on which collision domain. Also, all ports on a switch
there can be only one transmission at a time. belong to the same broadcast domain,
Because multiple devices can reside in the
11001010101010
11001010101010
same collision domain, as is the case with
multiple PCs connected to a hub, if two
devices transmit at the same time, those
transmissions collide and have to be
retransmitted
11001010110001101010
11001010110001101010
THE RULES
Collisions
Late Collisions A late collision refers to a collision that occurs after 512 bits of the
frame have been transmitted. Excessive cable lengths are the most
common cause of late collisions. Another common cause is duplex
11001010101010
11001010101010
misconfiguration.
11001010110001101010
11001010110001101010
THE RULES
Collisions
11001010101010
11001010101010
11001010110001101010
11001010110001101010
THE RULES
Message Delivery Options
11001010101010
• Unicast – one to one communication
• Multicast – one to many, typically not all
• Broadcast – one to all
11001010110001101010
11001010110001101010
THE RULES
A Note About the Node Icon
• Documents may use the node icon , typically a circle, to represent all devices.
11001010101010
• The figure illustrates the use of the node icon for delivery options.
11001010101010
11001010110001101010
11001010110001101010
PROTOCOLS
Network Protocol Overview
11001010101010
Protocol Type Description
• Can be implemented on devices in:
Network Communications enable two or more devices to
• Software communicate over one or more networks
• Hardware
Network Security secure data to provide authentication, data
• Both integrity, and data encryption
• Protocols have their own:
Routing enable routers to exchange route
• Function information, compare path information,
• Format and select best path
• Rules Service Discovery used for the automatic detection of devices
or services
11001010110001101010
11001010110001101010
PROTOCOLS
Network Protocol Functions
11001010101010
• Protocols may have one or more
functions.
Function Description
Addressing Identifies sender and receiver
Reliability Provides guaranteed delivery
Flow Control Ensures data flows at an efficient rate
Sequencing Uniquely labels each transmitted segment of data
Error Detection Determines if data became corrupted during transmission
Application Interface Process-to-process communications between network applications
11001010110001101010
11001010110001101010
PROTOCOLS
Protocol Interaction
11001010101010
Protocol Function
Hypertext Transfer Governs the way a web server and a web client interact
Protocol (HTTP) Defines content and format
Transmission Control Manages the individual conversations
Protocol (TCP) Provides guaranteed delivery
Manages flow control
Internet Protocol (IP) Delivers messages globally from the sender to the receiver
Ethernet Delivers messages from one NIC to another NIC on the same Ethernet
Local Area Network (LAN)
11001010110001101010
11001010110001101010
PROTOCOL SUITES
Network Protocol Suites
11001010101010
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
11001010110001101010
11001010110001101010
PROTOCOL SUITES
Evolution of Protocol Suites
11001010101010
common protocol suite and maintained by
the Internet Engineering Task Force (IETF)
• Open Systems Interconnection (OSI)
protocols- Developed by the International
Organization for Standardization (ISO) and
the International Telecommunications Union
(ITU)
• AppleTalk- Proprietary suite release by Apple
Inc.
• Novell NetWare- Proprietary suite
developed by Novell Inc.
11001010110001101010
11001010110001101010
PROTOCOL SUITES
TCP/IP Protocol Example
11001010101010
internet layers.
• The most common network
access layer LAN protocols are
Ethernet and WLAN (wireless
LAN).
11001010110001101010
11001010110001101010
PROTOCOL SUITES
TCP/IP Protocol Suite
11001010101010
many protocols.
• TCP/IP is:
• An open standard protocol
suite that is freely available to
the public and can be used by
any vendor
• A standards-based protocol
suite that is endorsed by the
networking industry and
approved by a standards
organization to ensure
interoperability
11001010110001101010
11001010110001101010
PROTOCOL SUITES
TCP/IP Communication Process
• A web server encapsulating and sending a web • A client de-encapsulating the web page for the
page to a client. web browser
11001010101010
11001010101010
11001010110001101010
11001010110001101010
STANDARDS ORGANIZATIONS
Open Standards
• interoperability
11001010101010
• competition
• innovation
Standards organizations are:
• vendor-neutral
• non-profit organizations
• established to develop and
promote the concept of open
standards.
11001010110001101010
11001010110001101010
STANDARDS ORGANIZATIONS
Internet Standards
11001010101010
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
11001010110001101010
11001010110001101010
STANDARDS ORGANIZATIONS
Internet Standards
11001010101010
• 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
11001010110001101010
11001010110001101010
STANDARDS ORGANIZATIONS
Electronic and Communications Standards
• Institute of Electrical and Electronics Engineers (IEEE, pronounced “I-triple-E”) - dedicated to creating
standards in power and energy, healthcare, telecommunications, and networking
11001010101010
11001010101010
• Electronic Industries Alliance (EIA) - develops standards relating to electrical wiring, connectors, and
the 19-inch racks used to mount networking equipment
• Telecommunications Industry Association (TIA) - develops communication standards in radio
equipment, cellular towers, Voice over IP (VoIP) devices, satellite communications, and more
• International Telecommunications Union-Telecommunication Standardization Sector (ITU-T) -
defines standards for video compression, Internet Protocol Television (IPTV), and broadband
communications, such as a digital subscriber line (DSL)
11001010110001101010
11001010110001101010
REFERENCE MODELS
The Benefits of Using a Layered
Model
11001010101010
network operates can be difficult to
explain and understand. For this reason,
a layered model is used.
Two layered models describe network
operations:
• Open System Interconnection (OSI)
Reference Model
• TCP/IP Reference Model
11001010110001101010
11001010110001101010
REFERENCE MODELS
The Benefits of Using a Layered Model
• Assist in protocol design because protocols that operate at a specific layer have defined information
11001010101010
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
11001010110001101010
11001010110001101010
REFERENCE MODELS
The OSI Reference Model
OSI Model Layer Description
7 - Application Contains protocols used for process-to-process communications.
Provides for common representation of the data transferred between application layer
11001010101010
11001010101010
6 - Presentation
services.
5 - Session Provides services to the presentation layer and to manage data exchange.
Defines services to segment, transfer, and reassemble the data for individual
4 - Transport
communications.
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.
1 - Physical Describes the means to activate, maintain, and de-activate physical connections.
11001010110001101010
11001010110001101010
REFERENCE MODELS
The TCP/IP Reference Model
11001010101010
Transport Supports communication between various devices across diverse networks.
Network Access Controls the hardware devices and media that make up the network.
11001010110001101010
11001010110001101010
REFERENCE MODELS
OSI and TCP/IP Model Comparison
11001010101010
the TCP/IP model into multiple layers.
• The TCP/IP protocol suite does not
specify which protocols to use when
transmitting over a physical medium.
• OSI Layers 1 and 2 discuss the necessary
procedures to access the media and the
physical means to send data over a
network.
11001010110001101010
11001010110001101010
DATA ENCAPSULATION
Segmenting Messages
11001010101010
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.
11001010110001101010
11001010110001101010
DATA ENCAPSULATION
Sequencing
11001010101010
may be reassembled at the destination.
TCP is responsible for sequencing the
individual segments.
11001010110001101010
11001010110001101010
DATA ENCAPSULATION
Protocol Data Units
11001010101010
• 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:
1. Data (Data Stream)
2. Segment
3. Packet
4. Frame
5. Bits (Bit Stream)
11001010110001101010
11001010110001101010
DATA ENCAPSULATION
Encapsulation Example
11001010101010
• The level above does its
process and then passes it
down to the next level of the
model. This process is
repeated by each layer until it
is sent out as a bit stream.
11001010110001101010
11001010110001101010
DATA ENCAPSULATION
De-encapsulation Example
11001010101010
• 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)
11001010110001101010
11001010110001101010
DATA ACCESS
Addresses
Both the data link and network layers use addressing to deliver data from source to destination.
11001010101010
Network layer source and destination addresses - Responsible for delivering the IP packet from original
11001010101010
source to the final destination.
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.
11001010110001101010
11001010110001101010
DATA ACCESS
Layer 3 Logical Address
11001010101010
• Source IP address - The IP
address of the sending
device, original source of the
packet.
• Destination IP address - The
IP address of the receiving
device, final destination of
the packet.
These addresses may be on the
same link or remote.
11001010110001101010
11001010110001101010
DATA ACCESS
Layer 3 Logical Address
11001010101010
(IPv6)
• The left-most part of the address
indicates the network group which
the IP address is a member.
• 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.
• This portion is unique for each device
on the network.
11001010110001101010
11001010110001101010
DATA ACCESS
Devices on the Same Network
11001010101010
same number in network portion of the
address.
• PC1 – 192.168.1.110
• FTP Server – 192.168.1.9
11001010110001101010
11001010110001101010
DATA ACCESS
Role of the Data Link Layer
Addresses: Same IP Network
11001010101010
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.
11001010110001101010
11001010110001101010
DATA ACCESS
Devices on a Remote Network
11001010101010
same LAN and is remote?
• What happens when PC1 tries to reach
the Web Server?
• Does this impact the network and data
link layers?
11001010110001101010
11001010110001101010
DATA ACCESS
Role of the Network Layer
Addresses
11001010101010
different network portion, this means
they are on different networks.
• PC1 – 192.168.1
• Web Server – 172.16.1
11001010110001101010
11001010110001101010
DATA ACCESS
Role of the Data Link Layer
Addresses: Different IP Networks
11001010101010
provide Layer 2 with the local default gateway IP
address, also known as the router address.
• 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.
• All devices on the LAN must be told about this
address or their traffic will be confined to the
LAN only.
• Once Layer 2 on PC1 forwards to the default
gateway (Router), the router then can start the
routing process of getting the information to
actual destination.
11001010110001101010
11001010110001101010
DATA ACCESS
Role of the Data Link Layer
Addresses: Different IP Networks
11001010101010
so it will have a source and destination for
each link.
• The MAC addressing for the first segment
is :
• Source – AA-AA-AA-AA-AA-AA (PC1)
Sends the frame.
• Destination – 11-11-11-11-11-11 (R1-
Default Gateway MAC) Receives the
frame.
Note: While the L2 local addressing will
change from link to link or hop to hop, the L3
addressing remains the same.
11001010110001101010
11001010110001101010
DATA ACCESS
Data Link Addresses
• Since data link addressing is local addressing, it will have a source and destination for each segment or hop of
the journey to the destination.
11001010101010
11001010101010
• The MAC addressing for the first segment is:
• Source – (PC1 NIC) sends frame
• Destination – (First Router- DGW interface) receives frame
11001010110001101010
11001010110001101010
DATA ACCESS
Data Link Addresses
11001010101010
• Destination – (Second Router) receives frame
11001010110001101010
11001010110001101010
DATA ACCESS
Data Link Addresses
11001010101010
• Destination – (Web Server NIC) receives frame
11001010110001101010
11001010110001101010
DATA ACCESS
Data Link Addresses
• Notice that the packet is not modified, but the frame is changed, therefore the L3 IP addressing does not change
from segment to segment like the L2 MAC addressing.
11001010101010
11001010101010
• The L3 addressing remains the same since it is global and the ultimate destination is still the Web Server.
11001010110001101010
11001010101010 11001010110001101010
11001010101010
11001010110001101010
11001010101010 11001010110001101010
11001010101010
11001010110001101010
11001010101010 11001010110001101010
11001010101010
11001010110001101010
11001010101010 11001010110001101010
11001010101010
11001010110001101010
11001010101010 11001010110001101010
11001010101010
11001010110001101010
11001010101010 11001010110001101010
11001010101010
11001010110001101010
11001010101010 11001010110001101010
11001010101010
11001010110001101010
11001010101010 11001010110001101010
11001010101010
11001010110001101010
11001010101010 11001010110001101010
11001010101010
11001010110001101010
11001010101010 11001010110001101010
11001010101010
11001010110001101010