Title: source
1(No Transcript)
2(No Transcript)
3(No Transcript)
4(No Transcript)
5(No Transcript)
6Destination
Reassembly Required
router
IP packet fragments
Fragments Created
router
IP packet
source
7(No Transcript)
8(No Transcript)
9(No Transcript)
10TCP
- Connection Oriented
- state
- Stream Oriented
- Sequence number
- Full Duplex
- Reliable
- acknowledgment
11TCP Commands
- Syn synchronize sequence numbers
- Ack acknowledgement
- Fin close connection
- Push send data immediately
- Urgent look at data out of sequence
- Reset reject connection
12TCP Connection
- Passive Open
- Server opens known port and waits for client to
connect (no traffic on network) - Active open
- Client opens any available port and connects to
server on known port (starts three way handshake)
13TCP Connection States
LISTEN Server waiting
SYN-SENT Waiting for ack
SYN-RCVD Syn received
ESTABLISHED Connection established
FIN-WAIT-1 Closing requested
FIN-WAIT-2 Closing accepted
CLOSE-WAIT Server waiting for client to close
LAST-ACK Server waiting for last ack
14Active open/syn
Passive open
Syn/ synack
Synack/ack
ack
Fin/ack
Close/fin
Ack/
Close/fin
Fin/ack
timeout
ack
15TCP Sliding Window
- Sequence No. - number of first byte in the
segment - Acknowledgement number of next byte expected
- Sliding Window number of bytes that can be
transmitted without an acknowledgement
16Sender
K S U G O L D E N F L A S H E S
Sliding Window
Receiver
Sliding Window
17Sent, not yet acked
K S U G O L D E N F L A S H E S
Ready to send
Sliding Window
K S U
18Sent, not yet acked
K S U G O L D E N F L A S H E S
Sent and ACKed
Sliding Window
Ready to send
K S U D E N F L A
19K S U G O L D E N F L A S H E S
Sent and ACKed
Sliding Window
K S U G O L D E N F L A
20Server
Client
Syn
Seq 7280
Client sends syn to open connection
21Server
Client
Syn
Seq 5965 Ack 7281
Syn, Ack
Server sends Ack and Syn
22Server
Client
Syn
Syn, Ack
Ack
Cient sends Ack, connection is established
Seq 7281 Ack 5966
23Server
Client
Syn
Syn, Ack
Ack
Ack, Push
Client requests Web Page
Seq 7281 Ack 5966
24Server
Client
Syn
Syn, Ack
Ack
Ack
Server sends first part of Web Page
Ack
Seq 5966 ack 7532
25Server
Client
Syn
Syn, Ack
Ack
Ack
Server sends remainder of page
Seq 5966 ack 7531 Seq 7426 ack 7531
26Server
Client
Syn
Syn, Ack
Ack
Ack
Ack
Client sends ack
Seq 7531 ack 8886
27Server
Client
Syn
Syn, Ack
Ack
Ack
Server starts closing of connection
Ack
Ack, Fin, Push
Seq 8886 ack 7531
28Server
Client
Syn
Syn, Ack
Ack
Ack
Ack
Ack, Fin, Push
Ack
Client acks closing of servers side of connection
Seq 7531 ack 9203
29Server
Client
Syn
Syn, Ack
Ack
Ack
Ack
Ack, Fin, Push
Seq 7531 ack 9203
Ack
Ack, Fin
Client requests closing of its side of connection
30Server
Client
Syn
Syn, Ack
Ack
Ack
Ack
Ack, Fin, Push
Seq 9203 ack 7532
Ack
Ack, Fin
Server sends Ack, connection closed
31(No Transcript)
32(No Transcript)
33(No Transcript)
34(No Transcript)
35http//www.rhyshaden.com/arp.htm
36(No Transcript)
37(No Transcript)
38(No Transcript)
39(No Transcript)
40(No Transcript)
41(No Transcript)
42(No Transcript)
43(No Transcript)
44(No Transcript)
4516
0
8
31
TYPE
CODE
CHECKSUM
IDENTIFIER
SEQUENCE NUMBER
OPTIONAL DATA
ICMP Echo message
46(No Transcript)
47(No Transcript)
48(No Transcript)
49ftp client
ftp server
131.123.8.111
131.123.250.211
2349
21
2353
20
TCP Segments
Proto Local Address Foreign Address
TCP 131.123.8.1112349 131.123.250.21121
TCP 131.123.8.1112353 131.123.250.21120