28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

14.13 Automatically Allocating Bandwidth<br />

Problem<br />

You want an automatic way to optimize the amount of bandwidth allocated to each<br />

LSP to minimize or eliminate any contention for the available bandwidth on the<br />

shared links.<br />

Solution<br />

MPLS can automatically allocate bandwidth for an LSP and can automatically adjust<br />

the allocation as necessary from time to time. The configuration has two parts. First,<br />

MPLS must gather bandwidth statistics:<br />

[edit protocols mpls]<br />

aviva@R1# set statistics auto-bandwidth<br />

aviva@R1# set statistics file mpls-bandwidth-stats world-readable<br />

Second, configure the LSP to automatically allocate and adjust the bandwidth for an<br />

LSP:<br />

[edit protocols mpls]<br />

aviva@R1# set label-switched-path R1-to-R5 auto-bandwidth minimum-bandwidth 50m<br />

<strong>Discussion</strong><br />

In a network with bandwidth constraints, it can be difficult for RSVP to set up LSPs<br />

when insufficient bandwidth is available. If you choose to allocate LSP bandwidth<br />

manually (see Recipe 14.11), it can be challenging to figure out how much bandwidth<br />

to set aside for an individual LSP or for a series of LSPs so that they are always<br />

available to carry your customer’s traffic. MPLS autobandwidth is a JUNOS mechanism<br />

that automatically allocates bandwidth for an LSP. It works by monitoring the<br />

rate of traffic flow through an LSP and periodically resizing the allocated bandwidth<br />

to match the flow rate. In effect, autobandwidth adaptively requests bandwidth reservations<br />

based on actual LSP usage.<br />

When MPLS resizes the bandwidth, it calculates and sets up a new LSP and sets it up<br />

in a make-before-break fashion, then tears down the old LSP after the new one is<br />

established. To avoid double-counting of resources, the LSP is set up as adaptive.<br />

Thus, the new and old LSPs share bandwidth over common links. In this process, the<br />

LSP might be rerouted. If this happens, all traffic already in the existing LSP continues<br />

to the egress router and any new traffic entering the LSP travels along the newly<br />

established path.<br />

You turn on autobandwidth at the ingress router. No configuration is necessary on<br />

the other routers in the LSP. As a first step, enable MPLS statistics collection (with<br />

the set statistics auto-bandwidth command) and create a logfile to track actual<br />

bandwidth usage on the LSP. This recipe creates a file named mpls-bandwidth-stats.<br />

Automatically Allocating Bandwidth | 535<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!