Data Communication and Computer Networks
1. Data Communication
Data communication refers to the exchange of data between two devices via some form of
transmission medium.
● Components of a Data Communication System:
○ Sender: The device that sends the data (e.g., computer, phone).
○ Receiver: The device that receives the data (e.g., computer, phone).
○ Message: The information or data to be communicated.
○ Medium: The physical path over which the message travels (e.g., cables, air).
○ Protocol: A set of rules that govern data communication, ensuring proper
understanding and exchange between devices.
● Simplex, Half Duplex, and Duplex Modes of Communication:
○ Simplex: Communication is unidirectional, like a one-way street. Only one device can
transmit, and the other can only receive (e.g., traditional radio broadcast, keyboard
to computer).
○ Half Duplex: Communication is bidirectional, but not simultaneously. Devices can
transmit and receive, but only one at a time (e.g., walkie-talkie).
○ Full Duplex: Communication is bidirectional and simultaneous. Both devices can
transmit and receive at the same time (e.g., telephone conversation).
● Analog and Digital Signals:
○ Analog Signal: Continuous wave form that varies smoothly over time. Represents
data as continuous variations in amplitude, frequency, or phase (e.g., human voice,
traditional radio waves).
○ Digital Signal: Discrete, non-continuous signal that represents data as a sequence
of discrete values (typically binary 0s and 1s). More robust to noise.
● Noiseless and Noisy Channels:
○ Noiseless Channel: An ideal channel where no external interference or distortion
affects the signal during transmission. Theoretical concept.
○ Noisy Channel: A real-world channel where unwanted electrical or electromagnetic
energy (noise) interferes with the signal, potentially corrupting data.
● Bandwidth, Throughput, and Latency:
○ Bandwidth: The range of frequencies a channel can carry, often used synonymously
with data rate (maximum bits per second a channel can transmit). Measured in Hertz
(Hz) or bits per second (bps).
○ Throughput: The actual rate at which data is successfully transferred over a
communication channel per unit of time. It's often less than bandwidth due to factors
like network congestion, processing delays, and retransmissions.
○ Latency (Delay): The time delay between the moment a packet is sent from the
source and the moment it is received at the destination. Comprises propagation
delay, transmission delay, queueing delay, and processing delay.
● Digital and Analog Transmission:
○ Digital Transmission: Transmitting digital signals. Requires digital-to-analog
conversion for analog channels and vice-versa if the source is analog. More resistant
to noise.
○ Analog Transmission: Transmitting analog signals. Can directly transmit analog
data, but digital data needs to be converted to analog form (modulation).
● Data Encoding and Modulation Techniques:
○ Data Encoding (Digital-to-Digital Conversion): Converting digital data into digital
signals.
■ Line Coding: Converting binary data into a digital signal (e.g., NRZ, RZ,
Manchester, Differential Manchester).
■ Block Coding: Adding redundancy for error detection.
■ Scrambling: Preventing long sequences of zeros or ones.
○ Modulation (Digital-to-Analog Conversion): Converting digital data into analog
signals for transmission over analog channels.
■ ASK (Amplitude Shift Keying): Amplitude of carrier wave varies with digital
data.
■ FSK (Frequency Shift Keying): Frequency of carrier wave varies with digital
data.
■ PSK (Phase Shift Keying): Phase of carrier wave varies with digital data.
■ QAM (Quadrature Amplitude Modulation): Combines ASK and PSK for higher
data rates.
○ Demodulation (Analog-to-Digital Conversion): Reversing the modulation process
at the receiver.
● Broadband and Baseband Transmission:
○ Broadband Transmission: Uses analog signals and frequency-division multiplexing
(FDM) to transmit multiple signals simultaneously over a single medium. Each signal
occupies a different frequency band (e.g., cable TV, ADSL).
○ Baseband Transmission: Uses digital signals and sends signals directly over the
medium without modulation. Typically uses time-division multiplexing (TDM) or no
multiplexing. The entire bandwidth of the medium is used for a single signal at a time
(e.g., Ethernet).
● Multiplexing: A technique that allows multiple signals to share a single communication
channel or physical medium.
○ FDM (Frequency Division Multiplexing): Divides the bandwidth of a channel into
multiple frequency bands, each carrying a different signal (analog signals).
○ TDM (Time Division Multiplexing): Divides the time available on a channel into
multiple time slots, each allocated to a different signal (digital signals).
○ WDM (Wavelength Division Multiplexing): A form of FDM used with optical fibers,
where different wavelengths (colors) of light carry different signals.
○ CDM (Code Division Multiplexing): Each user is assigned a unique code, and all
users can transmit simultaneously over the same frequency. Used in CDMA.
● Transmission Media: The physical path between transmitter and receiver.
○ Guided Media (Wired): Signals are confined to a physical pathway.
■ Twisted-Pair Cable: Two insulated copper wires twisted to reduce
electromagnetic interference (UTP, STP). Used in LANs, telephone lines.
■ Coaxial Cable: Central conductor surrounded by an insulating layer, braided
shield, and outer jacket. Better shielding than twisted-pair. Used in cable TV,
older Ethernet.
■ Fiber Optic Cable: Transmits light pulses through thin strands of glass or plastic.
Offers very high bandwidth, low attenuation, immunity to EMI. Used in backbone
networks, long-distance communication.
○ Unguided Media (Wireless): Signals propagate through free space.
■ Radio Waves: Omnidirectional, used for broadcasting.
■ Microwaves: Unidirectional, line-of-sight propagation, used for point-to-point
communication, satellite communication.
■ Infrared: Short-range, line-of-sight, used in remote controls, IrDA.
● Transmission Errors: Undesirable changes to the original signal during transmission.
○ Single-bit error: Only one bit in a data unit is changed.
○ Burst error: Two or more bits in a data unit are changed. More common and harder
to detect/correct.
○ Causes: Noise (thermal, impulse), attenuation, distortion.
● Error Handling Mechanisms: Techniques to detect and/or correct errors during
transmission.
○ Error Detection:
■ Parity Check: Adds a parity bit to ensure an even or odd number of 1s. Simple,
but can't detect burst errors.
■ CRC (Cyclic Redundancy Check): Uses polynomial division to generate a
checksum. Highly effective for detecting burst errors.
■ Checksum: Adds all data segments and takes the complement. Used primarily in
IP and UDP.
○ Error Correction:
■ Retransmission (ARQ - Automatic Repeat Request): The receiver detects an
error and requests the sender to retransmit the corrupted data.
■ Stop-and-Wait ARQ: Sends one frame, waits for ACK. Inefficient for high
latency.
■ Go-Back-N ARQ: Sends multiple frames before waiting for ACKs. If an error
occurs, sender retransmits all frames starting from the corrupted one.
■ Selective Repeat ARQ: Sends multiple frames. Only retransmits specific
corrupted frames. More efficient but complex.
■ Forward Error Correction (FEC): Adds redundant information to the data so
that the receiver can correct errors without retransmission (e.g., Hamming
codes).
2. Computer Networks
A computer network is a collection of interconnected computing devices that can exchange
data and share resources.
● Network Topologies: The physical or logical arrangement of connected devices in a
network.
○ Bus Topology: All devices share a single common cable. Simple, but prone to
collisions and single point of failure.
○ Star Topology: All devices connect to a central hub or switch. Easy to manage, fault
tolerant (if a device fails, others are unaffected), but central device is a single point of
failure.
○ Ring Topology: Devices are connected in a closed loop, with each device connected
to exactly two others. Data travels in one direction. Fault isolation is difficult.
○ Mesh Topology: Every device is connected to every other device. Highly redundant
and reliable but complex and expensive to implement.
○ Tree Topology: A hierarchy of star networks connected by a bus.
○ Hybrid Topology: Combination of two or more basic topologies.
● Local Area Networks (LANs): Networks confined to a small geographical area, such as
a home, office building, or campus. Typically owned by a single organization. High data
rates. (e.g., Ethernet, Wi-Fi).
● Metropolitan Area Networks (MANs): Networks spanning a city or a large campus.
Larger than LANs but smaller than WANs. Often connect multiple LANs. (e.g., cable TV
networks covering a city).
● Wide Area Networks (WANs): Networks that cover a large geographical area, often
spanning countries or continents. Connects multiple LANs and MANs. Typically uses
public telecommunication lines (e.g., the Internet, corporate global networks).
● Wireless Networks: Networks that use radio waves, microwaves, or infrared signals to
transmit data instead of physical cables.
○ WLAN (Wireless LAN): (e.g., Wi-Fi based on IEEE 802.11 standards).
○ WPAN (Wireless Personal Area Network): (e.g., Bluetooth, Zigbee).
○ WWAN (Wireless WAN): (e.g., cellular networks like 3G, 4G, 5G).
● Internet: A global system of interconnected computer networks that uses the Internet
Protocol Suite (TCP/IP) to communicate between networks and devices. It's a vast public
WAN.
3. Network Models
Network models provide a structured approach to understanding and designing network
communication. They divide the complex task of networking into smaller, manageable layers.
● Layered Architecture:
○ Breaks down the communication process into distinct layers, each responsible for a
specific set of functions.
○ Each layer provides services to the layer above it and uses services from the layer
below it.
○ Promotes modularity, interoperability, and easier troubleshooting.
● OSI Reference Model (Open Systems Interconnection):
○ A conceptual framework for understanding how different network protocols work
together.
○ Has 7 layers:
1. Physical Layer: Deals with the physical transmission of raw bit streams over the
medium (cables, connectors, voltage levels, data rates).
2. Data Link Layer: Provides reliable data transfer between adjacent network
nodes. Handles framing, physical addressing (MAC), error detection, and flow
control.
3. Network Layer: Responsible for logical addressing (IP addresses), routing data
packets across different networks, and determining the best path.
4. Transport Layer: Provides end-to-end communication between processes on
different hosts. Handles segmentation, reassembly, flow control, error control,
and connection management.
5. Session Layer: Establishes, manages, and terminates communication sessions
between applications. Handles dialog control and synchronization.
6. Presentation Layer: Deals with data formats and encryption/decryption.
Ensures data is presented in a format understandable by the application layer.
7. Application Layer: Provides network services directly to end-user applications
(e.g., HTTP, FTP, SMTP).
● TCP/IP Protocol Suite:
○ The de facto standard for the Internet. It's a pragmatic, functional model.
○ Has 4 or 5 layers (often depicted as 4):
1. Network Access Layer (or Link Layer): Combines OSI Physical and Data Link
layers. Handles hardware addressing, physical transmission.
2. Internet Layer (or Network Layer): Corresponds to OSI Network Layer. Handles
logical addressing (IP), routing, and fragmentation. (Core protocol: IP).
3. Transport Layer: Corresponds to OSI Transport Layer. Provides end-to-end
communication between processes. (Protocols: TCP, UDP, SCTP).
4. Application Layer: Combines OSI Session, Presentation, and Application layers.
Provides services to applications. (Protocols: HTTP, FTP, SMTP, DNS, Telnet).
● Physical, Logical, Port, and Specific Addresses:
○ Physical Address (MAC Address): A unique hardware address assigned to a
network interface card (NIC) by the manufacturer. Used at the Data Link Layer for
local delivery within a LAN (e.g., 00:1A:2B:3C:4D:5E).
○ Logical Address (IP Address): A software address assigned to a device on a
network. Used at the Network Layer for global addressing and routing across
different networks (e.g., [Link]).
○ Port Address (Port Number): A 16-bit number used at the Transport Layer to
identify a specific application or process running on a host (e.g., HTTP uses port 80,
FTP uses port 21).
○ Specific Address (Application-Specific Address): Addresses used by specific
applications (e.g., email address, URL, domain name). These are resolved to port and
logical addresses by higher-layer protocols.
● Switching Techniques: Methods used to connect and transfer data between devices in
a network.
○ Circuit Switching: A dedicated communication path (circuit) is established between
two devices before data transfer begins. The circuit remains active for the duration of
the communication and is released afterward.
■ Pros: Guaranteed bandwidth, low latency, reliable.
■ Cons: Inefficient use of bandwidth, call setup delay, rigid.
■ Examples: Traditional telephone networks.
○ Packet Switching: Data is divided into small, fixed-size units called packets. Each
packet is transmitted independently over the network, finding its own path. Packets
may arrive out of order and need reassembly.
■ Pros: Efficient bandwidth utilization, fault tolerant (packets can reroute), flexible.
■ Cons: Variable delay, potential for packet loss, requires reassembly.
■ Examples: The Internet (IP).
○ Message Switching: Data is sent as a complete message. The message is stored at
intermediate nodes (store-and-forward) before being forwarded to the next node.
■ Pros: Efficient bandwidth use (no dedicated circuit), handles large messages.
■ Cons: High latency, requires large storage at intermediate nodes, not real-time.
■ Examples: Early telegraph networks, email (conceptually).
4. Functions of OSI and TCP/IP Layers
This section elaborates on key functions performed at various layers, primarily focusing on
Data Link, Network, and Transport layers.
● Framing (Data Link Layer): The process of dividing a stream of bits into manageable
blocks called frames. This is essential for error detection, flow control, and addressing at
the data link layer.
○ Methods: Character count, Flag bytes with byte stuffing, Starting and ending flags
with bit stuffing, Physical layer coding2 violations.
● Error Detection and Correction (Data Link and Transport Layers):
○ Error Detection: Identifying if a frame or segment has been corrupted during
transmission (e.g., CRC, Checksum, Parity Check).
○ Error Correction: Mechanisms to recover from errors (e.g., ARQ for retransmission,
FEC for self-correction).
● Flow and Error Control (Data Link and Transport Layers):
○ Flow Control: Regulating the rate of data transmission between sender and receiver
to prevent a fast sender from overwhelming a slow receiver.
■ Stop-and-Wait: Sends one frame, waits for ACK.
■ Sliding Window Protocol: Allows sender to transmit multiple frames before
receiving ACKs.
○ Error Control: Ensuring reliable delivery of frames/segments, including detection of
corrupted frames, loss of frames, and duplicate frames (e.g., retransmission through
ARQ).
● Sliding Window Protocol (Data Link and Transport Layers):
○ A fundamental flow and error control mechanism.
○ Allows the sender to transmit multiple frames without waiting for an acknowledgment
for each frame, within a defined "window size."
○ The window slides as frames are acknowledged.
○ Supports Go-Back-N ARQ and Selective Repeat ARQ.
● HDLC (High-level Data Link Control) (Data Link Layer):
○ A bit-oriented protocol for point-to-point and multipoint communication.
○ Supports various modes (Normal Response Mode, Asynchronous Balanced Mode).
○ Provides framing, error control (CRC), and flow control (sliding window).
● Multiple Access Protocols (Data Link Layer - MAC Sublayer):
○ Govern how multiple stations share a single broadcast channel without interfering
with each other.
○ Random Access Protocols: Stations can transmit whenever they want, but collision
resolution is needed.
■ ALOHA: Simple, but high collision rate.
■ Pure ALOHA: Transmit whenever, retransmit on collision.
■ Slotted ALOHA: Transmit only at the beginning of time slots.
■ CSMA (Carrier Sense Multiple Access): Listen before talking.
■ 1-persistent CSMA: Transmit immediately if idle, otherwise wait and try
again.
■ Non-persistent CSMA: Listen, if busy, wait random time and try again.
■ p-persistent CSMA: For slotted channels, transmit with probability 'p' if idle.
■ CSMA/CD (Collision Detection): Listen, transmit, and if a collision is detected,
stop transmission, jam the channel, and retransmit after a random backoff time.
Used in wired Ethernet.
■ CSMA/CA (Collision Avoidance): Listen, and if idle, wait for a random time
(DIFS) before transmitting. Uses ACK to confirm successful reception. Uses
RTS/CTS (Request To Send/Clear To Send) to reserve the channel, especially for
hidden terminal problems. Used in wireless networks (Wi-Fi).
○ Controlled Access Protocols: Stations consult each other or a central controller to
determine who has the right to send.
■ Reservation: Stations reserve slots for transmission in advance.
■ Polling: A central controller asks each station if it has data to send.
■ Token Passing: A special packet called a "token" circulates among stations. Only
the station holding the token can transmit.
○ Channelization Protocols (Multiplexing as Multiple Access): Divide the
bandwidth or time.
■ FDMA (Frequency Division Multiple Access): Divides bandwidth into
frequency bands.
■ CDMA (Code Division Multiple Access): Uses unique codes to allow
simultaneous transmission.
■ TDMA (Time Division Multiple Access): Divides time into slots.
● Network Devices: Hardware components used to connect and manage networks.
○ Hub: A basic physical layer device that connects multiple devices and broadcasts all
incoming data to all connected ports (creates a single collision domain). Obsolete.
○ Switch: A data link layer device that learns MAC addresses and forwards frames only
to the intended destination port, reducing collisions and improving efficiency.
○ Router: A network layer device that connects different networks (e.g., LANs to
WANs) and forwards packets between them based on IP addresses using routing
tables.
○ Repeater: A physical layer device that amplifies and regenerates signals to extend
network segment length.
○ Bridge: A data link layer device that connects two LAN segments and filters traffic
based on MAC addresses.
○ Gateway: Operates at multiple layers (typically application layer) and translates
protocols between dissimilar networks.
○ Modem (Modulator-Demodulator): Converts digital signals to analog for
transmission over analog lines and vice-versa.
● Backbone Networks: High-capacity communication lines that connect multiple smaller
networks (LANs, WANs) and provide a primary path for data traffic. Often use high-speed
technologies like fiber optics.
● Virtual LANs (VLANs):
○ A logical grouping of network devices (ports) that can communicate as if they are on
the same physical LAN segment, even if they are connected to different physical
switches or segments.
○ Improves security, network performance, and administrative flexibility by segmenting
broadcast domains.
● IPv4 Structure and Address Space:
○ IPv4 (Internet Protocol version 4): The most widely used version of IP.
○ Address Format: 32-bit address, typically represented in dotted decimal notation
(e.g., [Link]).
○ Address Space: 232 unique addresses.
○ Header: Contains source IP, destination IP, time-to-live (TTL), protocol number,
checksum, etc.
● Classful and Classless Addressing:
○ Classful Addressing (Obsolete but foundational): Divides the IP address space
into predefined classes (A, B, C, D, E) based on the first few bits of the address,
determining the network and host portions.
■ Class A: Large networks, few networks, many hosts per network.
■ Class B: Medium networks, more networks, fewer hosts than A.
■ Class C: Small networks, many networks, few hosts per network.
■ Class D: Multicast addresses.
■ Class E: Reserved for experimentation.
○ Classless Addressing (CIDR - Classless Inter-Domain Routing): Replaced
classful addressing to overcome address depletion and improve routing efficiency.
Uses a variable-length subnet mask (prefix length) to define the network and host
portions (/xx notation, e.g., [Link]/24). Allows for more flexible allocation of IP
addresses.
● Datagram, Fragmentation, and Checksum (IPv4):
○ Datagram: The basic unit of data transfer at the Network Layer (IP packet). Contains
source/destination IP, data, and header information.
○ Fragmentation: When an IP datagram needs to traverse a network with a smaller
Maximum Transmission Unit (MTU) than the datagram's size, it is broken down into
smaller fragments. Reassembly occurs at the destination.
○ Checksum: A 16-bit field in the IPv4 header used for error detection of the header
itself.
● IPv6 Packet Format:
○ IPv6 (Internet Protocol version 6): Next generation of IP, designed to address the
limitations of IPv4, particularly address depletion.
○ Address Format: 128-bit address, represented in hexadecimal (e.g.,
2001:0db8:85a3:0000:0000:8a2e:0370:7334).
○ Larger Address Space: 2128 addresses.
○ Simplified Header: More efficient processing, fixed header size, fewer fields than
IPv4.
○ No Fragmentation at Routers: Fragmentation is handled only by the source host.
○ Improved Security: IPsec is built-in.
○ Stateless Autoconfiguration: Easier network setup.
● Mapping Logical to Physical Address (ARP):
○ ARP (Address Resolution Protocol): A protocol used to resolve an IP address
(logical) to a MAC address (physical) within a local area network.
○ When a device wants to send an IP packet to another device on the same LAN, it uses
ARP to find the destination's MAC address given its IP address.
○ ARP Request: Broadcasts a request to all devices on the LAN asking for the MAC
address corresponding to a specific IP.
○ ARP Reply: The device with the matching IP address sends back its MAC address.
● Direct and Indirect Network Layer Delivery:
○ Direct Delivery: When the source and destination hosts are on the same network
(same network ID in their IP addresses). The IP datagram is delivered directly to the
destination using its MAC address, resolved via ARP.
○ Indirect Delivery: When the source and destination hosts are on different networks.
The IP datagram is sent to a router (default gateway), which then forwards it towards
the destination through other routers until it reaches the destination network.
● Routing Algorithms:
○ Algorithms used by routers to determine the best path for forwarding data packets
from source to destination across a network.
○ Static Routing: Manual configuration of routing tables by administrators. Simple for
small networks, but inflexible and doesn't adapt to network changes.
○ Dynamic Routing: Routers automatically update their routing tables based on
network topology changes.
■ Distance-Vector Routing (e.g., RIP): Routers exchange their entire routing
tables with their directly connected neighbors. Believes what its neighbors tell it.
Prone to "count-to-infinity" problem.
■ Link-State Routing (e.g., OSPF, IS-IS): Each router builds a complete map of
the network by exchanging link-state advertisements (LSAs) with all other
routers. Computes the shortest path using algorithms like Dijkstra's. More
complex but converges faster and is less prone to routing loops.
■ Path-Vector Routing (e.g., BGP): Used for inter-domain routing between
different autonomous systems (ASes) on the Internet. Exchanges entire paths
(sequences of ASes) to reach destinations.
● TCP, UDP, and SCTP Protocols (Transport Layer):
○ TCP (Transmission Control Protocol):
■ Connection-Oriented: Establishes a connection (three-way handshake) before
data transfer and tears it down afterwards.
■ Reliable: Guarantees delivery of data, retransmits lost segments, provides
in-order delivery, uses acknowledgments and sequence numbers.
■ Flow Control: Prevents sender from overwhelming receiver (sliding window).
■ Congestion Control: Manages network congestion to prevent overwhelming the
network.
■ Full-duplex: Data can flow in both directions simultaneously.
■ Used for: Web Browse (HTTP), email (SMTP, POP, IMAP), file transfer (FTP),
remote login (Telnet).
○ UDP (User Datagram Protocol):
■ Connectionless: No connection setup/teardown.
■ Unreliable: No guarantee of delivery, no retransmission, no in-order delivery.
"Best-effort" delivery.
■ No Flow Control, No Congestion Control.
■ Minimal Overhead: Faster due to less processing.
■ Used for: DNS, VoIP, video streaming, online gaming (where speed is more
critical than guaranteed delivery).
○ SCTP (Stream Control Transmission Protocol):
■ A relatively newer transport layer protocol designed for some applications that
need reliability and message-oriented communication.
■ Message-Oriented: Preserves message boundaries (unlike TCP which is
stream-oriented).
■ Multi-homing: A single SCTP endpoint can have multiple IP addresses,
enhancing fault tolerance.
■ Multi-streaming: Allows multiple independent data streams within a single
association, avoiding head-of-line blocking.
■ Reliable and Congestion Controlled: Similar to TCP in these aspects.
■ Used for: Signaling in VoIP (e.g., SS7 over IP), Diameter protocol.
● Flow Control, Error Control, and Congestion Control in TCP and SCTP:
○ Flow Control (TCP/SCTP): Achieved using a sliding window mechanism. The
receiver advertises a window size to the sender, indicating how much buffer space it
has available. The sender adjusts its transmission rate to not exceed this advertised
window.
○ Error Control (TCP/SCTP): Achieved through:
■ Checksum: Detects corrupted segments.
■ Sequence Numbers: Orders segments and detects duplicates.
■ Acknowledgements (ACKs): Confirms receipt of segments.
■ Retransmission Timers: If an ACK is not received within a timeout, the segment
is retransmitted.
■ Fast Retransmit/Fast Recovery: Heuristics to quickly retransmit lost segments
without waiting for a timeout.
○ Congestion Control (TCP/SCTP): Mechanisms to prevent the network from
becoming overloaded.
■ Additive Increase, Multiplicative Decrease (AIMD): Increases congestion
window slowly during no congestion and reduces it drastically on congestion.
■ Slow Start: Gradually increases the transmission rate at the beginning of a
connection to avoid overwhelming the network.
■ Congestion Avoidance: After slow start, uses AIMD to probe for available
bandwidth.
■ Fast Retransmit: Triggers retransmission without waiting for a timeout upon
receiving duplicate ACKs.
■ Fast Recovery: Reduces the congestion window and retransmits quickly.
5. World Wide Web (WWW)
The WWW is a global information system that users can access via the Internet. It consists of
interconnected documents and other web resources.
● Uniform Resource Locator (URL):
○ The address of a unique resource on the Internet.
○ Format: protocol://hostname[:port]/path/filename[?query][#fragment]
○ Components:
■ Protocol (Scheme): Specifies how the resource is accessed (e.g., [Link] [Link]
[Link]
■ Hostname: The domain name or IP address of the server (e.g.,
[Link]).
■ Port: Optional, specifies the port number on the server (e.g., :8080).
■ Path/Filename: The location of the resource on the server.
■ Query: Optional parameters passed to the server.
■ Fragment: Optional, points to a specific part within the resource.
● Domain Name Service (DNS):
○ A hierarchical and decentralized naming system for computers, services, or any
resource connected to the Internet or a private network.
○ Translates3 human-readable domain names (e.g., [Link]) into
machine-readable IP addresses (e.g., [Link]).
● Resolution - Mapping Names to Addresses and Addresses to Names:
○ Forward DNS Resolution (Name to Address): The most common type. A client
queries a DNS server with a domain name, and the DNS server returns the
corresponding IP address.
○ Reverse DNS Resolution (Address to Name): Less common. A client queries a DNS
server with an IP address, and the DNS server returns the corresponding domain
name (requires PTR records in DNS).
● Electronic Mail Architecture, SMTP, POP, and IMAP:
○ Electronic Mail Architecture: Involves several components:
■ MUA (Mail User Agent): The email client software (e.g., Outlook, Gmail web
interface).
■ MTA (Mail Transfer Agent): The email server that sends and receives emails
(e.g., Postfix, Sendmail).
■ MDA (Mail Delivery Agent): Delivers email from the MTA to the recipient's
mailbox (e.g., Dovecot, Procmail).
○ SMTP (Simple Mail Transfer Protocol):
■ Used for sending email from an MUA to an MTA and between MTAs.
■ Primarily used for sending emails.
■ Port 25 (unencrypted), 587 (submission with TLS), 465 (SMTPS - deprecated).
○ POP (Post Office Protocol):
■ Used by MUAs to retrieve emails from an MTA.
■ POP3 (version 3): Downloads emails from the server to the client and typically
deletes them from the server.
■ Port 110 (unencrypted), 995 (POPS with SSL/TLS).
○ IMAP (Internet Message Access Protocol):
■ Used by MUAs to retrieve emails from an MTA.
■ IMAP4 (version 4): Allows clients to access and manage emails directly on the
server. Emails remain on the server unless explicitly deleted. More flexible,
supports multiple clients.
■ Port 143 (unencrypted), 993 (IMAPS with SSL/TLS).
● TELNET and FTP:
○ TELNET (Telecommunication Network):
■ An application layer protocol used to establish a command-line interface (CLI)
session with a remote host.
■ Provides text-based, unencrypted communication.
■ Considered insecure due to clear-text password transmission. Replaced by SSH.
■ Port 23.
○ FTP (File Transfer Protocol):
■ An application layer protocol used for transferring files between a client and a
server.
■ Uses two channels:
■ Control Channel: For commands and responses (Port 21).
■ Data Channel: For actual file transfer (Port 20 for active mode, dynamic for
passive mode).
■ Can be active or passive mode.
■ Transmits data in clear text, so FTPS (FTP over SSL/TLS) or SFTP (SSH File
Transfer Protocol) are preferred for security.
6. Network Security
Network security encompasses the policies and practices adopted to prevent and monitor
unauthorized access, misuse, modification, or denial of a computer network and
network-accessible resources.
● Malwares (Malicious Software):
○ Software designed to disrupt, damage, or gain unauthorized access to computer
systems.
○ Virus: Attaches itself to legitimate programs and spreads when the infected program
is executed.
○ Worm: Self-replicating malware that spreads autonomously across networks without
user interaction.
○ Trojan Horse: Masquerades as legitimate software but carries malicious payload.
○ Ransomware: Encrypts a victim's files and demands a ransom payment for
decryption.
○ Spyware: Gathers information about a user without their knowledge.
○ Adware: Displays unwanted advertisements.
○ Rootkit: A collection of tools that allows an attacker to gain root-level access and
hide their presence on a system.
● Cryptography and Steganography:
○ Cryptography: The art and science of secure communication in the presence of
adversaries. Involves techniques to encrypt (scramble) data so that only authorized
parties can decrypt (unscramble) it.
■ Encryption: Converting plaintext into ciphertext.
■ Decryption: Converting ciphertext back into plaintext.
○ Steganography: The art of hiding the very existence of a message. Embedding
secret data within an ordinary, non-secret message or file (e.g., hiding text in an
image file). The hidden message is not immediately apparent.
● Secret-Key Algorithms (Symmetric Cryptography):
○ Uses a single, secret key for both encryption and decryption.
○ Both sender and receiver must possess the same key.
○ Pros: Faster, efficient for large amounts of data.
○ Cons: Key distribution is a challenge (how to securely share the secret key?).
○ Examples: DES (Data Encryption Standard), 3DES, AES (Advanced Encryption
Standard).
● Public-Key Algorithms (Asymmetric Cryptography):
○ Uses a pair of mathematically related keys: a public key and a private key.
○ Public Key: Can be freely distributed. Used for encryption and verifying digital
signatures.
○ Private Key: Kept secret by the owner. Used for decryption and creating digital
signatures.
○ Pros: Solves the key distribution problem.
○ Cons: Slower than symmetric algorithms.
○ Examples: RSA, Diffie-Hellman, Elliptic Curve Cryptography (ECC).
● Digital Signature:
○ A cryptographic technique used to verify the authenticity and integrity of a digital
message or document.
○ Provides:
■ Authentication: Proves the sender's identity.
■ Integrity: Ensures the message has not been altered since it was signed.
■ Non-repudiation: Prevents the sender from falsely denying they sent the
message.
○ Created by hashing the message and encrypting the hash with the sender's private
key. Verified by decrypting the signature with the sender's public key and comparing
the resulting hash with a newly computed hash of the message.
● Virtual Private Networks (VPNs):
○ Extends a private network across a public network (like the Internet), allowing users
to send and receive data as if their computing devices were directly connected to the
private network.
○ Creates a secure, encrypted "tunnel" over the public network.
○ Provides:
■ Confidentiality: Data is encrypted.
■ Integrity: Data tampering is detected.
■ Authentication: Users and devices are verified.
○ Protocols: PPTP, L2TP/IPsec, OpenVPN, SSTP.
● Firewalls:
○ Network security systems that monitor and control incoming and outgoing network
traffic based on predetermined security rules.
○ Act as a barrier between a trusted internal network and an untrusted external
network (like the Internet).
○ Types:
■ Packet-filtering firewalls: Examine individual packets based on IP addresses,
port numbers, protocols.
■ Stateful inspection firewalls: Track the state of active connections, allowing
legitimate responses to outgoing requests.
■ Application-level gateways (Proxy firewalls): Filter traffic at the application
layer, understanding specific application protocols.
■ Next-generation firewalls (NGFW): Combine traditional firewall features with
advanced functionalities like deep packet inspection, intrusion prevention
systems (IPS), and application control.
7. Mobile Technology
Covers technologies related to communication in mobile environments.
● GSM (Global System for Mobile Communications) and CDMA (Code Division
Multiple Access):
○ Two primary cellular technologies for mobile communication.
○ GSM:
■ Time Division Multiple Access (TDMA) based: Divides the available frequency
into time slots, and each user gets a time slot.
■ SIM (Subscriber Identity Module) card: Separates user identity from the
phone, allowing easy switching of phones.
■ Dominant technology globally.
○ CDMA:
■ Code Division Multiple Access based: All users share the same frequency at
the same time, but each user is assigned a unique code to distinguish their
signal.
■ No SIM card (typically): User identity is tied to the handset.
■ Less common globally, but prevalent in some regions (e.g., parts of North
America).
● Services and Architecture of GSM and Mobile Computing:
○ GSM Architecture:
■ MS (Mobile Station): The mobile phone and SIM card.
■ BSS (Base Station Subsystem): Includes BTS (Base Transceiver Station - radio
transceivers and antennas) and BSC (Base Station Controller - manages multiple
BTSs).
■ NSS (Network and Switching Subsystem): The core network. Includes MSC
(Mobile Switching Center - call routing), HLR (Home Location Register -
subscriber information), VLR (Visitor Location Register - temporary subscriber
information), AUC (Authentication Center), EIR (Equipment Identity Register).
■ OSS (Operation Support Subsystem): For network management and
maintenance.
○ Mobile Computing:
■ A paradigm where computing devices are portable and can communicate over
wireless networks.
■ Characteristics: Mobility, pervasive connectivity, portability, location awareness.
■ Challenges: Limited resources (battery, processing), frequent disconnections,
security, bandwidth limitations.
● Middleware and Gateway for Mobile Computing:
○ Middleware: Software that bridges the gap between operating systems/networks
and applications. For mobile computing, it helps in:
■ Resource Management: Managing limited device resources.
■ Context Awareness: Adapting applications based on location, time, etc.
■ Data Synchronization: Ensuring data consistency between mobile and backend
systems.
■ Security: Providing secure communication channels.
○ Gateway: A device or server that translates protocols or data formats between
different networks. In mobile computing, gateways can facilitate communication
between mobile devices and traditional internet services, handle protocol
conversions, and provide security.
● Mobile IP and Mobile Communication Protocol:
○ Mobile IP:
■ An extension to the Internet Protocol (IP) that allows mobile devices to move
between different networks while maintaining their original IP address and
ongoing connections.
■ Uses Home Agent (HA) and Foreign Agent (FA) to register the mobile node's
current location and tunnel data.
○ Mobile Communication Protocol: Refers to the various protocols involved in
enabling mobile communication, including cellular protocols (GSM, CDMA), wireless
LAN protocols (Wi-Fi), and higher-layer protocols adapted for mobile environments.
● Communication Satellites, Wireless Networks and Topologies:
○ Communication Satellites:
■ Satellites in Earth's orbit that act as relay stations for communication signals.
■ Types: GEO (Geosynchronous Earth Orbit), MEO (Medium Earth Orbit), LEO (Low
Earth Orbit).
■ Used for global coverage, remote areas, broadcasting, long-distance telephony,
and satellite internet.
○ Wireless Networks: Covered previously (WLAN, WPAN, WWAN).
○ Wireless Topologies: Similar to wired, but based on wireless connections.
■ Ad-hoc Mode: Devices connect directly to each other without a central access
point (e.g., Wi-Fi Direct).
■ Infrastructure Mode: Devices connect to a central access point (AP) which then
connects to a wired network.
■ Mesh Topology (Wireless Mesh Networks): Nodes relay messages for other
nodes, extending coverage and resilience.
● Cellular Topology:
○ The geographic area covered by a mobile network is divided into cells.
○ Each cell is served by a base station (BTS) that communicates with mobile devices
within its cell.
○ Cells overlap slightly to ensure continuous coverage during handovers.
○ Allows frequency reuse (different frequencies in non-adjacent cells) to maximize
capacity.
● Mobile Ad-hoc Networks (MANETs):
○ Decentralized wireless networks where mobile devices communicate directly with
each other without relying on a fixed infrastructure or central access points.
○ Nodes act as both hosts and routers, forwarding packets for other nodes.
○ Characteristics: Dynamic topology, self-organizing, limited resources.
○ Applications: Disaster relief, military, sensor networks.
● Wireless Transmission and Wireless LANs:
○ Wireless Transmission: Refers to the use of electromagnetic waves (radio,
microwave, infrared) to transmit data without physical cables.
○ Wireless LANs (WLANs):
■ Networks that use wireless communication to connect devices within a local
area.
■ Most commonly based on IEEE 802.11 standards (Wi-Fi).
■ Uses access points (APs) to connect wireless devices to a wired network.
● Wireless Geolocation Systems:
○ Technologies that determine the geographical location of a wireless device.
○ Methods:
■ GPS (Global Positioning System): Uses satellite signals.
■ Cell Tower Triangulation: Uses signal strength from multiple cell towers.
■ Wi-Fi Positioning: Uses Wi-Fi access point signals.
■ Bluetooth Beacons: Short-range proximity detection.
■ Indoor Positioning Systems (IPS): For precise indoor location.
● GPRS (General Packet Radio Service) and SMS (Short Message Service):
○ GPRS:
■ A packet-oriented mobile data service available to users of GSM mobile phones.
■ Provides continuous connection to the Internet and supports "always-on" data
services.
■ Considered 2.5G technology, an upgrade to GSM for faster data.
■ Billed by volume of data transferred, not connection time.
○ SMS:
■ A text messaging service component of phone, web, or mobile communication
systems.
■ Allows sending short text messages (typically 160 characters) between mobile
phones.
■ Relies on the signaling channels of the cellular network.
8. Cloud Computing and IoT
Emerging and transformative technologies that heavily rely on network infrastructure.
● Cloud Computing:
○ The on-demand delivery of computing services (servers, storage, databases,
networking, software, analytics, intelligence) over the Internet ("the8 cloud").
○ Key Characteristics: On-demand self-service, broad network access, resource
pooling, rapid elasticity, measured service.
● SaaS, PaaS, IaaS (Cloud Service Models):
○ SaaS (Software as a Service):
■ Provides access to fully functional applications over the Internet.
■ The vendor manages everything (applications, data, runtime, OS, virtualization,
servers, storage, networking).
■ Users interact with the software through a web browser or client application.
■ Examples: Gmail, Salesforce, Microsoft 365.
○ PaaS (Platform as a Service):
■ Provides a platform for developers to build, run, and manage applications without
the complexity of building and maintaining the underlying infrastructure.
■ The vendor manages runtime, OS, virtualization, servers, storage, networking.
Users manage applications and data.
■ Examples: Google App Engine, AWS Elastic Beanstalk, Heroku.
○ IaaS (Infrastructure as a Service):
■ Provides virtualized computing resources over the Internet.
■ The vendor manages virtualization, servers, storage, networking. Users manage
OS, applications, and data.
■ Offers the most control and flexibility.
■ Examples: Amazon EC2, Microsoft Azure Virtual Machines, Google Compute
Engine.
● Public and Private Cloud:
○ Public Cloud:
■ Cloud services provided by a third-party vendor over the public Internet.
■ Resources are shared among multiple organizations (multi-tenant environment).
■ Pros: Cost-effective, scalable, minimal management.
■ Cons: Less control, potential security concerns for sensitive data.
■ Examples: AWS, Google Cloud, Microsoft Azure.
○ Private Cloud:
■ Cloud infrastructure dedicated to a single organization.
■ Can be hosted on-premises or by a third-party provider.
■ Pros: High security, more control, customizability.
■ Cons: Higher cost, requires more management.
● Virtualization:
○ The technology that allows creating multiple virtual instances (virtual machines,
virtual servers, virtual desktops) on a single physical hardware system.
○ A hypervisor (Type 1 or Type 2) manages and allocates physical resources to virtual
machines.
○ Benefits: Resource utilization, flexibility, isolation, disaster recovery.
● Virtual Server:
○ A software-based server instance that runs on a physical server using virtualization
technology.
○ Appears as a separate server to the operating system and applications.
○ Multiple virtual servers can run concurrently on one powerful physical server.
● Cloud Storage:
○ A model of computer data storage in which digital data is stored in logical pools,
typically across multiple servers, and the physical environment is typically owned and
managed by a hosting company.
○ Data is accessible over the Internet.
○ Examples: Amazon S3, Google Drive, Dropbox.
● Database Storage:
○ Storing and managing databases in a cloud environment.
○ Types:
■ Relational Databases (SQL): Managed instances of traditional relational
databases (e.g., Amazon RDS for MySQL, PostgreSQL).
■ NoSQL Databases: Non-relational databases designed for flexibility and scale
(e.g., Amazon DynamoDB, Google Cloud Firestore).
● Resource Management (in Cloud):
○ Efficient allocation, monitoring, and optimization of cloud resources (CPU, memory,
storage, network) to meet application demands and achieve cost efficiency.
○ Involves auto-scaling, load balancing, monitoring tools, and resource optimization
strategies.
● Service Level Agreement (SLA):
○ A contract between a cloud service provider and a customer that defines the level of
service guaranteed by the provider.
○ Specifies metrics like uptime, performance, response times, data availability, and
penalties for non-compliance.
● Basics of IoT (Internet of Things):
○ A network of physical objects embedded with sensors, software, and other
technologies that enable them to connect and exchange data with other devices and
systems over the Internet.11
○ Components:
■ Things (Devices): Physical objects with unique identifiers and embedded
sensors/actuators.
■ Connectivity: Network infrastructure (Wi-Fi, Bluetooth, cellular, LoRaWAN) to
connect devices.
■ Data Processing/Analytics: Cloud platforms and algorithms to process and
analyze data from devices.
■ User Interface/Applications: How users interact with and control IoT devices.
○ Examples: Smart homes, wearable fitness trackers, connected cars.