CS FundamentalsHardGATE CS · Product company CS fundamentals
Two hosts, each behind a different NAT, want to set up a direct UDP connection for a video call. Why are STUN/TURN servers used?
- A. STUN assigns public IP addresses to hosts behind NAT
- B. TURN converts the UDP stream to TCP so NAT can forward it
- C. STUN reveals each public IP:port for hole punching; TURN relays if that fails
- D. They replace DNS so the hosts can find each other's private addresses
Correct answer: C. STUN reveals each public IP:port for hole punching; TURN relays if that fails
NATs drop unsolicited inbound packets, and hosts only know their private addresses. STUN reveals the external mapping; both sides then send to each other's public endpoint to open mappings. Symmetric NATs often defeat this, so TURN relays the media.
More Computer Networks questions
- A recursive resolver starts with an empty cache. Client 1 resolves a.example.com, then client 2 resolves b.example.com. Counting only…
- An HTTP/1.1 server streams a response whose final size is unknown when it starts sending. How does the client know where the body ends on…
- Which Cache-Control directive lets a cache store the response but requires it to revalidate with the origin server before every reuse?
- Which statement about mail submission and retrieval is correct?
- Using the TCP throughput model T ≈ 1.22 × MSS / (RTT × √p), what throughput can a Reno flow reach with MSS = 1460 bytes, RTT = 100 ms and…
- A 1000-byte packet is sent at 10 Mbps over a 100 km link (signals at 2 × 10⁸ m/s). At the moment the LAST bit leaves the sender, where is…