CCIE實驗筆記之-第3章 WAN協議(幀中繼)之四

3.5 幀中繼流量整形

我們先看一個網絡模型,圖3-5這個模型中有幾百個遠端站點需要訪問授權中心,假設在主站點到授權中心的鏈路出現問題,很快恢復了,在主站點到授權中心會出現許多TCP連接請求,出現大量數據,由於主站到授權中心的鏈路速率爲64Kbit/s,產生擁塞,遠端站點仍以T1的速率進行傳輸,並不知道主站到授權中心的鏈路只是64Kbit/sFrame-relay Traffic Shaping(幀中繼流量整形)就是爲解決這類問題。
3-5 幀中繼網絡模型
再看幾個術語:

l        承諾速率計算間隔(Tc)  <125msTc=Bc/CIR。 
l        承諾信息速率(CIR  期望平均速率,和物理接口一致。 
l        承諾突發量(Bc  每個Tc時段時傳送的數據量,通常爲CIR1/8,單位bit/s
l        過量突發量(Be  試圖傳輸超過CIR的那部分數據量,單位bit/s。實際由供應商決定。
l        最小承諾信息速率(MinCIR  信道擁擠時能夠傳送的最小數據量。
l        傳輸字節(Byte increment  =Bc/8,每個時段裏傳輸的數據量。
l        前向顯式擁塞通告(FECN)  當幀中繼交換機察覺到發生擁塞,即向目的設備發送一個FECN數據包,指示有擁塞。
l        後向顯式擁塞通告(BECN)  當幀中繼交換機察覺到發生擁塞,即向源設備發送一個BECN數據包,指示降低發送數據包的速率。IOS 11.2 or later version supported BECN
l        可丟棄指示符(De)  當網絡發生擁塞時,有De編織物設置的數據包將被丟棄。

  
啓動流量整形後,router在發送packet前會檢查是否有可用的令牌桶or標誌,事先定義令牌桶的容量,存有以一定速率放進去的令牌。任何時router發送的速率大小要和令牌桶一致。在數據送出接口之前都要通過爲VC而建立的隊列。

BECN響應模式:如果router收到BECN,則速率降低25%,在接下來每個Tc間隔後都再降低25%,起到降低到MinCIR爲止。如果有16Tc間隔沒有再收到BECN,速率則以每次(Be+Bc/16增加。配置幀中繼流量整形步驟:
1步  允許FRTS  router(config-if)#frame-relay traffic-shaping
2步  創建映射類,router(config-if)#frame-relay class calss_name_l [ in | out ]
router(config)#map-class frame-relay class_name_l。前者可以多個VC使用同一個映射類。
3步  在映射類配置中設置選項:
n         Frame-relay adaptive-shaping [ becn | foresinght ]    使用BECN
n         Frame-relay cir [ in | out ]bit/s  將CIR設置爲物理接口速率
n         Frame-relay bc [ in | out ]bit/s  合適的設置爲遠端設備的1/8CIR
n         Frame-relay be out bit/s    不應超過接口速率。
n         Frame-relay mincir [ in | out ]bit/s  設爲和供應商提供的CIR值。
n         Frame-relay traffic-rate cir peak_speed    可選,不應超過接口速率,
4步  可選將隊列應用於映射類,默認是FIFO

3.5.1 實例:幀中繼流量整形的配置

3-6 爲一個幀中繼點對點網絡。
該實例中爲防止R5發送大量數據到R2PVC,同時還要對傳送到R3的流量整形,假設R5R3的接口速率爲1.544Mbit/sR2則是64Kbit/sR5R2之間的PVCCIR供應商設定爲32kbit/sR5R3之間的PVCCIR512Kbit/s
3-6
3-10 R5 FRTS:配置
R5(config)#int s1/0
R5(config-if)#frame-relay traffic-shaping    <-enable FRTS

R5(config-if)#exit
R5(config)#int s1/0.1
R5(config-subif)#frame
R5(config-subif)#frame-relay class 64kb       <-set map class

R5(config-subif)#exit
R5(config)#int s1/0.2
R5(config-subif)#frame-relay class t1

R5(config-subif)#

 

3-11配置映射類

 

R5(config)#map-class frame-relay 64kb   <-建立映射類

R5(config-map-class)#frame-relay adaptive-shaping becn   <-Eable BENC response

R5(config-map-class)#frame-relay cir 1544000      <-設置爲物理端口速率

R5(config-map-class)#frame-relay bc 8000   <-設置爲遠端端口速率的1/8

R5(config-map-class)#frame-relay be 64000   <-Initail burst

R5(config-map-class)#frame-relay mincir 32000    <-Carrier enforced CIR
R5(config-map-class)#exit
R5(config)#map-class frame-relay t1

R5(config-map-class)#frame-relay adaptive-shaping becn

R5(config-map-class)#frame-relay cir 1544000

R5(config-map-class)#frame-relay bc 8000

R5(config-map-class)#frame-relay be 64000

R5(config-map-class)#frame-relay mincir 512000

R5(config-map-class)#
使用show traffic-shapeshow frame-relay pvc dlci_number命令驗證FRTS配置,例3-12列出兩條命令所顯示的信息:
3-12 show traffic-shape and show frame-relay pvc 命令顯示信息
R5#show traffic-shape

 

Interface   Se1/0.1
       Access Target    Byte   Sustain   Excess    Interval  Increment Adapt
VC     List   Rate      Limit  bits/int  bits/int  (ms)      (bytes)   Active
503           1544000   9930   15440     64000     10        1930      BECN

502           1544000   9930   15440     64000     10        1930      BECN

 

Interface   Se1/0.2
       Access Target    Byte   Sustain   Excess    Interval  Increment Adapt
VC     List   Rate      Limit  bits/int  bits/int  (ms)      (bytes)   Active
504           1544000   9930   15440     64000     10        1930      BECN

 

 

R5#show frame-relay pvc 502

 

PVC Statistics for interface Serial1/0 (Frame Relay DTE)

 

DLCI = 502, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial1/0.1

 

  input pkts 365           output pkts 205          in bytes 37862    
  out bytes 17038          dropped pkts 0           in FECN pkts 0        
  in BECN pkts 0           out FECN pkts 0          out BECN pkts 0        
  in DE pkts 0             out DE pkts 0        
  out bcast pkts 188       out bcast bytes 15294    
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
  Shaping adapts to BECN
  pvc create time 04:11:05, last time pvc status changed 04:11:05
  cir 1544000   bc 15440     be 64000     byte limit 9930   interval 10 

  mincir 32000     byte increment 1930  Adaptive Shaping BECN

  pkts 13        bytes 1014      pkts delayed 0         bytes delayed 0       
  shaping inactive   
  traffic shaping drops 0
  Queueing strategy: fifo
  Output queue 0/40, 0 drop, 0 dequeued
R5#
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章