









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Problem
Total Delay Total delay is the overall time taken by a data packet to travel from the sender to the receiver in a computer network. It is the sum of all delays experienced by the packet at different stages during transmission. Trotal = Tt + Tp + Tq + Tpro Where: ¢ 7Tt= Transmission Delay ¢ Tp = Propagation Delay * Tq = Queueing Delay * Tpro = Processing Delay & Choke Packet in Computer Networks Achoke packet is a control packet used in congestion control. When a router experiences heavy traffic or congestion, it sends a choke packet to the sender, requesting it to reduce the rate of data transmission. When the sender receives the choke packet, it decreases its sending speed for a certain period, helping to reduce network congestion. & Working of Choke Packet 1. Network becomes congested due to heavy traffic 2. Router detects congestion 3. Router sends a choke packet to the source (sender) 4. Sender reduces its transmission rate 5. Network gradually returns to normal condition Wy Importance of Choke Packet * Controls congestion: Helps in reducing excessive network traffic * Prevents packet loss: Avoids dropping of packets due to overload * Improves performance: Ensures smooth and efficient data transmission * Provides feedback: Gives direct information from router to sender * Efficient bandwidth usage: Prevents unnecessary data flow In even parity, we add 1 parity bit so that the total number of 1's in the codeword is even. lll All Possible 2-bit Datawords: Dataword Number of 1's Parity Bit Codeword (Data + Parity) 00 0 (even) 0 000 01 1 (edd) 1 on 10 1 (odd) 4 101 14 2 (even) 0 110 Problem (al Even Parity — Codeword Generation & Error Detection ‘Codeword / Received Dataword / Received No. of 1's Parity Bit ‘Codeword Parity Check Result ial 01 1 (odd) 1 on Satisfied No Error 10 1 (odd) 1 101 Satisfied No Error "1 2 (even) 0 110 Satisfied No Error 111 (Received) 3 (odd) _ 111 Violated Error Present » Key Point «© Even parity requires total number of 1’s to be even © If odd — error detected v Virtual Circuit Approach in Packet Switching The virtual circuit approach is a method where a fixed logical path is created before sending data, and all packets follow the same path. © Function The main functions of virtual circuit approach are: * Path Setup: Establishes a route before transmission * Packet Forwarding: All packets follow the same path * VC Identifier (VCI): Each packet carries a small |D instead of full address * In-order Delivery: Packets arrive in the correct sequence * Connection Termination: Path is released after communication il Example Suppose a sender wants to send data from A to D: 1. Path isse: A-B-C—D 2. All packets follow this same path 3. Packets reach destination in order © Like a train route where all coaches follow the same track Classful and Classless Addressing in IPv4 ¢ Classful Addressing ‘Classful addressing is an older method of IPv4 addressing in which IP addresses are divided into fixed classes such as A, B, and C. Each class has a predefined range and a fixed division between the network and hast portions. In this method, the subnet mask is fixed for each class, and the size of the network and host fields cannot be changed. This leads to inefficient use of IP addresses, as many addresses may be wasted. * Classless Addressing ‘Classless addressing, also known as CIDR (Classless Inter-Domain Routing), is a modern method of IPv4 addressing that does not use fixed classes. Instead, it allows flexible division of IP addresses using a prefix length. In this appreach, the network and hast portions can be adjusted according to the requirement, leading to efficient utilization of IP addresses. It also supports subnetting and supernetting. Guided Transmission Media — Characteristics Guided transmission media are physical paths (like cables) that guide signals from sender to receiver. * Main Characteristics 1. Bandwidth * Amount of data that can be transmitted per second ® Higher bandwidth — faster data transmission 2. Attenuation * Loss of signal strength over distance * Requires repeaters/amplifiers 3. Noise/Interference * Disturbances that affect signal quality * Includes electromagnetic interference 4. Cost * Installation and maintenance cost varies * Example: Fiber optic is costly but efficient 5. Security More secure than wireless * Difficult to tap data ® Stable and less affected by environmental conditions «Fiber optics are highly reliable 7. Speed *® Depends on medium used « Fiber optic offers highest speed 8. Physical Size and Installation * Some cables are bulky (coaxial), some are lidhtweight (fiber) «= Installation complexity varies + & Hamming Distance Hamming distance is the number of positions in which two binary strings differ. In other words, it counts how many bits are different between two codewords. © Formula / Idea Compare both binary strings bit by bit and count the number of differences. (ol Example Take two codewords: 10101 11100 Compare: Bit Position 1 2 3 4 Codeword 1 1 Q 1 0 Codeword 2 1 1 1 0 Difference ie) 1 o ° Number of differences = 2 «@ Hamming Distance = 2 L «& Guided and Unguided Media * Guided Media (Wired) Guided media use cables to send data. How it works: Signals travel through a physical path (wire/cable) from sender to receiver. Examples: Twisted pair, Coaxial cable, Optical fiber * Unguided Media (Wireless) Unguided media send data through air without cables. How it works: Signals travel as electromagnetic waves thraugh air to reach the receiver. Examples: Radio waves, Microwaves, Infrared <2 Simple Difference * Guided — Data travels through wire ® Unguided — Data travels through air Wireless Protocols in Computer Networks Wireless protocols are a set of rules and standards that govern how data is transmitted and received over wireless communication channels. These protocols ensure reliable, efficient, and secure communication between devices without using physical cables. They are widely used in applications such as mobile communication, wireless internet access, |oT devices, and short-range communication systems. Types of Wireless Protocols Wi-Fi (IEEE 802.11) Wi-Fi is the most commonly used wireless protocol for local area networks. It allows devices such as laptops, smartphones, and tablets to connect to the internet through wireless access points. It provides high data rates and is suitable for home, office, and public networks. Bluetooth (IEEE 802.15) Bluetooth is a short-range wireless protocol used for communication between devices like mobile phones, headphones, keyboards, and smartwatches. It consumes low power and is suitable for personal area networks. ZigBee ZigBee is a low-power, low-data-rate wireless protocol mainly used in loT applications such as home automation, industrial monitoring, and sensor networks. It supports large numbers of devices and has a long battery life, Cellular Protocols (2G, 3G, 4G, 5G) Cellular protocols are used in mobile communication systems. The coverage area is divided into cells, each served by a base station. These protocols provide voice, messaging, and high-speed internet services over large geographic areas. Infrared (IR) Infrared communication uses light waves for short-range communication. It requires a direct line of sight between devices and is commonly used in remote controls and simple data transfer systems. Characteristics of Wireless Protocols ® Provide communication without physical connections * Support mobility and portability of devices * Easy to install and expand ® Operate using electromagnetic waves ® May suffer from interference and signal loss ® Security is lower compared to wired communication Characteristics of WLAN Mobility: Users can move freely within coverage area Ease of Installation: No cables required Scalability: Easy to add new devices Limited Range: Coverage is restricted Interference: Affected by obstacles and other signals Security Issues: More vulnerable than wired networks Access Control (MAC in WLAN) WLAN uses CSMA/CA (Carrier Sense Multiple Access with Collision Avoidance) Working: 1. 2. 3. 4. 5. Device senses channel If idle > transmit If busy > wait Uses acknowledgment (ACK) Uses RTS/CTS mechanism to avoid collision Unlike wired networks (CSMA/CD), collisions are avoided rather than detected. * Bluetooth Technology Bluetooth Architecture Bluetooth uses a short-range wireless communication system based on radio waves. Piconet * One device acts as master « Up to 7 devices act as slaves * Master controls communication Scatternet * Multiple piconets connected * Devices can participate in more than one network Bluetooth Layers *® Radio Layer: Handles frequency and signal transmission * Baseband Layer: Manages data exchange and error correction * Link Manager Protocol (LMP): Controls link setup and security * L2CAP (Logical Link Control and Adaptation Protocol): Multiplexing and segmentation « RFCOMM: Provides serial communication Generations of Cellular Networks 1G (First Generation) * Analog communication * Only voice * Low quality and security 2G (Second Generation) * Digital communication * Supports SMS and voice ® Better security (GSM, CDMA) 3G (Third Generation) * Supports data services ® Internet access and video calls * Higher speed than 2G 4G (Fourth Generation) ® High-speed broadband * Supports HD video streaming e Uses IP-based communication © Technologies: LTE * Wireshark Introduction Wireshark is a network protocol analyzer used to capture, inspect, and analyze packets in real-time. It is widely used for network troubleshooting, analysis, and security monitoring. Working with Captured Packets * Captures live network traffic * Displays packet details (source, destination, protocol) * Allows filtering of packets * Helps identify network problems Analysis of Lower Layer Protocols Includes protocols like: * Ethernet: Frame-level analysis « IP: Addressing and routing * ARP: Address resolution Used to understand how data is transmitted at network and data link layers Analysis of Upper Layer Protocols Includes protocols like: * HTTP: Web communication « FTP: File transfer * DNS: Domain name resolution Helps analyze application-level communication and user activity. Wireless Packet Analysis * Capture Wi-Fi packets « Analyze signal strength and errors * Detect interference and packet loss « Identify security threats (unauthorized access)