|
|
< Free Open Study > |
|
Automatic Bandwidth AdjustmentAs you've seen, MPLS TE tunnels can be configured to reserve bandwidth. But in everything you've seen so far, reservations require manual intervention to change. What happens if the traffic patterns in your network change several times during the day? One way to handle this situation is to use an offline tool to figure out how much bandwidth to give each tunnel and to send new configurations to your routers with the new configuration information. See Chapter 9 for more on the issues involved. Offline tunnel calculation has a decided advantage in that you can also use this offline tool to calculate the paths your TE LSPs flow over, which leads to a more efficient use of bandwidth. However, an offline tool is a lot of work. If you want to give your network a fair degree of autonomy without having to run an offline tool, consider a mechanism called auto bandwidth. Auto bandwidth is a simple concept. You configure it on a per-LSP basis at the headend. Periodically, the headend looks at the bandwidth actually used by the auto bandwidth-configured LSPs and changes the configuration of those LSPs to reflect a more recent bandwidth requirement. The devil, of course, is in the details. How Auto Bandwidth WorksThe general idea behind auto bandwidth is that it watches the traffic rate on a tunnel interface and periodically resizes the bandwidth on the tunnel interface to more closely align with the traffic that's actually going down the tunnel. Table 5-22 lists several auto bandwidth variables with which you must concern yourself.
When a tunnel is first configured with auto bandwidth, a timer A is started. After this timer is started, every C seconds, the output rate on that tunnel interface is collected, and D is calculated. When A expires, the tunnel is reconfigured (the value of B is modified) in accordance with D. For example, suppose you enable auto bandwidth on an interface that has no bandwidth configured. Over A seconds, the highest bandwidth seen on that tunnel is 30 Mbps. The value of D is therefore 30 Mbps. The tunnel is resized to 30 Mbps, and the A timer starts again. What if you enable auto bandwidth on a tunnel whose highest observed bandwidth is 30 Mbps but that is configured for 45 Mbps? In this case, as soon as A expires, D is 15 Mbps, and the tunnel is resized to 45 Mbps – 15 Mbps, or 30 Mbps. There are a few cases in which auto bandwidth doesn't change B to be the same as H:
Auto Bandwidth ConfigurationAuto bandwidth has one globally configurable knob:
gsr3(config)#mpls traffic-eng auto-bw timers frequency ?
<1-604800> seconds between auto-bw
This is the collection frequency (C) referred to in Table 5-22. The default for this timer is 300 seconds, or 5 minutes. Whenever this timer expires, the output rate on all tunnel interfaces (as seen in show interface) is recorded. Nothing is actually done with this information until auto-bandwidth is enabled on a TE tunnel. On an LSP, auto bandwidth is configured with the knob tunnel mpls traffic-eng auto-bw. That's all you need to do to turn on auto bandwidth with the default timers. This command has several options, as shown in Example 5-12. Example 5-12 auto-bw Options
gsr3(config-if)#tunnel mpls traffic-eng auto-bw ?
collect-bw Just collect Bandwidth info on this tunnel
frequency Frequency to change tunnel BW
max-bw Set the Maximum Bandwidth for auto-bw on this tunnel
min-bw Set the Minimum Bandwidth for auto-bw on this tunnel
<cr>
collect-bw does everything except actually change the tunnel bandwidth. It collects it so that you can see what bandwidth auto-bw would change the tunnel to if it were enabled. frequency controls A, the application frequency. frequency needs to be the same size as or larger than C, the global collection frequency. This makes sense, because you can't change bandwidth faster than you check to see if it's changed. The lower you configure this frequency, the more often you change the tunnel bandwidth. max-bw sets the maximum bandwidth to which auto-bw can go. It's the same idea as min-bw, but in the other direction. No matter what the traffic rate down a tunnel, if you configure max-bw, auto bandwidth never sets the tunnel's bandwidth to higher than that. min-bw sets the minimum bandwidth to which auto-bw can go. No matter what the traffic rate down a tunnel, if you configure min-bw, auto bandwidth will never set the tunnel's bandwidth to lower than that. Auto Bandwidth OperationAuto bandwidth, like so many other things, displays its information in show mpls traffic-eng tunnels, as demonstrated in Example 5-13. Example 5-13 Displaying Auto Bandwidth InformationRouter-1# show mpls traffic-eng tunnels Name:tagsw4500-9_t1 (Tunnel1) Destination:10.0.0.11 Status: Admin:up Oper:up Path:valid Signalling:connected path option 10, type dynamic Config Parameters: Bandwidth:5000 kbps (Global) Priority:7 7 Affinity:0x0/0xFFFF AutoRoute: disabled LockDown:disabled Loadshare:500 bw-based auto-bw:(86400/85477) 765 Bandwidth Requested:500 Table 5-24 dissects the meaning of the fields in the highlighted output.
One final thing to understand about auto-bw is that it actually changes your tunnel configuration. Suppose you start with a tunnel configured as shown in Example 5-14. Example 5-14 Basic Tunnel Configurationinterface Tunnel0 ip unnumbered Loopback0 tunnel mode mpls traffic-eng tunnel destination 192.168.1.8 tunnel mpls traffic-eng path-option 10 dynamic tunnel mpls traffic-eng auto-bw If auto-bw decides that this tunnel should be resized with 750 kbps of bandwidth, the tunnel configuration changes to that shown in Example 5-15. Example 5-15 Tunnel Reconfigured by Auto Bandwidthinterface Tunnel0 ip unnumbered Loopback0 tunnel mode mpls traffic-eng tunnel destination 192.168.1.8 tunnel mpls traffic-eng path-option 10 dynamic tunnel mpls traffic-eng auto-bw tunnel mpls traffic-eng bandwidth 750 The configuration changes that auto bandwidth makes are like a configuration change you make by hand. The configuration is not saved, so unless you have saved it yourself, after the router is reloaded, the configured bandwidth is not there on reload. |
|
|
< Free Open Study > |
|