Presentation is loading. Please wait.

Presentation is loading. Please wait.

TCP Connection Management Created by M Bateman, A Ruddle & C Allison As part of the TCP View project.

Similar presentations


Presentation on theme: "TCP Connection Management Created by M Bateman, A Ruddle & C Allison As part of the TCP View project."— Presentation transcript:

1 TCP Connection Management Created by M Bateman, A Ruddle & C Allison As part of the TCP View project

2 Connections Both sender an receiver must be ready before start of data transfer –Sender and receiver need to agree on parameters –Receive buffer size, initial sliding window variables Sender and receiver must agree when transfer is over –Both sides must discard state This is signalling –Setup/teardown state at the endpoints –Compare to ‘dialing’ in the telephone network

3 Connection Management Setup –3-way handshake Transfer –Sliding window, data and ACKs in both directions Teardown –4-way handshake Client-server model –Initiator (client) server –Listener (server) responds, provides service

4 Connection Creation

5

6

7

8

9

10 Data Transfer Connection is bi-directional ACKs can carry data

11 Connection Teardown

12

13

14

15

16 The TIME _ WAIT State We wait 2 * maximum segment lifetime (60 seconds) before completing the close Why? –ACK might have been lost so FIN would be resent –Could interfere with subsequent connections

17 ‘Two-Army’ Problem Can we use messages and retries to synchronise two machines so they are guaranteed to do some operation at the same time?

18 Two-Army Problem

19

20

21

22


Download ppt "TCP Connection Management Created by M Bateman, A Ruddle & C Allison As part of the TCP View project."

Similar presentations


Ads by Google