TCP
The internet protocol that delivers data between programs reliably and in order, used by the web and most databases.
In more detail
TCP stands for Transmission Control Protocol. It sets up a connection with a three-way handshake, numbers every byte, retransmits what is lost and presents an ordered byte stream to the application. HTTP, SSH and most databases run over it. A TCP health check proves a port accepts connections, not that the application behind it works.
Examples
Security group rules name the protocol and port, such as tcp 443 from the load balancer group.In the browser: TCP stands for Transmission Control Protocol. A browser opens a TCP connection to the server with a three-way handshake before any HTTP data can flow, which costs one network round trip.Send important syslog over TCP with TLS rather than UDP.tcp=s o=y r=y records stream delivery with ordering and retransmission.The Edge runtime cannot open raw TCP sockets, so TCP-based database drivers fail there.Related terms
- UDP — A simple internet protocol that sends messages without guaranteeing delivery or order, used by DNS and streaming.
- QUIC — A transport protocol built on UDP that provides reliable, encrypted, multiplexed connections and carries HTTP/3.
- HTTP/2 — A version of HTTP that sends the same methods, statuses and headers in a binary format and runs many requests at once over one connection.
- port — A number from 1 to 65535 that picks out one service on a machine, such as 22 for SSH or 80 for plain web traffic.
- IP address — The numeric address, such as 192.168.1.10, that identifies a machine or container on a network.
- HTTP — The protocol web browsers and web servers use to send requests and responses.
- TCP three-way handshake — The three-message exchange, SYN, SYN-ACK and ACK, that a client and server use to open a TCP connection before sending data.
- TLS — The encryption that protects data travelling over a network, the S in HTTPS.
- network socket — One end of a two-way network connection between programs, identified by an IP address and a port number.
- WebSocket — A protocol that turns an HTTP connection into a long-lived, two-way channel where client and server can each send messages at any time.
- half-open connection — A TCP connection that one side still thinks is open although the other side has gone away without closing it.
- TCP three-way handshake — The three messages that open a TCP connection: the client sends SYN, the server replies SYN-ACK, and the client answers ACK.
- byte stream — A continuous, ordered sequence of bytes with no built-in message boundaries, which is what TCP delivers to applications.
- retransmission — Sending data again because the sender did not receive an acknowledgement for it in time.
- database driver — The library that lets a program connect to and talk with a particular database.
- transport layer — The layer that carries data between programs on two machines, identified by port numbers, using TCP or UDP.
Taught in
- What An API Is, And The Alternatives — Modern API Architecture: REST, GraphQL & gRPC
- The Network As A Control: CIDR, Routes, ACLs And Security Groups — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Load Balancers And Auto Scaling: Capacity That Arrives On Time — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Route 53 Routing: Where Does A Fan In Lagos Land? — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Network Performance: Peering, Transit Gateway And The Edge — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- The Leeds Share Was Emptied: Azure Files, Snapshots And Identity — Microsoft Azure Administrator (AZ-104) Exam Prep
- Ten Thousand Scans By Morning: Registries, Instances And Container Apps — Microsoft Azure Administrator (AZ-104) Exam Prep
- Ten Workloads, One Week: The Compute Decision Drill — Microsoft Azure Administrator (AZ-104) Exam Prep
- Port 22 Answers From The Internet: NSGs And Application Security Groups — Microsoft Azure Administrator (AZ-104) Exam Prep
- Healthy, Said The Load Balancer: Azure DNS And Load Balancing — Microsoft Azure Administrator (AZ-104) Exam Prep
- The Reports Stopped On Friday: Troubleshooting With Network Watcher — Microsoft Azure Administrator (AZ-104) Exam Prep
- Blocked On Purpose: Opening One Path Through Default Deny — Certified Kubernetes Administrator (CKA) Exam Prep
- Which IP Answers: Pods, Services And NodePorts — Certified Kubernetes Administrator (CKA) Exam Prep
- Running, And Still Down — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Probes And Health Checks — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Observability: Timed Drill And Checkpoint — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Services And Networking: Timed Drill And Checkpoint — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Mock Exam: Sixteen Tasks Against The Clock — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Default Deny, Then Exactly The Doors You Need — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Network Exposure: NodePorts, Host Firewalls And Egress — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Mock Exam: Seventeen Security Tasks Against The Clock — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Security Groups and Firewalls — Cloud Infrastructure & Hyperscaler Architecture
- The Two A.M. Page — CompTIA Cloud+ (CV0-004) Exam Prep
- Peered To Everything, Reaching Nothing — CompTIA Cloud+ (CV0-004) Exam Prep
- Seven Wishes: AI Services And The Internet Of Things — CompTIA Cloud+ (CV0-004) Exam Prep
- Allowed In, Lost On The Way Back: Security Controls — CompTIA Cloud+ (CV0-004) Exam Prep
- ARG, ENV, LABEL, EXPOSE And VOLUME — Docker Architecture & Production Containers
- Port Publishing, Localhost And Network Troubleshooting — Docker Architecture & Production Containers
- How Browsers Work: Navigation, DNS, TCP, TLS And Request Timing — Frontend Architecture & Web Platform
- Critical Rendering Path: Preload, Prefetch And Scripts — Frontend Architecture & Web Platform
- Bidirectional WebSockets: Reconnection & Heartbeats — Production Full-Stack Engineering
- First Network And Observability Setup — Google Cloud Associate Cloud Engineer Exam Prep
- Networking: VPCs, Firewalls And Hybrid Links — Google Cloud Associate Cloud Engineer Exam Prep
- Tooling: Infrastructure As Code And AI Assistants — Google Cloud Associate Cloud Engineer Exam Prep
- Running Compute Engine — Google Cloud Associate Cloud Engineer Exam Prep
- Layers And Addresses — ISC2 Certified in Cybersecurity (CC) Exam Prep
- A Name That Outlives Its Pods: Services And DNS — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- The Status Tells You Where To Look: Troubleshooting Pods — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- One Dash Too Many: Segmentation With Network Policy — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Audit Day: Final Review — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- ClusterIP, Selectors, EndpointSlices And DNS — Kubernetes: Production-Grade Container Orchestration
- NodePort, LoadBalancer And ExternalName — Kubernetes: Production-Grade Container Orchestration
- NetworkPolicy And The Consul Service Mesh Boundary — Kubernetes: Production-Grade Container Orchestration
- Troubleshooting: DNS, Empty Endpoints And Broken Routes — Kubernetes: Production-Grade Container Orchestration
- Troubleshooting: A Timed Service Recovery Drill — Kubernetes: Production-Grade Container Orchestration
- A Tiny CRD, Controller And The Operator Pattern — Kubernetes: Production-Grade Container Orchestration
- The Layer Model, As Far As It Earns Its Place — Linux Fundamentals & Systems Administration
- TCP Versus UDP — Linux Fundamentals & Systems Administration
- Ports, Sockets And What Listening Means — Linux Fundamentals & Systems Administration
- The Handshake, And The States A Socket Passes Through — Linux Fundamentals & Systems Administration
- Firewalls: Default Deny, State And Rule Order — Linux Fundamentals & Systems Administration
- Load Balancing: Algorithms, Health Checks And Layers — Linux Fundamentals & Systems Administration
- Runtime Environments: Node.js vs Edge Runtime Choice — Next.js 15 & Modern App Router Architecture
- Event Loop Lifecycle: The Six Phases & libuv uv_run — Node.js Internals & Backend Services
- Poll & Check Phases: I/O Callbacks & setImmediate — Node.js Internals & Backend Services
- Transform Streams: Custom Packet Decoding & Codecs — Node.js Internals & Backend Services
- Native HTTP Server: Request & Response Lifecycles — Node.js Internals & Backend Services
- Native HTTP/2 Protocols: Multiplexed Streams & Push — Node.js Internals & Backend Services
- Native WebSockets: Bidirectional Real-Time Streams — Node.js Internals & Backend Services
- A Database You Cannot Recompile: Exporters — Prometheus Certified Associate (PCA) Exam Prep
- firewalld: Zones, Services And Ports That Stay Open — Red Hat Certified System Administrator (EX200) Exam Prep
- SELinux Ports And Booleans: The Other Two Refusals — Red Hat Certified System Administrator (EX200) Exam Prep
- Drill: Storage, Then SELinux, Then The Firewall — Red Hat Certified System Administrator (EX200) Exam Prep
- Mock Exam, Part 1: Eighteen Tasks, One Reboot — Red Hat Certified System Administrator (EX200) Exam Prep
- Mock Exam, Part 2: Real Machines And The Ten Costly Mistakes — Red Hat Certified System Administrator (EX200) Exam Prep
- SIEM Architecture: Ingestion Pipelines & Indexing — Security Operations & Threat Hunting (SOC)
- TLS And The Handshake — Application Security & Threat Modeling for Engineers
- Load Balancing And The Failure Modes It Introduces — Scalable System Design & Distributed Architecture
- Five Nodes Before Lunch: Building A Swarm — Docker Certified Associate (DCA) Exam Prep
- One File, Five Services: Stacks From Compose Files — Docker Certified Associate (DCA) Exam Prep
- One Comma, No Engine: Installing And Configuring Docker Engine — Docker Certified Associate (DCA) Exam Prep
- Port 2375, Open To The Office: Engine TLS And Registry Certificates — Docker Certified Associate (DCA) Exam Prep
- Two Of Everything: Deploying, Sizing And Backing Up UCP And DTR — Docker Certified Associate (DCA) Exam Prep
- Installation Sprint: Eight Configuration Calls — Docker Certified Associate (DCA) Exam Prep
- It Works On The Host: Publishing Ports And Tracing Connections — Docker Certified Associate (DCA) Exam Prep
- Any Node, Any Task: Overlay Networks, The Routing Mesh And Layer 7 — Docker Certified Associate (DCA) Exam Prep
- A Server Nobody Can Find: Addresses, Routes And Names On Both Families — CompTIA Linux+ (XK0-006) Exam Prep
- Who Wrote That Sudoers File? The Journal, rsyslog, logrotate And auditd — CompTIA Linux+ (XK0-006) Exam Prep
- One Rule, Four Firewalls: firewalld, ufw, nftables And iptables — CompTIA Linux+ (XK0-006) Exam Prep
- The Tracker Is Down, For Some People: Link, Address, Route, Name And Port — CompTIA Linux+ (XK0-006) Exam Prep
- Forbidden, With Perfect Permissions: Paths, ACL Masks And SELinux Denials — CompTIA Linux+ (XK0-006) Exam Prep
- Three PBQs Against The Clock: A Performance-Based Mock On Both Families — CompTIA Linux+ (XK0-006) Exam Prep
- Ninety Minutes, Five Domains: The Full Mock And The Week Before The Exam — CompTIA Linux+ (XK0-006) Exam Prep
- Exam Strategy: Hosts, Help And The Order Of Twenty Tasks — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- SELinux: Modes, Labels, Ports And Booleans That Last — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Network Troubleshooting: The Ladder From Link To Port — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Packet Filtering With nftables: A Default Drop That Stays Up — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Port Forwarding, Redirection And NAT With nftables — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Drill: A Gateway That Survives The Reboot — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Desktops, Remote Screens And Accessibility — LPIC-1 Linux Administrator (101-500 and 102-500) Exam Prep
- firewalld: Permanent, Immediate And The Reboot — RHCE in Ansible (EX294): Automate Red Hat Systems
- SELinux: Labels, Ports And Booleans That Persist — RHCE in Ansible (EX294): Automate Red Hat Systems
References
- RFC 9293: Transmission Control Protocol (TCP)
- MDN: TCP
- RFC 9293: Transmission Control Protocol
- man7: tcp(7)
Certification courses
- AWS Solutions Architect Associate course and practice exam: SAA-C03
- AZ-104 course and practice exam: Microsoft Azure Administrator
- CKA course and practice exam: Certified Kubernetes Administrator
- CKAD course and practice exam: Certified Kubernetes Application Developer
- CKS course and practice exam: Certified Kubernetes Security Specialist
- CompTIA Cloud+ course and practice exam: CV0-004
- Google Associate Cloud Engineer course and practice exam: Google Cloud certification
- ISC2 CC course and practice exam: Certified in Cybersecurity
- KCNA course and practice exam: Kubernetes and Cloud Native Associate
- KCSA course and practice exam: Kubernetes and Cloud Native Security Associate
- PCA course and practice exam: Prometheus Certified Associate
- RHCSA course and practice exam: Red Hat Certified System Administrator (EX200)
- DCA course and practice exam: Docker Certified Associate
- CompTIA Linux+ course and practice exam: XK0-006
- LFCS course and practice exam: Linux Foundation Certified System Administrator
- LPIC-1 course and practice exam: Linux Administrator (101-500 and 102-500)
- RHCE course and practice exam: Red Hat Certified Engineer in Ansible (EX294)