CYBER LIBRARY
Explore the bootcamp
Connected systemsBeginner

Transmission Control Protocol

Understand TCP connections, ordered streams, retransmissions, and why a successful handshake cannot prove an application action succeeded.

3 min readUpdated 12 Oct 20265 connections
Markdown

A reliable stream between endpoints

Transmission Control Protocol, or TCP, gives applications an ordered stream of bytes between communication endpoints. Sequence information, acknowledgments, and retransmission help the receiver reconstruct data despite loss or reordering on the network. Reliability here concerns transport behavior. It does not promise that a remote application will accept an order, save a file, or keep running indefinitely.

The endpoint context includes addresses and Ports and services. A server can handle many connections, so “the server uses TCP” is only the beginning of describing a particular exchange.

Separate connection setup from useful work

A typical connection starts with a three-way handshake. The peers establish transport state before exchanging application data. Establishing that state differs from authenticating a user or authorizing a request. Those decisions belong to other mechanisms, often above TCP.

Consider a fictional learner downloading a course handout. The laptop reaches the server and establishes a connection, but the learner's session has expired. The server can return an application response asking them to sign in. The transport worked while the requested download did not happen.

This distinction changes troubleshooting. If the application returns a clear error, repeatedly changing network settings may distract from the actual account or application problem.

Bytes do not carry application boundaries

An application must define how its messages are represented within the stream. One application write does not necessarily correspond to one network packet or one receiver read. Protocol designers therefore use mechanisms such as lengths, delimiters, or structured framing to distinguish messages.

For the handout example, a packet capture is not automatically a list of complete documents. An analyst must understand the application protocol, the capture's completeness, and whether encryption prevents content inspection. Packet analysis develops that evidence question.

Delay has more than one cause

Retransmissions can indicate that data was not acknowledged as expected, but they do not identify the cause by themselves. Congestion, loss, capture limitations, endpoint behavior, and path changes can complicate an observation. Record where the capture was collected and what it actually contains.

A TCP acknowledgment concerns transport receipt; it should not be reported as proof that the application completed a database transaction. For the fictional learner, the useful evidence might combine transport observations with the HTTP response and server records.

Add the security properties separately

TCP does not itself encrypt the application stream. TLS and secure transport can protect a suitable connection, while application identity and permission checks determine access. TCP and UDP compares transport responsibilities without reducing them to “safe” and “unsafe.”

In a lab you own, draw the sequence from connection setup to a rejected download. Mark which observation supports reachability, which supports an encrypted exchange, and which explains the application outcome. The exercise is successful when you can state what each layer proves and what remains unknown.

GO TO THE SOURCE

References & further reading

Original explanations, with primary references for deeper study.

IETF: TCP specification
EXPLORE THIS IDEA’S CONNECTIONS

A small part of a bigger picture.

6 notes · 9 connections
100%
Transmission Control Protocol · depth 1
Drag to pan · Pinch or use +/− to zoom · Click to preview · Double-click to read
Browse notes as a list (6)
FOLLOW ANOTHER THREADExplore the rest of the library
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.