Vous êtes sur la page 1sur 5

TD 4 – étude du fonctionnement de la commande traceroute

La commande traceroute (tracert sous windows) permet sur un réseau utilisant le protocole IP, pour
un destinataire donné, d’afficher l’ensemble des routeurs traversés. En voici un exemple :

tracert to pascal.ibp.fr (132.227.77.2), 30 hops max, 40 byte packets


1 iutsm-gw (193.52.38.1) 1.575 ms 1.527 ms 1.503 ms
2 rennes2.or-br.ft.net (193.48.78.17) 10.079 ms 8.624 ms 8.656 ms
3 rennes.renater.ft.net (193.55.253.170) 8.798 ms 8.699 ms 8.742 ms
4 stamand2.renater.ft.net (195.220.180.153) 15.071 ms 15.035 ms 15.058 ms
5 stlambert.rerif.ft.net (195.220.180.10) 251.886 ms 176.705 ms 15.974 ms
6 danton1.rerif.ft.net (193.48.53.50) 17.157 ms 15.818 ms 27.113 ms
7 u-jussieu-paris.rerif.ft.net (193.48.58.122) 16.617 ms 16.356 ms 18.392 ms
8 r-jusren.reseau.jussieu.fr (192.44.54.126) 284.184 ms 554.219 ms *
9 r-ibp.reseau.jussieu.fr (134.157.254.250) 19.261 ms 19.061 ms 20.85 ms
10 nephtys.lip6.fr (132.227.77.2) 18.631 ms 18.62 ms 22.796 ms

Cette commande est fondée sur une utilisation détournée du champ TTL (Time To Live) d’un
datagramme IP.

Un datagramme ICMP de compte-rendu d'erreur a le format suivant :

0 7 15 31
Type Code Checksum

Données complémentaires en fonction du type

Entête du datagramme IP source de l'erreur + les 64 1er bits de ce datagramme

1. On considère le datagramme IP suivant. Quelle version du protocole IP utilise-t-on ?

4500 005c 02a7 0000 0101 5944 c134 2641


84e3 4d02 0800 4fff 0100 a700 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000

2. Quelle est l’adresse de l’émetteur de ce datagramme ? Quel est la classe du


réseau sur lequel est connecté l’émetteur ?

3. Quel est l’adresse IP du récepteur de ce datagramme ? Quel est la classe du réseau sur lequel
est connecté le récepteur ?

4. Rappelez le rôle du champ TTL dans un datagramme IP, ainsi que le fonctionnement du
protocole ICMP. Rappeler également dans quelle(s) condition(s) sont générés les messages
d’erreur ICMP.

5. Analyser les principaux champs du datagramme précédent.

6. Que va-t-il se produire quand ce datagramme va traverser un routeur IP ?

7. En déduire le fonctionnement de la commande traceroute.

TD réseaux 4 -1-
8. Avec ce schéma de fonctionnement, et compte tenu de que vous savez du routage Internet,
est-il possible que la commande traceroute soit mise en défaut ?

9. On fournit maintenant la suite d’échanges suivant sur le réseau. Analyser à quoi correspond
cette suite d’échanges. Expliquer notamment le nombre de datagrammes enregistrés.

Trame 10
Trame 1 4500 0038 589a 0000 fe01 2bb5 c130 4e11
4500 005c 02a7 0000 0101 5944 c134 2641 c134 2641 0b00 f4ff 0000 0000 4500 5c00
84e3 4d02 0800 4fff 0100 a700 0000 0000 ac02 0000 0101 5444 c134 2641 84e3 4d02
0000 0000 0000 0000 0000 0000 0000 0000 0800 4bff 0100 ab00
0000 0000 0000 0000 0000 0000 0000 0000 Trame 11
0000 0000 0000 0000 0000 0000 0000 0000 4500 005c 02ad 0000 0201 5244 c134 2641
0000 0000 0000 0000 0000 0000 84e3 4d02 0800 4aff 0100 ac00 0000 0000
Trame 2 0000 0000 0000 0000 0000 0000 0000 0000
4500 0038 0000 0000 ff01 ed19 c134 2601 0000 0000 0000 0000 0000 0000 0000 0000
c134 2641 0b00 f4ff 0000 0000 4500 5c00 0000 0000 0000 0000 0000 0000 0000 0000
a702 0000 0101 5944 c134 2641 84e3 4d02 0000 0000 0000 0000 0000 0000
0800 4fff 0100 a700 Trame 12
Trame 3 4500 0038 599a 0000 fe01 2bb4 c130 4e11
4500 005c 02a8 0000 0101 5844 c134 2641 c134 2641 0b00 f4ff 0000 0000 4500 5c00
84e3 4d02 0800 4eff 0100 a800 0000 0000 ad02 0000 0101 5344 c134 2641 84e3 4d02
0000 0000 0000 0000 0000 0000 0000 0000 0800 4aff 0100 ac00
0000 0000 0000 0000 0000 0000 0000 0000 Trame 13
0000 0000 0000 0000 0000 0000 0000 0000 4500 005c 02af 0000 0301 4f44 c134 2641
0000 0000 0000 0000 0000 0000 84e3 4d02 0800 49ff 0100 ad00 0000 0000
Trame 4 0000 0000 0000 0000 0000 0000 0000 0000
4500 0038 0000 0000 ff01 ed19 c134 2601 0000 0000 0000 0000 0000 0000 0000 0000
c134 2641 0b00 f4ff 0000 0000 4500 5c00 0000 0000 0000 0000 0000 0000 0000 0000
a802 0000 0101 5844 c134 2641 84e3 4d02 0000 0000 0000 0000 0000 0000
0800 4eff 0100 a800 Trame 14
Trame 5 4500 0038 e534 0000 fd01 e287 c137 fdaa
4500 005c 02a9 0000 0101 5744 c134 2641 c134 2641 0b00 f4ff 0000 0000 4500 5c00
84e3 4d02 0800 4dff 0100 a900 0000 0000 af02 0000 0101 5144 c134 2641 84e3 4d02
0000 0000 0000 0000 0000 0000 0000 0000 0800 49ff 0100 ad00
0000 0000 0000 0000 0000 0000 0000 0000 Trame 15
0000 0000 0000 0000 0000 0000 0000 0000 4500 005c 02b0 0000 0301 4e44 c134 2641
0000 0000 0000 0000 0000 0000 84e3 4d02 0800 48ff 0100 ae00 0000 0000
Trame 6 0000 0000 0000 0000 0000 0000 0000 0000
4500 0038 0000 0000 ff01 ed19 c134 2601 0000 0000 0000 0000 0000 0000 0000 0000
c134 2641 0b00 f4ff 0000 0000 4500 5c00 0000 0000 0000 0000 0000 0000 0000 0000
a902 0000 0101 5744 c134 2641 84e3 4d02 0000 0000 0000 0000 0000 0000
0800 4dff 0100 a900 Trame 16
Trame 7 4500 0038 e634 0000 fd01 e286 c137 fdaa
4500 005c 02ab 0000 0201 5444 c134 2641 c134 2641 0b00 f4ff 0000 0000 4500 5c00
84e3 4d02 0800 4cff 0100 aa00 0000 0000 b002 0000 0101 5044 c134 2641 84e3 4d02
0000 0000 0000 0000 0000 0000 0000 0000 0800 48ff 0100 ae00
0000 0000 0000 0000 0000 0000 0000 0000 Trame 17
0000 0000 0000 0000 0000 0000 0000 0000 4500 005c 02b1 0000 0301 4d44 c134 2641
0000 0000 0000 0000 0000 0000 84e3 4d02 0800 47ff 0100 af00 0000 0000
Trame 8 0000 0000 0000 0000 0000 0000 0000 0000
4500 0038 579a 0000 fe01 2bb6 c130 4e11 0000 0000 0000 0000 0000 0000 0000 0000
c134 2641 0b00 f4ff 0000 0000 4500 5c00 0000 0000 0000 0000 0000 0000 0000 0000
ab02 0000 0101 5544 c134 2641 84e3 4d02 0000 0000 0000 0000 0000 0000
0800 4cff 0100 aa00 Trame 18
Trame 9 4500 0038 e734 0000 fd01 e285 c137 fdaa
4500 005c 02ac 0000 0201 5344 c134 2641 c134 2641 0b00 f4ff 0000 0000 4500 5c00
84e3 4d02 0800 4bff 0100 ab00 0000 0000 b102 0000 0101 4f44 c134 2641 84e3 4d02
0000 0000 0000 0000 0000 0000 0000 0000 0800 47ff 0100 af00
0000 0000 0000 0000 0000 0000 0000 0000 Trame 19
0000 0000 0000 0000 0000 0000 0000 0000 4500 005c 02b3 0000 0401 4a44 c134 2641
0000 0000 0000 0000 0000 0000 84e3 4d02 0800 46ff 0100 b000 0000 0000

TD réseaux 4 -2-
0000 0000 0000 0000 0000 0000 0000 0000 Trame 30
0000 0000 0000 0000 0000 0000 0000 0000 4500 0038 a0b8 0000 fb01 a7c7 c3dc b40a
0000 0000 0000 0000 0000 0000 0000 0000 c134 2641 0b00 f4ff 0000 0000 4500 5c00
0000 0000 0000 0000 0000 0000 b902 0000 0101 4744 c134 2641 84e3 4d02
Trame 20 0800 41ff 0100 b500
4500 0038 0a38 0000 fc01 26cf c3dc b499 Trame 31
c134 2641 0b00 f4ff 0000 0000 4500 5c00 4500 005c 02bb 0000 0601 4044 c134 2641
b302 0000 0101 4d44 c134 2641 84e3 4d02 84e3 4d02 0800 40ff 0100 b600 0000 0000
0800 46ff 0100 b000 0000 0000 0000 0000 0000 0000 0000 0000
Trame 21 0000 0000 0000 0000 0000 0000 0000 0000
4500 005c 02b4 0000 0401 4944 c134 2641 0000 0000 0000 0000 0000 0000 0000 0000
84e3 4d02 0800 45ff 0100 b100 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 Trame 32
0000 0000 0000 0000 0000 0000 0000 0000 4500 0038 17be 0000 fa01 24d5 c130 3532
0000 0000 0000 0000 0000 0000 0000 0000 c134 2641 0b00 f4ff 0000 0000 4500 5c00
0000 0000 0000 0000 0000 0000 bb02 0000 0101 4544 c134 2641 84e3 4d02
Trame 22 0800 40ff 0100 b600
4500 0038 0b38 0000 fc01 26ce c3dc b499 Trame 33
c134 2641 0b00 f4ff 0000 0000 4500 5c00 4500 005c 02bc 0000 0601 3f44 c134 2641
b402 0000 0101 4c44 c134 2641 84e3 4d02 84e3 4d02 0800 3fff 0100 b700 0000 0000
0800 45ff 0100 b100 0000 0000 0000 0000 0000 0000 0000 0000
Trame 23 0000 0000 0000 0000 0000 0000 0000 0000
4500 005c 02b5 0000 0401 4844 c134 2641 0000 0000 0000 0000 0000 0000 0000 0000
84e3 4d02 0800 44ff 0100 b200 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 Trame 34
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 4500 0038 18be 0000 fa01 24d4 c130 3532
0000 0000 0000 0000 0000 0000 c134 2641 0b00 f4ff 0000 0000 4500 5c00
Trame 24 bc02 0000 0101 4444 c134 2641 84e3 4d02
4500 0038 0c38 0000 fc01 26cd c3dc b499 0800 3fff 0100 b700
c134 2641 0b00 f4ff 0000 0000 4500 5c00 Trame 35
b502 0000 0101 4b44 c134 2641 84e3 4d02 4500 005c 02bd 0000 0601 3e44 c134 2641
0800 44ff 0100 b200 84e3 4d02 0800 3eff 0100 b800 0000 0000
Trame 25 0000 0000 0000 0000 0000 0000 0000 0000
4500 005c 02b7 0000 0501 4544 c134 2641 0000 0000 0000 0000 0000 0000 0000 0000
84e3 4d02 0800 43ff 0100 b300 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 Trame 36
0000 0000 0000 0000 0000 0000 0000 0000 4500 0038 19be 0000 fa01 24d3 c130 3532
0000 0000 0000 0000 0000 0000 c134 2641 0b00 f4ff 0000 0000 4500 5c00
Trame 26 bd02 0000 0101 4344 c134 2641 84e3 4d02
4500 0038 9eb8 0000 fb01 a7c9 c3dc b40a 0800 3eff 0100 b800
c134 2641 0b00 f4ff 0000 0000 4500 5c00 Trame 37
b702 0000 0101 4944 c134 2641 84e3 4d02 4500 005c 02bf 0000 0701 3b44 c134 2641
0800 43ff 0100 b300 84e3 4d02 0800 3dff 0100 b900 0000 0000
Trame 27 0000 0000 0000 0000 0000 0000 0000 0000
4500 005c 02b8 0000 0501 4444 c134 2641 0000 0000 0000 0000 0000 0000 0000 0000
84e3 4d02 0800 42ff 0100 b400 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 Trame 38
0000 0000 0000 0000 0000 0000 0000 0000 4500 0038 0000 0000 f901 dea4 c130 3a7a
0000 0000 0000 0000 0000 0000 c134 2641 0b00 f5ff 0000 0000 4500 5c00
Trame 28 bf02 0000 0001 4144 c134 2641 84e3 4d02
4500 0038 9fb8 0000 fb01 a7c8 c3dc b40a 0800 3dff 0100 b900
c134 2641 0b00 f4ff 0000 0000 4500 5c00 Trame 39
b802 0000 0101 4844 c134 2641 84e3 4d02 4500 005c 02c0 0000 0701 3a44 c134 2641
0800 42ff 0100 b400 84e3 4d02 0800 3cff 0100 ba00 0000 0000
Trame 29 0000 0000 0000 0000 0000 0000 0000 0000
4500 005c 02b9 0000 0501 4344 c134 2641 0000 0000 0000 0000 0000 0000 0000 0000
84e3 4d02 0800 41ff 0100 b500 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 Trame 40
0000 0000 0000 0000 0000 0000 0000 0000 4500 0038 0000 0000 f901 dea4 c130 3a7a
0000 0000 0000 0000 0000 0000 c134 2641 0b00 f5ff 0000 0000 4500 5c00

TD réseaux 4 -3-
c002 0000 0001 4044 c134 2641 84e3 4d02 84e3 4d02 0800 36ff 0100 c000 0000 0000
0800 3cff 0100 ba00 0000 0000 0000 0000 0000 0000 0000 0000
Trame 41 0000 0000 0000 0000 0000 0000 0000 0000
4500 005c 02c1 0000 0701 3944 c134 2641 0000 0000 0000 0000 0000 0000 0000 0000
84e3 4d02 0800 3bff 0100 bb00 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 Trame 52
0000 0000 0000 0000 0000 0000 0000 0000 4500 0038 c99b 0000 f701 baed 869d fefa
0000 0000 0000 0000 0000 0000 0000 0000 c134 2641 0b00 f4ff 0000 0000 4500 5c00
0000 0000 0000 0000 0000 0000 c802 0000 0101 3844 c134 2641 84e3 4d02
Trame 42 0800 36ff 0100 c000
4500 0038 0000 0000 f901 dea4 c130 3a7a Trame 53
c134 2641 0b00 f5ff 0000 0000 4500 5c00 4500 005c 02c9 0000 0901 2f44 c134 2641
c102 0000 0001 3f44 c134 2641 84e3 4d02 84e3 4d02 0800 35ff 0100 c100 0000 0000
0800 3bff 0100 bb00 0000 0000 0000 0000 0000 0000 0000 0000
Trame 43 0000 0000 0000 0000 0000 0000 0000 0000
4500 005c 02c3 0000 0801 3644 c134 2641 0000 0000 0000 0000 0000 0000 0000 0000
84e3 4d02 0800 3aff 0100 bc00 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 Trame 54
0000 0000 0000 0000 0000 0000 0000 0000 4500 0038 ca9b 0000 f701 baec 869d fefa
0000 0000 0000 0000 0000 0000 0000 0000 c134 2641 0b00 f4ff 0000 0000 4500 5c00
0000 0000 0000 0000 0000 0000 c902 0000 0101 3744 c134 2641 84e3 4d02
Trame 44 0800 35ff 0100 c100
4500 0038 779b 0000 f801 492d c02c 367e Trame 55
c134 2641 0b00 f4ff 0000 0000 4500 5c00 4500 005c 02cb 0000 0a01 2c44 c134 2641
c302 0000 0101 3d44 c134 2641 84e3 4d02 84e3 4d02 0800 34ff 0100 c200 0000 0000
0800 3aff 0100 bc00 0000 0000 0000 0000 0000 0000 0000 0000
Trame 45 0000 0000 0000 0000 0000 0000 0000 0000
4500 005c 02c4 0000 0801 3544 c134 2641 0000 0000 0000 0000 0000 0000 0000 0000
84e3 4d02 0800 39ff 0100 bd00 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 Trame 56
0000 0000 0000 0000 0000 0000 0000 0000 4500 005c da96 0000 3701 336c 84e3 4d02
0000 0000 0000 0000 0000 0000 0000 0000 c134 2641 0000 3cff 0100 c200 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
Trame 46 0000 0000 0000 0000 0000 0000 0000 0000
4500 0038 8f9b 0000 f801 4915 c02c 367e 0000 0000 0000 0000 0000 0000 0000 0000
c134 2641 0b00 f4ff 0000 0000 4500 5c00 0000 0000 0000 0000 0000 0000
c402 0000 0101 3c44 c134 2641 84e3 4d02 Trame 57
0800 39ff 0100 bd00 4500 005c 02cc 0000 0a01 2b44 c134 2641
Trame 47 84e3 4d02 0800 33ff 0100 c300 0000 0000
4500 005c 02c5 0000 0801 3444 c134 2641 0000 0000 0000 0000 0000 0000 0000 0000
84e3 4d02 0800 38ff 0100 be00 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 Trame 58
0000 0000 0000 0000 0000 0000 4500 005c dd96 0000 3701 3369 84e3 4d02
Trame 48 c134 2641 0000 3bff 0100 c300 0000 0000
4500 0038 a29b 0000 f801 4902 c02c 367e 0000 0000 0000 0000 0000 0000 0000 0000
c134 2641 0b00 f4ff 0000 0000 4500 5c00 0000 0000 0000 0000 0000 0000 0000 0000
c502 0000 0101 3b44 c134 2641 84e3 4d02 0000 0000 0000 0000 0000 0000 0000 0000
0800 38ff 0100 be00 0000 0000 0000 0000 0000 0000
Trame 49 Trame 59
4500 005c 02c7 0000 0901 3144 c134 2641 4500 005c 02cd 0000 0a01 2a44 c134 2641
84e3 4d02 0800 37ff 0100 bf00 0000 0000 84e3 4d02 0800 32ff 0100 c400 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
Trame 50 Trame 60
4500 0038 c89b 0000 f701 baee 869d fefa 4500 005c e396 0000 3701 3363 84e3 4d02
c134 2641 0b00 f4ff 0000 0000 4500 5c00 c134 2641 0000 3aff 0100 c400 0000 0000
c702 0000 0101 3944 c134 2641 84e3 4d02 0000 0000 0000 0000 0000 0000 0000 0000
0800 37ff 0100 bf00 0000 0000 0000 0000 0000 0000 0000 0000
Trame 51 0000 0000 0000 0000 0000 0000 0000 0000
4500 005c 02c8 0000 0901 3044 c134 2641 0000 0000 0000 0000 0000 0000

TD réseaux 4 -4-
L’exécution de la commande traceroute depuis le site de l’afnic vers le serveur Web du CERN a
donné le résultat suivant :

traceroute with AS and policy additions [Dec 8 12:24:03 UTC]

from AS1717 astrid.inria.fr (128.93.3.29)


to AS513 www.cern.ch (137.138.131.253)

1 AS1717 rocq-gw 128.93.1.100 [I] 4 1 1 ms


2 AS1717 modoc-rn 192.93.122.3 [I] 2 1 1 ms
3 AS1717 stlambert1.rerif.ft.net 193.48.53.225 [I] 2 5 2 ms
4 AS1717 stamand1.renater.ft.net 193.48.53.9 [I] 2 3 4 ms
5 AS1717 rbs1.renater.ft.net 195.220.180.90 [I] 6 4 4 ms
6 AS513 cernh4-s0.cern.ch 192.65.184.5 [I] 14 15 15 ms
7 AS513 cgate1.cern.ch 192.65.185.1 [I] 21 22 19 ms
8 AS513 r513-c-rci47-3-gb0.cern.ch 128.141.211.19 [I] 19 18 21 ms
9 AS513 www.cern.ch 137.138.131.253 [I] 21 28 ms
AS Path followed: AS1717 AS513
AS1717 = RENATER

10. Le traceroute de l’Afnic offre la particularité de préciser les systèmes autonomes traversés.
Rappelez à quoi correspond la notion de systèmes autonomes.

11. Combien de systèmes autonomes sont traversés pour atteindre le serveur Web du CERN ?

12. A votre avis, de quelle manière cette commande affiche-t-elle les systèmes autonomes
traversés (faites une réponse simple !) ?

13. Pour exécuter cette commande traceroute, on a donné un nom de machine : « www.cern.ch ».
Quel est l’adresse Internet de cette machine ? Quel est le protocole de niveau application qui
permet d’obtenir cette adresse IP ?

14. La commande traceroute peut être très utile pour tester un plan de routage qui ne fonctionne
pas. Donner un exemple d'utilisation. En quoi cette commande est-elle complémentaire de la
commande ping ?

TD réseaux 4 -5-

Vous aimerez peut-être aussi