{"app":"simulateur-reseau","v":1,"opts":{"strictCables":false,"stpFast":true},"devices":[{"id":"D1","type":"router","model":"r-2911","name":"R1","x":250,"y":200,"powered":true,"cli":"!\nhostname R1\n!\nno ip domain-lookup\ninterface GigabitEthernet0/0\n ip address 192.168.10.1 255.255.255.0\n!\ninterface GigabitEthernet0/1\n ip address 10.0.0.1 255.255.255.252\n!\ninterface GigabitEthernet0/2\n no ip address\n shutdown\n!\nip route 192.168.20.0 255.255.255.0 10.0.0.2\n!\nline con 0\n logging synchronous\nline vty 0 4\n!","label":""},{"id":"D2","type":"router","model":"r-2911","name":"R2","x":550,"y":200,"powered":true,"cli":"!\nhostname R2\n!\nno ip domain-lookup\ninterface GigabitEthernet0/0\n ip address 192.168.20.1 255.255.255.0\n!\ninterface GigabitEthernet0/1\n ip address 10.0.0.2 255.255.255.252\n!\ninterface GigabitEthernet0/2\n no ip address\n shutdown\n!\nip route 192.168.10.0 255.255.255.0 10.0.0.1\n!\nline con 0\n logging synchronous\nline vty 0 4\n!","label":""},{"id":"D3","type":"pc","model":"pc-win","name":"PC-SiteA","x":100,"y":360,"powered":true,"ifaces":[{"name":"Ethernet0","ip":"192.168.10.10","mask":"255.255.255.0","dhcp":false}],"gw":"192.168.10.1","dns":[],"domain":"","allowIcmpEcho":true,"wifi":{"ssid":"","key":""},"hosts":{},"dhcpd":{"enabled":false,"excluded":[],"pools":[]},"dnsd":{"enabled":false,"records":[],"forwarders":[]},"httpd":{"enabled":false,"https":false,"pages":{"/":{"type":"text/html; charset=utf-8","body":"<html><head><title>PC-SiteA</title></head><body><h1>Bienvenue sur PC-SiteA</h1><p>Serveur web du simulateur.</p></body></html>"}}},"mgmt":{"comms":[],"location":"","contact":"","syslogd":false,"trapd":false},"v6":{"ifs":[{"name":"Ethernet0","autoconf":true,"addrs":[]}],"statics":[]},"label":""},{"id":"D4","type":"pc","model":"pc-win","name":"PC-SiteB","x":700,"y":360,"powered":true,"ifaces":[{"name":"Ethernet0","ip":"192.168.20.10","mask":"255.255.255.0","dhcp":false}],"gw":"192.168.20.1","dns":[],"domain":"","allowIcmpEcho":true,"wifi":{"ssid":"","key":""},"hosts":{},"dhcpd":{"enabled":false,"excluded":[],"pools":[]},"dnsd":{"enabled":false,"records":[],"forwarders":[]},"httpd":{"enabled":false,"https":false,"pages":{"/":{"type":"text/html; charset=utf-8","body":"<html><head><title>PC-SiteB</title></head><body><h1>Bienvenue sur PC-SiteB</h1><p>Serveur web du simulateur.</p></body></html>"}}},"mgmt":{"comms":[],"location":"","contact":"","syslogd":false,"trapd":false},"v6":{"ifs":[{"name":"Ethernet0","autoconf":true,"addrs":[]}],"statics":[]},"label":""}],"links":[{"a":["D3","Ethernet0"],"b":["D1","GigabitEthernet0/0"],"type":"cross"},{"a":["D1","GigabitEthernet0/1"],"b":["D2","GigabitEthernet0/1"],"type":"cross"},{"a":["D2","GigabitEthernet0/0"],"b":["D4","Ethernet0"],"type":"cross"}],"notes":"","tpfile":{"v":1,"id":"cours-bts2-s04-qos-llq","type":"decouverte","diff":3,"cat":"Cours BTS SIO — 2e année","level":"BTS SIO SISR 2e année — Bloc 2 — S04","duration":"30 min","title":"S04 — QoS : file prioritaire (LLQ) sur le lien WAN d'un routeur Cisco","desc":"Transposition sur un routeur Cisco de la politique vue avec tc sous Linux : classer la voix marquée DSCP EF, lui réserver 128 kbit/s en priorité et appliquer la politique en sortie du lien WAN.","objectives":["Écrire une configuration QoS Cisco (class-map, policy-map, service-policy)","Réserver une bande passante prioritaire à la voix","Vérifier l'application de la politique avec show policy-map interface"],"steps":["Le plan relie deux sites par un lien WAN limité à 512 kbit/s (<code>R1 gi0/1</code> – <code>R2 gi0/1</code>, <code>10.0.0.0/30</code>). Les routes statiques sont déjà en place : vérifiez que <code>PC-SiteA</code> joint <code>PC-SiteB</code>.","Sur <b>R1</b>, créez la classe de la voix : <code>class-map match-any VOIX</code> puis <code>match ip dscp ef</code>.","Créez la politique : <code>policy-map QOS-WAN</code>, classe <code>VOIX</code> avec <code>priority 128</code> (128 kbit/s en priorité), classe <code>class-default</code> avec <code>fair-queue</code> (partage équitable du reste).","Appliquez-la en sortie du lien WAN : sur <code>gi0/1</code>, <code>service-policy output QOS-WAN</code>. Sur matériel, l'interface serait <code>serial 0/0/0</code>.","Vérifiez avec <code>show policy-map QOS-WAN</code> puis <code>show policy-map interface gi0/1</code> (classes, priorité, politique en sortie). Lancez un ping pour voir évoluer les compteurs, puis cliquez sur « Vérifier mon travail ».","Réfléchissez : pourquoi applique-t-on la politique en <b>sortie</b> ? Que se passe-t-il pour la voix si la classe prioritaire est trop petite ?"],"checks":[{"t":"ping","label":"PC-SiteA joint PC-SiteB","from":"PC-SiteA","to":"192.168.20.10"},{"t":"cli","label":"Classe VOIX : match sur DSCP EF","dev":"R1","cmd":"show class-map VOIX","match":"VOIX[\\s\\S]*dscp\\s+ef"},{"t":"cli","label":"Politique QOS-WAN : VOIX en priorité 128 kbit/s","dev":"R1","cmd":"show policy-map QOS-WAN","match":"Class VOIX\\s+priority 128"},{"t":"cli","label":"Politique QOS-WAN : classe par défaut","dev":"R1","cmd":"show policy-map QOS-WAN","match":"Class class-default"},{"t":"cli","label":"Politique appliquée en sortie de gi0/1","dev":"R1","cmd":"show policy-map interface gi0/1","match":"Service-policy output: QOS-WAN"}],"solution":{"app":"simulateur-reseau","v":1,"opts":{"strictCables":false,"stpFast":true},"devices":[{"id":"D1","type":"router","model":"r-2911","name":"R1","x":250,"y":200,"powered":true,"cli":"!\nhostname R1\n!\nno ip domain-lookup\nclass-map match-any VOIX\n match ip dscp ef\n!\npolicy-map QOS-WAN\n class VOIX\n  priority 128\n class class-default\n!\ninterface GigabitEthernet0/0\n ip address 192.168.10.1 255.255.255.0\n!\ninterface GigabitEthernet0/1\n ip address 10.0.0.1 255.255.255.252\n service-policy output QOS-WAN\n!\ninterface GigabitEthernet0/2\n no ip address\n shutdown\n!\nip route 192.168.20.0 255.255.255.0 10.0.0.2\n!\nline con 0\n logging synchronous\nline vty 0 4\n!","label":""},{"id":"D2","type":"router","model":"r-2911","name":"R2","x":550,"y":200,"powered":true,"cli":"!\nhostname R2\n!\nno ip domain-lookup\ninterface GigabitEthernet0/0\n ip address 192.168.20.1 255.255.255.0\n!\ninterface GigabitEthernet0/1\n ip address 10.0.0.2 255.255.255.252\n!\ninterface GigabitEthernet0/2\n no ip address\n shutdown\n!\nip route 192.168.10.0 255.255.255.0 10.0.0.1\n!\nline con 0\n logging synchronous\nline vty 0 4\n!","label":""},{"id":"D3","type":"pc","model":"pc-win","name":"PC-SiteA","x":100,"y":360,"powered":true,"ifaces":[{"name":"Ethernet0","ip":"192.168.10.10","mask":"255.255.255.0","dhcp":false}],"gw":"192.168.10.1","dns":[],"domain":"","allowIcmpEcho":true,"wifi":{"ssid":"","key":""},"hosts":{},"dhcpd":{"enabled":false,"excluded":[],"pools":[]},"dnsd":{"enabled":false,"records":[],"forwarders":[]},"httpd":{"enabled":false,"https":false,"pages":{"/":{"type":"text/html; charset=utf-8","body":"<html><head><title>PC-SiteA</title></head><body><h1>Bienvenue sur PC-SiteA</h1><p>Serveur web du simulateur.</p></body></html>"}}},"mgmt":{"comms":[],"location":"","contact":"","syslogd":false,"trapd":false},"v6":{"ifs":[{"name":"Ethernet0","autoconf":true,"addrs":[]}],"statics":[]},"label":""},{"id":"D4","type":"pc","model":"pc-win","name":"PC-SiteB","x":700,"y":360,"powered":true,"ifaces":[{"name":"Ethernet0","ip":"192.168.20.10","mask":"255.255.255.0","dhcp":false}],"gw":"192.168.20.1","dns":[],"domain":"","allowIcmpEcho":true,"wifi":{"ssid":"","key":""},"hosts":{},"dhcpd":{"enabled":false,"excluded":[],"pools":[]},"dnsd":{"enabled":false,"records":[],"forwarders":[]},"httpd":{"enabled":false,"https":false,"pages":{"/":{"type":"text/html; charset=utf-8","body":"<html><head><title>PC-SiteB</title></head><body><h1>Bienvenue sur PC-SiteB</h1><p>Serveur web du simulateur.</p></body></html>"}}},"mgmt":{"comms":[],"location":"","contact":"","syslogd":false,"trapd":false},"v6":{"ifs":[{"name":"Ethernet0","autoconf":true,"addrs":[]}],"statics":[]},"label":""}],"links":[{"a":["D3","Ethernet0"],"b":["D1","GigabitEthernet0/0"],"type":"cross"},{"a":["D1","GigabitEthernet0/1"],"b":["D2","GigabitEthernet0/1"],"type":"cross"},{"a":["D2","GigabitEthernet0/0"],"b":["D4","Ethernet0"],"type":"cross"}],"notes":""}}}