added data in tp.md

Šī revīzija ir iekļauta:
nbillard 2022-12-15 10:23:49 +01:00
vecāks fdfe7bba8e
revīzija 82ffdb8cb5

263
tp.md
Parādīt failu

@ -8,16 +8,50 @@ Choix arbitraire du port : 5678
### avec TCP
Sur la machine puits
Sur la machine puit
```sh
tsock -p 5678
```
Sur la machine source
```sh
tsock -s getip102-03 5678
tsock -s insa-20155 5678
```
Sur la machine puit, on observe TODO rajouter l'entête
PUITS: lg_buf_appli=30, port=5678, nb_buf_appli=infini, TP= tcp
PUITS: socket
PUITS: Reception n° 1 ( 30) [ 1aaaaaaaaaaaaaaaaaaaaaaaaa]
PUITS: Reception n° 2 ( 30) [ 2bbbbbbbbbbbbbbbbbbbbbbbbb]
PUITS: Reception n° 3 ( 30) [ 3ccccccccccccccccccccccccc]
PUITS: Reception n° 4 ( 30) [ 4ddddddddddddddddddddddddd]
PUITS: Reception n° 5 ( 30) [ 5eeeeeeeeeeeeeeeeeeeeeeeee]
PUITS: Reception n° 6 ( 30) [ 6fffffffffffffffffffffffff]
PUITS: Reception n° 7 ( 30) [ 7ggggggggggggggggggggggggg]
PUITS: Reception n° 8 ( 30) [ 8hhhhhhhhhhhhhhhhhhhhhhhhh]
PUITS: Reception n° 9 ( 30) [ 9iiiiiiiiiiiiiiiiiiiiiiiii]
PUITS: Reception n° 10 ( 30) [ 10jjjjjjjjjjjjjjjjjjjjjjjjj]
Sur la machine source, on observe
SOURCE: lg_buf_appli=30, port=5678, nb_buf_appli=10, TP= tcp -> insa-20155
SOURCE: socket
SOURCE: connect
SOURCE: fin
SOURCE: Envoi n° 1 ( 30) [ 1aaaaaaaaaaaaaaaaaaaaaaaaa]
SOURCE: Envoi n° 2 ( 30) [ 2bbbbbbbbbbbbbbbbbbbbbbbbb]
SOURCE: Envoi n° 3 ( 30) [ 3ccccccccccccccccccccccccc]
SOURCE: Envoi n° 4 ( 30) [ 4ddddddddddddddddddddddddd]
SOURCE: Envoi n° 5 ( 30) [ 5eeeeeeeeeeeeeeeeeeeeeeeee]
SOURCE: Envoi n° 6 ( 30) [ 6fffffffffffffffffffffffff]
SOURCE: Envoi n° 7 ( 30) [ 7ggggggggggggggggggggggggg]
SOURCE: Envoi n° 8 ( 30) [ 8hhhhhhhhhhhhhhhhhhhhhhhhh]
SOURCE: Envoi n° 9 ( 30) [ 9iiiiiiiiiiiiiiiiiiiiiiiii]
SOURCE: Envoi n° 10 ( 30) [ 10jjjjjjjjjjjjjjjjjjjjjjjjj]
*Observation* :
* désequencement: pas de déséquencement car sur un même réseau local + TCP qui garantit l'ordre
@ -32,9 +66,49 @@ tsock -p -u 5678
Sur la machine source
```sh
tsock -s -u getip102-03 5678
tsock -s -u insa-20155 5678
```
À la source, on observe:
SOURCE: lg_buf_appli=30, port=5678, nb_buf_appli=10, TP= udp -> insa-20155
SOURCE: socket
SOURCE: Envoi n° 1 ( 30) [ 1aaaaaaaaaaaaaaaaaaaaaaaaa]
SOURCE: Envoi n° 2 ( 30) [ 2bbbbbbbbbbbbbbbbbbbbbbbbb]
SOURCE: Envoi n° 3 ( 30) [ 3ccccccccccccccccccccccccc]
SOURCE: Envoi n° 4 ( 30) [ 4ddddddddddddddddddddddddd]
SOURCE: Envoi n° 5 ( 30) [ 5eeeeeeeeeeeeeeeeeeeeeeeee]
SOURCE: Envoi n° 6 ( 30) [ 6fffffffffffffffffffffffff]
SOURCE: Envoi n° 7 ( 30) [ 7ggggggggggggggggggggggggg]
SOURCE: Envoi n° 8 ( 30) [ 8hhhhhhhhhhhhhhhhhhhhhhhhh]
SOURCE: Envoi n° 9 ( 30) [ 9iiiiiiiiiiiiiiiiiiiiiiiii]
SOURCE: Envoi n° 10 ( 30) [ 10jjjjjjjjjjjjjjjjjjjjjjjjj]
Dans le puit, on observe
PUITS: lg_buf_appli=30, port=5678, nb_buf_appli=infini, TP= udp
PUITS: socket
PUITS: Reception n° 1 ( 30) [ 1aaaaaaaaaaaaaaaaaaaaaaaaa]
PUITS: Reception n° 2 ( 30) [ 1aaaaaaaaaaaaaaaaaaaaaaaaa]
PUITS: Reception n° 3 ( 30) [ 2bbbbbbbbbbbbbbbbbbbbbbbbb]
PUITS: Reception n° 4 ( 30) [ 2bbbbbbbbbbbbbbbbbbbbbbbbb]
PUITS: Reception n° 5 ( 30) [ 3ccccccccccccccccccccccccc]
PUITS: Reception n° 6 ( 30) [ 3ccccccccccccccccccccccccc]
PUITS: Reception n° 7 ( 30) [ 4ddddddddddddddddddddddddd]
PUITS: Reception n° 8 ( 30) [ 4ddddddddddddddddddddddddd]
PUITS: Reception n° 9 ( 30) [ 5eeeeeeeeeeeeeeeeeeeeeeeee]
PUITS: Reception n° 10 ( 30) [ 5eeeeeeeeeeeeeeeeeeeeeeeee]
PUITS: Reception n° 11 ( 30) [ 6fffffffffffffffffffffffff]
PUITS: Reception n° 12 ( 30) [ 6fffffffffffffffffffffffff]
PUITS: Reception n° 13 ( 30) [ 7ggggggggggggggggggggggggg]
PUITS: Reception n° 14 ( 30) [ 7ggggggggggggggggggggggggg]
PUITS: Reception n° 15 ( 30) [ 8hhhhhhhhhhhhhhhhhhhhhhhhh]
PUITS: Reception n° 16 ( 30) [ 8hhhhhhhhhhhhhhhhhhhhhhhhh]
PUITS: Reception n° 17 ( 30) [ 9iiiiiiiiiiiiiiiiiiiiiiiii]
PUITS: Reception n° 18 ( 30) [ 9iiiiiiiiiiiiiiiiiiiiiiiii]
PUITS: Reception n° 19 ( 30) [ 10jjjjjjjjjjjjjjjjjjjjjjjjj]
PUITS: Reception n° 20 ( 30) [ 10jjjjjjjjjjjjjjjjjjjjjjjjj]
*Observation* :
* désequencement: pas de déséquencement
@ -48,9 +122,50 @@ tsock -p -u -t 10 5678
```sh
tsock -s -u -n 20 getip102-03 5678
tsock -s -u -n 20 insa-20155 5678
```
Output de la source
SOURCE: lg_buf_appli=30, port=5678, nb_buf_appli=20, TP= udp -> insa-20155
PUITS: socket
SOURCE: Envoi n° 1 ( 30) [ 1aaaaaaaaaaaaaaaaaaaaaaaaa]
SOURCE: Envoi n° 2 ( 30) [ 2bbbbbbbbbbbbbbbbbbbbbbbbb]
SOURCE: Envoi n° 3 ( 30) [ 3ccccccccccccccccccccccccc]
SOURCE: Envoi n° 4 ( 30) [ 4ddddddddddddddddddddddddd]
SOURCE: Envoi n° 5 ( 30) [ 5eeeeeeeeeeeeeeeeeeeeeeeee]
SOURCE: Envoi n° 6 ( 30) [ 6fffffffffffffffffffffffff]
SOURCE: Envoi n° 7 ( 30) [ 7ggggggggggggggggggggggggg]
SOURCE: Envoi n° 8 ( 30) [ 8hhhhhhhhhhhhhhhhhhhhhhhhh]
SOURCE: Envoi n° 9 ( 30) [ 9iiiiiiiiiiiiiiiiiiiiiiiii]
SOURCE: Envoi n° 10 ( 30) [ 10jjjjjjjjjjjjjjjjjjjjjjjjj]
SOURCE: Envoi n° 11 ( 30) [ 11kkkkkkkkkkkkkkkkkkkkkkkkk]
SOURCE: Envoi n° 12 ( 30) [ 12lllllllllllllllllllllllll]
SOURCE: Envoi n° 13 ( 30) [ 13mmmmmmmmmmmmmmmmmmmmmmmmm]
SOURCE: Envoi n° 14 ( 30) [ 14nnnnnnnnnnnnnnnnnnnnnnnnn]
SOURCE: Envoi n° 15 ( 30) [ 15ooooooooooooooooooooooooo]
SOURCE: Envoi n° 16 ( 30) [ 16ppppppppppppppppppppppppp]
SOURCE: Envoi n° 17 ( 30) [ 17qqqqqqqqqqqqqqqqqqqqqqqqq]
SOURCE: Envoi n° 18 ( 30) [ 18rrrrrrrrrrrrrrrrrrrrrrrrr]
SOURCE: Envoi n° 19 ( 30) [ 19sssssssssssssssssssssssss]
SOURCE: Envoi n° 20 ( 30) [ 20ttttttttttttttttttttttttt]
Output du puit
PUITS: lg_buf_appli=30, port=5678, nb_buf_appli=infini, lg_buf_TP=10, TP= udp
PUITS: socket
PUITS: setsockopt: rcvbuf OK
PUITS: rcvbuf
PUITS: Reception n° 1 ( 20) [ 1aaaaaaaaaaaaaaa]
PUITS: Reception n° 2 ( 20) [ 1aaaaaaaaaaaaaaa]
PUITS: Reception n° 3 ( 20) [ 1aaaaaaaaaaaaaaa]
PUITS: Reception n° 4 ( 20) [ 1aaaaaaaaaaaaaaa]
PUITS: Reception n° 5 ( 20) [ 2bbbbbbbbbbbbbbb]
PUITS: Reception n° 6 ( 20) [ 2bbbbbbbbbbbbbbb]
PUITS: Reception n° 7 ( 20) [ 9iiiiiiiiiiiiiii]
PUITS: Reception n° 8 ( 20) [ 15ooooooooooooooo]
PUITS: Reception n° 9 ( 20) [ 17qqqqqqqqqqqqqqq]
PUITS: Reception n° 10 ( 20) [ 18rrrrrrrrrrrrrrr]
> On peut aussi enlever l'affichage et augmenter le nombre de messages
*Observation* :
@ -65,14 +180,25 @@ __Même chose en changeant l'ordre du puit et de la source__
Sur la machine source
```sh
tsock -s getip102-03 5678
tsock -s insa-20155 5678
```
On observe
SOURCE: lg_buf_appli=30, port=5678, nb_buf_appli=10, TP= tcp -> insa-20155
SOURCE: socket
SOURCE: connect: Connection refused
errno=111
Sur la machine puits
```sh
tsock -p 5678
```
Rien ne se passe
*Observation* :
* La connexion échoue -> pas de données échangées
@ -81,7 +207,7 @@ tsock -p 5678
Sur la machine source
```sh
tsock -s -u getip102-03 5678
tsock -s -u insa-20155 5678
```
Sur la machine puits
@ -89,6 +215,48 @@ Sur la machine puits
tsock -p -u 5678
```
On observe à la source
SOURCE: lg_buf_appli=30, port=5678, nb_buf_appli=10, TP= udp -> insa-20155
SOURCE: socket
SOURCE: Envoi n° 1 ( 30) [ 1aaaaaaaaaaaaaaaaaaaaaaaaa]
SOURCE: Envoi n° 2 ( 30) [ 2bbbbbbbbbbbbbbbbbbbbbbbbb]
SOURCE: Envoi n° 3 ( 30) [ 3ccccccccccccccccccccccccc]
SOURCE: Envoi n° 4 ( 30) [ 4ddddddddddddddddddddddddd]
SOURCE: Envoi n° 5 ( 30) [ 5eeeeeeeeeeeeeeeeeeeeeeeee]
SOURCE: Envoi n° 6 ( 30) [ 6fffffffffffffffffffffffff]
SOURCE: Envoi n° 7 ( 30) [ 7ggggggggggggggggggggggggg]
SOURCE: Envoi n° 8 ( 30) [ 8hhhhhhhhhhhhhhhhhhhhhhhhh]
SOURCE: Envoi n° 9 ( 30) [ 9iiiiiiiiiiiiiiiiiiiiiiiii]
SOURCE: Envoi n° 10 ( 30) [ 10jjjjjjjjjjjjjjjjjjjjjjjjj]
Quand on envoie beaucoup de données, on observe dans le puit
PUITS: lg_buf_appli=30, port=5678, nb_buf_appli=infini, TP= udp
PUITS: socket
PUITS: Reception n° 26406 ( 30) [-2125wwwwwwwwwwwwwwwwwwwwwwwww]
PUITS: Reception n° 26407 ( 30) [-2125xxxxxxxxxxxxxxxxxxxxxxxxx]
PUITS: Reception n° 26408 ( 30) [-2125xxxxxxxxxxxxxxxxxxxxxxxxx]
PUITS: Reception n° 26409 ( 30) [-2125yyyyyyyyyyyyyyyyyyyyyyyyy]
PUITS: Reception n° 26410 ( 30) [-2125yyyyyyyyyyyyyyyyyyyyyyyyy]
PUITS: Reception n° 26411 ( 30) [-2125aaaaaaaaaaaaaaaaaaaaaaaaa]
PUITS: Reception n° 26412 ( 30) [-2125aaaaaaaaaaaaaaaaaaaaaaaaa]
PUITS: Reception n° 26413 ( 30) [-2125bbbbbbbbbbbbbbbbbbbbbbbbb]
PUITS: Reception n° 26414 ( 30) [-2125bbbbbbbbbbbbbbbbbbbbbbbbb]
PUITS: Reception n° 26415 ( 30) [-2125ccccccccccccccccccccccccc]
PUITS: Reception n° 26416 ( 30) [-2125ccccccccccccccccccccccccc]
PUITS: Reception n° 26417 ( 30) [-2125ddddddddddddddddddddddddd]
PUITS: Reception n° 26418 ( 30) [-2125ddddddddddddddddddddddddd]
PUITS: Reception n° 26419 ( 30) [-2125eeeeeeeeeeeeeeeeeeeeeeeee]
PUITS: Reception n° 26420 ( 30) [-2125eeeeeeeeeeeeeeeeeeeeeeeee]
PUITS: Reception n° 26421 ( 30) [-2124fffffffffffffffffffffffff]
PUITS: Reception n° 26422 ( 30) [-2124fffffffffffffffffffffffff]
PUITS: Reception n° 26423 ( 30) [-2124ggggggggggggggggggggggggg]
PUITS: Reception n° 26424 ( 30) [-2124ggggggggggggggggggggggggg]
PUITS: Reception n° 26425 ( 30) [-2124hhhhhhhhhhhhhhhhhhhhhhhhh]
PUITS: Reception n° 26426 ( 30) [-2124hhhhhhhhhhhhhhhhhhhhhhhhh]
*Observation* :
* Des données sont reçues quand la source envoi beaucoup de données, sinon on n'observe aucune donnée
@ -109,6 +277,55 @@ Lancer tcpdump en tant que root
sudo tcpdump port 5678
```
Quand on envoie des données TCP avec un puit présent, on observe
09:08:17.635928 IP insa-20154.insa-toulouse.fr.51189 > insa-20155.insa-toulouse.fr.5678: Flags [S], seq 601705128, win 64240, options [mss 1460,sackOK,TS val 4131103046 ecr 0,nop,wscale 10], length 0
09:08:17.636037 IP insa-20155.insa-toulouse.fr.5678 > insa-20154.insa-toulouse.fr.51189: Flags [S.], seq 4035589501, ack 601705129, win 65160, options [mss 1460,sackOK,TS val 621274796 ecr 4131103046,nop,wscale 10], length 0
09:08:17.636081 IP insa-20155.insa-toulouse.fr.5678 > insa-20154.insa-toulouse.fr.51189: Flags [S.], seq 4035589501, ack 601705129, win 65160, options [mss 1460,sackOK,TS val 621274796 ecr 4131103046,nop,wscale 10], length 0
09:08:17.636155 IP insa-20154.insa-toulouse.fr.51189 > insa-20155.insa-toulouse.fr.5678: Flags [.], ack 1, win 63, options [nop,nop,TS val 4131103047 ecr 621274796], length 0
09:08:17.636155 IP insa-20154.insa-toulouse.fr.51189 > insa-20155.insa-toulouse.fr.5678: Flags [.], ack 1, win 63, options [nop,nop,TS val 4131103047 ecr 621274796], length 0
09:08:17.636244 IP insa-20154.insa-toulouse.fr.51189 > insa-20155.insa-toulouse.fr.5678: Flags [P.], seq 1:31, ack 1, win 63, options [nop,nop,TS val 4131103047 ecr 621274796], length 30
09:08:17.636271 IP insa-20155.insa-toulouse.fr.5678 > insa-20154.insa-toulouse.fr.51189: Flags [.], ack 31, win 63, options [nop,nop,TS val 621274809 ecr 4131103047], length 0
09:08:17.636308 IP insa-20155.insa-toulouse.fr.5678 > insa-20154.insa-toulouse.fr.51189: Flags [.], ack 31, win 63, options [nop,nop,TS val 621274809 ecr 4131103047,nop,nop,sack 1 {1:31}], length 0
09:08:17.636416 IP insa-20154.insa-toulouse.fr.51189 > insa-20155.insa-toulouse.fr.5678: Flags [FP.], seq 31:301, ack 1, win 63, options [nop,nop,TS val 4131103047 ecr 621274796], length 270
09:08:17.636551 IP insa-20155.insa-toulouse.fr.5678 > insa-20154.insa-toulouse.fr.51189: Flags [.], ack 302, win 63, options [nop,nop,TS val 621274810 ecr 4131103047,nop,nop,sack 1 {31:302}], length 0
09:08:17.636864 IP insa-20155.insa-toulouse.fr.5678 > insa-20154.insa-toulouse.fr.51189: Flags [F.], seq 1, ack 302, win 63, options [nop,nop,TS val 621274810 ecr 4131103047], length 0
09:08:17.636919 IP insa-20154.insa-toulouse.fr.51189 > insa-20155.insa-toulouse.fr.5678: Flags [.], ack 2, win 63, options [nop,nop,TS val 4131103047 ecr 621274810], length 0
09:08:17.637055 IP insa-20155.insa-toulouse.fr.5678 > insa-20154.insa-toulouse.fr.51189: Flags [R], seq 4035589503, win 0, length 0
Quand on envoie des données TCP sans puit présent, on observe
09:27:40.382167 IP insa-20154.insa-toulouse.fr.35073 > insa-20155.insa-toulouse.fr.5678: Flags [S], seq 2178196670, win 64240, options [mss 1460,sackOK,TS val 4132265792 ecr 0,nop,wscale 10], length 0
09:27:40.382229 IP insa-20155.insa-toulouse.fr.5678 > insa-20154.insa-toulouse.fr.35073: Flags [R.], seq 0, ack 2178196671, win 0, length 0
09:27:40.382167 IP insa-20154.insa-toulouse.fr.35073 > insa-20155.insa-toulouse.fr.5678: Flags [S], seq 2178196670, win 64240, options [mss 1460,sackOK,TS val 4132265792 ecr 0,nop,wscale 10], length 0
09:27:40.382255 IP insa-20155.insa-toulouse.fr.5678 > insa-20154.insa-toulouse.fr.35073: Flags [R.], seq 0, ack 1, win 0, length 0
09:27:40.382471 IP insa-20155.insa-toulouse.fr.5678 > insa-20154.insa-toulouse.fr.35073: Flags [R.], seq 0, ack 1, win 0, length 0
09:27:40.382472 IP insa-20155.insa-toulouse.fr.5678 > insa-20154.insa-toulouse.fr.35073: Flags [R.], seq 0, ack 1, win 0, length 0
Quand on envoie des données UDP avec puit ou sans puit, on observe
09:10:25.056896 IP insa-20154.insa-toulouse.fr.32851 > insa-20155.insa-toulouse.fr.5678: UDP, length 30
09:10:25.056896 IP insa-20154.insa-toulouse.fr.32851 > insa-20155.insa-toulouse.fr.5678: UDP, length 30
09:10:25.056896 IP insa-20154.insa-toulouse.fr.32851 > insa-20155.insa-toulouse.fr.5678: UDP, length 30
09:10:25.056896 IP insa-20154.insa-toulouse.fr.32851 > insa-20155.insa-toulouse.fr.5678: UDP, length 30
09:10:25.056896 IP insa-20154.insa-toulouse.fr.32851 > insa-20155.insa-toulouse.fr.5678: UDP, length 30
09:10:25.056896 IP insa-20154.insa-toulouse.fr.32851 > insa-20155.insa-toulouse.fr.5678: UDP, length 30
09:10:25.056896 IP insa-20154.insa-toulouse.fr.32851 > insa-20155.insa-toulouse.fr.5678: UDP, length 30
09:10:25.056896 IP insa-20154.insa-toulouse.fr.32851 > insa-20155.insa-toulouse.fr.5678: UDP, length 30
09:10:25.056967 IP insa-20154.insa-toulouse.fr.32851 > insa-20155.insa-toulouse.fr.5678: UDP, length 30
09:10:25.056967 IP insa-20154.insa-toulouse.fr.32851 > insa-20155.insa-toulouse.fr.5678: UDP, length 30
09:10:25.056967 IP insa-20154.insa-toulouse.fr.32851 > insa-20155.insa-toulouse.fr.5678: UDP, length 30
09:10:25.056967 IP insa-20154.insa-toulouse.fr.32851 > insa-20155.insa-toulouse.fr.5678: UDP, length 30
09:10:25.056967 IP insa-20154.insa-toulouse.fr.32851 > insa-20155.insa-toulouse.fr.5678: UDP, length 30
09:10:25.056967 IP insa-20154.insa-toulouse.fr.32851 > insa-20155.insa-toulouse.fr.5678: UDP, length 30
09:10:25.056967 IP insa-20154.insa-toulouse.fr.32851 > insa-20155.insa-toulouse.fr.5678: UDP, length 30
09:10:25.056967 IP insa-20154.insa-toulouse.fr.32851 > insa-20155.insa-toulouse.fr.5678: UDP, length 30
09:10:25.057001 IP insa-20154.insa-toulouse.fr.32851 > insa-20155.insa-toulouse.fr.5678: UDP, length 30
09:10:25.057001 IP insa-20154.insa-toulouse.fr.32851 > insa-20155.insa-toulouse.fr.5678: UDP, length 30
09:10:25.057001 IP insa-20154.insa-toulouse.fr.32851 > insa-20155.insa-toulouse.fr.5678: UDP, length 30
09:10:25.057001 IP insa-20154.insa-toulouse.fr.32851 > insa-20155.insa-toulouse.fr.5678: UDP, length 30
### Observations
* Mettre en évidence que UDP est sans connexion
@ -117,12 +334,13 @@ sudo tcpdump port 5678
#### Faire une expérience pour montrer que les frontières des trames ne sont pas conservées
remplacer 30 par un grand nombre.
```sh
tsock -s -l 30 getip102-03 5678
tsock -s -l 40 insa-20155 5678
```
09:17:12.042983 IP insa-20154.insa-toulouse.fr.56003 > insa-20155.insa-toulouse.fr.5678: Flags [P.], seq 1:41, ack 1, win 63, options [nop,nop,TS val 4131637453 ecr 621809196], length 40
09:17:12.043174 IP insa-20154.insa-toulouse.fr.56003 > insa-20155.insa-toulouse.fr.5678: Flags [FP.], seq 41:401, ack 1, win 63, options [nop,nop,TS val 4131637453 ecr 621809196], length 360
## Question 4
__Reprendre la Question 1 et capturer les trammes Ethernet avec `tcpdump`__
@ -131,12 +349,29 @@ __Reprendre la Question 1 et capturer les trammes Ethernet avec `tcpdump`__
sudo tcpdump -xx port 5678
```
Trame TCP
0x0000: 1866 da44 b21f 1866 da44 b5ac 0800 4500
0x0010: 0052 ffb4 4000 4006 2483 0a01 0136 0a01
0x0020: 0137 82d5 162e 71c3 ecc9 8136 b67a 8018
0x0030: 003f 307c 0000 0101 080a f647 4eb2 2513
0x0040: 93ec 2020 2020 3161 6161 6161 6161 6161
0x0050: 6161 6161 6161 6161 6161 6161 6161 6161
Trame UDP
0x0000: 1866 da44 b21f 1866 da44 b5ac 0800 4500
0x0010: 003a 5137 4000 4011 d30d 0a01 0136 0a01
0x0020: 0137 9535 162e 0026 3b9e 2020 2020 3161
0x0030: 6161 6161 6161 6161 6161 6161 6161 6161
0x0040: 6161 6161 6161 6161
### Analyse des résultats
* trouver les adresses Ethernet et IP de la source et du puit
* trouver les adresses Ethernet et IP de la source et du puit (voir 0a01 ... 2e ligne)
* Information sur le type de trame transmise (UDP ou TCP)
* trouver le numéro de port utilisé par le puit
* trouver le numéro de port utilisé par la source (D'où vient-il ?)
* trouver le numéro de port utilisé par le puit 5678
* trouver le numéro de port utilisé par la source (D'où vient-il ?) 38197 puis 496
## Question 5
@ -148,3 +383,7 @@ sudo tcpdump -xx port 5678
sudo tcpdump -xx broadcast
```
0x0000: ffff ffff ffff f8a2 d66e dac3 0806 0001
0x0010: 0800 0604 0001 f8a2 d66e dac3 0a20 2965
0x0020: 0000 0000 0000 a9fe a9fe 0000 0000 0000
0x0030: 0000 0000 0000 0000