source - PowerPoint PPT Presentation

About This Presentation
Title:

source

Description:

Server opens known port and waits for client to connect (no traffic on network) Active open ... ftp client. ftp server. Proto Local Address Foreign Address ... – PowerPoint PPT presentation

Number of Views:17
Avg rating:3.0/5.0
Slides: 50
Provided by: ssch63
Category:
Tags: ftp | server | source

less

Transcript and Presenter's Notes

Title: source


1
(No Transcript)
2
(No Transcript)
3
(No Transcript)
4
(No Transcript)
5
(No Transcript)
6
Destination
Reassembly Required
router
IP packet fragments
Fragments Created
router
IP packet
source
7
(No Transcript)
8
(No Transcript)
9
(No Transcript)
10
TCP
  • Connection Oriented
  • state
  • Stream Oriented
  • Sequence number
  • Full Duplex
  • Reliable
  • acknowledgment

11
TCP Commands
  • Syn synchronize sequence numbers
  • Ack acknowledgement
  • Fin close connection
  • Push send data immediately
  • Urgent look at data out of sequence
  • Reset reject connection

12
TCP 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)

13
TCP 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
14
Active open/syn
Passive open
Syn/ synack
Synack/ack
ack
Fin/ack
Close/fin
Ack/
Close/fin
Fin/ack
timeout
ack
15
TCP 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

16
Sender
K S U G O L D E N F L A S H E S
Sliding Window
Receiver

Sliding Window
17
Sent, 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
18
Sent, 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
19
K 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
20
Server
Client
Syn
Seq 7280
Client sends syn to open connection
21
Server
Client
Syn
Seq 5965 Ack 7281
Syn, Ack
Server sends Ack and Syn
22
Server
Client
Syn
Syn, Ack
Ack
Cient sends Ack, connection is established
Seq 7281 Ack 5966
23
Server
Client
Syn
Syn, Ack
Ack
Ack, Push
Client requests Web Page
Seq 7281 Ack 5966
24
Server
Client
Syn
Syn, Ack
Ack
Ack
Server sends first part of Web Page
Ack
Seq 5966 ack 7532
25
Server
Client
Syn
Syn, Ack
Ack
Ack
Server sends remainder of page
Seq 5966 ack 7531 Seq 7426 ack 7531
26
Server
Client
Syn
Syn, Ack
Ack
Ack
Ack
Client sends ack
Seq 7531 ack 8886
27
Server
Client
Syn
Syn, Ack
Ack
Ack
Server starts closing of connection
Ack
Ack, Fin, Push
Seq 8886 ack 7531
28
Server
Client
Syn
Syn, Ack
Ack
Ack
Ack
Ack, Fin, Push
Ack
Client acks closing of servers side of connection
Seq 7531 ack 9203
29
Server
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
30
Server
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)
35
http//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)
45
16
0
8
31
TYPE
CODE
CHECKSUM
IDENTIFIER
SEQUENCE NUMBER
OPTIONAL DATA
ICMP Echo message
46
(No Transcript)
47
(No Transcript)
48
(No Transcript)
49
ftp 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
Write a Comment
User Comments (0)
About PowerShow.com