Computer Networks Assignment 1 - NPTEL
Computer Networks Assignment 1 - NPTEL
Telnet is considered insecure because it transmits data, including login credentials, in plaintext over the network, making it susceptible to interception and unauthorized access. An alternative recommended for secure communication is SSH (Secure Shell), which encrypts all transmitted data, providing a secure channel over an unsecured network .
Selection of network switching techniques in modern enterprises is influenced by factors such as cost, scalability, network traffic patterns, and required fault tolerance. Packet switching is often favored because it allows dynamic allocation of network resources, enabling efficient use of bandwidth and facilitating scalability. Unlike circuit-switching, packet-switching easily adjusts to varying traffic loads and provides better fault tolerance, making it suitable for digital communication needs in enterprises .
In a hub, all ports reside in a single collision domain, meaning that if multiple devices try to send data simultaneously, collisions occur and data is lost. In a switch, each port is a separate collision domain, allowing for more efficient network traffic management, as only communications involving the same port could lead to collisions. A router, like a switch, provides separate collision domains per port, ensuring that each connected network segment operates independently from others in terms of collision .
Encapsulation ensures data integrity by systematically adding and later removing headers and trailers as data traverses the networking layers. Each layer adds specific control information, such as source and destination addresses or sequence numbers, that facilitate accurate data delivery and error checking. This layered processing maintains data fidelity from sender to receiver by ensuring routing, error correction, and data reassembly occur correctly .
Circuit switching is less efficient because it involves setting up a dedicated communication path between two hosts, which remains reserved even when no data is being transmitted, leading to resource wastage. Furthermore, it is less scalable, has greater setup time delays, and lacks fault tolerance compared to packet switching, which allows data to be sent in small packets over shared networks without requiring a dedicated path .
Mapping network devices to layers in the TCP/IP model helps clarify each device's functional role and interaction within the network architecture. For instance, hubs operate at the physical layer, switches and NICs at the data link layer, and routers at the network layer, each performing distinct functions. This layer-based mapping aids in designing, troubleshooting, and optimizing networks by providing a structured view of data flow and control .
Layer 2 devices such as switches and bridges differ significantly. Switches operate in full-duplex mode and support features like Quality of Service (QoS), Virtual LANs (VLANs), and Spanning Tree Protocol (STP), which are essential for managing complex networks efficiently. In contrast, bridges typically operate in half-duplex mode and are often used for simpler network setups. Moreover, switches utilize MAC address tables to direct traffic, reducing broadcast traffic compared to bridges, making them more suitable for modern networks .
Encapsulation involves adding headers and trailers to data as it moves down the layers of the TCP/IP stack. At each layer, specific information is added: the transport layer includes port numbers, and the network layer incorporates IP addresses. This process ensures that data is correctly routed and received at the intended destination, while encapsulation at each layer provides necessary information for data transfer control .
UDP, or User Datagram Protocol, is preferred for applications that do not require reliability because it is connectionless and provides minimal protocol overhead, resulting in faster data transmission. Applications like live video streaming or online gaming, where speed is more critical than the complete accuracy of transmitted data, benefit from using UDP due to its simplicity and low latency .
Network Interface Cards (NICs) facilitate high bandwidth transmissions through techniques like Large Send Offload (LSO), which reduce CPU overhead by passing multi-packet buffers to the NIC for segmentation. This process, also known as TCP Segmentation Offload (TSO), allows the NIC to handle the division of data into smaller packets, optimizing transmission efficiency and increasing throughput performance .