Module 1 ACN
Module 1 ACN
A computer network is a system where many devices such as computers, laptops, servers,
switches, and routers are connected together so that they can share data and resources.
Diagram:
PC <--- Switch <--- Router <--- Internet
Conclusion:
Building a network involves planning, choosing devices, transmission medium, and protocols.
A properly designed network allows smooth, secure, and reliable communication among users.
A good network must satisfy some important requirements. These requirements are like goals of
network design.
Main Requirements:
1. Interconnectivity:
• The network must allow multiple devices (computers, printers, servers) to connect
and communicate with each other.
2. Scalability:
• The network should be designed to accommodate growth, allowing for the
addition of more devices without significant changes to the existing infrastructure.
3. Reliability:
• The network must provide consistent performance and availability, ensuring that
devices can communicate without frequent interruptions or failures.
4. Performance:
• The network should support the required data transfer rates and response times
for applications being used.
5. Security:
• Measures must be in place to protect data integrity and confidentiality, preventing
unauthorized access and ensuring secure communication.
6. Cost-Effectiveness:
• The design and implementation of the network should be within budget
constraints while meeting the necessary performance and reliability standards.
7. Ease of Management:
• The network should be easy to manage and maintain, with tools and protocols in
place for monitoring performance and troubleshooting Issues.
8. Compatibility:
• The network should support a variety of devices and protocols, ensuring
interoperability among different hardware and software components.
9. Flexibility:
• The network design should allow for changes and upgrades as technology evolves
or as organizational needs change.
When we design or study a network, we must understand that different people look at a
network from different viewpoints. Each type of person has their own needs, and the network
must be designed to satisfy all of them. These viewpoints are called perspectives.
1. End-User Perspective
• End users are the people who actually use the network services like
browsing websites, sending emails, video calling, or downloading files.
• For them, the network is like a “black box” — they do not care how it works
inside, they only want it to work properly.
• Their main needs are:
• Reliability – The connection should not break often. Example: video call
should not drop again and again.
• Ease of use – Plug and play devices (Wi-Fi should connect easily
without complex setup).
• Performance – Fast access to websites, smooth video streaming, no
unnecessary delay.
• Security – Protection from hackers or viruses when using online
services.
Example: Airtel or Jio must manage millions of users while keeping costs
low and ensuring security.
Conclusion
A network is not only about cables and routers; it is about meeting the expectations of all
stakeholders.
stakeholders.
• End-users want reliability and speed.
• Developers want clear APIs and delivery guarantees.
• Designers want scalability and efficiency.
• Providers want manageability, security, and low cost.
⸻
Q4. Scalable Connectivity
Scalable connectivity means that a network should be able to grow (more users, devices, sites,
or traffic) without becoming slow, overloaded, or failing. A scalable network handles small
groups of devices as well as millions of devices with the same reliability.
6. Stateless Services
• Some services (like web servers) don’t “remember” past requests
(stateless).
• Stateless services are easy to replicate behind load balancers, which
improves scalability.
• Example: Multiple identical web servers handle different users at the
same time.
7. Automation
• Large networks cannot be configured manually.
• Use configuration templates, intent-based networking, and zero-
touch provisioning.
• This makes scaling faster and reduces human errors.
Mini diagram
Example: Adding a new office = add an access block + summarize its routes
upstream; no global rework.
Conclusion: Plan hierarchy, addressing, and routing from day one to grow
painlessly.
Computer networks are designed to allow many users to share expensive resources—such as
transmission links, routers, servers, and storage—rather than providing a separate physical
resource for each user.
2. Multiplexing
Definition:
Multiplexing is the process of combining multiple independent data streams into one shared
physical channel. At the receiving end, a demultiplexer separates them back into their original
streams.
3. Multiplexing Techniques
Example:
• Telecommunication networks → digital voice channels (like old PCM
telephone systems).
• Four users share a 1 Mbps line, each allocated 250 kbps via time slots.
Limitation:
• Inefficient if a user is silent → slot goes unused (wasted bandwidth).
Limitation:
• Frequency bands are fixed and reserved, even when idle.
• Less flexible, can lead to under-utilization.
Advantages:
1. Efficient use of bandwidth → no slot/frequency wastage.
2. Supports variable packet sizes (flexibility).
3. Dynamic allocation → bandwidth given to active users only.
4. Ideal for bursty traffic (e.g., web browsing, emails, video streaming).
Limitation:
• May cause queuing delay or packet loss during congestion.
Mini Diagram
-----------
Modern networks are not just about connecting machines; they must support the needs of
applications. Applications (like web browsing, video streaming, or client–server systems) rely on
channels that provide reliable communication despite errors and failures.
Channel Types
1. Request/Reply Channels
• Used by client-server applications.
• A client sends a request message, and the server replies with a response
message.
• Requires low delay, correctness, and reliability, but usually not continuous
transmission.
Examples:
• Web browsing (HTTP request/response).
• DNS lookup (query/response).
Examples:
• Voice over IP (VoIP).
• Online video conferencing.
Reliability Classes
Networks must handle different kinds of reliability issues. Errors occur at different levels, so we
classify them into three categories:
1. Bit-Level Errors
• Occur when individual bits are flipped due to noise or interference in
transmission.
• Can be single-bit errors or burst errors (several consecutive bits
corrupted).
• Detected and corrected using error detection codes (parity, CRC,
checksums).
2. Packet-Level Errors
• Even if bits are transmitted correctly, entire packets can be lost, duplicated,
or delivered out of order.
• Causes: buffer overflows in routers, congestion, or incorrect packet
forwarding.
• Managed by protocols like TCP (which retransmits lost packets, removes
duplicates, reorders packets).
3. Node/Link Failures
• Failure of a network node (router, switch, server) or physical link (fiber,
copper, wireless channel).
• Causes: equipment failure, power outages, cable cuts.
• Reliability provided by redundancy (backup links, multiple paths) and
routing protocols that adapt (like OSPF, BGP).
Q7. Manageability
Concept
A network is not useful unless it can be easily managed. As networks grow in size and
complexity, administrators need tools and mechanisms for configuration, monitoring,
troubleshooting, optimizing performance, enforcing security, and scaling administration.
Manageability ensures that the network remains reliable, efficient, secure, and scalable
throughout its lifetime.
Management Requirements
⸻
Q8. Protocol Layering
Benefits of Layering
• Modularity → Each layer has specific functions.
• Abstraction → Higher layers hide lower-layer details.
• Standardization → Well-defined interfaces between layers.
Types of Protocol Layering
→ OSI 7-layer model
→TCP/IP 5-layer model.
Definition
The OSI (Open Systems Interconnection) reference model is a 7-layer conceptual framework
developed by ISO. It standardizes how data is transmitted over a network, ensuring
interoperability between different hardware and software systems.
Layers of OSI Model
1. Physical Layer (Layer 1)
• Transmits raw bits over physical medium (cables, fiber, radio).
• Defines voltage levels, connectors, frequencies.
2. Data Link Layer (Layer 2)
• Provides error detection/correction, framing, and flow control.
• Examples: Ethernet, Wi-Fi, PPP.
3. Network Layer (Layer 3)
• Handles logical addressing and routing of packets.
• Example protocols: IP, ICMP.
4. Transport Layer (Layer 4)
• Provides end-to-end reliability, segmentation, and error recovery.
• Protocols: TCP (reliable), UDP (fast but unreliable).
5. Session Layer (Layer 5)
• Manages dialogs between applications (setup, maintain, terminate).
6. Presentation Layer (Layer 6)
• Translates data formats, encryption, and compression.
• Example: SSL/TLS for encryption.
7. Application Layer (Layer 7)
• Provides services to users: web browsing, email, file transfer.
• Examples: HTTP, FTP, SMTP, DNS.
Advantages
• Provides modularity → Each layer has unique function.
• Enables interoperability between different vendors.
• Facilitates troubleshooting since problems can be isolated per layer.
✦ TCP/IP Model (10 Marks)
Definition
The TCP/IP (Transmission Control Protocol / Internet Protocol) model is a 5-layer practical
model used in the Internet. It was developed by DARPA and forms the basis of today’s global
networking.
Advantages
• Practical implementation (basis of the Internet).
• Simpler than OSI (5 layers vs 7).
• Supports scalability for millions of devices.
⸻
Q9. Performance
Key metrics
• Throughput: Useful bits per second delivered.
• Latency (delay): Time from send → receive.
• Jitter: Variation in latency (important for voice/video).
• Loss: % packets dropped (hurts TCP and real-time).
• Goodput: Throughput minus protocol overhead/retransmissions.
• Utilization: Load vs capacity; avoid persistent >70–80%.
Factors
• Link rate, queue sizes, congestion control, RTT, errors, protocol overhead
(MSS/MTU), application patterns.
Conclusion: Measure, then tune: capacity, queues, and protocols to meet app
SLAs.
⸻
Q10. Internet/network architecture
Q10. Bandwidth and Latency
Examples
• 1,500-byte packet on 10 Mbps → ~1.2 ms transmission.
• 2,000 km fiber → ~10 ms one-way propagation.
Conclusion: Bandwidth sets how much; latency sets how fast the first bit arrives.
Both matter.
Why important
• TCP window must be ≥ DBP to fully utilize the pipe.
• Buffer sizing in routers/senders.
• Explains why long-fat networks (LFNs) need large windows and window
scaling.
Example
• 100 Mbps, RTT 100 ms → DBP = 10 Mb = 1.25 MB.
TCP needs ≥1.25 MB in flight to fill the pipe.
Conclusion: DBP tells you the minimum data in flight for full throughput.
Ways
• Direct (point-to-point): Two nodes, simple but not scalable.
• LAN with switching: Many hosts share switches (MAC learning, VLANs).
• WANs: Leased lines/MPLS/SD-WAN interconnect sites.
• Internetworking: Different networks joined by IP routers → global
connectivity.
• Overlay/VPN: Logical networks (IPsec, SSL-VPN, WireGuard) over the
Internet.
Switched: Each pair gets a virtual circuit/path (modern Ethernet with switches).
Duplex modes:
Simplex (one-way),
Half-duplex (turn-taking),
Full-duplex (both ways).
Implications
• Access control on shared media (CSMA/CA in Wi-Fi).
• Dedicated links give predictable bandwidth/low collisions.
Building blocks
• Error detection: Parity, checksum, CRC.
• ARQ (Automatic Repeat reQuest): ACK/NACK + retransmission on loss.
• Sequencing: Sequence numbers to keep order & detect duplicates.
• Timers: Retransmit if ACK not seen in time.
• Flow control: Don’t overwhelm receiver (e.g., TCP receive window).
• Congestion control: Don’t overwhelm network (e.g., TCP Reno/CUBIC).
⸻
Q15. Stop-and-Wait ARQ
Definition:
Stop-and-Wait is a basic data link layer protocol where the sender sends one frame at a time
and then waits for an ACK (acknowledgment) from the receiver before sending the next frame.
Working
1. Sender sends one frame.
2. Receiver gets the frame and sends back ACK.
3. After receiving ACK, sender sends the next frame.
4. This repeats until all data is sent.
Definition:
Selective Repeat ARQ (Automatic Repeat reQuest) is an error-control protocol that retransmits
only the specific frames that are lost or corrupted, instead of resending all frames. This makes it
more efficient than Go-Back-N ARQ.
How It Works
1. Sliding Window:
• Sender can send multiple frames in sequence without waiting for ACKs.
• Both sender and receiver maintain a window size (usually half the
sequence number range).
2. Acknowledgments:
• Each frame has an individual acknowledgment (ACK).
• If a frame is lost/corrupted, receiver sends a Negative ACK (NACK) only
for that frame.
3. Retransmission:
• Sender retransmits only the erroneous frame, not all subsequent ones.
4. Receiver Window:
• Receiver can store out-of-order frames until the missing one arrives,
then reassemble data in correct order.
Step-by-step Example
• Sender sends frames: 0, 1, 2, 3.
• Receiver ACKs: frame 0 , frame 1 .
• Frame 2 (lost/corrupted) → Receiver sends NACK for frame 2.
• Sender resends only frame 2.
• Meanwhile, frames 3 and 4 may already be stored in buffer at receiver until
frame 2 arrives.
Advantages
• Efficient: Only retransmits erroneous frames.
• Faster recovery: No need to resend correctly received frames.
• Good for high-speed networks with few errors.
(Figure: [Link]
Benefits
• Higher utilization, isolation between flows/tenants, simpler management.
Conclusion: Logical channels turn one pipe into many, giving concurrency and
separation.