Zum Hauptinhalt springen

Abbildungen 2.5a, 2.5b und 3.1

ABBILDUNG 2.5a: Output Packet Handler​

                                        _______
                                       / Begin \
                                       \_______/
                                           |
                                           |<--------------------------.
                               ____________V___________                |
                              | Get ready for next TCB |               |
                              |________________________|               |
                                      |                                |
,------------------------------------>|                                |
|                                   __V__               _____          |
|               _____             .'Send '.           .' any '.        |
|        yes  .' ACK '.     no  .' Buffer  '.  yes  .'  more   '.  yes |
|      .-----'.bit set.'<------'.   Queue   .'---->'.   work    .'-----'
|      |       '.___.'           '.empty? .'    A    '.   ?   .'
|      |       no |________        '.___.'      |      '.___.'
|      |                   |__________          |         | no
|  ____V__________________            |         |         |
| |Put latest receive left|   ________v______   |   ______V______
| |window edge in ACK.    |->|Transmit packet|  |  | go to sleep |
| |_______________________|  |_______________|  |  |_____________|
|                                     |         |
|     ________________              __V__       |
|    |Return packet to|           .'pckt '.     |_________________
|    |buffer pool as  |    no   .'seq # to '.                     |
|    |it has been     |<------.'rgt of Send  '.                   |
|    |ACKed           |        '.left window.'                    |
|    |________________|          '.  edge .'                      |
|             |                    '.___.'                        |
|             |                       | yes                       |
|             |        _______________V________________           |
|             |       |Move packet to retransmit queue;|          |
|             |       |set new retrans. time for it.   |          |
|             |       |________________________________|          |
|             |                       |                           |
|             '---------------------->|                           |
|                                   __V__                         |
|                            no   .'Time '.   yes                 |
 -------------------------------.'to switch'.---------------------'
                                 '.TCB's? .'
                                   '.___.'

ABBILDUNG 2.5b: Retransmit-Prozess​

                                _______
/ Begin \
\_______/
|
|<----------------------------------.
____________V___________ |
| Get ready for next TCB | |
|________________________| |
| |
.-------------------------------->| |
| __V__ |
| .' Any '. _____ |
| .'packet's '. .' any '. |
| .'retrans. time'. no .' more '. yes |
| '. has occurred .'----->'. work .'-----'
| '. for this .' '. ? .'
| '. TCB ? .' '.___.'
| '.___.' |
| | yes | no
| | ______V______
| ________V________ | go to sleep |
| |Move packet to | |_____________|
'------------------------|Send Packet |
|queue. Signal OPH|
|_________________|

ABBILDUNG 3.1: OPEN​

                                 _______
                                / Begin \
                                \_______/
                                    |
                                  __V__
                                .'User '.          _______
                              .'permitted'.   no  |       |
                            .'  access to  '.---->|error 1|------------.
                             '.this local .'      |_______|            |
                               '.socket?.'                             |
                                 '.___.'                               |
                                    | yes                              |
                                  __V__                                |
                                .' fgn '.                              |
                         yes  .' socket  '.  no                        |
                       .-----'. specified .'----.                      |
                       |       '.   ?   .'      |                      |
                     __V__       '.___.'      __V__         _______    |
   _______         .'conn-'.                .'space'.  no  |       |   |
  |       |  yes .' ection  '.             '.for TCB.'---->|error 4|-->|
,-|error 6|<----'.  already  .'              '.___.'       |_______|   |
| |_______|       '.exists?.'                   | yes                  |
|                   '.___.'                     |                      |
|                      | no                 ____V__________            |
|   _______          __V__                 |Create TCB. Set|           |
|  |       |   no  .'space'.               |S1=S2=R=F=C=1  |           |
|<-|error 4|<-----'.for TCB.'              |Set U=1        |           |
|  |_______|        '.___.'                |_______________|           |
|                      | yes                       |                   |
|                      |                           |                   |
|             _________V__________                 |                   |
|            |Create TCB. Set U=0 |                |                   |
|            |Set S1=S2=R=F=C=1   |                |                   |
|            |____________________|                |                   |
|                      |                           |                   |
|                      '-------------.-------------'                   |
|                                    |                                 |
|               _____________________V__________________               |
|              |Return local connection name and Success|              |
|              |________________________________________|              |
|                                    |                                 |
 ----------------------------------->|<--------------------------------'
                                 ____V___
                                / Return \
                                \________/