What are Two Characteristics Shared by TCP and UDP? (Choose Two.)
The two characteristics TCP and UDP share are these: both use port numbers to identify the sending and receiving application process, and both include a checksum field in their header to detect corruption in transit. If you are sitting the CCNA and this question appears, those are your two answers.
Everything else on the typical answer list belongs to one protocol or the other. The three-way handshake, retransmission, and windowing are TCP only. Connectionless, best-effort delivery is UDP only. The exam is testing whether you can sort features into three piles — TCP only, UDP only, and both — and ports plus the checksum are the two that land in "both."
Port numbers: how both protocols reach the right application
IP, at Layer 3, only solves half the delivery problem: it gets a packet to the right host. But a host runs dozens of programs at once — a browser, an email client, a voice app — and the transport layer has to get each chunk of data to the right one. That sorting job is called multiplexing on the way out and demultiplexing on the way in, and port numbers are how both TCP and UDP do it.
Every TCP segment and every UDP datagram carries a source port and a destination port, each a 16-bit number from 0 to 65535. The destination port tells the receiving host which service should get the data: port 80 for a web server, port 53 for DNS, port 443 for HTTPS. The source port, usually a temporary high-numbered port chosen by the client, tells the server where to send the reply. The combination of IP address and port — sometimes called a socket — identifies one specific conversation between two specific applications.
Notice that the port number space is shared. Port 53 means DNS whether the query travels over UDP (the usual case) or TCP (used for large responses and zone transfers). The port identifies the service; a separate field in the IP header records which transport protocol is carrying it. That is why "uses port numbers" is a genuinely shared characteristic and not a trick: the mechanism is identical in both protocols, even though the conversations it steers behave very differently.
This is also how one busy server holds thousands of conversations with a single service at once. Each client chooses a different source port, so every connection forms a unique four-part combination — source address, source port, destination address, destination port — and the transport layer can keep every stream separate even when all of them are aimed at the same well-known port.
The checksum: shared error detection
The second shared characteristic sits in both headers: a 16-bit checksum. The sender calculates it over the header, the data, and a small "pseudo-header" borrowed from the IP layer (the source and destination IP addresses, the protocol number, and the length). The receiver runs the same calculation on arrival. If the two values do not match, something was corrupted on the wire, and the segment or datagram is discarded.
Two precision points are worth knowing. First, the checksum only detects errors — neither protocol uses it to fix anything. When TCP detects a bad segment it discards it and its reliability machinery (acknowledgments and retransmission) repairs the loss. When UDP detects a bad datagram, it simply drops it; recovering from that, if it matters at all, is the application's problem. Second, the checksum is mandatory in TCP but was historically optional in UDP over IPv4, where a value of zero meant "no checksum computed." In IPv6 the UDP checksum is mandatory, because IPv6 removed the IP header checksum that IPv4 had and something still has to guard the payload. For the exam, though, the headline fact is simple: the field exists in both protocols.
Other traits they genuinely share
A few more similarities are real, even if they are less commonly the keyed answers:
- Both operate at the transport layer (Layer 4) and ride on top of IP, which handles the actual routing between networks.
- Both take data from applications and break it into transport-layer units — segments in TCP, datagrams in UDP — sized for the network below.
- Both work over IPv4 and IPv6 without changing their own basic design.
Knowing these helps you eliminate options confidently, but when a question asks for exactly two shared characteristics, port numbers and the checksum are the pair the curriculum is pointing at.
Where they part company: the distractor factory
Most wrong answers in this question family are true statements — about only one protocol. Learn the one-sided list and the "choose two" format loses its sting:
- Connection-oriented setup: TCP opens a connection with a three-way handshake (SYN, SYN-ACK, ACK) before data flows. UDP just sends. TCP only.
- Reliability: TCP acknowledges received data, retransmits what is lost, and uses sequence numbers to hand the application a complete, in-order stream. UDP offers none of this. TCP only.
- Flow control and congestion control: TCP's sliding window stops a fast sender overwhelming a slow receiver, and TCP backs off when the network is congested. UDP has no such machinery. TCP only.
- Low overhead and best-effort delivery: UDP's header is a lean 8 bytes against TCP's 20 or more, and UDP makes no delivery promises at all. That is UDP's whole identity — and why DNS, VoIP, live streaming, and DHCP choose it: timeliness beats perfection, or the application prefers to handle reliability itself.
How to attack "choose two" questions
Work through the options one at a time and label each: TCP only, UDP only, or both. Select only from the "both" pile, and be suspicious of any option that describes a behaviour (guaranteeing, ordering, handshaking) rather than a mechanism both headers contain.
Self-check one: the options are (a) three-way handshake, (b) checksum error detection, (c) sliding-window flow control, (d) port numbers. The handshake and windowing are TCP-only behaviours, so the answers are (b) and (d).
Self-check two: the options are (a) guaranteed delivery, (b) uses port numbers to identify applications, (c) connectionless delivery, (d) checksum field in the header. Guaranteed delivery is TCP only, connectionless delivery is UDP only — opposite one-sided traits planted to catch pattern-matchers. The shared pair is again (b) and (d). Once you see that the two correct answers are almost always the port numbers and the checksum, this question becomes free marks. You will meet the same transport-layer sorting across the Network+ N10-009 syllabus, so it is worth locking in before you move on.
For the official objectives behind these transport-layer topics, see CompTIA's Network+ certification page.
Popular Cisco Exams & Practice Tests
The Cisco exams below are the most practised on Study4Pass — every exam page includes a free practice test and the full AI-Enabled question bank with Ask AI on every question.
Related Cisco Certifications
The Cisco certifications below are related to the exams covered in this article — every certification page lists its exams with a free practice test on Study4Pass.