• ↑↓ pour naviguer
  • pour ouvrir
  • pour sélectionner
  • ⌘ ⌥ ↵ pour ouvrir dans un panneau
  • ←→ pour naviguer
  • esc pour rejeter
⌘ '
raccourcis clavier

The Problem

Network communication needs reliable, ordered delivery for applications like web browsing and file transfers. Without a connection-oriented approach, data might arrive out of order, get lost, or overwhelm receivers.

Core Idea

A service that establishes a dedicated logical connection between sender and receiver before exchanging data, guaranteeing reliable, ordered delivery with flow and congestion control.

How It Works

  1. A connection establishment phase occurs using a handshake (e.g., TCP three-way handshake: SYN, SYN-ACK, ACK)
  2. Both endpoints maintain state information including sequence numbers, acknowledgments, and buffer sizes
  3. Data is delivered reliably with guaranteed ordering, error checking, and retransmission of lost packets
  4. Flow control prevents fast senders from overwhelming slow receivers
  5. Congestion control manages network traffic to prevent bottlenecks
  6. A teardown phase releases the connection when communication ends

Visual Explanation

G A Sender HS Handshake (SYN, SYN-ACK, ACK) A->HS 1. Initiate B Receiver B->HS 3. Acknowledge HS->B 2. Negotiate Conn Logical Connection (Virtual Circuit) HS->Conn Establish Data Reliable Data Transfer (Ordered, Error-checked) Conn->Data Transfer Close Connection Teardown Data->Close 4. Release Close->A Close->B

Key Properties

  • Guaranteed delivery through retransmission of lost packets
  • Ordered delivery preserving send sequence
  • Stateful: both endpoints maintain connection state
  • Higher overhead due to setup, maintenance, and reliability mechanisms
  • Uses a logical path (virtual circuit) for the connection duration

Connections

Edge Cases & Gotchas

  • Higher latency due to connection setup overhead
  • State maintenance consumes memory on both endpoints
  • Connection state can be lost during network failures requiring re-establishment
  • Not suitable for bursty, small messages where setup cost dominates