瞻博网络 SRX MPLS 出口优先级

网络工程 杜松 服务质量 多路复用器
2022-02-14 20:53:45

我一辈子都无法在 SRX 上获得任何出口队列优先级。

我有一个从 SRX 出来的标签交换路径,还有几个以太网 CCC。一个ccc完全是加急转发,另一个完全是尽力而为。

我在接口节上有输入过滤器来设置两个 ccc 的转发类。然后我可以在标签交换路径上应用监管过滤器来限制相应电路的速率。

此时,如果我设置监管使 BE 流量限制为 9Mb,EF 流量限制为 1Mb,那么一切都按我的意愿运行。然而....

我只想在标签交换路径上监管 EF 电路,并让 BE 电路全开,但确保 EF 流量可以优先达到其监管限制。

我整天都在玩转发类,无济于事。开始认为那不是我应该寻找的地方?


这是我在这里转发课程的尝试:

version 11.4R10.3;

interfaces {
    ge-0/0/0 {                          
        speed 100m;
        unit 0 {
            family inet {
                address 10.1.2.3/31;
            }
            family mpls;
        }
    }
    ge-0/0/1 {
        unit 0 {                        
            family inet {
                address 10.1.2.5/31;
            }
            family mpls;
        }
    }

    ge-0/0/6 {
        encapsulation ethernet-ccc;
        unit 0 {
            family ccc {
                filter {
                    input ef_classifier;
                }
            }
        }
    }
    ge-0/0/7 {
        encapsulation ethernet-ccc;     
        unit 0 {
            family ccc {
                filter {
                    input be_classifier;
                }
            }
        }
    }

}

protocols {
    rsvp {
        interface ge-0/0/0.0 {
            bandwidth 200m;             
            link-protection;
        }
        interface ge-0/0/1.0 {
            bandwidth 2m;
            link-protection;
        }
    }
    mpls {
        label-switched-path met_pr_pr {
            to 10.1.1.1;
            ldp-tunneling;
            primary rad_primary {
                preference 1;
            }
            secondary rad_secondary {
                preference 10;
                standby;
            }
            policing filter p-cos;
        }                               
        interface ge-0/0/0.0;
        interface lo0.0;
        interface ge-0/0/1.0;
    }
    l2circuit {
        neighbor 10.1.1.1 {
            interface ge-0/0/7.0 {
                virtual-circuit-id 1;
                encapsulation-type ethernet;
            }
            interface ge-0/0/6.0 {
                virtual-circuit-id 2;
                encapsulation-type ethernet;
            }
        }
    }

}
class-of-service {    
    forwarding-classes {
        queue 0 best-effort priority low;
        queue 2 expedited-forwarding priority high;
        queue 1 assured-forwarding priority high;
    }
    interfaces {
        all {
            scheduler-map default;
        }
    }
    scheduler-maps {
        default {
            forwarding-class best-effort scheduler be-sched;
            forwarding-class expedited-forwarding scheduler ef-sched;
        }
    }
    schedulers {
        be-sched {
            transmit-rate percent 1;
            buffer-size percent 1;
            priority low;
        }
        ef-sched {
            transmit-rate percent 25;
            buffer-size percent 25;
            priority strict-high;
        }
        af-sched {
            transmit-rate percent 25;
        }
    }
}

firewall {
    family ccc {
        filter ef_classifier {
            term ef {
                then forwarding-class expedited-forwarding;
            }
        }
        filter be_classifier {          
            term be {
                then forwarding-class best-effort;
            }
        }
    }
    family any {
        filter p-cos {
            term ct2 {
                from {
                    forwarding-class expedited-forwarding;
                }
                then {
                    policer p-ef;
                    loss-priority low;
                }
            }
            term ct0 {
                from {
                    forwarding-class best-effort;
                }
                then loss-priority high;
            }
        }                               
    }
    policer p-ef {
        if-exceeding {
            bandwidth-limit 200k;
            burst-size-limit 1500;
        }
        then discard;
    }

}
0个回答
没有发现任何回复~