【正文】
shutdown duplex auto speed auto ! interface Serial1/0 ip address serial restartdelay 0 ! interface Serial1/1 no ip address shutdown serial restartdelay 0 ! interface Serial1/2 ip address serial restartdelay 0 ! interface Serial1/3 no ip address shutdown serial restartdelay 0 ! ! router ospf 100 routerid logadjacencychanges work area 0 ! router bgp 12 no synchronization bgp routerid bgp logneighborchanges neighbor remoteas 12 neighbor remoteas 73 no autosummary ! ! ! ip server no ip secureserver ! ! ! ! ! controlplane ! ! ! ! ! ! ! ! ! alias exec a sh ip int brief alias exec b sh ip route alias exec c sh ip route rip alias exec d sh run ! line con 0 exectimeout 0 0 logging synchronous line aux 0 exectimeout 0 0 logging synchronous line vty 0 4 exectimeout 0 0 password cisco login ! ! end r3 r4sh run Building configuration... Current configuration : 1419 bytes ! version service timestamps debug datetime msec service timestamps log datetime msec no service passwordencryption ! hostname r4 ! bootstartmarker bootendmarker ! enable password cisco ! no aaa newmodel memorysize iomem 5 ip cef ! ! ! ! no ip domain lookup ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface Loopback0 ip address ! interface FastEther0/0 no ip address shutdown duplex auto speed auto ! interface FastEther0/1 no ip address shutdown duplex auto speed auto ! interface Serial1/0 ip address serial restartdelay 0 ! interface Serial1/1 no ip address shutdown serial restartdelay 0 ! interface Serial1/2 no ip address shutdown serial restartdelay 0 ! interface Serial1/3 no ip address shutdown serial restartdelay 0 ! ! router ospf 100 routerid logadjacencychanges work area 0 ! router bgp 73 no synchronization bgp routerid bgp logneighborchanges neighbor remoteas 12 no autosummary ! ! ! ip server no ip secureserver ! ! ! ! ! controlplane ! ! ! ! ! ! ! ! ! alias exec a sh ip int brief alias exec b sh ip route alias exec c sh ip route rip alias exec d sh run ! line con 0 exectimeout 0 0 logging synchronous line aux 0 exectimeout 0 0 logging synchronous line vty 0 4 exectimeout 0 0 password cisco login ! ! end r4 2. 配置 QPPB r4(config)int lo100 r4(configif)ip add r4(config)router bgp 73 r4(configrouter) mask r1sh ip bgp BGP table version is 2, local router ID is Status codes: s suppressed, d damped, h history, * valid, best, i internal, r RIBfailure, S Stale Origin codes: i IGP, e EGP, ? inplete Network Next Hop Metric LocPrf Weight Path * r3(config)routemap fxh 設(shè)置一個(gè)團(tuán)隊(duì)屬性為 12: 17 r3(configroutemap)set munity 12:17 additive r3(configroutemap)router bgp 12 調(diào)用這個(gè)屬性 r3(configrouter)nei routemap fxh in r3clear ip bgp * 重新計(jì)算 bgp r3sh ip bgp munity 在 AS12 中就看到了團(tuán)體屬性 BGP table version is 2, local router ID is Status codes: s suppressed, d damped, h history, * valid, best, i internal, r RIBfailure, S Stale Origin codes: i IGP, e EGP, ? inplete Network Next Hop Metric LocPrf Weight Path * r3(config)router bgp 12 r3(configrouter)nei sendmunity r3clear ip bgp * r2sh ip bgp munity R2 在 AS12 中就可以收到這個(gè)團(tuán)體屬性了。 r2(config)prioritylist 1 protocol ip high tcp 80 r2(config)prioritylist 1 protocol ip medium tcp ftp r2(config)prioritylist 1 protocol ip medium tcp ftpda r2(config)prioritylist 1 protocol ip normal tcp tel r2(config)prioritylist 1 default low r2sh queueing priority Current DLCI priority queue configuration: Current priority queue configuration: List Queue Args 1 low default 1 high protocol ip tcp port 1 medium protocol ip tcp port ftp 1 normal protocol ip tcp port tel 1 medium protocol ip tcp port ftpdata r2 r2(config)int s1/2 r2(configif)prioritygroup 1 r2sh queueing int s1/2 查詢基本的接口 PQ 隊(duì)列情況 ,來看到中招情況 Interface Serial1/2 queueing strategy: priority Output queue utilization (queue/count) high/57 medium/28 normal/11171 low/43 r2sh int s1/2 Serial1/2 is up, line protocol is up Hardware is M4T Inter address is MTU 1500 bytes, BW 64 Kbit, DLY 20200 usec, reliability 255/255, txload 196/255, rxload 200/255 Encapsulation HDLC, crc 16, loopback not set Keepalive set (10 sec) RestartDelay is 0 secs Last input 00:00:02, output 00:00:00, output hang never Last clearing of show interface counters never Input queue: 0/75/0/0 (size/max/drops/flushes)。 r2(config)queuelist 1 protocol ip 1 tcp r2(config)queuelist 1 protocol ip 2 tcp ftp r2(config)queuelist 1 protocol ip 2 tcp ftpda r2(config)queuelist 1 protocol ip 3 tcp tel r2(config)queuelist 1 default 4 r2(config)int s1/2 應(yīng)用我們的 CQ 進(jìn)入接口 r2(configif)customqueuelist 1 r2sh int s1/2 Queueing strategy: customlist 1 Output queues: (queue : size/max/drops) 0: 0/20/0 1: 0/20/0 2: 0/20/0 3: 0/20/0 4: 0/20/0 5: 0/20/0 6: 0/20/0 7: 0/20/0 8: 0/20/0 9: 0/20/0 10: 0/20/0 11: 0/20/0 12: 0/20/0 13: 0/20/0 14: 0/20/0 15: 0/20/0 16: 0/20/0 r2(config)queuelist 1 queue 1 limit 100 修改隊(duì)列的 max 數(shù)值 r2debug customqueue 測(cè)試 CQ 的結(jié)果。默認(rèn)是 256. r2(configif)fairqueue 75 512 44 最后的 44 為預(yù)留隊(duì)列,也就是每一次優(yōu)先級(jí)最高的,默認(rèn)的是 0,她一般傳遞的是