Text edit.

This commit is contained in:
Vojtěch Pour 2023-11-19 13:50:39 +01:00
parent 8c9c72f041
commit 930a93eb66

View file

@ -43,35 +43,35 @@
## Nakreslete a porovnejte hlavičky protokolů TCP a UDP
### TCP
``` 0 1 2 3 ```
``` 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 ```
``` +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ```
``` | Source Port | Destination Port | ```
``` +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ```
``` | Sequence Number | ```
``` +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ```
``` | Acknowledgment Number | ```
``` +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ```
``` | Data | |U|A|P|R|S|F| | ```
``` | Offset| Reserved |R|C|S|S|Y|I| Window | ```
``` | | |G|K|H|T|N|N| | ```
``` +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ```
``` | Checksum | Urgent Pointer | ```
``` +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ```
``` | Options | Padding | ```
``` +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ```
``` | data | ```
``` +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ```
``` 0 1 2 3 ``` \
``` 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 ``` \
``` +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ``` \
``` | Source Port | Destination Port | ``` \
``` +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ``` \
``` | Sequence Number | ``` \
``` +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ``` \
``` | Acknowledgment Number | ``` \
``` +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ``` \
``` | Data | |U|A|P|R|S|F| | ``` \
``` | Offset| Reserved |R|C|S|S|Y|I| Window | ``` \
``` | | |G|K|H|T|N|N| | ``` \
``` +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ``` \
``` | Checksum | Urgent Pointer | ``` \
``` +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ``` \
``` | Options | Padding | ``` \
``` +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ``` \
``` | data | ``` \
``` +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ``` \
### UDP
``` 0 7 8 15 16 23 24 31 ```
``` +--------+--------+--------+--------+ ```
``` | Source | Destination | ```
``` | Port | Port | ```
``` +--------+--------+--------+--------+ ```
``` | | | ```
``` | Length | Checksum | ```
``` +--------+--------+--------+--------+ ```
``` | | ```
``` | data octets ... | ```
``` +-----------------+--------+--------+ ```
``` 0 7 8 15 16 23 24 31 ``` \
``` +--------+--------+--------+--------+ ``` \
``` | Source | Destination | ``` \
``` | Port | Port | ``` \
``` +--------+--------+--------+--------+ ``` \
``` | | | ``` \
``` | Length | Checksum | ``` \
``` +--------+--------+--------+--------+ ``` \
``` | | ``` \
``` | data octets ... | ``` \
``` +-----------------+--------+--------+ ``` \