Tujuan Lab :
1. mempelajari cara melakukan marking terhadap suatu trafik
2. IP QoS marking pada lab ini menggunakan IP Precedence
3. Ada 0-7 Level Precedence yang akan dibuat konfigurasinya
Topologi
R1(config-if)#int f0/0Konfig IP Precedence di R1
R1(config-if)#ip add 12.12.12.1 255.255.255.0
R2(config)#int f0/0
R2(config-if)#ip add 12.12.12.2 255.255.255.0
R1(config)#class-map QOS0
R1(config-cmap)#match ip precedence 0
R1(config-cmap)#class-map QOS1
R1(config-cmap)#match ip precedence 1
R1(config-cmap)#class-map QOS2
R1(config-cmap)#match ip precedence 2
R1(config-cmap)#class-map QOS3
R1(config-cmap)#match ip precedence 3
R1(config-cmap)#class-map QOS4
R1(config-cmap)#match ip precedence 4
R1(config-cmap)#class-map QOS5
R1(config-cmap)#match ip precedence 5
R1(config-cmap)#class-map QOS6
R1(config-cmap)#match ip precedence 6
R1(config-cmap)#class-map QOS7
R1(config-cmap)#match ip precedence 7
R1(config)#policy-map LATIHAN
R1(config-pmap)#class QOS0
R1(config-pmap-c)#Class QOS1
R1(config-pmap-c)#Class QOS2
R1(config-pmap-c)#Class QOS3
R1(config-pmap-c)#Class QOS4
R1(config-pmap-c)#Class QOS5
R1(config-pmap-c)#Class QOS6
R1(config-pmap-c)#Class QOS7
R1(config-pmap-c)#int f0/0
R1(config-if)#service-policy input LATIHAN
R1(config-cmap)#match ip precedence ?untuk pengujian kita generate trafik dengan nilai precedence yang diinginkan dengan menggunakan ping extended pada R2 , kita setting nilai type of service nya menjadi 64 (precedence 2)
<0-7> Enter up to 4 precedence values separated by white- spaces
critical Match packets with critical precedence (5)
flash Match packets with flash precedence (3)
flash-override Match packets with flash override precedence (4)
immediate Match packets with immediate precedence (2)
internet Match packets with internetwork control precedence (6)
network Match packets with network control precedence (7)
priority Match packets with priority precedence (1)
routine Match packets with routine precedence (0)
R2#pingSelanjutnya untuk mengetahui apakah R1 dapat mengenali paket dengan precedence 2 yang dikirimkan R2, lakukan dengan commmand berikut
Protocol [ip]:
Target IP address: 12.12.12.1
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface:
Type of service [0]: 64
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12.12.12.1, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 8/16/36 ms
R1#show policy-map interface f0/0Dapat kita lihat R2 match ip precedence 2 sejumlah 4 paket.
FastEthernet0/0
Service-policy input: LATIHAN
Class-map: QOS0 (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps
Match: ip precedence 0
Class-map: QOS1 (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps
Match: ip precedence 1
Class-map: QOS2 (match-all)
4 packets, 456 bytes
5 minute offered rate 0 bps
Match: ip precedence 2
Class-map: QOS3 (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps
Match: ip precedence 3
Class-map: QOS4 (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps
Match: ip precedence 4
Class-map: QOS5 (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps
Match: ip precedence 5
Class-map: QOS6 (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps
Match: ip precedence 6
Class-map: QOS7 (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps
Match: ip precedence 7
Class-map: class-default (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any