Merge branch 'main' of gitea.kerboul.me:kerboul/tp2-reso
This commit is contained in:
61
README.md
61
README.md
@@ -4,36 +4,42 @@
|
|||||||
Raphaël, Ethan, Antonin
|
Raphaël, Ethan, Antonin
|
||||||
|
|
||||||
## Sommaire
|
## Sommaire
|
||||||
### [Partie 1](#partie-1)
|
- [Partie 1](#partie-1)
|
||||||
### [Partie 2](#partie-2)
|
- [Partie 2](#partie-2)
|
||||||
|
- [Exercice 1](#exercice-1)
|
||||||
|
- [Exercice 2](#exercice-2)
|
||||||
|
- [Exercice 3](#exercice-3)
|
||||||
|
- [Exercice 4](#exercice-4)
|
||||||
|
- [Exercice 5](#exercice-5)
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
## Partie 1
|
## Partie 1
|
||||||
Configuration de deux VM chez Ethan (Cynosure, Mikoshi)
|
Configuration de deux VM chez Ethan (Cynosure, Mikoshi)
|
||||||
Machine | Cynosure | Mikoshi |
|
Machine | Cynosure | Mikoshi |
|
||||||
| ------------- | ------------- | ------------- |
|
|------------|--------------|--------------|
|
||||||
| IPAdress | 192.168.1.87 | 192.168.1.42 |
|
| IPAdress | 192.168.1.87 | 192.168.1.42 |
|
||||||
| Mask | 255.255.255.0 | 255.255.255.0 |
|
| Mask | 255.255.255.0 | 255.255.255.0 |
|
||||||
|
|
||||||
Ping :
|
Ping :
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
-------
|
-------
|
||||||
## Partie 2
|
|
||||||
|
|
||||||
Machine | Cynosure | Mikoshi |
|
## Partie 2
|
||||||
| ------------- | ------------- | ------------- |
|
| Machine | Cynosure | Mikoshi |
|
||||||
| puit | ````./tsock -p 5667 ```` | ````./tsock -p 5668```` |
|
|------------|----------------------------------|----------------------------------|
|
||||||
| source | ````./tsock -s 192.168.1.42 5668```` | ````./tsock -s 192.168.1.87 5667```` |
|
| puit | ```./tsock -p 5667``` | ```./tsock -p 5668``` |
|
||||||
|
| source | ```./tsock -s 192.168.1.42 5668``` | ```./tsock -s 192.168.1.87 5667``` |
|
||||||
|
|
||||||
TCP :
|
TCP :
|
||||||

|

|
||||||
|
|
||||||
UDP :
|
UDP :
|
||||||

|

|
||||||
#### 1
|
|
||||||
a) UDP :
|
|
||||||
|
|
||||||
|
### Exercice 1
|
||||||
|
a) UDP :
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@@ -45,5 +51,32 @@ b) On constate des pertes avec UDP :
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
c) L'expérience consiste à saturer la communication UDP
|
||||||
|
|
||||||
|
````shell
|
||||||
|
# Mikoshi
|
||||||
|
./tsock -s 192.168.1.87 5667 -u -n 10000 -l 15000
|
||||||
|
# Cynosure
|
||||||
|
./tsock -p 5667 -u -15000
|
||||||
|
````
|
||||||
|
### Exercice 2
|
||||||
|
a) Avec UDP, on observe qu'aucun package part, mais pas d'erreur particulière :
|
||||||
|
|
||||||
|
alors qu'en TCP, on observe une erreur d'ouverture de flux :
|
||||||
|
|
||||||
|
b) UDP n'a jamais reçu les packages, mais n'a pas relevé d'erreurs. Ce n'est pas un comportement souhaitable, ni acceptable.
|
||||||
|
|
||||||
|
### Exercice 3
|
||||||
|
a)
|
||||||
|
b)
|
||||||
c)
|
c)
|
||||||
|
|
||||||
|
### Exercice 4
|
||||||
|
a)
|
||||||
|
b)
|
||||||
|
c)
|
||||||
|
d)
|
||||||
|
|
||||||
|
### Exercice 5
|
||||||
|
a)
|
||||||
|
b)
|
||||||
Reference in New Issue
Block a user