🎓 BookMCQ
← Back to 18. Introduction to Network Layer

📝 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
6
Easy
10
Medium
8
Hard

📝 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?

A.Significant degradation of the audio stream
B.Minor degradation that is often imperceptible to listeners ✅
C.No change in the audio quality
D.Improved audio quality due to reduced latency
💡 Difficulty: easy | ✅ Correct: B

📖 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?

A.Network Access Translation
B.Network Address Translation ✅
C.Node Allocation Technique
D.Network Authentication Token
💡 Difficulty: easy | ✅ Correct: B

📖 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?

A.It retransmits only the packets that were lost or corrupted ✅
B.It forces the sender to resend the entire window when any packet times out
C.It eliminates the need for acknowledgments altogether
D.It increases the size of the sending window to compensate for losses
💡 Difficulty: medium | ✅ Correct: A

📖 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?

A.Open‑loop relies on feedback from the network, while closed‑loop uses static policies
B.Open‑loop applies preventive policies before congestion, whereas closed‑loop reacts after congestion is detected ✅
C.Both mechanisms use the same timers but differ in packet size
D.Open‑loop is only used in wired networks, closed‑loop only in wireless networks
💡 Difficulty: medium | ✅ Correct: B

📖 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?

A.The sender will transmit more packets per unit time, raising congestion
B.The sender will wait longer before sending new data, reducing congestion ✅
C.Packet loss will increase, leading to higher retransmission rates
D.Throughput will double regardless of load
💡 Difficulty: medium | ✅ Correct: B

📖 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 LL is 0.6 and the congestion factor cc is defined as c=L2c = L^2. What is the approximate throughput TT if T=L−cT = L - c?

A.0.24 ✅
B.0.36
C.0.44
D.0.48
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: First compute the congestion factor: c=0.62=0.36c = 0.6^2 = 0.36. Then throughput T=L−c=0.6−0.36=0.24T = L - c = 0.6 - 0.36 = 0.24. 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?

A.Larger packets carry more important data, so dropping them speeds recovery
B.Dropping larger packets reduces the total number of bytes in the network more quickly ✅
C.Larger packets are easier to reconstruct after loss
D.Discarding larger packets has no effect on congestion
💡 Difficulty: medium | ✅ Correct: B

📖 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?

A.Higher acknowledgment frequency forces the sender to increase its window size, raising the transmission rate
B.Lower acknowledgment frequency causes the sender to assume network stability, increasing rate
C.Higher acknowledgment frequency provides quicker feedback, allowing the sender to sustain a higher rate without risking overflow ✅
D.Lower acknowledgment frequency leads to immediate retransmissions, decreasing overall rate
💡 Difficulty: medium | ✅ Correct: C

📖 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?

A.Increase the sending window to fill the newly available capacity
B.Maintain the current rate and wait for the loss to subside
C.Reduce the sending rate and halve the congestion window ✅
D.Switch to an open‑loop policy without further monitoring
💡 Difficulty: hard | ✅ Correct: C

📖 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?

A.Selective repeat gives priority to the flow with larger windows
B.Selective repeat reduces retransmission overhead, allowing both flows to maintain more equal throughput ✅
C.Selective repeat forces both flows to use the same fixed window size
D.Selective repeat increases latency for the smaller flow, reducing its share
💡 Difficulty: hard | ✅ Correct: B

📖 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?

A.The video will freeze completely
B.The stream will exhibit occasional frame drops but maintain overall smoothness ✅
C.Latency will increase dramatically, causing buffering
D.Audio will become out of sync with video
💡 Difficulty: hard | ✅ Correct: B

📖 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”?

A.Larger windows always improve throughput regardless of timers
B.A mismatched timer may cause unnecessary retransmissions, adding load ✅
C.Acknowledgment windows have no impact on congestion
D.Timers are irrelevant once the window size is set
💡 Difficulty: easy | ✅ Correct: B

📖 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?

A.To guarantee zero packet loss
B.To adjust the sending rate based on real‑time feedback
C.To limit the number of retransmissions before congestion builds up ✅
D.To eliminate the need for acknowledgments
💡 Difficulty: easy | ✅ Correct: C

📖 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?

A.Throughput rises linearly in the congestion area
B.Throughput peaks in the no‑congestion area and then declines as load increases ✅
C.Load has no effect on throughput in either area
D.Throughput constantly decreases as load grows, regardless of area
💡 Difficulty: medium | ✅ Correct: B

📖 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?

A.Acknowledging every packet reduces load more than acknowledging every N‑th packet
B.Acknowledging every N‑th packet reduces load but may increase retransmission due to delayed feedback ✅
C.Both approaches generate identical load on the network
D.Acknowledging every packet eliminates the need for retransmission timers
💡 Difficulty: medium | ✅ Correct: B

📖 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 22 seconds, but the average round‑trip time (RTT) of the network is 33 seconds, what is the likely effect on congestion?

A.No effect, because timers are independent of RTT
B.Congestion will decrease due to faster retransmissions
C.Congestion will increase because premature timeouts cause unnecessary retransmissions ✅
D.Throughput will double automatically
💡 Difficulty: hard | ✅ Correct: C

📖 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?

A.Stricter acknowledgment policies always increase throughput
B.Less frequent acknowledgments reduce feedback, potentially lowering throughput ✅
C.More frequent acknowledgments guarantee higher throughput regardless of congestion
D.Acknowledgment policy does not affect throughput
💡 Difficulty: hard | ✅ Correct: B

📖 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?

A.Less‑sensitive packets contain redundant data that the ear cannot detect ✅
B.These packets carry the most critical audio frequencies
C.They are the only packets that experience delay
D.Dropping them forces the sender to resend the same data
💡 Difficulty: medium | ✅ Correct: A

📖 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.

A.Both signals trigger identical window adjustments
B.Loss‑based algorithms react faster than RTT‑based ones
C.RTT‑based algorithms can detect congestion earlier before loss occurs ✅
D.Loss‑based algorithms never reduce the sending rate
💡 Difficulty: hard | ✅ Correct: C

📖 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?

A.Acknowledgments are larger than data packets
B.Every acknowledgment occupies bandwidth that could otherwise carry data ✅
C.Acknowledgments are duplicated across all routers
D.They are transmitted at a higher priority than data packets
💡 Difficulty: easy | ✅ Correct: B

📖 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?

A.It reduces the chance of congestion by smoothing traffic
B.It has no impact on congestion probability
C.It raises the probability of congestion by injecting more packets into the network ✅
D.It guarantees zero packet loss
💡 Difficulty: medium | ✅ Correct: C

📖 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?

A.Size‑based dropping always preserves quality better
B.Time‑based dropping better maintains frame timing ✅
C.Both policies have identical impact on quality
D.Size‑based dropping reduces jitter more effectively
💡 Difficulty: hard | ✅ Correct: B

📖 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”?

A.Congestion is always eliminated by open‑loop policies
B.Open‑loop policies cannot react to unexpected traffic spikes ✅
C.Open‑loop policies guarantee maximum throughput
D.Open‑loop policies rely on real‑time feedback to adjust rates
💡 Difficulty: easy | ✅ Correct: B

📖 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.

A.Selective repeat eliminates the need for acknowledgments
B.Go‑Back‑N requires larger buffers, increasing delay
C.Selective repeat avoids retransmitting correctly received packets, saving bandwidth ✅
D.Go‑Back‑N doubles the window size each round
💡 Difficulty: hard | ✅ Correct: C

📖 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.

🔗 Related Topics (MCQs)