cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
497
Views
1
Helpful
1
Replies

WECMP based on consumed bandwidth in Segment Routing

dundient
Level 1
Level 1

Good day everyone, 

Is it possible to WECMP based on real consumed bandwidth in MPLS Segment routing environment?

As i understand, based on

explicit-list weight [...]

feature it is possible to unequally load balance but it uses ONLY link bandwidth cost but not the real consumed bandwidth. So i am wondering if there is a solution that checks the real consumed bandwidth and unequally load balances it. 

For example, consumer must use the wired link over the satellite while consuming heavy bandwidth and should use the satellite if something is really necessary and with the small bandwidth. How can i control the traffic based on utilized bandwidth in Segment Routing environment.

Any thoughts? 

Thank you in advance. 

1 Reply 1

AshSe
VIP
VIP

Hello @dundient 

In an MPLS Segment Routing (SR) environment, Weighted Equal-Cost Multi-Path (WECMP) load balancing based on real-time consumed bandwidth is not natively supported in most implementations. The explicit-list weight [...] feature in Segment Routing allows for unequal load balancing, but as you correctly pointed out, it is based on static weights (e.g., link bandwidth or administrative cost) rather than real-time bandwidth utilization. However, there are ways to achieve traffic engineering based on real-time bandwidth consumption, though they may require additional mechanisms or integration with external systems.

Here are some approaches to achieve traffic control based on real-time bandwidth utilization in an MPLS Segment Routing environment:


1. Integration with a Traffic Engineering Controller (SDN Controller)

  1. How it works:
    • Use an SDN controller (e.g., Cisco Crosswork, Juniper NorthStar, or an open-source controller like ONOS) to monitor real-time bandwidth utilization across the network.
    • The controller collects telemetry data (e.g., via streaming telemetry, SNMP, or NetFlow/IPFIX) to understand the current bandwidth usage on each link.
    • Based on this data, the controller dynamically adjusts the Segment Routing paths by programming new SR policies or modifying existing ones.
  2. Advantages:
    • Provides centralized control and real-time adaptability.
    • Can dynamically steer traffic based on real-time link utilization.
  3. Challenges:
    • Requires integration with an SDN controller and telemetry infrastructure.
    • May introduce additional complexity and latency in decision-making.

2. Dynamic SR Policy Adjustment with Bandwidth Awareness

  1. How it works:
    • Use SR Traffic Engineering (SR-TE) policies with bandwidth constraints.
    • Configure the network to monitor link utilization using mechanisms like RSVP-TE extensions for bandwidth reservation or real-time telemetry.
    • Dynamically adjust SR policies based on link utilization thresholds. For example:
      • If the wired link is heavily utilized, steer low-bandwidth traffic to the satellite link.
      • If the satellite link is underutilized, allow more traffic to flow through it.
  2. Implementation:
    • Use a controller or script to monitor link utilization and adjust SR policies dynamically.
    • Some vendors support bandwidth-aware SR-TE policies natively (e.g., Cisco IOS XR with SR-PCE).
  3. Challenges:
    • Requires real-time monitoring and automation to adjust policies.
    • May require vendor-specific features or extensions.

3. Policy-Based Routing (PBR) with Bandwidth Awareness

  1. How it works:
    • Use Policy-Based Routing (PBR) to classify traffic based on bandwidth requirements and steer it to the appropriate path.
    • For example:
      • High-bandwidth traffic is routed over the wired link.
      • Low-bandwidth traffic is routed over the satellite link.
      • Combine PBR with real-time monitoring to dynamically adjust policies.
  2. Implementation:
    • Use telemetry or flow monitoring to classify traffic and adjust PBR rules dynamically.
    • Implement PBR rules at the ingress nodes of the SR domain.
  3. Challenges:
    • PBR can be complex to manage at scale.
    • Requires integration with monitoring tools for real-time adjustments.

4. Segment Routing with Flexible Algorithm (Flex-Algo)

  1. How it works:
    • Flex-Algo allows you to define custom routing algorithms in Segment Routing based on specific constraints (e.g., latency, bandwidth, or administrative cost).
    • You can define a Flex-Algo that prioritizes links with higher available bandwidth for high-bandwidth traffic.
    • Low-bandwidth traffic can use a different Flex-Algo that prioritizes other constraints (e.g., cost or reliability).
  2. Implementation:
    • Configure Flex-Algo on the routers in the SR domain.
    • Use telemetry to monitor link utilization and adjust Flex-Algo constraints dynamically if needed.
  3. Challenges:
    • Flex-Algo is relatively new and may not be supported on all platforms.
    • Requires careful planning and configuration.

5. Real-Time Bandwidth Monitoring with Telemetry

  1. How it works:
    • Use real-time telemetry (e.g., gNMI, gRPC, or SNMP) to monitor link utilization and traffic patterns.
    • Combine telemetry data with automation tools (e.g., Python scripts, Ansible, or SDN controllers) to dynamically adjust SR policies or weights.
  2. Implementation:
    • Deploy telemetry agents on routers to collect real-time bandwidth data.
    • Use automation tools to process telemetry data and adjust SR configurations.
  3. Challenges:
    • Requires a robust telemetry and automation infrastructure.
    • May introduce latency in decision-making.

6. Hierarchical SR Policies

  1. How it works:
    • Use hierarchical SR policies to define primary and backup paths based on bandwidth requirements.
    • For example:
      • Define a primary SR policy that uses the wired link for high-bandwidth traffic.
      • Define a backup SR policy that uses the satellite link for low-bandwidth traffic or in case of congestion.
    • Dynamically switch between policies based on real-time link utilization.
  2. Implementation:
    • Configure hierarchical SR policies on ingress routers.
    • Use telemetry or monitoring tools to trigger policy changes.
  3. Challenges:
    • Requires careful configuration of SR policies and monitoring triggers.

7. Application-Aware Routing

  1. How it works:
    • Use application-aware routing to classify traffic based on application type and bandwidth requirements.
    • For example:
      • Video streaming or file transfers (high bandwidth) are routed over the wired link.
      • Low-bandwidth applications (e.g., messaging) are routed over the satellite link.
    • Combine application-aware routing with SR policies to steer traffic dynamically.
  2. Implementation:
    • Use Deep Packet Inspection (DPI) or metadata-based classification to identify applications.
    • Configure SR policies to steer traffic based on application type.
  3. Challenges:
    • DPI can introduce processing overhead.
    • Requires integration with application-aware routing tools.

8. Leverage SR-PCE (Path Computation Element)

  1. How it works:
    • Use an SR-PCE (Path Computation Element) to compute paths dynamically based on real-time network state, including bandwidth utilization.
    • The SR-PCE can monitor link utilization and compute paths that meet specific bandwidth requirements.
  2. Implementation:
    • Deploy an SR-PCE in the network.
    • Configure SR policies to use paths computed by the SR-PCE.
  3. Challenges:
    • Requires SR-PCE support and integration.
    • May introduce additional complexity.

Conclusion:

While WECMP in Segment Routing does not natively support real-time bandwidth-based load balancing, you can achieve this functionality by integrating real-time monitoring, automation, and traffic engineering tools. The most effective approach depends on your network's capabilities and requirements:

  • For centralized control and dynamic adaptability, consider using an SDN controller or SR-PCE.
  • For simpler implementations, use telemetry and automation to adjust SR policies dynamically.
  • If your network supports Flex-Algo, it can provide a more elegant solution for bandwidth-aware routing.

Each approach has trade-offs in terms of complexity, scalability, and vendor support, so choose the one that best fits your environment.

 

Hope This Helps!!!

 

AshSe

Forum Tips: 

  1. Insert photos/images inline - don't attach.
  2. Always mark helpful and correct answers, it helps others find what they need.
  3. For a prompt reply, kindly tag @name. An email will be automatically sent to the member.