跳到主要内容

图 4.5 至图 4.7

图 4.5:错误 6(错误的 SYN)​

                _______
               / Begin \
               \_______/
                   |
                   |
                 __V__
               .'     '.
             .'refers to'.
           .'current pckt?'.                      _________
         .'(ACK matches seq '.  no               |         |
        '.  # of packet on   .'----------------->| discard |-----------.
          '.retrans or send.'                    |_________|           |
            '.  queues?) .'                                            |
              '._______.'                                              |
                   | yes                                               |
                   |                                                   |
                  _V_                                                  |
                .'   '.   1 (state 3)                                  |
              .' value '.--------------------------------.             |
               '. of R.'  bad SYN,ACK                    |             |
                 '._.'                                   |             |
                   |                                     |             |
                   | 0 (state 2)                         |             |
                   | bad SYN                             |             |
 __________________V__________________            _______V______       |
|Other side is established. Send RESET|          |Clear S1, R   |      |
|(put error packet's seq. # in ACK    |          |Remove SYN,ACK|      |
|field. Return all user buffers with  |          |from retrans  |      |
|code 14. Inform user with event 14   |          |queue.        |      |
|_____________________________________|          |______________|      |
                   |                                     |             |
                   |                                     V             |
                   |<--------------------------------------------------'
                ___V__
               / Done \
               \______/

图 4.6:错误 7、8​

                   _______
                  / Begin \
                  \_______/
                      |
                    __V__
                  .'     '.
                .'refers to'.                     _________
              .'   current   '.  no              |         |
             '. packet (check .'---------------->| discard |-----------.
               '.   ACK)?   .'         A         |_________|           |
                 '._______.'           |                               |
                      | yes            |                               |
                     _V_               |                               |
                   .'   '.             |                               |
                 .'       '.           |                               |
               .'connection '.         |                               |
             .'     state     '.       |                               |
            :___________________:      |                               |
           4|   5|   3|   2|   6|      |                               |
    .-------'    |    |    |    '------'                               |
    |            |    |    '-----------------------------.             |
    |            |    '-------------.                    |             |
    |            |                  |                    |             |
 ___V___     ____V_______     ______V_______     ________V_________    |
|Pass to|   |Remove TCB. |   |Clear S1, R.  |   |Discard. SYN will |   |
|user   |   |Return      |   |Remove SYN,ACK|   |be retrans to     |   |
|_______|   |success to  |   |from transmit |   |avoid receiver    |   |
    |       |user's CLOSE|   |queue (go to  |   |having to queue it|   |
    |       |____________|   |state 1).     |   |__________________|   |
    |            |           |______________|            |             |
    |            V                  |                    V             |
    '------------------------------>|<---------------------------------'
                                 ___V__
                                / Done \
                                \______/

图 4.7:RESET​

                                _______
/ Begin \
\_______/
|
__V__
no .'Reset'. yes
.------------'. All ? .'------------------.
| '.___.' |
| _________V_________
| |Clear all TCB's for|
| |foreign TCP. Inform|
| |users with event 14|
| |___________________|
__V__ |
.' Is '. _________ |
.' RESET '. no | | |
.'believable ? '.------->| discard |------------->|
'.(check ACK .' |_________| |
'.field) .' |
'.___.' |
| yes |
________________V________________ |
|Clear all queues for this TCB. | |
|Return event 14 for user buffers.| |
|Inform User with event 14. | |
|_________________________________| |
| |
|<----------------------------------------'
___V__
/ Done \
\______/
[ This RFC was put into machine readable form for entry ]
[ into the online RFC archives by Alex McKenzie with ]
[ support from GTE, formerly BBN Corp. 2/2000 ]