20661 Data Communications
(Fall 2026)
Introduction
Sangman Moh
1.1 Data Communications
Definitions
The word data refers to information presented in whatever form is
agreed upon by the parties creating and using the data.
Data communications are the exchange of data between two devices
via some form of transmission medium such as a wire cable.
Four characteristics
Delivery
Accuracy
Timeliness
Jitter – variation in packet arrival time
2
Sangman Moh
1
Components
Five components of data communications
Message
Sender
Receiver
Transmission medium
Protocol: A protocol is a set of rules that govern data communications.
◘ Represents an agreement between the communicating devices.
3
Sangman Moh
Data Representation
Text
Unicode uses 32 bits to represent a symbol or character used in any
language in the world.
ASCII (American Standard Code for Information Interchange) is
constitutes the first 128 characters (using 7 bits) in Unicode.
◘ Extended ASCII is an 8-bit code.
Numbers
Images
An image is divided into pixels.
Audio
Video
4
Sangman Moh
2
Data Flow
5
Sangman Moh
1.2 Networks
Definition
A network is the interconnection of a set of devices (often referred to
as nodes or hosts) capable of communication.
◘ A device can be a host such as a large computer, desktop, laptop,
workstation, cellular phone, or security system.
◘ A device can also be a connecting device such as a router, a switch, or a
modem.
Topics
Network criteria: performance, reliability, security
Physical structures: type of connection, physical topology
6
Sangman Moh
3
Types of Connections
7
Sangman Moh
8
Sangman Moh
Categories of Topology
4
A Fully Connected Mesh Topology (5 Stations)
9
Sangman Moh
A Star Topology (4 Stations)
10
Sangman Moh
5
A Bus Topology (3 Stations)
11
Sangman Moh
A Ring Topology (6 Stations)
12
Sangman Moh
6
1.3 Network Types
Local area network (LAN)
A LAN connects some hosts in a single office, building, or campus.
◘ A LAN can be as simple as two PCs and a printer in someone’s home
office, or it can extend throughout a company and include audio and
video devices.
Each host in a LAN has an identifier, an address, that uniquely
defines the host in the LAN.
◘ IP address (IP: Internet Protocol)
A packet sent by a host to another host carries both the source host’s
and the destination host’s addresses.
13
Sangman Moh
An Isolated LAN in the Past and Today
14
Sangman Moh
7
Network Types
Wide area network (WAN)
A WAN is also a interconnection of devices capable of communication.
Some differences between a LAN and a WAN
◘ A LAN is normally limited in size.
◘ A WAN has a wider geographical span, spanning a town, a state, a
country, or even the world.
◘ A LAN interconnects hosts.
◘ A WAN interconnects connecting devices such as switches, routers, or
modems.
◘ A LAN is normally privately owned by the organization that uses it.
◘ A WAN is normally created and run by communication companies and
leased by an organization that uses it.
15
Sangman Moh
16
Sangman Moh
A Point-to-Point WAN
8
A Switched WAN
17
Sangman Moh
An Internetwork Made of Two LANs and one WAN
18
Sangman Moh
9
A Heterogeneous Network Made of WANs and LANs
19
Sangman Moh
The Internet
Definitions
An internet is two or more networks that can communicate with each
other.
The Internet, the most notable internet, is a collaboration of millions
of interconnected networks.
Applications and impacts
The Internet has revolutionized many aspects of our daily lives.
It has affected the way we do business as well as the way we spend our
leisure time.
The Internet is a communication system that has brought a wealth of
information to our fingertips and organized it for our use.
20
Sangman Moh
10
The Internet Today
A place where many
networks interconnect
to exchange traffic
21
Sangman Moh
Accessing the Internet
The Internet today is an internetwork that allows any user
to become part of it.
The user needs to be physically connected to an Internet service
provider (ISP).
The physical connection is normally done through a point-to-point
WAN.
Accessing the Internet
Using telephone networks
Using cable networks
Using wireless networks
Direct connection to the Internet
22
Sangman Moh
11
Accessing the Internet
Using telephone networks
Today most residences and small businesses have telephone service.
◘ They are connected to a telephone network.
◘ Most telephone networks have connected themselves to the Internet.
To connect to the Internet, it needs to change the voice line between
the residence or business and the telephone center to a point-to-point WAN.
Dial-up service (slow)
A modem converts data to voice to the telephone line.
When the line is used for an Internet connection, it cannot be used for
a telephone (voice) connection.
DSL service (fast)
Digital subscriber line (DSL) service allows the line to be used
simultaneously for voice and data communications.
23
Sangman Moh
Accessing the Internet
Using cable networks
More and more residents over the last two decades have begun using
cable TV services (instead of antennas to receive TV broadcasting).
The cable companies have been upgrading their cable networks and
connecting to the Internet.
A residence or a small business can be connected to the Internet by
using this service.
Using wireless networks
Wireless connectivity has recently become increasingly popular.
With the growing wireless WAN access, a household or a small
business can be connected to the Internet through a wireless WAN.
24
Sangman Moh
12
Accessing the Internet
Direct connection to the Internet
A large organization or a large corporation can itself become a local
ISP and be connected to the Internet.
◘ The organization or the corporation leases a high-speed WAN from a
carrier provider and connects itself to a regional ISP.
A large university (with several campuses) can create an internetwork
and then connect the internetwork to the Internet.
25
Sangman Moh
1.4 Protocol Layering
A protocol defines the rules that both the sender and
receiver and all intermediate devices need to follow.
When communication is simple, we may need only one
simple protocol.
When communication is complex, we need a protocol at
each layer, or protocol layering.
26
Sangman Moh
13
A Single-Layer Protocol
Communication between Maria and Ann is so simple that it
can occur in only one layer.
27
Sangman Moh
A Three-Layer Protocol
Postal carrier facility
28
Sangman Moh
14
Two Principles of Protocol Layering
If we want bidirectional communication, we need to make
each layer to perform two opposite tasks (one in each
direction).
For example, see the tasks at each layer in the previous slides.
◘ Listen/Talk, Encrypt/Decrypt, Send mail/Receive mail
The two objects under each layer at both sites should be
identical.
For example, see the objects under each layer in the previous slides.
◘ Plaintext, Ciphertext, Mail
29
Sangman Moh
Logical Connections
Logical connection between each layer
Layer-to-layer communication
Maria and Ann can think that there is a logical (imaginary)
connection at each layer.
◘ Through the logical connection, they can send the object created from
that layer.
The concept of logical connection will help us better
understand the task of layering.
30
Sangman Moh
15
Logical Connection between Peer Layers
31
Sangman Moh
1.5 TCP/IP Protocol Suite
TCP/IP (Transmission Control Protocol / Internet Protocol)
This is the protocol suite (a set of protocols organized in different layers)
used in the Internet today.
It is a hierarchical protocol made up of interactive modules,
each of which provides a specific functionality.
Each upper-level protocol is supported by the services provided by
one or more lower-level protocols.
32
Sangman Moh
16
Layers in the TCP/IP Protocol Suite
33
Sangman Moh
Communication through an internet
34
Sangman Moh
17
Logical Connections between Layers of TCP/IP
Logical connections
Sangman Moh
35
Identical Objects in the TCP/IP Protocol Suite
Identical objects (messages)
Identical objects (segment or user datagram)
Identical objects (datagram)
Identical objects (datagram)
Identical objects (frame)
Identical objects (frame)
Identical objects (bits)
Identical objects (bits)
36
Sangman Moh
18
Physical Layer
The physical layer is responsible for carrying individual bits
in a frame across the link.
37
Sangman Moh
Data-Link Layer
The data link layer is responsible for moving frames from a
node to the next.
38
Sangman Moh
19
Network Layer
The network layer is responsible for the delivery of packets
from the source host to the destination host.
By creating a (logical) connection between the source and the
destination
Sangman Moh
39
Transport Layer
The transport layer is responsible for giving services to the
application layer:
To get a message from an application program running on the source
host and deliver it to the corresponding application program running
on the destination host.
From application layer
To application layer
40
Sangman Moh
20
Application Layer
Communication at the application layer is between two
processes (two programs running at this layer).
To communicate, a process sends a request to the other process and
receives a response.
Process-to-process communication is the duty of the application layer.
41
Sangman Moh
1.6 The OSI Model
An ISO standard that covers all aspects of network
communications is the Open Systems Interconnection (OSI)
model.
It was first introduced in the late 1970s.
Established in 1947, the International Organization for Standardization
(ISO) is a multinational body dedicated to worldwide agreement on
international standards.
ISO is the organization.
OSI is the model.
42
Sangman Moh
21
The OSI model
The application layer in the suite is usually considered to
be the combination of three layers in the OSI model.
43
Sangman Moh
TCP/IP and OSI Model
44
Sangman Moh
22