CYBER LIBRARY
Explore the bootcamp
Connected systemsBeginner

TCP and UDP

Compare streams and datagrams through application requirements, failure handling, and the evidence needed to understand a network exchange.

3 min readUpdated 12 Oct 20269 connections
Markdown

The idea

TCP provides a connection-oriented byte stream with mechanisms for ordering and retransmission. UDP provides datagrams without those delivery guarantees. Applications choose or build on these mechanisms depending on their needs. UDP does not mean an application cannot be reliable or encrypted; higher-level protocols can provide additional behavior. Investigating traffic requires knowing both the transport and the application using it.

In practice

A conventional HTTPS connection may use TCP, while HTTP/3 uses QUIC over UDP. A firewall policy that assumes every web connection is TCP can miss relevant traffic.

A common misunderstanding

TCP is not inherently secure and UDP is not inherently malicious. Transport guarantees and security protections are different properties.

Check your understanding

Why should an investigator identify the application protocol too?

Think it through: The port and transport alone cannot establish what the connection actually did.

Choose according to the user's task

Imagine two features in a fictional learning platform: downloading a workbook and participating in a live voice lesson. The workbook needs every byte reconstructed correctly. For the conversation, an old audio fragment may become useless after its playback deadline. These requirements help explain why applications make different transport choices.

TCP supplies a stream abstraction, so the workbook protocol must still identify the file's length, validate its meaning, and decide whether the operation completed. A voice application using UDP must decide how to sequence and buffer useful audio and handle missing or late datagrams. Neither choice eliminates application design.

Reliability and confidentiality are separate axes

Draw a two-axis comparison: delivery behavior on one axis and security protection on the other. A plain TCP exchange can provide ordering without encrypting the content. A protocol above UDP can provide cryptographic protection and additional reliability. This is why the transport name should not become a verdict about the exchange's safety.

For the learning platform, ask which endpoints can read the data, how their identities are checked, and what the application does after a timeout. These questions are more useful than simply asking whether its traffic is TCP or UDP.

Investigate an incomplete lesson

Suppose the workbook download fails while the voice lesson continues. The applications might use different services, routes, credentials, or error-handling behavior. A working feature cannot establish that the other's dependency is healthy. Record the specific destination, transport, time, and user-visible outcome before drawing a connection between them.

In a controlled lab, make a table for the two features with message boundaries, handling of loss, protection mechanism, and success evidence. Do not assume packet delivery proves the user action completed. Finish by explaining which responsibilities belong to transport and which remain with the application.

Keep exploring

GO TO THE SOURCE

References & further reading

Original explanations, with primary references for deeper study.

Cisco: Networking basicsIETF: TCP specificationIETF: UDP specification
EXPLORE THIS IDEA’S CONNECTIONS

A small part of a bigger picture.

8 notes · 14 connections
100%
TCP and UDP · depth 1
Drag to pan · Pinch or use +/− to zoom · Click to preview · Double-click to read
Browse notes as a list (8)
Start with a concept. Follow its connections.
Detection & responseAbuse Elevation Control MechanismElevation-control abuse bypasses or misuses mechanisms governing privileged execution.Making change happenAcceptance criteriaDefine observable conditions for a deliverable to be accepted.Security essentialsAccess controlUnderstand subjects, resources, permissions, and enforcement through a shared-drive example, including how access changes over time.Detection & responseAccess Token ManipulationAccess token manipulation changes or adopts operating-system security contexts.Risk & resilienceAccount Access RemovalAccount access removal disrupts legitimate users by changing, deleting, or restricting their identities.Evidence & investigationAccount DiscoveryAccount discovery enumerates identities available in a system or environment.Detection & responseAccount ManipulationAccount manipulation changes identity settings to preserve or expand access.Adversarial thinkingAcquire InfrastructureInfrastructure acquisition obtains domains, servers, or other resources used to support operations.Adversarial thinkingActive ScanningActive scanning probes target infrastructure to learn reachable services or weaknesses.Security essentialsAdversary in the middleAn intermediary may observe or alter a communication path.Security essentialsAESA symmetric block cipher whose safe use depends on its mode and implementation.Making change happenAgile deliveryUse short feedback cycles to adapt toward a useful outcome.