« 乱七八糟点东西漫画:有一天,我们也会变老(组图) »

乱七八糟点东西2

frame-relay

 n r3 r4 r5 . all router use subinterface ,r3 use multipoint , r4,r5 use point-to-point  
//这里主要留意碰到frame map 0.0.0.0的问题,必须要处理掉。我考的时候没有遇到这个情况,
如果是其他不需要的map,可以用以下方法处理:  
sh frame map  
记下没用DLCI号  
进端口  
sh  
no enc fram  
enc fram  
no fram inv  
no arp fram  
fram map ip x.x.x.x 000 b  
no fram inv ip 000(没用的DLCI)  
no fram inv ip 000(同上)  
。。。。  
都NO过一遍后  
NO SH  
就可以了  
//留意题目可能会预配置其他FRAM封装模式,如ANSI等,注意到时接口是否UP了


Frame Relay Traffic Shaping:

记得在接口下要开启:frame-relay traffic-shaping

burst up to the maximum trasmission rate:Be=(AR-CIR)*TC/1000

bursting should not be allowed:Be=0

the Frame Relay notifies the router of congestion it should reduce its sending rate to no lower than 384Kbps:
frame-relay mincir 384000 
frame-relay adaptive-shaping becn

Any FECNs received should be reflected as BECNs:
frame-relay fecn-adapt
 

  • 要在物理接口开启(即子接口的主接口)启用FRTS:frame-relay traffic-shaping
  • 一般tc不配置,由cir和bc自动计算得出
  • 单位:cir:bit/s,mincir:bit/s,Bc:bits,Be:bitsTc:milliseconds

•  To resolve a problem configure your network so that Microsoft SQL traffic is limited to an average rate of 256Kbps on R2’s connection to the Frame Relay cloud. 
•  Up to 2048 SQL packets in excess of 256Kbps should be queued up by R2 before packet loss occurs.

ip cef
!
class-map match-all SQL 
 match protocol sqlserver

 policy-map SQL_POLICY
  class SQL 
   shape average 256000
   shape max-buffers 2048
!
interface Serial0/0.1 point-to-point
 service-policy output SQL_POLICY

由于要match具体的协议,所以只能使用GTS

To resolve this configure R1’s traffic shaping queue to hold 10 times the default amount of packets.

map-class frame-relay FRTS 
 frame-relay holdq 400                      //默认为40
 

Verify new queueing parameters:
 
Rack1R4#show frame-relay pvc 401 | beg Queueing
  Queueing strategy: fifo 
  Output queue 0/400, 0 drop, 0 dequeued 

To decrease the serialization delay on the circuit ensure that all the shaping intervals are the smallest possible, and that a single packet cannot take more than one interval to be transmitted. 

map-class frame-relay DLCI_403 
 frame-relay fragment 320 

Rack1R3#show frame-relay pvc 304 
 fragment type end-to-end fragment size 320 
  cir 256000    bc   2560      be 0         limit 320    interval 10      

Lowest Link Speed in Path     Recommended Fragmentation Size(for 10 ms Serialization)
56 Kbps  70 bytes
256 Kbps  320 bytes
56000*(1000/10)/8=70保证一个数据包在一个TC内被传送完毕
 


Congestion Aviodance:random-detect precedence [precedence] [开始随机丢弃] [开始尾部丢弃] [轮询时间]

In order to prevent this behavior configure R1 to start dropping packets with an IP precedence of routine on this link when there are at least 15 packets in the output queue

interface FastEthernet0/0 
 random-detect  
 random-detect precedence 0 15 40 10

题目只要求设置开始丢弃的值,所以,其他的不用修改,保持默认值,使用show queueing random-detect查看

附:ip优先级:0 routine,1 priority ,2 immediate,3 flash,4 flash-override,5 critical,6 internet,7 network,0优先级最低

•  Configure your network so that HTTP traffic is dropped prior to the interface becoming congested.
•  This HTTP traffic should not be reserved any bandwidth. 

class-map match-all NOT_HTTP 
 match not protocol http
!
policy-map QOS
  class NOT_HTTP
  class class-default
   fair-queue 
   random-detect

要在MQC中启用WRED必须满足两个条件。1、在class中使用bandwidth命令   2、在default-class中启用weighted fair queuing,这里使用第二种方法,排除非http的流量,对剩下的流量(即http的流量)开启fair-queue,并启用random-detect

•  In order to prevent this type of tail drop behavior for voice traffic configure R4 to randomly drop packets on the Frame Relay circuit before congestion occurs.
•  In order to ensure that voice traffic gets better service than other traffic configure R4 so that ‘critical’ traffic will not be dropped unless there are 60 packets in the output queue.
•  If there are 90 critical packets in the output queue R4 should randomly drop 5 out of every 25 of these packets.
•  In the case that there are more than 90 critical packets in the output queue they should all be dropped.   

policy-map WRED
  class class-default
   fair-queue 
   random-detect 
   random-detect precedence 5 60 90 5    
!
map-class frame-relay FRTS
 service-policy output WRED           要在frame-relay上启用random-detect,必须在map-class中调用policy-map

对输出队列带宽进行整形,还有其他几项也是 Show出来的结果,真正能改动的是这个75的值,默认是 100.   

SW3:  
mls qos
interface fa0/10        
srr-queue bandwidth shape 25 0 0 0     
srr queue bandwidth limit 75
验证:
sw3#show mls qos interface fa0/10 queuein


 

R2 上配置两个 Class-map,一个叫 backbone2,要求输入的接口是 E0 的数据带宽为128K,shaped  256K;另外一个叫做 precedence,设置优先级为 4 的数据分配带宽为  384K,peak 512K  

r2
class-map match-all precedence
   match ip precedence 4  
class-map match-all backbone2
   match input-interface Ethernet0
!
policy-map qos
   class backbone2
    bandwidth 128
     shape average 256000
   class precedence
    bandwidth 384
    shape peak 512000
具体应用那个端口,只能考试的时候看题目了。


 
 

 4.2 DE 
打开DE位:Router(config)#frame-relay de-list number protocol procotol 
把DE列表应用到接口上:Router(config-if)#frame-relay de-group number

The  frame-relay  link  on  R5  is  experiencing  heavy  congestion;  configure  R5  so  that  the frame-relay  provider  doesn’t  drop  any  routing  protocol  packets  during congestion.    And  if the number of packets  in R5’s  frame-relay  interface queue exceeds 10  then  the  traffic  rate will be reduced to 32000bps

access-list 192 deny ospf any any
access-list 192 deny tcp any eq bgp any
access-list 192 deny tcp any any eq bgp
access-list 192 deny pim any any
access-list 192 permit ip any any
 
frame-relay de-list 5 protocol ip list 192                  //哪些流量设置DE(discard eligible)位
 
map-class frame-relay DE
frame-relay adaptive-shaping interface-congestion 10
frame-relay mincir 32000
 
interface serial0/0/0
frame-relay traffic-shaping        //启动,千万记住要打!!
interface serial0/0/0.5
frame-relay class DE
frame-relay de-group 5 503

 
4.3 Congestion Avoiding
Configure R1 so such that if outbound traffic has utilized 75% of total bandwidth , R1 should
signal that the network is congested and the recipients need to slow down sending packets .
do not use frame-relay BECN and FECN 

RackYYR1
ip cef
policy-map ECN
class class-default
bandwidth percent 75
random-detect
random-detect ecn
 
interface s0/0/0
max-reserved-bandwidth 100      -----这条命令不用打。
service-policy output ECN
//show policy interface s0/0/0



 


 NBAR

Clients  on vlan_bb1  and  vlan_55  access  a  url  located  on  vlan_bb2  frequently  ,  this  url  is http://www.thiswebsite.com/directory/  select  one  suitable  router  to  configure  so  as  to conserve bandwidth meeting the g0/0
Traffic from this url to these clients should not exceed 64000bit/s .    if the files download from this url are image files then drop the traffic .    you may assume image file name end with the suffix .gif .jpg or .jpeg

RackYYR6
ip cef        //各位牛人,记得一定要打!!!虽然是默认的!!
ip access-list extended qos
  permit ip 150.100.25.0 0.0.0.255 150.100.15.0 0.0.0.255
  permit ip 150.100.25.0 0.0.0.255    5.5.55.0 0.0.0.255
 
class-map match-all webqos
    match access-group name qos
    match protocol http host www.thiswebsite.com 
    match protocol http url "/directory/* " ----注意这里有个星号。

class-map match-all image
    match class-map webqos
    match protocol http url "*.(gif|jpg|jpeg)"
 
policy-map nbar
    class webqos
      police cir 64000
    class image
      drop 

int s0/0/0
          ip nbar protocol-discover
          service-policy input nbar
考试的时候只允许使用output方面。
 

 

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

Tags

Powered By Z-Blog 1.8 Spirit Build 80722

Copyright 2007-2008 John Winning's Blog. All Rights Reserved.