Computer Network Notes 2
Computer Network Notes 2
Guided and unguided, Attenuation, distortion, noise, throughput, propagation speed and
time, wavelength, Shannon capacity, comparison of media
UNIT-III Telephony:
Multiplexing, error detection and correction: Many to one, One to many, WDM, TDM, FDM,
Circuit switching, packet switching and message switching. Data link control protocols: Line
discipline, flow control, error control, synchronous and asynchronous protocols, character
and bit oriented protocols, Link access procedures. Point to point controls: Transmission
states, PPP layers, LCP, Authentication, NCP. ISDN: Services, Historical outline,
subscriber’s access, ISDN Layers and broadcast ISDN.
UNIT-IV Devices:
Repeaters, bridges, gateways, routers, The Network Layer; Design issues, Routing
algorithms, Congestion control Algorithms, Quality of service, Internetworking,
Network-Layer in the internet.
Definition
Data Communication refers to the process of transferring data between two or more devices
(computers, smartphones, sensors, etc.) through a transmission medium. The devices must
be part of a communication system, and the data can be in various forms such as text,
numbers, images, audio, or video.
1. Message:
○ The information to be communicated.
○ Example: Text, an image file, or a video stream.
2. Sender:
○ The device or system that generates and sends the message.
○ Example: A computer, smartphone, or IoT sensor.
3. Receiver:
○ The device that receives and interprets the message.
○ Example: Another computer, a server, or a smartphone.
4. Transmission Medium:
○ The physical path through which the message travels.
○ Types:
■ Guided Media: Wires, cables (e.g., Ethernet, fiber optic).
■ Unguided Media: Wireless communication (e.g., radio waves,
microwaves).
5. Protocol:
○ A set of rules that govern data communication.
○ Example: HTTP for web communication, TCP/IP for network communication.
1. Simplex Communication:
○ Data flows in one direction only.
○ Example: A keyboard sends input to a monitor.
2. Half-Duplex Communication:
○ Data flows in both directions, but only one direction at a time.
○ Example: Walkie-talkies.
3. Full-Duplex Communication:
○ Data flows in both directions simultaneously.
○ Example: Telephone conversations.
Modes of Transmission
1. Serial Transmission:
○ Data is transmitted one bit at a time over a single channel.
○ Example: USB communication.
2. Parallel Transmission:
○ Multiple bits are transmitted simultaneously over multiple channels.
○ Example: Internal data transfer in a computer.
1. Global Connectivity:
○ Enables devices worldwide to communicate (e.g., Internet).
2. Information Sharing:
○ Facilitates sharing of information and resources between users and devices.
3. Real-Time Communication:
○ Essential for applications like video conferencing, online gaming, and
telemedicine.
4. Automation:
○ Integral for IoT, where devices communicate to automate tasks (e.g., smart
home systems).
With advancements in technologies like 5G, IoT, and quantum computing, data
communication is becoming faster, more secure, and capable of handling vast amounts of
data in real time.
2. Distributed Processing
Definition
1. Resource Sharing:
○ Resources like hardware, software, and data are shared across multiple
systems.
○ Example: Cloud computing platforms.
2. Scalability:
○ Systems can be expanded by adding more devices to handle increased
workloads.
○ Example: Adding servers to a distributed database system.
3. Fault Tolerance:
○ If one system fails, others can take over its tasks, ensuring reliability.
○ Example: Distributed file systems like Hadoop.
4. Concurrency:
○ Multiple processes are executed simultaneously, improving efficiency.
○ Example: Parallel computing in scientific research.
5. Transparency:
○ Users see the distributed system as a single entity, even though tasks are
processed on different devices.
○ Example: Accessing a cloud-based application.
1. Nodes:
○ Individual computers or devices participating in the system.
○ Example: Servers, desktops, IoT devices.
2. Network:
○ The communication medium connecting nodes.
○ Example: Local Area Network (LAN) or the Internet.
3. Software/Protocols:
○ Governs the communication and resource sharing between nodes.
○ Example: Message Passing Interface (MPI).
4. Data:
○ Information that is processed and shared among nodes.
○ Example: Shared files, databases, or real-time analytics data.
1. Client-Server Model:
○ Clients request services, and servers provide them.
○ Example: A web browser (client) requesting data from a web server.
2. Peer-to-Peer (P2P) Model:
○ All nodes are equal and share resources without a centralized server.
○ Example: File-sharing systems like BitTorrent.
3. Cluster Computing:
○ A group of tightly connected computers works as a single system.
○ Example: High-performance computing (HPC) clusters.
4. Grid Computing:
○ Combines the resources of multiple computers to work on a single large task.
○ Example: Scientific research simulations.
5. Cloud Computing:
○ Resources and services are delivered over the Internet on demand.
○ Example: Amazon Web Services (AWS), Google Cloud.
1. Increased Performance:
○ Tasks are divided among multiple systems, reducing processing time.
○ Example: Real-time processing in stock trading.
2. Reliability:
○ Redundant systems ensure continuity even if some nodes fail.
○ Example: Content Delivery Networks (CDNs).
3. Flexibility:
○ Easy to add or remove devices based on workload.
○ Example: Elastic scaling in cloud computing.
4. Cost-Effective:
○ Reduces the need for a single, powerful machine by using multiple,
cost-effective systems.
○ Example: Distributed databases for large-scale businesses.
5. Geographical Distribution:
○ Systems can operate from different locations, enhancing accessibility.
○ Example: Global cloud infrastructure.
1. Banking Systems:
○ ATM networks use distributed processing to handle transactions across
branches.
2. E-commerce Platforms:
○ Websites like Amazon use distributed systems to manage orders, inventory,
and customer data.
3. Scientific Research:
○ Supercomputers use distributed processing to simulate weather forecasts or
biological models.
4. Social Media Platforms:
○ Facebook and Twitter use distributed systems to manage billions of users
and their data.
5. Streaming Services:
○ Netflix uses distributed systems for streaming and content delivery across the
globe.
1. Edge Computing:
○ Processing data closer to the source (e.g., IoT devices) to reduce latency.
○ Example: Self-driving cars.
2. Blockchain:
○ A decentralized, distributed ledger system for secure transactions.
○ Example: Cryptocurrencies like Bitcoin.
3. AI and Machine Learning:
○ Distributed systems enable training large-scale AI models using parallel
processing.
4. Quantum Computing:
○ The future may involve quantum-based distributed systems for solving
complex problems.
Definition of Standards
Standards in data communication are agreed-upon rules, protocols, and guidelines that
ensure interoperability, compatibility, and seamless communication between devices and
networks. These standards are essential for designing, manufacturing, and deploying
devices and services that can communicate effectively.
1. Interoperability:
○ Ensures devices and systems from different manufacturers can
communicate.
○ Example: Wi-Fi standards allow laptops and phones from different brands to
connect to the same network.
2. Uniformity:
○ Provides a consistent framework for technology development.
○ Example: TCP/IP is a standard for communication over the Internet.
3. Efficiency:
○ Reduces development time by providing pre-defined guidelines.
○ Example: Using Ethernet standards for wired communication.
4. Global Connectivity:
○ Enables global networks and cross-border communication.
○ Example: GSM standards for mobile communication.
5. Backward Compatibility:
○ Allows newer systems to work with older devices or protocols.
○ Example: USB standards supporting legacy versions.
Types of Standards
1. De Facto Standards:
○ Standards adopted due to widespread use, without formal approval.
○ Example: Microsoft Word's .doc format for documents.
2. De Jure Standards:
○ Officially recognized standards established by formal organizations.
○ Example: The ISO/OSI model.
3. Proprietary Standards:
○ Developed by a single company, not universally accepted.
○ Example: Apple's Lightning cable.
4. Industry Standards:
○ Established by industry-specific organizations.
○ Example: IEEE standards for Ethernet.
● Example 1:
A mobile phone from Samsung communicates seamlessly with a mobile tower
operated by Airtel because they adhere to GSM or LTE standards developed by ITU.
● Example 2:
A laptop connects to a printer using a USB cable because both devices comply with
USB standards set by the USB Implementers Forum.
Challenges in Standardization
1. Time-Consuming Development:
○ Creating and adopting a standard involves extensive discussions and
iterations.
2. Resistance to Adoption:
○ Companies may hesitate to adopt standards that conflict with proprietary
technologies.
3. Compatibility Issues:
○ Newer standards may not always align with legacy systems.
4. Line Configuration
Line configuration refers to the physical arrangement of devices on a network and the
methods used to transfer data between those devices. It describes how communication links
connect devices and how data flows through these connections.
1. Point-to-Point Configuration
○ Definition: A direct connection between two devices, where only these two
devices share the communication link.
○ Example: A computer connected to a printer using a USB cable.
○ Advantages:
■ High-speed communication since the link is not shared.
■ Simple setup and troubleshooting.
○ Disadvantages:
■ Not scalable for large networks.
■ More cables required as the number of devices increases.
○ Use Case: Telephony systems, modem-to-computer connections.
Diagram:
Device A ----------- Device B
2. Multipoint Configuration
○ Definition: A single communication link shared by multiple devices. Also
known as "shared line configuration."
○ Example: Multiple computers connected to a single Wi-Fi router.
○ Advantages:
■ Cost-efficient as fewer communication links are required.
■ Easier to expand the network.
○ Disadvantages:
■ Slower communication due to shared bandwidth.
■ Risk of data collisions if devices try to communicate simultaneously.
○ Use Case: LANs (Local Area Networks), shared printers in an office.
Diagram:
Device A
|
|
Shared Link
|
|
Device B --------- Device C
1. Simplex Mode:
○ Data flows in only one direction.
○ Example: Television broadcasting.
Diagram:
Sender ---> Receiver
○
2. Half-Duplex Mode:
○ Data flows in both directions, but only one direction at a time.
○ Example: Walkie-talkies.
Diagram:
Sender ---> Receiver
Receiver ---> Sender
3. Full-Duplex Mode:
○ Data flows in both directions simultaneously.
○ Example: Telephone conversations.
Diagram:
Sender <--> Receiver
1. Point-to-Point:
○ Secure communication between two devices.
○ Used in high-speed links like leased lines in banking systems.
2. Multipoint:
○ Shared resources in office environments, such as file servers or printers.
○ Used in cable television networks to distribute signals.
1. Network Size:
○ Choose point-to-point for small networks or critical connections.
○ Use multipoint for cost-effective large networks.
2. Bandwidth Requirements:
○ Point-to-point provides dedicated bandwidth, while multipoint shares it among
devices.
3. Security:
○ Point-to-point is more secure since no other devices can intercept the
communication.
5. Topology
Definition of Topology
1. Physical Topology
○ Refers to the physical layout of devices and cables in a network.
2. Logical Topology
○ Describes the flow of data within the network, regardless of its physical
design.
1. Bus Topology
● Description:
All devices are connected to a single central cable (bus). Each device communicates
through the shared bus.
● Advantages:
○ Easy to install and set up.
○ Cost-effective due to minimal cabling.
● Disadvantages:
○ Failure of the central bus halts the entire network.
○ Limited number of devices can be added.
○ Slower communication due to shared bandwidth.
● Use Case:
Small networks with limited devices, such as home or small office networks.
2. Star Topology
● Description:
All devices are connected to a central hub or switch. The hub acts as the
communication point for the devices.
● Advantages:
○ Easy to troubleshoot and isolate faults.
○ Adding or removing devices does not affect the entire network.
○ High performance as each device has a dedicated connection to the hub.
● Disadvantages:
○ Failure of the central hub brings down the network.
○ More cabling is required compared to bus topology.
● Use Case:
Corporate offices, LANs (Local Area Networks).
Diagram: Device A
Device D
3. Ring Topology
● Description:
Devices are connected in a circular loop, and data travels in one direction (or both
directions in a dual-ring).
● Advantages:
○ Easy to set up and manage for small networks.
○ Data travels predictably, avoiding collisions.
● Disadvantages:
○ A single node or cable failure can disrupt the entire network.
○ Troubleshooting is challenging.
● Use Case:
Networks with predictable data flow requirements, like in industrial systems.
Diagram:
| |
-----------------------------
4. Mesh Topology
● Description:
Every device is connected to every other device, either fully or partially.
● Advantages:
○ Highly reliable as multiple paths exist between devices.
○ Faults in one link do not disrupt the network.
● Disadvantages:
○ Expensive and complex to set up.
○ Requires significant cabling and ports.
● Use Case:
High-reliability networks like banking or military systems.
| \ / |
| \ / |
5. Tree Topology
● Description:
A hierarchical arrangement where devices are connected in the shape of a tree, with
a central root node and branches extending out.
● Advantages:
○ Scalable and supports future network expansions.
○ Fault isolation is easier due to hierarchical structure.
● Disadvantages:
○ Failure of the root node affects the entire network.
○ Requires a lot of cabling.
● Use Case:
Large networks, like university campuses or enterprise setups.
Diagram: mathematica
Root Node
/ | \
/ \ / \
A B C D
6. Hybrid Topology
● Description:
A combination of two or more basic topologies, such as star-bus or star-ring.
● Advantages:
○ Flexible and scalable to meet different needs.
○ Offers the benefits of multiple topologies.
● Disadvantages:
○ Expensive and complex to design and implement.
● Use Case:
Large enterprise networks with diverse requirements.
Diagram:
Combines parts of other topologies, such as a mix of star and ring.
Comparison of Topologies
Logical Topologies
Transmission modes define the direction in which data flows between two connected
devices in a network. It specifies how data is sent and received.
1. Simplex Mode
2. Half-Duplex Mode
3. Full-Duplex Mode
1. Simplex Mode
● Definition:
Data flows in only one direction. One device acts as the sender, and the other acts
as the receiver, with no role reversal.
● Key Features:
○ Unidirectional communication.
○ The sender cannot receive data, and the receiver cannot send data.
● Advantages:
○ Simple to implement.
○ Effective for tasks requiring one-way communication, like broadcasting.
● Disadvantages:
○ No feedback mechanism for error correction.
○ Inefficient for interactive communication.
● Examples:
○ Television broadcasting.
○ Radio transmission.
○ Keyboard to monitor communication.
2. Half-Duplex Mode
● Definition:
Data flows in both directions, but only one direction at a time. The devices take turns
to send and receive data.
● Key Features:
○ Bidirectional communication (alternating).
○ Devices cannot send and receive data simultaneously.
● Advantages:
○ Utilizes the channel more effectively than simplex mode.
○ Suitable for environments where data flow alternates between devices.
● Disadvantages:
○ Slower than full-duplex as devices must wait their turn.
○ Inefficient for applications requiring continuous communication.
● Examples:
○ Walkie-talkies.
○ Two-way radio communication.
<-----
3. Full-Duplex Mode
● Definition:
Data flows simultaneously in both directions. Both devices can send and receive
data at the same time.
● Key Features:
○ True bidirectional communication.
○ Requires separate channels for transmitting and receiving, or efficient sharing
of the same channel.
● Advantages:
○ Fast and efficient communication.
○ Ideal for real-time applications.
● Disadvantages:
○ More complex and expensive to implement due to separate channels.
● Examples:
○ Telephone communication (you can talk and listen simultaneously).
○ Video conferencing.
○ Modern network connections like Ethernet.
1. Simplex:
○ Broadcasting systems, such as TVs and radios.
○ Devices like keyboards and monitors.
2. Half-Duplex:
○ Communication systems where turn-taking is essential, like walkie-talkies.
○ Some legacy network systems.
3. Full-Duplex:
○ High-speed networks, such as Ethernet and fiber optics.
○ Real-time communication systems like VoIP and video conferencing
Example Scenario
7. Categories of Networks
Networks are classified based on their geographical size, purpose, and scope.
Understanding these categories helps in choosing the appropriate network type for a
specific use case.
● Definition:
A network designed for personal devices located within a small area, such as a room
or workspace.
● Key Features:
○ Very small range (up to 10 meters).
○ Devices like smartphones, laptops, tablets, and wearables are
interconnected.
○ Often uses technologies like Bluetooth, Infrared, or USB.
● Advantages:
○ Easy to set up.
○ Secure and personal.
● Disadvantages:
○ Limited range.
○ Low data transmission speed compared to larger networks.
● Examples:
○ Bluetooth connections between a phone and headphones.
○ Tethering a phone to a laptop.
● Definition:
A network used to connect computers and devices within a localized area, such as
an office, school, or home.
● Key Features:
○ Range: Typically up to a few kilometers.
○ High-speed data transfer.
○ Wired (Ethernet) or wireless (Wi-Fi) connections.
● Advantages:
○ High-speed communication.
○ Cost-effective for small areas.
○ Centralized management of resources (e.g., printers, servers).
● Disadvantages:
○ Limited to a small geographical area.
○ Maintenance can become complex as the network grows.
● Examples:
○ A network in a school computer lab.
○ Office networks connecting employee workstations.
● Definition:
A network that spans a city or metropolitan area, connecting multiple LANs together.
● Key Features:
○ Range: Covers a city or campus (10-50 km).
○ Often managed by service providers.
○ Combines high-speed fiber-optic cables and wireless links.
● Advantages:
○ Covers larger areas compared to LANs.
○ Enables resource sharing between organizations.
● Disadvantages:
○ Expensive to set up and maintain.
○ Requires skilled management.
● Examples:
○ University campuses.
○ City-wide Wi-Fi networks.
● Definition:
A network that spans large geographical areas, connecting multiple LANs and MANs
together.
● Key Features:
○ Range: Covers regions, countries, or continents.
○ Relies on public communication links like satellite, telephone lines, or fiber
optics.
○ Typically slower than LAN or MAN due to larger distances.
● Advantages:
○ Facilitates global communication.
○ Allows businesses to connect offices in different locations.
● Disadvantages:
○ High setup and maintenance costs.
○ Prone to latency and slower speeds.
● Examples:
○ The internet.
○ Corporate networks spanning multiple countries.
● Definition:
A network that connects multiple LANs within a limited geographical area, such as a
university, school, or business campus.
● Key Features:
○ Intermediate size between LAN and MAN.
○ Usually confined to a single institution.
● Advantages:
○ Efficient resource sharing.
○ Easier to maintain compared to MANs.
● Disadvantages:
○ Limited to specific areas like campuses.
● Examples:
○ Networks connecting different buildings of a university.
● Definition:
A high-speed network that connects storage devices to servers, ensuring fast access
to large volumes of data.
● Key Features:
○ Dedicated network for storage.
○ Used in data centers or enterprise environments.
● Advantages:
○ High performance and reliability.
○ Enables centralized data storage.
● Disadvantages:
○ Expensive to set up and maintain.
○ Complex management.
● Examples:
○ Enterprise-level storage solutions for banks or IT firms.
Each category of network serves a specific purpose depending on its range, speed, and
cost. For example, PANs are ideal for personal use, while WANs power global
communication like the internet. Understanding these categories helps in designing effective
communication systems for varying needs.
OSI Model
The OSI model has 7 layers, each with distinct functions to standardize communication.
Advantages of the OSI Model
TCP/IP Model
The TCP/IP model has 4 layers and is more practical, aligning closely with the internet's
architecture.
● Deals with the actual transmission of raw binary data over the medium.
● Examples: Ethernet cables, radio frequencies.
● Ensures reliable data transmission with error handling, segmentation, and flow
control.
● Examples: TCP (reliable), UDP (fast but unreliable).
Digital Transmission
Digital transmission refers to the process of sending data in binary form (0s and 1s) over a
communication medium. It contrasts with analog transmission, which uses continuous
signals. Digital transmission is widely used in modern communication systems due to its
reliability, efficiency, and ability to handle large amounts of data.
1. Digital Signals
● Represent data as a sequence of discrete voltage levels (e.g., high voltage for "1"
and low voltage for "0").
● Advantages:
○ Less susceptible to noise and distortion compared to analog signals.
○ Easy to compress, encrypt, and error-check.
2. Bit Rate
3. Baud Rate
● DTE (Data Terminal Equipment): Devices like computers or terminals that generate
or consume data.
● DCE (Data Communication Equipment): Devices like modems that facilitate the
transmission of data between DTEs.
2. Interfaces
● Convert digital data to analog signals for transmission over traditional telephone lines
(modulation) and convert it back to digital at the receiver's end (demodulation).
○ Cable Modems: Used for broadband internet, providing higher data rates
than traditional modems.
1. Line Coding
2. Block Coding
● Groups bits into blocks and adds redundancy for error detection.
● Example: 4B/5B encoding.
3. Scrambling
1. Noise Resistance: Digital signals are less affected by noise compared to analog
signals.
2. Error Detection and Correction: Techniques like parity checks and cyclic
redundancy checks (CRC) ensure data integrity.
3. Compression: Digital data can be compressed for efficient use of bandwidth.
4. Security: Encryption methods can be applied for secure communication.
5. Compatibility: Easily integrates with modern technologies like computers and digital
storage.
Transmission media refers to the physical pathways or channels through which data is
transmitted from one device to another.
These media play a crucial role in determining the quality, speed, and reliability of data
transmission.
They are broadly categorized into guided (wired) and unguided (wireless) media.
Guided media involve physical cables or wires that guide the data signals. These are
commonly used in local area networks (LANs) and other scenarios where direct connections
are required.
Unguided media use electromagnetic waves to transmit data through the air or space,
without requiring a physical connection.
1. Radio Waves
○ Use frequencies from 3 kHz to 1 GHz.
○ Can travel long distances and penetrate walls.
○ Advantages:
■ Suitable for both indoor and outdoor communication.
■ Easy to install.
○ Disadvantages:
■ Prone to interference.
■ Limited security.
○ Applications: AM/FM radio, Wi-Fi, Bluetooth.
2. Microwaves
○ Use frequencies from 1 GHz to 300 GHz.
○ Travel in a straight line and require line-of-sight.
○ Advantages:
■ High bandwidth.
■ Suitable for long-distance communication.
○ Disadvantages:
■ Affected by obstacles and weather.
■ Requires precise alignment.
○ Applications: Satellite communication, cellular networks.
3. Infrared
○ Uses light waves just below the visible spectrum.
○ Limited to short distances and requires line-of-sight.
○ Advantages:
■ No interference with radio frequencies.
■ Secure within a confined area.
○ Disadvantages:
■ Blocked by obstacles.
■ Limited range.
○ Applications: Remote controls, short-range data transfer.
4. Satellite Communication
○ Signals are sent from the earth to a satellite and back to a receiver on earth.
○ Advantages:
■ Coverage over a wide area.
■ Useful for broadcasting and remote locations.
○ Disadvantages:
■ High cost.
■ Signal latency due to distance.
○ Applications: TV broadcasting, GPS, internet in remote areas.
Attenuation refers to the reduction in the strength (amplitude) of a signal as it travels through
a transmission medium.
Cause of Attenuation:
● As a signal travels through any medium (e.g., copper wires, fiber optics, or air), its
power decreases due to the resistance and impedance of the medium, as well as the
energy dissipated in various forms.
● Distance: The longer the transmission distance, the higher the attenuation.
● Type of medium: Different media have different levels of attenuation. For example,
fiber optic cables experience much lower attenuation than copper cables.
● Signal Frequency: Higher-frequency signals tend to suffer more attenuation than
lower-frequency signals.
● Temperature: Higher temperatures can increase resistance and cause more
attenuation.
Effects of Attenuation:
Mitigation:
2. Distortion
Distortion refers to any alteration in the waveform of the signal during transmission, causing
the signal to become different from its original form.
Cause of Distortion:
● Signal Speed Variations: Different frequencies of a signal may travel at different
speeds through the transmission medium, leading to a distortion in the shape of the
signal.
● Non-linearities in the medium: If the medium doesn’t propagate signals in a linear
fashion, high-frequency components may be affected more than low-frequency
components, causing changes in the signal.
Types of Distortion:
Effects of Distortion:
Mitigation:
3. Noise
Noise refers to unwanted signals or disturbances that interfere with the transmission of the
intended signal. It can originate from both external and internal sources.
Cause of Noise:
Effects of Noise:
● Signal Corruption: Noise can distort or corrupt the transmitted signal, leading to
errors in the data received.
● Reduced Signal-to-Noise Ratio (SNR): The quality of the signal is measured by the
ratio of the signal power to the noise power. High noise levels reduce the clarity of
the signal.
Mitigation:
● Shielding and Grounding: Shielding the cables and using proper grounding
techniques help reduce the effect of external noise sources.
● Error Detection and Correction: Techniques like parity checking, cyclic redundancy
check (CRC), and forward error correction (FEC) are used to detect and correct
errors caused by noise.
● Signal Processing: Filtering techniques can be used to remove or reduce noise
from the signal.
1. Throughput:
Definition:
Throughput refers to the actual rate at which data is successfully transmitted from the
sender to the receiver over a communication channel.
Formula for Throughput: Throughput = Total Data Transferred/ Total Time Taken
Example:
2. Propagation Speed:
Definition:
Propagation speed is the rate at which a signal travels through a transmission medium.
1. Medium Type: Signals travel faster in fiber optics than in copper cables.
2. Physical Characteristics: The density and composition of the medium affect the
speed.
3. Signal Type: Electromagnetic waves travel at the speed of light in vacuum but
slower in other media.
3. Propagation Time:
Definition:
Propagation time is the time taken for a signal to travel from the sender to the receiver.
1. Wavelength:
○ Wavelength is the physical distance between consecutive peaks of a wave. It
is inversely proportional to the frequency of the signal.
○ Wavelength and frequency are inversely related: (Formula)
2. Shannon Capacity:
○ Shannon capacity defines the theoretical maximum data rate (in bits per
second) that can be transmitted over a communication channel without
errors, given the channel bandwidth and the signal-to-noise ratio (SNR).
○ Formula:
C = B . log2 (1 + S / N)
■ C: Channel capacity (bps).
■ B: Bandwidth (Hz).
■ S/N: Signal-to-noise ratio.
○ Example: If bandwidth is 1 MHz and signal-to-noise ratio is 10, the channel
capacity can be calculated.
5. Comparison of Media
1. Attenuation
○ Reduction in signal strength as it travels through the medium.
○ Higher attenuation requires repeaters to boost the signal.
2. Distortion
○ Signal changes shape during transmission, causing errors.
○ More common in wireless media.
3. Noise
○ Unwanted signals that interfere with the data signal.
○ Sources include electromagnetic interference and thermal noise.
4. Throughput
○ The amount of data successfully transmitted per second.
○ Depends on the bandwidth of the medium.
5. Propagation Speed
○ Speed at which the signal travels through the medium.
○ Varies for different media (e.g., faster in fiber optics than copper cables).
6. Shannon Capacity
○ Maximum data rate of a channel, calculated based on bandwidth and
signal-to-noise ratio.
UNIT-III: Telephony, Multiplexing, Error Detection,
Switching, and Protocols
Telephony
Definition:
Telephony refers to the transmission of voice, data, and video signals over a distance using
wired or wireless communication systems.
Key Concepts:
1. Analog Telephony: Traditional phone systems that transmit analog signals through
copper wires.
2. Digital Telephony: Modern systems that convert analog signals into digital data for
transmission.
3. VoIP (Voice over Internet Protocol): Technology that allows voice calls over the
internet.
1.Multiplexing
Multiplexing is the process of combining multiple signals into one channel for transmission.
It maximizes the use of bandwidth.
Types of Multiplexing:
Errors occur during data transmission due to noise or interference. These errors need to be
detected and corrected.
1. Parity Check:
○ Adds a parity bit (even or odd) to ensure data integrity.
○ Example:
■ Data: 1010 → Parity bit added: 10101.
2. Checksum:
○ Data blocks are summed, and the sum is sent with the data. The receiver
verifies it.
3. Cyclic Redundancy Check (CRC):
○ A more complex method using division and polynomial coding.
○ Used in Ethernet and communication protocols.
Error Correction:
One-to-Many Communication:
3. Switching Techniques
Types of Switching:
1. Circuit Switching:
○ Establishes a dedicated path for the entire communication session.
○ Example: Traditional telephone calls.
2. Packet Switching:
○ Data is broken into packets and sent independently. Packets are
reassembled at the destination.
○ Example: Internet data transfer (TCP/IP).
3. Message Switching:
○ Entire messages are stored and forwarded node by node.
○ Example: Email transmission.
Protocols at the data link layer manage the transfer of data between two directly connected
devices.
Key Concepts:
1. Line Discipline:
○ Determines who can send data and when.
○ Examples: Polling, Selective Polling.
2. Flow Control:
○ Ensures the sender does not overwhelm the receiver.
○ Methods:
■ Stop-and-Wait: Sender waits for acknowledgment before sending the
next frame.
■ Sliding Window: Allows multiple frames to be sent before
acknowledgment.
3. Error Control:
○ Ensures reliable delivery of data.
○ Example: Go-Back-N ARQ, Selective Repeat ARQ.
4. Protocols:
○ Synchronous Protocols: Data is transmitted in sync with a clock signal.
○ Asynchronous Protocols: Data is sent with start and stop bits to indicate
transmission.
5. Character vs. Bit-Oriented Protocols:
○ Character-Oriented: Uses characters as control information (e.g., ASCII).
○ Bit-Oriented: Uses bit-level frames (e.g., HDLC).
Definition:
PPP is a data link layer protocol used to establish a direct connection between two nodes.
Key Components:
1. Transmission States:
○ Idle, Establishing, Authenticating, Network-Layer Protocol Configuration,
Termination.
2. PPP Layers:
○ LCP (Link Control Protocol): Configures and establishes the link.
○ Authentication Protocols: Verifies the identity of the sender (e.g., PAP,
CHAP).
○ NCP (Network Control Protocol): Configures network layer protocols like IP.
Definition:
ISDN is a set of communication standards that transmit voice, video, and data over digital
telephone lines.
Key Concepts:
1. ISDN Services:
○ Bearer Services: Data transmission.
○ Teleservices: Voice communication.
○ Supplementary Services: Call forwarding, conference calls.
2. ISDN Architecture:
○ Basic Rate Interface (BRI): Provides two 64 Kbps bearer channels and one
16 Kbps signaling channel.
○ Primary Rate Interface (PRI): Provides multiple bearer channels (23 in the
US, 30 in Europe).
3. ISDN Layers:
○ Physical Layer: Defines the transmission medium.
○ Data Link Layer: Manages reliable communication.
○ Network Layer: Provides call setup and termination.
4. Broadband ISDN:
○ Uses fiber optics for high-speed communication.
○ Supports services like video conferencing and internet access.
UNIT-IV: Network Devices, Network Layer, and
Internet
1. Network Devices
Network devices are hardware components that connect computers and facilitate
communication.
Types of Devices:
1. Repeaters:
○ Amplify or regenerate signals to extend the range of transmission.
○ Example: Used in Ethernet to extend cable length.
2. Bridges:
○ Connect two LAN segments and filter traffic based on MAC addresses.
○ Example: A bridge can connect a wired LAN with a wireless LAN.
3. Routers:
○ Connect different networks and determine the best path for data.
○ Operate at the Network Layer (Layer 3).
○ Example: Home internet router connects devices to the internet.
4. Gateways:
○ Connect networks with different protocols.
○ Example: A gateway connects an email system to an SMS system
The Network Layer (Layer 3 in the OSI model) is responsible for logical addressing, routing,
and packet forwarding.
1. Logical Addressing:
○ Assigns IP addresses to devices for unique identification.
○ Example: IPv4 (192.168.1.1), IPv6 (fe80::1).
2. Routing:
○ Determines the best path for data packets using routing tables.
○ Example: Routers use routing algorithms like Dijkstra or Bellman-Ford.
3. Packet Forwarding:
○ Transfers data packets from source to destination using IP addresses.
3. Routing Algorithms
Routing algorithms decide how packets are sent through the network.
Types of Routing:
1. Static Routing:
○ Routing tables are manually configured.
○ Example: Small networks where paths rarely change.
2. Dynamic Routing:
○ Routers update routing tables automatically based on network conditions.
○ Protocols:
■ RIP (Routing Information Protocol): Uses hop count.
■ OSPF (Open Shortest Path First): Uses link state and Dijkstra’s
algorithm.
Example:
Congestion occurs when network traffic exceeds capacity, leading to delays or packet loss.
QoS Parameters:
1. Bandwidth: Allocating sufficient bandwidth for critical data.
2. Latency: Reducing delays.
3. Jitter: Controlling variation in packet arrival times.
4. Packet Loss: Ensuring minimal data loss.
Example:
● In a video call, QoS prioritizes voice and video over file downloads.
6. Internetworking
Components:
Example:
In the internet, the Network Layer uses IP (Internet Protocol) for addressing and packet
delivery.
Key Protocols:
1. IPv4:
○ 32-bit addresses, written in dotted decimal format.
○ Example: 192.168.1.1.
2. IPv6:
○ 128-bit addresses, written in hexadecimal format.
○ Example: fe80::1.
3. ICMP (Internet Control Message Protocol):
○ Used for error messages and diagnostic purposes.
○ Example: The ping command uses ICMP.
UNIT-V: Transport and Upper Layers in the OSI
Model
The Transport Layer is responsible for reliable data delivery between processes running on
two different devices.
Types of Connections:
1. Connection-Oriented Communication:
○ A connection is established before data transfer.
○ Ensures reliable delivery.
○ Example: TCP.
2. Connectionless Communication:
○ Data is sent without establishing a connection.
○ Faster but less reliable.
○ Example: UDP (User Datagram Protocol).
1. Session Establishment:
○ Starts and manages communication sessions.
2. Synchronization:
○ Adds checkpoints (synchronization points) to the data stream.
○ Example: In a large file download, checkpoints allow resuming from the last
point if interrupted.
3. Session Termination:
○ Properly closes the session once the data transfer is complete.
The Presentation Layer deals with the formatting, encryption, and compression of data
for proper interpretation.
1. Data Translation:
○ Converts data into a format understood by the application.
○ Example: Converts ASCII to EBCDIC.
2. Data Compression:
○ Reduces the size of data for faster transmission.
○ Example: Compressing images using JPEG or PNG.
3. Encryption and Decryption:
○ Encrypts data for security during transmission and decrypts it at the
destination.
○ Example: HTTPS uses SSL/TLS for encryption.
The Application Layer is the topmost layer of the OSI model. It provides services directly to
users and applications.
1. Network Services:
○ Provides access to network services like file transfer, email, and remote login.
2. Resource Sharing:
○ Enables sharing of resources like printers or files over a network.
3. Application Access:
○ Provides access to applications like web browsers, email clients, and FTP
tools.