Kamis, 08 Desember 2011

Hari Keenam : Lab 2 Priority Queuing

Priority Queuing menggunakan 4 metode antrian 

1. High : merupakan queue dengan prioritas utama/tertinggi
2. Medium : merupakan queue dengan prioritas kedua
3. Normal : trafik default tanpa ada prioritas, merupakan queue dengan prioritas ketiga setelah high dan medium
4. Low : merupakan queue dengan prioritas terendah



R1#sh run
Building configuration...

Current configuration : 1642 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
ip cef
!
!
!
!
no ip domain lookup
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
archive
 log config
  hidekeys
!
!
!
class-map match-all QOS5
 match ip precedence 5
class-map match-all QOS4
 match ip precedence 4
class-map match-all QOS7
 match ip precedence 7
class-map match-all QOS6
 match ip precedence 6
class-map match-all QOS1
 match ip precedence 1
class-map match-all QOS0
 match ip precedence 0
class-map match-all QOS3
 match ip precedence 3
class-map match-all QOS2
 match ip precedence 2
!
!
policy-map LATIHAN
 class QOS0
 class QOS1
 class QOS2
 class QOS3
 class QOS4
 class QOS5
 class QOS6
 class QOS7
!
!
!
!
!
interface Loopback1
 ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet0/0
 ip address 12.12.12.1 255.255.255.0
 duplex auto
 speed auto
 no keepalive
 priority-group 1
 service-policy input LATIHAN
!
interface FastEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
router rip
 network 0.0.0.0
!
!
!
no ip http server
no ip http secure-server
!
access-list 100 permit icmp any any echo
access-list 100 permit icmp any any echo-reply
priority-list 1 protocol ip low list 100
priority-list 1 protocol ip medium tcp www
priority-list 1 protocol ip high tcp telnet
 --More--
*Mar  1 00:55:22.463: PQ: FastEthernet0/0: ip (defaulting) -> low
*Mar  1 00:55:22.467: PQ: FastEthernet0/0 output (Pk size/Q 66/3)
priority-list 1 default low
no cdp run
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
!
!
end
R1#
R2#sh run
Building configuration...

Current configuration : 851 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
ip cef
!
!
!
!
no ip domain lookup
!
 --More--
*Mar  1 00:55:47.267: %SYS-5-CONFIG_I: Configured from console multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
archive
 log config
  hidekeys
!
!
!
!
!
!
interface Loopback2
 ip address 2.2.2.2 255.255.255.255
!
interface FastEthernet0/0
 ip address 12.12.12.2 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
router rip
 network 0.0.0.0
!
ip route 2.2.2.2 255.255.255.255 1.1.1.1
!
!
no ip http server
no ip http secure-server
!
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
!
!
end
R2#

Setelah dikonfigurasi akan tampil log seperti ini : 

R1#
*Mar  1 00:55:10.779: PQ: FastEthernet0/0: ip (s=1.1.1.1, d=2.2.2.2) -> low
*Mar  1 00:55:10.779: PQ: FastEthernet0/0 output (Pk size/Q 114/3)
*Mar  1 00:55:10.903: PQ: FastEthernet0/0: ip (s=1.1.1.1, d=2.2.2.2) -> low
*Mar  1 00:55:10.903: PQ: FastEthernet0/0 output (Pk size/Q 114/3)
*Mar  1 00:55:11.011: PQ: FastEthernet0/0: ip (s=1.1.1.1, d=2.2.2.2) -> low
*Mar  1 00:55:11.015: PQ: FastEthernet0/0 output (Pk size/Q 114/3)
*Mar  1 00:55:11.043: PQ: FastEthernet0/0: ip (s=1.1.1.1, d=2.2.2.2) -> low
*Mar  1 00:55:11.043: PQ: FastEthernet0/0 output (Pk size/Q 114/3)
*Mar  1 00:55:11.087: PQ: FastEthernet0/0: ip (s=1.1.1.1, d=2.2.2.2) -> low
R1#

Tidak ada komentar:

Posting Komentar