Three-way Handshaking for TCP Connection Establishment

Duration: 8 min

This video lesson is available to enrolled students.

Return to /learn/GATE-GUIDANCE-BY-SANCHIT-SIR/computer-networks/transport-layer-services/conn-mgmt-reliability/asset-three-way-handshaking-for-tcp-connection-establishment after enrolling

Inside: a video lesson and guided study material.

Module outline

  1. Discrete Mathematics: Set Theory, Relations, Functions, Graph Theory, Group Theory, Propositional and Predicate Logic
  2. DataBase Management System/DBMS: Basics of DBMS, ER Diagram, Relational Model & Functional Dependencies, Keys & Integrity Constraints, Normalization (1NF - BCNF), Decomposition Properties & 4NF, File Organization & Indexing, Relational Algebra, SQL, Relational Calculus, Transaction Management, Concurrency Control
  3. Digital Electronics: Digital Systems & Boolean Basics, Logic Gates & Hardware, Boolean Expression, Boolean Minimization, Combinational Circuit, Sequential Circuits, Number System, Number Representation
  4. Computer Architecture: Floating Point Rep, Cache Memory Organization, Input Output Organisation, Pipelining, Instr Formats & Modes, Control Unit Design
  5. Operating System: Introduction to OS, Process Management, CPU Scheduling, Process Synchronization, Threads & Process Creation, Deadlock, Memory Management, Virtual Memory, Disc Scheduling, File Management
  6. C Language: C Fundamentals, Control Flow, Functions, Arrays & Pointers, Storage Classes, Structures & Enums, DMA, Macros, Scoping & File Handling
  7. Data Structures: Introduction to DS, Array, Stack, Queue, Linked List, Tree, Graphs, Hashing
  8. Algorithms: Algorithm Analysis, Time Complexity Analysis, Sorting Algorithms, Greedy Algorithms, Dynamic Programming, Minimum Spanning Trees, Shortest Path Algos
  9. Computer Networks: Introduction to CN, DLL: Access Control, DLL: Flow Control, DLL: Error Control, DLL: Framing, Data Link Layer - Ethernet, Net Layer: IPv4 & Proto, Net Layer: IP Addressing, Net Layer:Routing Protocol, Transport Layer Services, TL: Congestion & UDP, Application Layer, Hardware Basics
  10. Theory Of Computation/Automata Theory: Introduction to TOC, Deterministic FA (DFA), Non-Deterministic FA, Regular Expressions, Grammar, Regular Language Properties, Moore & Mealy Machines, Pushdown Automata & CFG, Turing Machines, Complexity Theory
  11. Compiler Design: Intro to Compilers, Lexical Analysis, Grammar & CFG, Syntax Analysis: Top-Down, Syntax Analysis: Bottom-Up, Semantic Analysis & SDT, Intermediate Code Gen, Code Optimization, Run Time Environment
  12. Engineering Mathematics: Permutation and Combination, Linear Algebra, Calculus, Probability, Statistics
  13. General Aptitude: Ratio and Proportion (Ratios), Divisibility Rules, Data Interpretation, Logarithm, Number System, HCF LCM, Sequence and Series (Series), Speed Time and Distance, Series (Number and Letter Series) (Numerical Relations and Reasoning), Coding Decoding, Data Sufficiency, Non Verbal Reasoning (Spatial Aptitude) (Spatial Reasoning) (Visual Reasoning), Percentage, Mensuration and Geometry, Mental Ability, Arithmetic, Profit and Loss, Powers and Exponents (Surds and Indices), Average, Deductive and Inductive Reasoning (Logical Deduction and Induction) (Prepositional Reasoning), Syllogisms, Venn Diagram, Seating Arrangements, Blood Relations, Directions (Direction Test), Analogy, Algebra, Time and Work, Analytical Reasoning (Counting Figures Reasoning), Puzzle Solving (Puzzles), Cubes & Dices, Ranking, Order and Sequence, Mixture and Alligation, Age Problems, Clock, Selection Decision Table (Decision Making), Data Arrangement
  14. English (Verbal Aptitude): Vocabulary, Noun, Subject Verb Agreement (Verb Noun Agreement), Adjectives, Tenses, Pronoun, Preposition, Direct and Indirect Speech, Sentence Re-arrangements (Para Jumbles) (Narrative Sequencing), Sentence Completion (Fill in the blanks), Comprehension / Reading Comprehension / Unseen Passages (Critical Reasoning) (Paragraph Questions), Sentence Correction (Error Correction), Verbal Analogy (Word Based Analogy), Conjunction, Interjection, Verb, Articles, Adverb, Modals, Sentence Construction
  15. Live Classes Recordings(Earlier Batch): GATE 2026 Live Class
  16. Full Mock Test:
  17. Previous Year Papers:
  18. GATE 2026 Counselling: Counselling and Guidance Sessions
AI summary & chapters

AI Summary

An AI-generated summary of this video lecture.

This lecture introduces TCP connection establishment through three-way handshaking. The instructor explains that a client program initiates an active open to connect with a server that has already performed a passive open. A sequence diagram illustrates the exchange of SYN, SYN+ACK, and ACK packets between client and server transport layers. Packet fields such as sequence numbers (seq: 8000) and acknowledgment numbers (ack: 15000) are shown to demonstrate how the handshake synchronizes initial sequence numbers. The instructor uses hand gestures and red annotations to emphasize key steps, including the roles of client process, client transport layer, server transport layer, and server process. The central idea is that TCP requires three packets to establish a reliable connection: the client sends SYN, the server responds with SYN+ACK, and the client confirms with ACK. This ensures both sides agree on initial sequence numbers before data transfer begins.

Chapters

  1. 0:00 – 2:00 00:00-02:00

    The video introduces TCP connection establishment as three-way handshaking. The slide titled 'A TCP Connection' displays bullet text on the left and a handshaking diagram at top right. The diagram labels 'Client process,' 'Client transport layer,' 'Server transport layer,' and 'Server process,' with arrows marked SYN, SYN + ACK, and ACK. Packet fields such as 'seq: 8000' and 'ack: 15000' are visible. The instructor explains that the server performs a passive open, indicating readiness to accept connections from any machine, while the client initiates an active open. Key terms like 'three-way handshaking,' 'passive open,' and 'active open' are highlighted on screen.

  2. 2:00 – 5:00 02:00-05:00

    The instructor details the three-way handshaking process, emphasizing how a client initiates an active open while the server performs a passive open. A sequence diagram shows the SYN packet from client to server, followed by the SYN + ACK response from server. The instructor uses hand gestures and red circles to highlight 'active open' and 'passive open' in the diagram. Red arrows are drawn to point out specific components, including client and server processes. The explanation clarifies that the handshake synchronizes initial sequence numbers before data transfer can occur.

  3. 5:00 – 7:32 05:00-07:32

    The lecture continues explaining TCP connection establishment through three-way handshaking. The visual diagram illustrates the complete sequence of SYN, SYN+ACK, and ACK packets exchanged between client and server transport layers. The instructor uses hand gestures to emphasize the sequence of connection steps, with red handwritten annotations highlighting specific parts of the diagram and text. The differentiation between active open by client and passive open by server is reinforced, ensuring students understand that both sides must agree on initial sequence numbers before reliable data transfer begins.

The lecture systematically builds understanding of TCP connection establishment. It begins by defining the roles: server performs passive open (ready to accept connections), client performs active open (initiates connection). The core teaching is the three-way handshake sequence: 1) Client sends SYN with initial sequence number (e.g., seq: 8000), 2) Server responds with SYN+ACK containing its own sequence number and acknowledgment of client's sequence (ack: 15000), 3) Client sends ACK to confirm. The diagram consistently shows four layers: client process, client transport layer, server transport layer, and server process. The instructor uses visual annotations (red circles, arrows) to emphasize key terms and steps. This approach helps students visualize how TCP ensures both endpoints synchronize sequence numbers before data transfer, establishing a reliable connection foundation.

Loading lesson…