VTU BEC702 Computer Networks Q&A Guide
VTU BEC702 Computer Networks Q&A Guide
When applying Dijkstra's algorithm, it is vital to accurately represent network nodes and links with precise weight assignments reflecting the actual cost in terms of latency, bandwidth, or other metrics . The algorithm systematically assesses all paths from a source node, updating shortest paths for connected nodes and recalculating costs iteratively until the least-cost paths are determined for all nodes, ensuring efficient and optimized routing . Considerations include handling dynamic network changes and ensuring up-to-date link state information to maintain route accuracy .
The TCP three-way handshake initiates reliable communication by first sending a SYN packet to request a connection, followed by a SYN-ACK response from the receiver to acknowledge and confirm willingness to connect, and ends with an ACK from the initiator to finalize the setup . This process is crucial as it synchronizes sequence and acknowledgment numbers, exchanges initial sequence numbers, and ensures both parties are ready for data transfer, minimizing risks of data corruption or reordering .
Static web documents are fixed content files directly served to users without modification, ideal for information that doesn't change frequently, requiring little server resources, and ensuring security and ease of caching . Dynamic web documents, however, are generated in real-time, responding to user interactions and incorporating database content, enabling personalized experiences and real-time data updates, but requiring more server power and layers of interaction, affecting performance and security management .
Mesh topology provides point-to-point connectivity between devices, offering high redundancy but moderate scalability due to increased complexity with each added device . Star topology centralizes connections to a single hub, enhancing manageability and scalability but risking single-point failure at the hub . Bus topology connects all devices along a single cable, which is inexpensive and easy to extend, but lacks redundancy and faces scalability issues due to increasing signal reflection and collision risk as more devices join . Ring topology features point-to-point transfer in a circular manner, enabling sequences of data but adds vulnerability since a failure in any device affects the entire network; however, it's relatively easy to troubleshoot .
LAN (Local Area Network) is designed for limited geographic areas like a single building, providing high-speed connectivity and low latency, suitable for small to medium user groups . WAN (Wide Area Network) spans larger geographic areas, connecting multiple LANs over telecommunications links that introduce higher latency and lower speed compared to LANs, but support extensive and dispersed user groups . While LANs are often used within organizations, WANs are essential for connecting dispersed networks and accessing global resources .
ARP translates IP addresses into MAC addresses by broadcasting a request on the local network and retrieving the intended device’s MAC address through direct reply, enabling efficient data delivery over Ethernet networks . Challenges include ARP spoofing or cache poisoning, wherein attackers misleadingly associate their MAC address with the IP address of a legitimate device, potentially leading to man-in-the-middle attacks .
Encapsulation wraps data with protocol information at each layer of the TCP/IP model, allowing for compatibility between different network protocols by adding headers containing necessary routing and handling data . Decapsulation removes these layers at the receiver's end, translating the message back to its original form and ensuring it is understandable by the receiving application, bridging communication between heterogeneous network systems .
The TCP state transition diagram visually represents the transitions between various TCP states such as LISTEN, SYN_SENT, SYN_RECEIVED, ESTABLISHED, FIN_WAIT, and CLOSED, detailing how TCP moves through connection establishment, data transfer, and termination phases . It facilitates understanding by mapping events like SYN/ACK reception, FIN packets, and timeouts to state changes, highlighting TCP's complex logic for ensuring reliable, ordered communications and correct teardown of connections, thereby aiding in diagnosing connection issues and performance tuning .
CSMA/CA (Carrier Sense Multiple Access/Collision Avoidance) reduces collision risk by using carrier sensing to check for channel availability before transmission and deferring transmission if the channel is busy; it also uses acknowledgment packets to ensure data receipt . Limitations include significant overhead and latency due to waiting times and possible hidden node problems where devices beyond mutual range collide, unaware of each other's transmissions .
Connection-oriented protocols, like TCP, establish a connection before data transfer and ensure reliable, ordered delivery with error recovery mechanisms, introducing higher overhead due to control messages and state tracking . In contrast, connectionless protocols, like UDP, send data without establishing a dedicated end-to-end connection, offering faster transmission with lower overhead but without guaranteed reliability or order, making them suitable for applications like streaming where speed is prioritized .