Supported Platforms
Related Documentation
- ACX, EX, J, M, MX, SRX, T Series
- RIP Overview
- ACX, EX, J, M, MX, PTX, QFX, SRX, T Series
- Example: Controlling Traffic in a RIP Network with an Incoming Metric
- Example: Controlling Traffic in a RIP Network with an Outgoing Metric
- Example: Configuring the Metric Value Added to Imported RIP Routes
Understanding Traffic Control with Metrics in a RIP Network
To tune a RIP network and to control traffic flowing through the network, you increase or decrease the cost of the paths through the network. RIP provides two ways to modify the path cost: an incoming metric and an outgoing metric, which are each set to 1 by default. In other words, by default, the metric of routes that RIP imports from a neighbor or exports to a neighbor is incremented by 1. These routes include those learned from RIP as well as those learned from other protocols. The metrics are attributes that specify the cost of any route advertised through a host. By increasing or decreasing the metrics—and thus the cost—of links throughout the network, you can control packet transmission across the network.
The incoming metric modifies the cost of an individual segment when a route across the segment is imported into the routing table. For example, if you set the incoming metric on the segment to 3, the individual segment cost along the link is changed from 1 to 3. The increased cost affects all route calculations through that link. Other routes that were previously excluded because of a high hop count might now be included in the router's forwarding table.
The outgoing metric modifies the path cost for all the routes advertised out of a particular interface. Unlike the incoming metric, the outgoing metric modifies the routes that other routers are learning and thereby controls the way they send traffic.
If an exported route was learned from a member of the same RIP group, the metric associated with that route is the normal RIP metric. For example, a RIP route with a metric of 5 learned from a neighbor configured with an incoming metric of 2 is advertised with a combined metric of 7 when advertised to neighbors in the same group. However, if this route was learned from a RIP neighbor in a different group or from a different protocol, the route is advertised with the metric value configured in the outgoing metric for that group.
You might want to increase the metric of routes to decrease the likelihood that a particular route is selected and installed in the routing table. This process is sometimes referred to as route poisoning. Some reasons that you might want to poison a route are that the route is relatively expensive to use, or it has relatively low bandwidth.
A route with a higher metric than another route becomes the active route only when the lower-metric route becomes unavailable. In this way, the higher-metric route serves as a backup path.
One way to increase the metric of imported routes is to configure an import policy. Another way is to include the metric-in statement in the RIP neighbor configuration. One way to increase the metric of export routes is to configure an export policy. Another way is to include the metric-out statement in the RIP neighbor configuration.
Related Documentation
- ACX, EX, J, M, MX, SRX, T Series
- RIP Overview
- ACX, EX, J, M, MX, PTX, QFX, SRX, T Series
- Example: Controlling Traffic in a RIP Network with an Incoming Metric
- Example: Controlling Traffic in a RIP Network with an Outgoing Metric
- Example: Configuring the Metric Value Added to Imported RIP Routes
Published: 2013-04-01
Supported Platforms
Related Documentation
- ACX, EX, J, M, MX, SRX, T Series
- RIP Overview
- ACX, EX, J, M, MX, PTX, QFX, SRX, T Series
- Example: Controlling Traffic in a RIP Network with an Incoming Metric
- Example: Controlling Traffic in a RIP Network with an Outgoing Metric
- Example: Configuring the Metric Value Added to Imported RIP Routes