Computer Network
UNIT-I: Basic Concepts and Models
Components of data communication, distributed processing, standards and organizations. Line configuration, topology, transmission mode, and categories of networks. OSI and TCP/IP Models: Layers and their functions, comparison of models. Digital Transmission: Interfaces and Modems: DTE-DCE Interface, Modems, Cable modems.
UNIT-II: Transmission Media
Guided and unguided media, attenuation, distortion, noise, throughput, propagation speed and time, wavelength, Shannon capacity, comparison of media.
UNIT-III: Telephony, Multiplexing, and Data Link Control
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: Networking Devices and the Network Layer
Devices: Repeaters, bridges, gateways, routers. The Network Layer: Design issues, Routing algorithms, Congestion control Algorithms, Quality of service, Internetworking, Network Layer in the internet.
UNIT-V: Transport and Upper Layers in OSI Model
Transport layer functions, connection management, functions of session layers, presentation layer and application layer.

UNIT-I: Basic Concepts

1. Components of Data Communication

Data communication refers to the exchange of data between devices using a transmission medium. The essential components of data communication include:

Example Diagram:

[Sender] ---> [Transmission Medium] ---> [Receiver] (Message) (Protocol governs the exchange)

2. Distributed Processing

Distributed processing involves dividing tasks among multiple computers that communicate over a network.

Example Diagram:

[Client 1] [Client 2] \ / \ / [Distributed Server Cluster]

3. Standards and Organizations

Some key standard organizations are ISO, IEEE, ITU, and IETF, which ensure interoperability and compatibility in communication systems.

Example Diagram:

Organizations: [ISO] [IEEE] [IETF] [ITU] | Define | [Protocols & Standards]

4. Line Configuration

Defines how devices are connected in a communication line.

Example Diagram:

Point-to-Point: [Device A] ----- [Device B] Multipoint: [Device A] | --------------- | | | [Device B][Device C][Device D]

5. Topology

Defines the structure of a network.

Example Diagram:

Star Topology: [Switch] / | \ [PC1] [PC2] [PC3] Ring Topology: [PC1]---[PC2]---[PC3] \ / ---[PC4]---

6. Transmission Mode

Simplex: One way only

Half-Duplex: Two-way, one at a time

Full-Duplex: Two-way simultaneously

Example Diagram:

Simplex: [A] ---> [B] Half-Duplex: [A] <--- [B] (One direction at a time) Full-Duplex: [A] <--> [B] (Both directions simultaneously)

7. Categories of Networks

Classification based on geographic spread.

Example Diagram:

PAN: [Smartphone] <--> [Laptop] LAN: [PC1] --- [PC2] --- [Printer] (Same building) MAN: [Campus Network] across a city WAN: [Internet: Connects cities/countries]

8. OSI and TCP/IP Models

OSI Model: 7 Layers

TCP/IP Model: 4 Layers

Example Diagram:

OSI Model: TCP/IP Model: ----------------- ---------------- Application Application Presentation | Session | Transport Transport Network Internet Data Link Network Access Physical

9. Digital Transmission: Interfaces and Modems

Digital communication often uses modems and interface standards.

Example Diagram:

[Computer] --(DTE)--> [Modem] --(DCE)--> [Telephone Line] --> [Remote Modem] --> [Server]

UNIT-II: Transmission Media

1. Guided and Unguided Media

Guided Media involves physical cables through which signals are guided.

Unguided Media transmits signals through air or vacuum (wireless).

Example Diagram:

Guided Media: [Device A] ---- Twisted Pair ---- [Device B] Unguided Media: [Device A] ))))) Radio Signal ))))) [Device B]

2. Attenuation

Attenuation refers to the loss of signal strength as it travels through the medium.

Example: A signal sent at 100 dB might be received at 70 dB.

Signal Strength Decrease: 100 dB --> 90 dB --> 80 dB --> 70 dB

3. Distortion

Distortion occurs when the signal changes its form or shape due to delay in different components of the signal.

Sent Signal: /\/\/\/\/\ Received: /\_/\/\__\

4. Noise

Noise is unwanted energy that alters or interferes with the original signal.

Clean Signal: 10101010 With Noise: 10111000

5. Throughput

Throughput is the actual rate at which data is successfully transmitted over the channel.

Example: A channel with a bandwidth of 10 Mbps might only transmit 8 Mbps due to overhead and noise.

6. Propagation Speed and Time

Propagation Speed is the rate at which a signal travels through the medium (close to speed of light).

Propagation Time is the time it takes for a signal to reach the receiver.

Formula:

Propagation Time = Distance / Propagation Speed Example: 3000 km / (2 x 10^8 m/s) = 0.015 s

7. Wavelength

Wavelength is the distance between two consecutive peaks of a signal.

Formula: λ = Propagation Speed / Frequency

Example: Frequency = 2 GHz, Speed = 3x10^8 m/s λ = 3x10^8 / 2x10^9 = 0.15 meters

8. Shannon Capacity

Maximum data rate of a noisy channel.

Formula:

C = B * log2(1 + S/N) Where: C = Channel Capacity (bps) B = Bandwidth (Hz) S = Signal Power N = Noise Power Example: B = 3000 Hz, S/N = 1000 C = 3000 * log2(1 + 1000) ≈ 3000 * 9.97 = 29.9 kbps

9. Comparison of Media

Media Type Bandwidth Noise Resistance Cost Usage
Twisted Pair Low Low Low LANs, Telephones
Coaxial Cable Medium Medium Medium Cable TV
Fiber Optic High High High Backbone, Long-distance
Radio Waves Medium Low Low Wireless LANs
Microwaves High Medium Medium Cellular, Satellite

UNIT-III: Telephony

1. Multiplexing

Multiplexing is the process of combining multiple signals for transmission over a single medium.

Types of Multiplexing:

Example (TDM): Time Slots: | A | B | C | A | B | C | ... Each device sends in its time slot.

2. Switching Techniques

Circuit: A ──────── B (reserved line) Packet: A → (packet 1) → B → (packet 2) → B Message: A → Store → Forward → B

3. Error Detection and Correction

Example: Original: 1010 → Transmitted: 1010 → Received: 1110 (Error detected)

4. Data Link Control Protocols

Types:

5. Link Access Procedures

Define how a device accesses the link, used in WAN protocols. Examples include:

6. Point-to-Point Protocol (PPP)

PPP is used to establish a direct connection between two nodes.

Transmission States:

PPP Layers:

PPP Communication: | LCP | → | Authentication | → | NCP | → | Data Transfer |

7. ISDN (Integrated Services Digital Network)

Basic ISDN: - 2B (64 kbps) + 1D (16 kbps) = 144 kbps Primary Rate: - 23B + 1D (North America) - 30B + 2D (Europe)

UNIT-IV: Network Devices & The Network Layer

1. Devices

Diagram Example: [PC] ── [Repeater] ── [Bridge] ── [Router] ── [Gateway] ── [Internet]

2. Network Layer

The Network Layer is responsible for delivery of packets from source to destination across multiple networks.

Main Functions:

3. Design Issues in the Network Layer

4. Routing Algorithms

Routing is the process of selecting paths in a network along which to send data packets.

Examples of Algorithms:

Example: A --1-- B --1-- C Shortest Path A to C: A → B → C (Total cost = 2)

5. Congestion Control Algorithms

Used to prevent too much traffic in the network which leads to performance degradation.

6. Quality of Service (QoS)

QoS refers to the performance level of a service like delay, jitter, bandwidth, and packet loss.

Example: Video Call → High QoS (low latency) Email → Low QoS needed

7. Internetworking

Internetworking connects multiple distinct networks into a larger network (like the internet).

Devices involved: Routers and Gateways

8. Network Layer in the Internet

Uses the Internet Protocol (IP) to route packets globally.

Other protocols:

UNIT-V: Transport and Upper Layers in OSI Model

1. Transport Layer Functions

The Transport Layer ensures reliable data transfer between end systems. It acts as a source-to-destination delivery service.

Example: TCP port 80 → HTTP
TCP port 443 → HTTPS

2. Connection Management

Connection management involves establishing, maintaining, and terminating connections.

Example (TCP Handshake): Client → SYN → Server
Server → SYN-ACK → Client
Client → ACK → Server

3. Session Layer Functions

The Session Layer manages sessions (continuous exchanges of information) between applications.

Example: Video conference software uses sessions to keep the stream active and in sync.

4. Presentation Layer Functions

This layer handles syntax and data format translation between communicating systems.

Example: Encrypting data before sending → Decryption at the receiver side

5. Application Layer Functions

The Application Layer is the closest to the user. It provides network services to applications.

Example: - Web Browsing → HTTP
- Email → SMTP
- File Transfer → FTP

Diagram: OSI Model (Layers 4 to 7)

| Layer 7 | Application | Email, HTTP, FTP | | Layer 6 | Presentation| Encryption, Encoding | | Layer 5 | Session | Dialog Control | | Layer 4 | Transport | TCP, UDP (Reliable transfer) |