Final Study Guide for CS/ECE 438
Final Study Guide for CS/ECE 438
A minimum frame size is necessary in Ethernet networks to ensure that a transmitting station can detect collisions before finishing the transmission of a frame. This requirement stems from the need for the signal to travel to the furthest node in a network and back in order for a collision to be detected. The minimum required frame size is calculated as 2 times the propagation delay (dprop) in bit times . For example, with an Ethernet span of 2 kilometers and signal speed of 1.8 × 10^8 m/s, the minimum frame size is approximately 222 bits .
Link state multicast routing provides precise and efficient packet routing by constructing shortest-path trees, beneficial in bandwidth conservation but computationally intensive due to the need for global state knowledge. Conversely, reverse-path multicast leverages existing router states to efficiently forward broadcast data with lower computational costs, though potentially less optimal in path selection without updated global routing information, which can lead to redundant data transmissions in dynamic or large networks .
In a 40-Gbps TCP connection, the sequence numbers wrap around in approximately 859 milliseconds. This short wraparound time necessitates careful management to avoid sequence number collisions and ensure proper data tracking, which could otherwise lead to data misinterpretations if packets from different sessions appear as having the same sequence number within the same timeframe .
To fragment a 2400-byte datagram into a link with an MTU of 700 bytes, we divide the data into segments that fit within the MTU minus the IP header size of 20 bytes. This results in four fragments: three are 680 bytes each, and the last is 360 bytes including headers. Each fragment retains the same identification number, 422, with the exception of the last fragment, each carries a flag indicating more fragments follow. Their offsets are 0, 85, 170, and 255, respectively .
Two-dimensional parity allows for the correction of any single-bit error by identifying the erroneous bit in both row and column parity checks . However, it is limited in that it cannot correct errors if multiple bits in the same row and column are affected, such as in the case of a two-bit error, although it can still detect up to three-bit errors by identifying inconsistencies in the parity checks . The Hamming distance of two-dimensional parity is 4 for detection and 3 for correction .
TCP headers with a timestamp field that updates, such as 1000 times during the sequence number wraparound time, provide mechanisms for more accurate round-trip time measurements and retransmission timeout calculations. This can mitigate sequence number ambiguity due to rapid wraparounds and enhance performance through reduced latencies, though it introduces additional header data and increases processing overhead .
Sliding window protocols are used to manage the flow of data packets in communication networks, allowing multiple packets to be sent before needing an acknowledgment for the first one. The size of the sequence number space is crucial; a too-small sequence space might lead to errors or inefficiencies, while a larger space allows for greater flow efficiency and reduces wait times for acknowledgment. For instance, with a station-to-satellite link and a 1-Mbps bandwidth, using a sliding window size equal to the receiver window size (RWS) minimizes transaction time by accommodating the round-trip delay with 6 bits needed for the sequence number when RWS equals the sliding window size (SWS).
High-latency links, like satellite communications, necessitate careful selection of sliding window size to maximize throughput while avoiding overloading the receiver's buffer. Long latencies necessitate larger window sizes to compensate for the inherent delay in acknowledgments returning from the receiver. Moreover, synchronization of window sizes between sender and receiver is critical to handle variable latency and prevent data loss or inefficiency due to mismatched configurations .
Using the link state method, each router computes the shortest-path multicast tree, ensuring efficient packet delivery but requiring more computational and information overhead to maintain up-to-date network state information . Reverse-path multicast takes advantage of routers' cached data from previous transmissions, sending data only to necessary network segments and pruning unnecessary paths, reducing bandwidth consumption and potentially increasing efficiency through path reuse .
CSMA/CD (Carrier Sense Multiple Access with Collision Detection) in Ethernet allows nodes to listen to the carrier before sending data, reducing chances of collision. When a collision is detected, the transmission halts immediately, and nodes wait for a random backoff interval before attempting retransmission. This mechanism requires sufficient frame size to detect collisions across the network's maximum cable length, allowing nodes to avoid overlapping transmission startup times that could lead to higher collision rates .