James Chapter 3
James Chapter 3
Chapter 3: Network Protocols and message can easily be misunderstood. Each of these tasks
Communications describe protocols put in place to accomplish communication.
This is also true of computer communication, as shown in
Figure 2.
More and more, it is networks that connect us. People
communicate online from everywhere. Conversations in Many different rules or protocols govern all methods of
classrooms spill into instant message chat sessions, and communication that exist in the world today.
online debates continue at school. New services are being
developed daily to take advantage of the network. Rule Establishment
Rather than developing unique and separate systems for the
delivery of each new service, the network industry as a whole
Before communicating with one another, individuals must use
has adopted a developmental framework that allows designers
established rules or agreements to govern the conversation.
to understand current network platforms, and maintain them. At
For example, consider Figure 1, protocols are necessary for
the same time, this framework is used to facilitate the
effective communication. These rules, or protocols, must be
development of new technologies to support future
followed in order for the message to be successfully delivered
communications needs and technology enhancements.
and understood. Protocols must account for the following
requirements:
Central to this developmental framework, is the use of
generally-accepted models that describe network rules and
functions. An identified sender and receiver
Within this chapter, you will learn about these models, as well Common language and grammar
as the standards that make networks work, and how
communication occurs over a network.
Speed and timing of delivery
In addition to having the correct format, most personal letters Access Method
must also be enclosed in an envelope for delivery, as shown in
Figure 1. The envelope has the address of the sender and
Access method determines when someone is able to send a
receiver, each located at the proper place on the envelope. If
message. If two people talk at the same time, a collision of
the destination address and formatting are not correct, the
information occurs and it is necessary for the two to back off
letter is not delivered. The process of placing one message
and start again, as shown in the animation. Likewise, it is
format (the letter) inside another message format (the
necessary for computers to define an access method. Hosts on
envelope) is called encapsulation. De-encapsulation occurs
a network need an access method to know when to begin
when the process is reversed by the recipient and the letter is
sending messages and how to respond when collisions occur.
removed from the envelope.
Flow Control
A message that is sent over a computer network follows
specific format rules for it to be delivered and processed. Just
as a letter is encapsulated in an envelope for delivery, so too Timing also affects how much information can be sent and the
are computer messages. Each computer message is speed that it can be delivered. If one person speaks too
encapsulated in a specific format, called a frame, before it is quickly, it is difficult for the other person to hear and
sent over the network. A frame acts like an envelope; it understand the message. In network communication, source
provides the address of the destination and the address of the and destination hosts use flow control methods to negotiate
source host, as shown in Figure 2. Notice the frame has a correct timing for successful communication.
source and destination in both the frame addressing portion
and in the encapsulated message. The distinction between Response Timeout
these two types of addresses will be explained later in this
chapter. If a person asks a question and does not hear a response
within an acceptable amount of time, the person assumes that
The format and contents of a frame are determined by the type no answer is coming and reacts accordingly. The person may
of message being sent and the channel over which it is repeat the question, or may go on with the conversation. Hosts
communicated. Messages that are not correctly formatted are on the network also have rules that specify how long to wait for
not successfully delivered to or processed by the destination responses and what action to take if a response timeout
host. occurs.
Another rule of communication is size. When people A message can be delivered in different ways, as shown in
communicate with each other, the messages that they send Figure 1. Sometimes, a person wants to communicate
are usually broken into smaller parts or sentences. These information to a single individual. At other times, the person
sentences are limited in size to what the receiving person can may need to send information to a group of people at the same
process at one time, as shown in Figure 1. An individual time, or even to all people in the same area.
conversation may be made up of many smaller sentences to
ensure that each part of the message is received and There are also times when the sender of a message needs to
understood. Imagine what it would be like to read this course if be sure that the message is delivered successfully to the
it all appeared as one long sentence; it would not be easy to destination. In these cases, it is necessary for the recipient to
read and comprehend. return an acknowledgment to the sender. If no
acknowledgment is required, the delivery option is referred to
as unacknowledged.
Hosts on a network use similar delivery options to Note: IP in this course refers to both the IPv4 and IPv6
communicate, as shown in Figure 2. protocols. IPv6 is the most recent version of IP and the
replacement for the more common IPv4.
A one-to-one delivery option is referred to as a unicast,
meaning there is only a single destination for the message. The figures illustrate networking protocols that describe the
following processes:
When a host needs to send messages using a one-to-many
delivery option, it is referred to as a multicast. Multicasting is How the message is formatted or structured, as shown in
the delivery of the same message to a group of host Figure 1.
destinations simultaneously.
If all hosts on the network need to receive the message at the The process by which networking devices share
same time, a broadcast may be used. Broadcasting represents information about pathways with other networks, as
a one-to-all message delivery option. Some protocols use a shown in Figure 2.
special multicast message that is sent to all devices, making it
essentially the same as a broadcast. Additionally, hosts may How and when error and system messages are passed
be required to acknowledge the receipt of some messages between devices, as shown in Figure 3.
while not needing to acknowledge others.
Note: Without any additional configuration, the switch in the The setup and termination of data transfer sessions, as
shown in Figure 4.
example would forward multicast traffic out all other ports.
However, the switch is configured with Cisco Group
Management Protocol (CGMP) so it can learn on which Protocol Interaction
interfaces multicast members reside. CGMP is beyond the
scope of this course.
A group of inter-related protocols necessary to perform a HTTP - is an application protocol that governs the way a
communication function is called a protocol suite. Protocol web server and a web client interact. HTTP defines the
suites are implemented by hosts and networking devices in content and formatting of the requests and responses
software, hardware or both. that are exchanged between the client and server. Both
the client and the web server software implement HTTP
One of the best ways to visualize how the protocols within a as part of the application. HTTP relies on other protocols
suite interact is to view the interaction as a stack. A protocol to govern how the messages are transported between
stack shows how the individual protocols within a suite are the client and server.
implemented. The protocols are viewed in terms of layers, with
each higher level service depending on the functionality
defined by the protocols shown in the lower levels. The lower TCP - is the transport protocol that manages the
layers of the stack are concerned with moving data over the individual conversations. TCP divides the HTTP
network and providing services to the upper layers, which are messages into smaller pieces, called segments. These
focused on the content of the message being sent. segments are sent between the web server and client
processes running at the destination host. TCP is also
responsible for controlling the size and rate at which
As the figure shows, we can use layers to describe the activity
messages are exchanged between the server and the
occurring in our face-to-face communication example. At the
client.
bottom, the physical layer, we have two people, each with a
voice that can say words out loud. In the middle, the rules
layer, we have an agreement to speak in a common language. IP - is responsible for taking the formatted segments
At the top, the content layer, there are words that are actually from TCP, encapsulating them into packets, assigning
spoken. This is the content of the communication. them the appropriate addresses, and delivering them to
the destination host.
Network Protocols
Ethernet - is a network access protocol that describes
two primary functions: communication over a data link
and the physical transmission of data on the network
At the human level, some communication rules are formal and media. Network access protocols are responsible for
others are simply understood based on custom and practice. taking the packets from IP and formatting them to be
For devices to successfully communicate, a network protocol transmitted over the media.
suite must describe precise requirements and interactions.
Networking protocols define a common format and set of rules
for exchanging messages between devices. Some common Protocol Suites and Industry Standards
networking protocols are Hypertext Transfer Protocol (HTTP),
Transmission Control Protocol (TCP), and Internet Protocol
(IP).
A 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. Protocol suites, like the four shown in
the figure, can be a bit overwhelming. However, this course will
only cover the protocols of the TCP/IP protocol suite.
Development of TCP/IP
The TCP/IP protocol suite is implemented as a TCP/IP stack 7. In Figure 2, the animation begins with the client receiving the
on both the sending and receiving hosts to provide end-to-end data link frames that contain the data. Each protocol header is
delivery of applications over a network. The Ethernet protocols processed and then removed in the opposite order it was
are used to transmit the IP packet over the physical medium added. The Ethernet information is processed and removed,
used by the LAN followed by the IP protocol information, the TCP information,
and finally the HTTP information.
Internet Standards
Internet Architecture Board (IAB) - Responsible for the Other standard organizations have responsibilities for
overall management and development of Internet promoting and creating the electronic and communication
standards. standards used to deliver the IP packets as electronic signals
over a wired or wireless medium.
Institute of Electrical and Electronics Engineers (IEEE, Fostering competition because products from different
pronounced “I-triple-E”) – Organization of electrical engineering vendors can work together.
and electronics dedicated to advancing technological
innovation and creating standards in a wide area of industries
including power and energy, healthcare, telecommunications, Preventing technology or capability changes in one layer
and networking. Figure 1 shows several of the standards from affecting other layers above and below.
related to networking.
Providing a common language to describe networking
Electronic Industries Alliance (EIA) - Best known for its functions and capabilities.
standards related to electrical wiring, connectors, and the 19-
inch racks used to mount networking equipment. As shown in the figure, the TCP/IP model and the Open
Systems Interconnection (OSI) model are the primary models
Telecommunications Industry Association (TIA) - used when discussing network functionality. They each
Responsible for developing communication standards in a represent a basic type of layered networking models:
variety of areas including radio equipment, cellular towers,
Voice over IP (VoIP) devices, satellite communications, and
more. Figure 2 shows an example of an Ethernet cable Protocol model - This type of model closely matches
meeting TIA/EIA standards. the structure of a particular protocol suite. The TCP/IP
model is a protocol model because it describes the
International Telecommunications Union- functions that occur at each layer of protocols within the
Telecommunication Standardization Sector (ITU-T) - One of TCP/IP suite. TCP/IP is also used as a reference model.
the largest and oldest communication standard organizations.
The ITU-T defines standards for video compression, Internet Reference model - This type of model provides
Protocol Television (IPTV), and broadband communications, consistency within all types of network protocols and
such as a digital subscriber line (DSL). services by describing what has to be done at a
particular layer, but not prescribing how it should be
accomplished. The OSI model is a widely known
internetwork reference model, but is also a protocol
model for the OSI protocol suite.
OSI Model and TCP/IP Model A better approach is to divide the data into smaller, more
manageable pieces to send over the network. This division of
Comparison the data stream into smaller pieces is called segmentation.
Segmenting messages has two primary benefits:
The protocols that make up the TCP/IP protocol suite can also
be described in terms of the OSI reference model. In the OSI By sending smaller individual pieces from source to
model, the network access layer and the application layer of destination, many different conversations can be
the TCP/IP model are further divided to describe discrete interleaved on the network, called multiplexing. Click
functions that must occur at these layers. each button in Figure 1, and then click the Play button to
view the animations of segmentation and multiplexing.
At the network access layer, the TCP/IP protocol suite does
not specify which protocols to use when transmitting over a Segmentation can increase the efficiency of network
physical medium; it only describes the handoff from the communications. If part of the message fails to make it to
internet layer to the physical network protocols. OSI Layers 1 the destination, due to failure in the network or network
and 2 discuss the necessary procedures to access the media congestion, only the missing parts need to be
and the physical means to send data over a network. retransmitted.
OSI Layer 3, the network layer, maps directly to the TCP/IP The challenge to using segmentation and multiplexing to
Internet layer. This layer is used to describe protocols that transmit messages across a network is the level of complexity
address and route messages through an internetwork. that is added to the process. Imagine if you had to send a 100-
page letter, but each envelope would only hold one page. The
OSI Layer 4, the transport layer, maps directly to the TCP/IP process of addressing, labeling, sending, receiving, and
Transport layer. This layer describes general services and opening the entire 100 envelopes would be time-consuming for
functions that provide ordered and reliable delivery of data both the sender and the recipient.
between source and destination hosts.
In network communications, each segment of the message
The TCP/IP application layer includes a number of protocols must go through a similar process to ensure that it gets to the
that provide specific functionality to a variety of end user correct destination and can be reassembled into the content of
applications. The OSI model Layers 5, 6, and 7 are used as the original message, as shown in Figure 2.
references for application software developers and vendors to
produce products that operate on networks.
Both the TCP/IP and OSI models are commonly used when
referring to protocols at various layers. Because the OSI model
separates the data link layer from the physical layer, it is
commonly used when referring to these lower layers.
Protocol Data Units
The network and data link layers are responsible for delivering
the data from the source device to the destination device. As
shown in Figure 1, protocols at both layers contain a source
and destination address, but their addresses have different
purposes.
De-encapsulation
Destination IP address - The IP address of the Source IP address - The IP address of the sending
receiving device, FTP server: 192.168.1.9. device, the client computer PC1: 192.168.1.110.
Notice in the figure that the network portion of both the source Destination IP address - The IP address of the
IP address and destination IP address are on the same receiving device, the server, Web Server: 172.16.1.99.
network.
Notice in the figure that the network portion of the source IP
Role of the Data Link Layer Addresses address and destination IP address are on different networks.
When the sender and receiver of the IP packet are on the Role of the Data Link Layer Addresses
same network, the data link frame is sent directly to the
receiving device. On an Ethernet network, the data link When the sender and receiver of the IP packet are on different
addresses are known as Ethernet (Media Access Control) networks, the Ethernet data link frame cannot be sent directly
addresses. MAC addresses are physically embedded on the to the destination host because the host is not directly
Ethernet NIC. reachable in the network of the sender. The Ethernet frame
must be sent to another device known as the router or default
Source MAC address - This is the data link address, or gateway. In our example, the default gateway is R1. R1 has an
the Ethernet MAC address, of the device that sends the Ethernet data link address that is on the same network as PC1.
data link frame with the encapsulated IP packet. The This allows PC1 to reach the router directly.
MAC address of the Ethernet NIC of PC1 is AA-AA-AA-
AA-AA-AA, written in hexadecimal notation. Source MAC address - The Ethernet MAC address of
the sending device, PC1. The MAC address of the
Destination MAC address - When the receiving device Ethernet interface of PC1 is AA-AA-AA-AA-AA-AA.
is on the same network as the sending device, this is the
data link address of the receiving device. In this Destination MAC address - When the receiving device,
example, the destination MAC address is the MAC the destination IP address, is on a different network from
address of the FTP server: CC-CC-CC-CC-CC-CC, the sending device, the sending device uses the
written in hexadecimal notation. Ethernet MAC address of the default gateway or router.
In this example, the destination MAC address is the MAC
The frame with the encapsulated IP packet can now be address of R1's Ethernet interface, 11-11-11-11-11-11.
transmitted from PC1 directly to the FTP server. This is the interface that is attached to the same network
as PC1.
But what are the roles of the network layer address and the
data link layer address when a device is communicating with a
device on a remote network? In this example we have a client
Chapter 3: Network Protocols and
Communications Summary