unit 1 and 2 data network
unit 1 and 2 data network
(e.g., telephones).
7. Network Protocols
Protocols are crucial in defining how data is formatted, transmitted,
and received. Some important networking protocols include:
TCP/IP: The foundational suite of protocols for the internet,
where TCP ensures reliable delivery, and IP handles addressing
and routing.
HTTP/HTTPS: Protocols for transferring hypertext documents,
with HTTPS being a secure version.
FTP: File Transfer Protocol for transferring files over a network.
SMTP/POP3/IMAP: Protocols used for sending, receiving, and
storing email.
8. The OSI Model
The Open Systems Interconnection (OSI) model is a conceptual
framework used to understand network interactions in seven layers:
1. Physical Layer: Deals with the physical transmission of data.
2. Data Link Layer: Ensures error-free data transfer between
devices.
3. Network Layer: Handles routing and addressing (e.g., IP).
4. Transport Layer: Ensures reliable data delivery (e.g., TCP).
5. Session Layer: Manages sessions or connections.
6. Presentation Layer: Translates data into a usable format (e.g.,
encryption, compression).
7. Application Layer: Provides services and interfaces for end-users
(e.g., email, web browsing).
9. Networking Technologies and Innovations
Wi-Fi: Wireless local area networking technology that allows
devices to connect to the internet or each other without cables.
5G and Cellular Networks: The fifth generation of cellular
technology, providing faster speeds, lower latency, and more
efficient communication for mobile devices.
Cloud Computing: The delivery of computing resources (like
servers, storage, and software) over the internet, allowing users
to access data and services remotely.
Internet of Things (IoT): The network of everyday devices (from
thermostats to vehicles) that are connected to the internet to
exchange data and enable smart services.
Software-Defined Networking (SDN): A new approach to
networking that uses software to control and manage network
resources, offering more flexibility and scalability.
10. Security in Networking
As networks become more integrated into daily life, security is a
major concern. Key technologies and practices include:
Firewalls: Network security systems that monitor and control
incoming and outgoing traffic.
Encryption: Protecting data by converting it into unreadable
formats, ensuring privacy during transmission.
VPN (Virtual Private Network): A method for creating a secure,
encrypted connection over a less secure network like the internet.
Uses of Computer Networks
Computer networks have a wide range of applications across various
industries and personal use cases. Here are some of the primary uses
of computer networks:
1. Resource Sharing:
o File Sharing: Networks allow multiple users to access and
share files across devices and locations. This can include text
files, images, videos, and software.
o Printer and Peripheral Sharing: Multiple devices can share
Amazon, eBay, and Alibaba, where users can buy and sell
products and services.
o Banking and Online Payments: Secure networks enable
data only to the device that needs it, not all devices on the
network.
Hub:
o A hub is a simple network device that connects multiple
A host is any device that is connected to a network and can either send
or receive data over the network. Hosts typically refer to end devices
that are used directly by users.
Examples of Hosts:
o Personal Computers (PCs), laptops, and desktops.
sensors are hosts that can send and receive data in an IoT
network.
In a typical network, hosts are assigned unique identifiers such as IP
addresses (in IP-based networks) or MAC addresses (in Ethernet
networks) to distinguish them from one another.
Types of Computer Networks and Their Topologies
Computer networks can be categorized based on their geographical
span, purpose, and the technology used. In addition to their
classification, networks are also designed with specific topologies that
define the structure or layout of the network.
1. Types of Computer Networks
Disadvantages:
o Performance degrades as more devices are added.
the network.
o Centralized management makes it easier to isolate and
troubleshoot issues.
Disadvantages:
o If the central device fails, the entire network is disrupted.
loop.
o No collisions if data flows in one direction.
Disadvantages:
o A failure in one device or connection can disrupt the entire
network.
o Troubleshooting and network expansion can be challenging.
Disadvantages:
o Complex to install and maintain, requiring a large amount
of cabling.
o High cost due to the number of connections.
Disadvantages:
o If the backbone fails, communication between devices across
Disadvantages:
o More complex to design and implement.
unauthorized access.
link failures.
o Ensuring there are backup paths and systems to minimize
constraints.
accurately.
o Flow control: Manages the rate of data transmission to avoid
congestion.
o Connection establishment and teardown: Ensures that
unique IP address.
o Routing: Determines the best path for data to travel across
networks.
protect data.
to ensure availability.
Function: Automatically assigns IP addresses to devices when
they join the network.
Key Features:
o IP address management: Reduces the need for manual
configuration.
o Lease-based allocation: IP addresses are temporarily
assigned to devices.
communication.
o Authentication: Verifies the identity of the server (and
2. Connectionless Service
Reliable; guarantees
Unreliable; no guarantee of
Reliability delivery, error checking,
delivery or order.
and reordering.
No automatic error
Error Provides error detection
correction; requires higher
Control and correction.
layers for retries.
files across a P2P network. Files are split into small chunks
and shared among peers.
o HTTP (in case of centralized servers): Some file-sharing
applications use HTTP to download content from central
servers (e.g., downloading software via web browsers).
8. DNS (Domain Name System)
Network Application: DNS is a fundamental service that converts
human-readable domain names (e.g., www.example.com) into IP
addresses.
Application Protocols:
o DNS (Domain Name System) Protocol: DNS requests are
o Fiber optics
2. Data Transmission:
o The process of transferring data over a communication
channel. Data can be transmitted in different forms:
Analog Transmission: Continuous signals to represent
keyboard to computer).
Half-Duplex: Data can flow in both directions but not at
communication.
5. Error Detection and Correction:
o Data can become corrupted during transmission due to
noise, interference, or other issues. Error detection
techniques ensure data integrity.
o Methods:
detection.
Checksums: A value calculated from a data set and sent
PNG images).
Lossy Compression: Some data is lost to reduce size
printer.
2. Broadcast Communication:
o A single sender transmits data to multiple receivers
simultaneously.
o Common in networks like television broadcasting and
wireless communication.
o Example: Broadcasting a TV signal or sending a message to
all, receivers.
o Often used for group communication where the sender
between systems.
2. Sender:
o The device or computer that sends the message.
3. Receiver:
o The device or computer that receives the message.
4. Medium:
o The physical or logical pathway used to transmit the
carrier wave.
o Frequency Modulation (FM): Varying the frequency of the
carrier wave.
o Phase Modulation (PM): Varying the phase of the carrier
wave.
Simple to implement.
Less complex and can be efficient for small-scale, low-frequency
applications.
Often requires less bandwidth in certain types of systems (e.g., AM
radio).
Disadvantages:
carrier wave.
o Phase Shift Keying (PSK): Modulating the phase of the carrier
wave.
o Quadrature Amplitude Modulation (QAM): A combination of
Disadvantages:
Continuous (analog
Signal Type Discrete (binary signals)
signals)
Hybrid Systems
In modern communications, hybrid systems often combine both
analog and digital technologies. For example, audio in
telecommunication might be encoded digitally, but transmitted over
analog radio waves. Similarly, traditional television broadcasts have
transitioned to digital formats, combining the advantages of both.
1. Concept of Data
Data refers to the raw facts or information that needs to be
transmitted from a source to a destination. This could include text,
audio, video, sensor data, etc.
In digital communication, data is typically represented in binary
form (0s and 1s), which is then encoded into signals for
transmission.
In analog communication, data is represented as continuous
waveforms that vary in amplitude, frequency, or phase.
2. Concept of Signal
A signal is a time-varying representation of data that carries
information from a transmitter to a receiver.
Analog Signal: In analog communication, the signal is continuous
and can take on any value within a given range. It represents the
data as variations in amplitude, frequency, or phase over time.
Examples include voice signals or analog video signals.
Digital Signal: In digital communication, the signal represents
data in discrete form, often as binary values (1s and 0s). The
signal switches between discrete levels (such as voltage levels) to
represent different bits. A common example is a signal sent over
the internet or from a computer.
Key Terms:
signal.
o The bandwidth: the range of frequencies available for
transmission.
o The signal-to-noise ratio (SNR): the ratio of the signal strength
Units of Bit-rate:
The data rate increases with bandwidth (B): The wider the
bandwidth, the more data can be transmitted.
The signal-to-noise ratio (SNR) affects the maximum data rate.
Higher SNR allows for higher data rates since less noise interferes
with the signal.
The theorem shows that infinite data rates are impossible with
finite bandwidth or when noise levels are significant.
6. Example
Suppose a communication channel has a bandwidth of 1 MHz
(1,000,000 Hz) and a signal-to-noise ratio (SNR) of 30 dB (which
corresponds to a ratio of 1000).
Using the Shannon-Hartley theorem:
This means the maximum theoretical data rate for this channel is
about 9.97 Mbps.
Summary of Key Concepts:
Continuous, varying in
Discrete, representing bits via
Signal amplitude, frequency,
voltage levels
phase
Bit-rate Lower data rates for Higher data rates, more efficient
(Data Rate) analog systems for high-bandwidth applications
Analog Signals are continuous in time and can take any value
within a given range. These signals are usually represented as
sine waves or a combination of sine waves.
Data is represented by modulating an analog carrier wave (a
continuous signal) in one of the following ways:
o Amplitude Modulation (AM): The amplitude of the carrier
Advantages:
o Simple to implement and requires less processing power.
transmission.
Disadvantages:
o Noise Sensitivity: Analog signals degrade over distance due to
Advantages:
o Noise Immunity: Digital signals are less affected by noise
Data rate (also known as bit rate) refers to the amount of data that
can be transmitted over a communication channel in a given
period of time. It is typically measured in bits per second (bps), but
it can also be in kilobits per second (kbps), megabits per second
(Mbps), or gigabits per second (Gbps).
2. Bandwidth
Where:
CCC = Maximum data rate (in bps)
BBB = Bandwidth (in Hz)
SSS = Signal power
NNN = Noise power
SN\frac{S}{N}NS = Signal-to-noise ratio (SNR)
Example:
This means the theoretical maximum data rate is about 9.97 Mbps for
the given channel.
Asynchronous and Synchronous Transmission
1. Asynchronous Transmission
2. Synchronous Transmission
Asynchronous
Category Synchronous Transmission
Transmission
used in Ethernet.
Shielded Twisted Pair (STP): Has a metal shield around
prone to interference.
o Disadvantages: Bulkier, more expensive, and harder to install
compared to twisted pair cables.
Fiber Optic Cable:
o Description: Uses light to transmit data in the form of optical
cellular communication.
o Advantages: Wide coverage, can penetrate through various
obstacles.
o Disadvantages: Limited bandwidth, susceptible to interference
and noise.
Microwaves:
o Description: Electromagnetic waves with frequencies between
range.
o Disadvantages: Limited range and affected by physical
areas.
o Disadvantages: High cost, latency (delay), affected by weather
conditions like heavy rain.
Wi-Fi (Wireless Fidelity):
o Description: A technology that allows devices to communicate
installation.
o Disadvantages: Limited range, susceptible to interference
connectivity.
o Advantages: Low power consumption, easy pairing.
Installation Higher for fiber optics and Higher for satellite, requires
Cost coaxial line-of-sight for microwaves
Communication Satellites
Communication satellites are spacecraft designed to relay and amplify
radio, television, internet, and telephone signals across vast distances.
They play a crucial role in global communication systems, especially
for remote areas where terrestrial infrastructure is limited or
unavailable.
Basic Components of a Communication Satellite
weather monitoring.
o Disadvantages: High latency due to the long distance,
less expensive.
Examples: Used for communication, Earth observation, and
o
GLONASS).
o Disadvantages: Compromised balance between coverage area
and latency.
2. Packet Switching
3. Message Switching
o How it Works:
1. Signals are divided into discrete time intervals.
2. Each signal transmits in its assigned time slot.
3. The receiver collects and reassembles the data.
Advantages:
o More efficient than FDM for digital signals.
o No need for separate frequency bands for each signal.
Disadvantages:
o Requires synchronization between sender and receiver.
o If one signal is not ready, the time slot is wasted.
Multiple Access).
o How it Works: