📝 Network Address Translation (NAT) types and function (24 MCQs)
Translating Addresses Between Network Realms
Network Address Translation modifies IP address information as packets pass through a translating device, commonly at an organization's Internet gateway. NAT allows private IPv4 addresses to communicate with public networks by translating source addresses, and sometimes transport-layer port numbers. It conserves public address usage but changes the end-to-end addressing behavior seen by hosts. Such services allow hosts on different physical links to communicate through intermediate network devices.
Static, Dynamic and Port Address Translation
Static NAT maps a private address to a fixed public address. Dynamic NAT selects an address from a configured public pool. Port Address Translation, often called PAT or NAT overload, allows many private hosts to share one public address by distinguishing sessions with transport-layer port mappings. Implementation details may vary, but addressing and forwarding principles remain consistent across participating routers.
Maintaining a Translation Table
For outbound traffic, a NAT device records the inside address and, where applicable, source port together with the translated public address and port. Return packets are matched against this state and translated back to the internal destination. Translation may also alter checksums because address or port fields have changed. The process continues until the packet reaches a directly connected destination network or final host.
Example of Multiple Hosts Sharing One Public Address
A workstation 192.168.1.10 opens a TCP connection using source port 51000. A PAT gateway translates it to public address 203.0.113.5 and port 40001. Another internal host receives a different external port mapping, allowing both sessions to share the same public IPv4 address. The values show the practical outcome of the rule and the role of the network device.
NAT and Private IPv4 Network Design
NAT is widely used with private IPv4 ranges because private addresses are not globally routed across the public Internet. Port translation reduces public address demand, while static mappings can expose selected internal services. NAT is not a firewall by itself, although stateful translation devices often combine address translation with filtering policies.
Misconceptions About NAT
'NAT encrypts traffic' is incorrect because address translation does not provide confidentiality. 'NAT and firewall are identical' is incorrect because translation and traffic filtering are different functions. 'PAT gives every host a different public address' is incorrect because many hosts can share one public address through port mappings. Accurate interpretation depends on identifying both the protocol layer and the device performing the operation.
NAT Mapping and Address Questions
Distinguish static NAT, dynamic NAT, and PAT by how mappings are created. Trace inside-local, inside-global, and port values through a translation table. Explain how return traffic is associated with a session, why checksums may change, and why NAT should not be described as encryption or full security protection. Use the given prefix, protocol fields, and units consistently when working through a scenario.
NAT Address Translation Terms
- NAT - translates network addresses
- Static NAT - fixed internal external mapping
- Dynamic NAT - selects address from pool
- PAT - translates transport port mappings
- Translation table - stores address-port mappings
- Private address - non-publicly routable address
📝 All Network Address Translation (NAT) types and function MCQs
Q1. If a router discards less‑sensitive audio packets during congestion, what is the most likely effect on perceived audio quality?
📖 Explanation: Discarding only the packets that are less critical (e.g., low‑priority audio frames) removes some data but keeps the essential speech or music intact. Listeners may notice a brief glitch, but overall quality remains acceptable, making the impact minor rather than severe.
Q2. What does NAT stand for in networking?
📖 Explanation: NAT is the abbreviation for Network Address Translation, a technique used by routers to remap private IP addresses to a public address space, allowing multiple devices to share a single external IP while preserving internal address uniqueness.
Q3. How does a selective‑repeat ARQ window reduce congestion compared with a Go‑Back‑N window?
📖 Explanation: Selective repeat acknowledges each packet individually and only resends those that the receiver indicates as missing. This avoids unnecessary duplicate transmissions that occur in Go‑Back‑N, where a timeout causes the whole window to be resent, thereby lessening extra traffic and mitigating congestion.
Q4. Which statement best differentiates open‑loop from closed‑loop congestion control?
📖 Explanation: Open‑loop mechanisms are proactive, configuring sending rates, window sizes, or discarding policies to avoid congestion before it manifests. Closed‑loop mechanisms monitor network signals such as packet loss or delay, then adjust transmission parameters in response, making them reactive rather than preventive.
Q5. If the acknowledgment timer at a receiver is increased, what is the most direct impact on network congestion?
📖 Explanation: A longer acknowledgment timer delays the receiver’s feedback, causing the sender to pause longer before sending additional data. This reduces the overall packet generation rate, thereby lowering the load on the network and mitigating potential congestion.
Q6. Consider a network where the offered load is 0.6 and the congestion factor is defined as . What is the approximate throughput if ?
📖 Explanation: First compute the congestion factor: . Then throughput . The closest answer among the options is 0.24, which corresponds to option A, but the question asks for the approximate value, and option C (0.44) is incorrect. Therefore the correct answer is A.
Q7. Why might a router implement a discard policy that preferentially drops packets with larger payloads during congestion?
📖 Explanation: When congestion occurs, each transmitted byte contributes to queue occupancy. By discarding packets with larger payloads, the router removes more bytes per dropped packet, freeing buffer space faster and lowering overall traffic volume. This strategy can alleviate congestion more efficiently than dropping many small packets.
Q8. Which of the following best explains the cause‑effect relationship between acknowledgment frequency and sender transmission rate?
📖 Explanation: Frequent acknowledgments give the sender timely confirmation that earlier packets arrived safely, enabling it to keep its congestion window open and transmit at a higher rate. Conversely, sparse acknowledgments leave the sender uncertain, prompting it to reduce its window to avoid potential overflow, thus lowering the transmission rate.
Q9. A network experiences a sudden increase in packet loss, and the sender observes a rise in round‑trip time (RTT). Which closed‑loop congestion control response is most appropriate?
📖 Explanation: When loss and RTT grow, classic closed‑loop algorithms such as TCP’s congestion avoidance interpret these signals as congestion. The standard reaction is to cut the congestion window—often by half—to lower the sending rate, thereby easing the load and allowing the network to recover.
Q10. In a scenario where two flows share a single bottleneck link, how does the selective repeat ARQ mechanism influence fairness compared to Go‑Back‑N?
📖 Explanation: Selective repeat only retransmits the specific missing packets, minimizing unnecessary duplicate traffic. This lower overhead means each flow consumes fewer extra bytes, helping both flows achieve more comparable effective throughput on the shared bottleneck, whereas Go‑Back‑N can cause one flow to dominate due to larger redundant retransmissions.
Q11. If a router employs a policy of discarding packets that exceed a jitter threshold during video streaming, what is the most likely outcome for the stream’s quality?
📖 Explanation: Dropping packets that exceed jitter limits removes frames that would otherwise arrive too late to be displayed correctly. This leads to brief visual gaps (frame drops) while preserving the timing of the remaining frames, resulting in a stream that appears generally smooth despite occasional missing pictures.
Q12. Which logical inference can be drawn from the statement: “Increasing the acknowledgment window size without adjusting the retransmission timer can lead to higher congestion”?
📖 Explanation: If the acknowledgment window grows but the timer remains unchanged, timeouts may fire for packets that are still in transit, prompting retransmissions that are not needed. These extra packets increase the traffic load, thereby worsening congestion.
Q13. What is the primary purpose of an open‑loop retransmission policy in congestion prevention?
📖 Explanation: An open‑loop retransmission policy sets constraints—such as a maximum number of retries or a fixed timeout—so that the sender does not endlessly resend lost packets. By capping retransmissions, it prevents the sender from adding excessive traffic that could exacerbate congestion.
Q14. How does the concept of “no‑congestion area” versus “congestion area” relate to the throughput‑load curve shown in Figure 18.13?
📖 Explanation: The figure typically shows that as load approaches the network’s capacity, throughput increases until the no‑congestion region is reached. Beyond that point, additional load leads to queuing delays and packet loss, causing throughput to plateau or even drop, which defines the congestion area.
Q15. Which analytical comparison correctly contrasts the impact of “acknowledging every packet” versus “acknowledging every N‑th packet” on network load?
📖 Explanation: Sending an acknowledgment for each received packet adds a control packet for every data packet, increasing overhead. By acknowledging only every N‑th packet, the acknowledgment traffic is reduced, but the sender receives feedback less frequently, potentially causing longer periods before loss detection and higher retransmission rates.
Q16. If a source node uses a fixed retransmission timer of seconds, but the average round‑trip time (RTT) of the network is seconds, what is the likely effect on congestion?
📖 Explanation: When the timer is shorter than the actual RTT, the sender will frequently time out before acknowledgments arrive, leading to repeated unnecessary retransmissions. These extra packets add load to the network, elevating congestion levels and potentially causing further delays.
Q17. What inference can be made about the relationship between acknowledgment policy and sender throughput in a congested network?
📖 Explanation: When acknowledgments are sent less often, the sender receives fewer signals to confirm successful delivery, which can cause it to pause longer before sending new data. This reduced feedback can limit the sender’s ability to fully utilize available bandwidth, thereby lowering throughput under congestion.
Q18. Which logical reasoning best explains why discarding “less‑sensitive” packets during audio streaming preserves perceived quality?
📖 Explanation: If the discarded packets correspond to data that the human auditory system deems non‑essential (e.g., low‑priority background noise), their loss does not noticeably affect the listener’s experience. Hence, the overall perception of quality remains largely intact despite the removal of such packets.
Q19. Analyze how a “closed‑loop” congestion control algorithm that uses packet loss as a signal differs from one that uses increasing RTT as a signal.
📖 Explanation: Increasing RTT indicates growing queuing delay, a precursor to loss. Algorithms that monitor RTT can preemptively shrink the sending window, avoiding packet drops. In contrast, loss‑based algorithms only react after packets are dropped, which may be later and cause more severe congestion. Therefore, RTT‑based methods can act earlier.
Q20. Which conceptual principle explains why acknowledgments themselves contribute to network load?
📖 Explanation: An acknowledgment packet, though typically small, still consumes a portion of the available bandwidth. When many acknowledgments are generated—especially in high‑frequency communication—the cumulative effect can be a non‑trivial portion of the link’s capacity, thereby adding to the overall load.
Q21. How does increasing the window size at the sender affect the likelihood of congestion in a network with fixed capacity?
📖 Explanation: A larger sending window permits the sender to inject more packets into the network before receiving acknowledgments. In a link with fixed capacity, this increased injection can exceed the available bandwidth, leading to queue buildup and higher chances of congestion and packet loss.
Q22. Compare the effect of a “discard policy” that drops packets based on payload size versus one that drops packets based on arrival time. Which policy is more likely to preserve application‑level quality for real‑time video?
📖 Explanation: Real‑time video relies heavily on maintaining regular frame intervals. Dropping packets that arrive later than a deadline (time‑based) directly prevents late frames from being displayed, preserving smooth playback. Size‑based dropping may remove large frames that are critical for visual fidelity, potentially degrading quality.
Q23. Which logical inference follows from the statement: “Open‑loop policies are applied by the source or destination before congestion occurs”?
📖 Explanation: Since open‑loop mechanisms are designed to act before congestion manifests, they lack the ability to adapt to sudden, unforeseen traffic surges. Consequently, while they can reduce the probability of congestion under typical conditions, they cannot respond dynamically to unexpected spikes.
Q24. Evaluate why a “window policy” that uses selective repeat is generally more efficient than one that uses Go‑Back‑N in high‑delay networks.
📖 Explanation: In high‑delay environments, each retransmission consumes significant time and bandwidth. Selective repeat only resends the specific missing packets, preventing the unnecessary transmission of packets that have already been correctly received. This targeted approach conserves bandwidth and reduces overall delay, making it more efficient than Go‑Back‑N, which resends entire windows.