Flow rate limiting method and device

By setting the dedicated line interface of the first communication device to a fault state and forwarding the traffic to the third communication device for speed limiting processing, the problem of inaccurate speed limiting caused by faults or uneven loads is solved, and accurate speed limiting and flow control are achieved. The reliability of private line services is improved.

CN118740736APending Publication Date: 2024-10-01HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310372001.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-28
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing technologies lead to inaccurate speed limits due to faults or uneven load sharing during traffic transmission, affecting the development of dedicated line services.

Method used

By changing the traffic forwarding path, setting the first dedicated line interface of the first communication device to a fault state, forwarding the traffic to the third communication device for rate limiting processing, ensuring that the traffic is transmitted according to the configured rate limiting policy.

Benefits of technology

It achieves accurate speed limit for traffic, solves the problem of inaccurate speed limit, and improves the reliability and bandwidth utilization of private line services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740736A_ABST
    Figure CN118740736A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a flow transmission speed limiting method and device, and the method comprises the steps: setting the state of a first private line interface of a first communication device to be down, and enabling the first private line interface to be used for transmitting a first private line service; receiving a first flow of a first private line service sent by the second communication device through the first AC interface; a first flow is sent to the third communication device through the first special line interface, a second special line interface of the third communication device is configured with a first speed limiting strategy for the first special line service, the second special line interface is used for transmitting the special line service, and the second communication device is connected with the first communication device and the third communication device in a multi-return multi-activity mode. The first communication device is connected with the second communication device through the first AC interface, the third communication device is connected with the second communication device through the second AC interface, and the first AC interface, the second AC interface, the first special line interface and the second special line interface belong to the same BD. The problem of inaccurate speed limit can be solved by changing a flow forwarding path.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to a method and device for limiting the speed of traffic. Background Art

[0002] With the development of communication technology, operators provide dual-homing and dual-active traffic transmission methods for dedicated line access of user equipment, and perform uplink and downlink speed limits for Quality of Service (QoS) at the interface of access equipment, such as optical line terminal (OLT).

[0003] However, in the actual transmission process, due to failures, uneven load sharing and other reasons, the speed limit is inaccurate, which in turn leads to bandwidth waste or failure to pass the traffic speed test, affecting the development of dedicated line services. Summary of the invention

[0004] The present application provides a method and device for limiting the speed of traffic transmission, which can solve the problem of inaccurate speed limiting by changing the traffic forwarding path.

[0005] In the first aspect, the present application provides a speed limiting method for traffic transmission, which is executed by a first communication device, and the method includes: setting the state of a first dedicated line interface of the first communication device to fault down, the first dedicated line interface being used to transmit a first dedicated line service; receiving the first traffic of the first dedicated line service sent by a second communication device through a first access circuit (Access Controller, AC) interface; sending the first traffic to a third communication device through the first dedicated line interface, wherein a first speed limiting policy for the first dedicated line service is configured on the second dedicated line interface of the third communication device, the second dedicated line interface is used to transmit the first dedicated line service, the second communication device is multi-home and multi-active to connect the first communication device and the third communication device, and the first communication device is connected to the second communication device through the first AC interface, and the third communication device is connected to the second communication device through the second AC interface, and the first AC interface, the second AC interface, the first dedicated line interface and the second dedicated line interface belong to the same broadcast domain (Bridge Domain, BD).

[0006] Further, the AC interface (including the first AC interface and the second AC interface) is a physical interface or a sub-interface, and the sub-interface includes a physical sub-interface or other sub-interfaces, such as a sub-interface of a virtual local area network (VLAN).

[0007] Further, the first communication device sets the state of the first dedicated line interface to down, and the third communication device sets the state of the first dedicated line interface to UP, the first dedicated line interface is used to transmit the first dedicated line service, and the second dedicated line interface is used to transmit the first dedicated line service, wherein the first dedicated line service is a service directed to a dedicated line user, and the traffic corresponding to the transmission of the first dedicated line service is the first traffic. The first communication device receives the first traffic of the first dedicated line service sent by the second communication device through the first AC interface, and the third communication device receives the third traffic of the first dedicated line service sent by the second communication device through the second AC interface; since the state of the first dedicated line interface is set to down, the first communication device sends the first traffic to the third communication device through the first dedicated line interface, and the third communication device sends the first traffic received from the first communication device and the third traffic received from the second communication device to the fourth communication device through the second dedicated line interface, wherein the state of the second dedicated line interface is set to UP, and the first speed limit policy configured for the first dedicated line service performs speed limit when the first traffic and the third traffic pass through, wherein the second communication device is deployed on the user side, and the fourth communication device is deployed on the network side.

[0008] In some scenarios where services require full utilization of the access side link bandwidth, the second communication device on the access side is usually bundled (trunk) so that the uplink traffic load of the first dedicated line service is shared by the first communication device and the third communication device, that is, the second communication device is multi-home and multi-active (such as dual-home and dual-active) connected to the first communication device and the third communication device. If the first communication device and the third communication device are not synchronized and cannot be jointly speed-limited, then the traffic of the first dedicated line service sent to the remote end by the first communication device and the third communication device respectively cannot be accurately speed-limited. Similarly, the traffic of the first dedicated line service sent from the remote end to the first communication device and the second communication device is also shared by the first communication device and the third communication device due to the dual-active mode, and then sent to the second communication device, and it cannot be accurately speed-limited either. Therefore, the first communication device needs to set the state of the first dedicated line interface to down, so that the first traffic on the first communication device will be forwarded to the third communication device, and the third communication device will limit the speed of the first traffic received from the first communication device and the third traffic received from the second communication device and send them according to the first speed limit policy configured for the first dedicated line service, ensuring that the traffic of the first dedicated line service can be accurately limited according to the first speed limit policy. In addition, since the first communication device sets the state of the first dedicated line interface to down, the traffic of the first dedicated line service sent from the remote end to the second communication device is also forwarded to the second communication device only through the third communication device, and the second dedicated line interface is speed-limited according to the first speed limit policy, ensuring the accurate speed limit of the downlink traffic of the first dedicated line service.

[0009] In one possible implementation, setting the state of the first dedicated line interface of the first communication device to fault down includes: tracking the designated forwarder (Designated Forwarder, DF) state of the first AC interface on the first dedicated line interface, and setting the state of the first dedicated line interface to down according to the DF state of the first AC interface.

[0010] According to the DF status of the first AC interface, the status of the first dedicated line interface is set to down, which can be effectively combined with the DF election system. The status of the first dedicated line interface can be set in linkage with the tracked DF status. There is no need to configure the first AC interface separately, which can achieve more efficient collaboration. The setting of the first AC interface based on the DF status can be applied to EVPN scenarios to achieve wider applications.

[0011] In a possible implementation manner, setting the state of the first dedicated line interface to down according to the DF state of the first AC interface includes: in response to the DF state of the first AC interface being a standby DF, setting the state of the first dedicated line interface to down; or, in response to the DF state of the first AC interface being an active DF, setting the state of the first dedicated line interface to down.

[0012] If the state of the first dedicated line interface is set to down in response to the DF state of the first AC interface being the standby DF, the state of the first dedicated line interface can be kept consistent with the DF state of the first AC interface, that is, it can maintain a high consistency with the active and standby states of the first communication device for the second communication device. When the device corresponding to the active DF state, that is, the third communication device, works normally, the first communication device does not forward the first traffic to the remote end, but sends the first traffic to the third communication device that works normally, and the third communication device limits the speed of the first traffic and sends it, which can achieve collaborative, efficient and accurate speed limiting.

[0013] If, in response to the DF status of the first AC interface being the active DF, the status of the first dedicated line interface is set to down, the flexibility of the status setting of the first dedicated line interface can be enhanced.

[0014] Track the DF status of the AC interface, set the status of the first dedicated line interface to down or UP in response to the current status, and it can be associated with the main DF. Optionally, in response to the DF status of the first AC interface being the backup DF, the status of the first dedicated line interface is set to down, and in response to the DF status of the second AC interface being the main DF, the status of the second dedicated line interface is set to UP. It is possible to flexibly adjust the status of the first dedicated line interface and the status of the second dedicated line interface in linkage according to the DF status of the first AC interface and the second AC interface. When the device of the main DF (i.e., the third communication device) is working normally, it is possible to set the first dedicated line interface down, send all the first traffic through the second dedicated line interface set to UP, and limit the speed on the second dedicated line interface. Through the linkage setting with the DF status, different interfaces can communicate and respond to each other, which can make troubleshooting and maintenance easier.

[0015] In one possible implementation, setting the state of the first dedicated line interface of the first communication device to fault down includes: tracking an inter-device link aggregation (Enhanced Trunk, E-Trunk) state of the first AC interface on the first dedicated line interface, and setting the state of the first dedicated line interface to down according to the E-Trunk state of the first AC interface.

[0016] According to the E-Trunk state of the first AC interface, the state of the first dedicated line interface is set to down, which can be effectively combined with the negotiated E-Trunk state. The tracked E-Trunk state can be used to link the state of the first dedicated line interface. There is no need to configure the first AC interface separately, so more efficient collaboration can be achieved.

[0017] In a possible implementation, setting the state of the first dedicated line interface to down according to the E-Trunk state of the first AC interface includes: in response to the E-Trunk state of the first AC interface being a standby E-Trunk, setting the state of the first dedicated line interface to down; or, in response to the E-Trunk state of the first AC interface being an active E-Trunk, setting the state of the first dedicated line interface to down.

[0018] If the state of the E-Trunk of the first AC interface is a standby E-Trunk in response, the state of the first dedicated line interface is set to down, which can be consistent with the state of the E-Trunk of the first AC interface, that is, the master and standby states of the E-Trunk of the second communication device and the link corresponding to the E-Trunk are highly consistent. When the device corresponding to the master E-Trunk state, that is, the third communication device, works normally, the first communication device does not forward the first traffic to the remote end, but sends the first traffic to the third communication device that works normally, and the third communication device limits the speed and sends it, which can achieve collaborative efficient and accurate speed limiting.

[0019] If, in response to the E-Trunk state of the first AC interface being the active E-Trunk, the state of the first dedicated line interface is set to down, the flexibility of setting the state of the first dedicated line interface can be enhanced.

[0020] Track the E-Trunk status of the AC interface, set the status of the first dedicated line interface to down or UP in response to the current status, which can be associated with the main DF. Optionally, in response to the DF status of the first AC interface being a standby E-Trunk, set the status of the first dedicated line interface to down, and in response to the DF status of the second AC interface being the main E-Trunk, set the status of the second dedicated line interface to UP. It is possible to flexibly adjust the status of the first dedicated line interface and the status of the second dedicated line interface in linkage according to the E-Trunk status of the first AC interface and the second AC interface, and when the device of the main E-Trunk (i.e., the third communication device) works normally, the first dedicated line interface can be set down, and the first traffic can be limited and sent through the second dedicated line interface set to UP. Through the linkage setting with the E-Trunk status, different interfaces can communicate and respond to each other to achieve higher-level functions, and troubleshooting and maintenance can be performed more easily.

[0021] In a possible implementation, the first dedicated line interface and the second dedicated line interface are both virtual broadcast domain interfaces (VBDIF interfaces (Virtual Bridge Domain Interface, vbdif), and the first dedicated line interface and the second dedicated line interface are configured with the same IP address and MAC address.

[0022] The vbdif interface is a three-layer logical interface created based on BD, which can connect traffic from L2 to L3. In the scenario where the first communication device and the third communication device need to transmit the traffic of the first dedicated line service with the remote end through a three-layer dedicated line (L3), the first dedicated line interface is a first vbdif interface, and the second dedicated line interface is a second vbdif interface. The first rate limit policy can be configured on the second vbdif interface. In addition, the first communication device can configure a first vbdif interface corresponding to the BD of the first AC interface, and the third communication device can configure a second vbdif interface corresponding to the BD of the second AC interface. The three-layer logical interface is based on BD, which is more convenient to realize that the first AC interface, the second AC interface, the first vbdif interface and the second vbdif interface belong to the same BD, and the first vbdif interface and the second vbdif interface are configured with the same IP address and MAC address, which can ensure that the traffic of the first dedicated line service sent by the second communication device is sent to the same remote device (such as the fourth communication device) through the first communication device and the third communication device.

[0023] In a possible implementation, the first dedicated line interface and the second dedicated line interface are both virtual Ethernet VE interfaces, wherein the first dedicated line interface includes a first L3VE interface and a first L2VE interface, and the second dedicated line interface includes a second L3VE interface and a second L2VE interface.

[0024] In a possible implementation manner, the first dedicated line interface and the second dedicated line interface are both virtual Ethernet (VE) interfaces, wherein the first dedicated line interface includes a first L3VE interface and a first L2VE interface, and the second dedicated line interface includes a second L3VE interface and a second L2VE interface, and setting the state of the first dedicated line interface to down according to the DF state of the first AC interface includes: setting the state of the first L2VE interface to down according to the DF state of the first AC interface; and setting the state of the first L3VE interface to down in response to the state of the first L2VE interface being down.

[0025] Further, in response to the DF state of the first AC interface being a standby DF, the state of the first L2VE interface is set to down; in response to the state of the first L2VE interface being down, the state of the first L3VE interface is set to down; or, in response to the DF state of the first AC interface being an active DF, the state of the first L2VE interface is set to down; in response to the state of the first L2VE interface being down, the state of the first L3VE interface is set to down.

[0026] In a possible implementation manner, both the first dedicated line interface and the second dedicated line interface are VE interfaces, wherein the first dedicated line interface includes a first L3VE interface and a first L2VE interface, and the second dedicated line interface includes a second L3VE interface and a second L2VE interface, and setting the state of the first dedicated line interface to down according to the E-Trunk state of the first AC interface includes: setting the state of the first L2VE interface to down according to the E-Trunk state of the first AC interface; and setting the state of the first L3VE interface to down in response to the state of the first L2VE interface being down.

[0027] Further, in response to the E-Trunk state of the first AC interface being a standby E-Trunk, the state of the first L2VE interface is set to down; in response to the state of the first L2VE interface being down, the state of the first L3VE interface is set to down; or, in response to the E-Trunk state of the first AC interface being an active E-Trunk, the state of the first L2VE interface is set to down; in response to the state of the first L2VE interface being down, the state of the first L3VE interface is set to down.

[0028] In one possible implementation, the first L3VE interface and the second L3VE interface are configured with the same IP address and MAC address, and sending the first traffic to the third communication device through the first dedicated line interface includes: sending the first traffic to the second L2VE interface through the first L2VE interface.

[0029] In a scenario where the first communication device and the third communication device need to transmit traffic of the first dedicated line service with a remote end through a three-layer dedicated line (L3), based on the loopback of the L2VE interface and the L3VE interface, the first traffic received by the third communication device on the L2VE interface can be accessed by the L3VE, and sent to the remote end through the L3 by the L3VE with the first speed limit policy set, thereby ensuring the accuracy of the speed limit of the traffic transmitted on the L3.

[0030] In a possible implementation, the first dedicated line interface accesses a layer-3 virtual private network L3 (Virtual Private Network, VPN) or EVPN.

[0031] In different scenarios, the first dedicated line interface can access L3 or L2, and transmit the first traffic with the fourth communication device on the network side, so that the method provided in the present application is applicable to a wider range of dedicated networks.

[0032] In one possible implementation, the first L2VE interface and the second L2VE interface carry the first dedicated line service through EVPN, and the first L3VE interface and the second L3VE interface carry the first dedicated line service through EVPN. The same ESI is configured on the first L3VE interface and the second L3VE interface, and the operation mode of the Ethernet segment (ES) identified by the ESI is single-active mode.

[0033] In a scenario where the first communication device and the third communication device need to transmit traffic of the first dedicated line service with a remote end via a Layer 2 dedicated line (L2), based on the loopback of the L2VE interface and the L3VE interface, the first traffic received by the third communication device on the second L2VE interface can be sent to the remote end via L2 by the second L3VE interface on which the first speed limit policy is set, thereby ensuring that the speed limit of the uplink traffic transmitted on L2 is accurate.

[0034] Further, in a scenario where the first communication device is PE 1, the second communication device is PE 2, a PE 3 is remotely deployed, and the ESI configured on the first L3VE interface and the second L3VE interface is in single-active mode, if single-active routing is announced between PEs, PE 3 deployed remotely learns that PE1 and PE2 are single-active, and then selects a PE from PE 1 or PE 2 for traffic transmission. If single-active routing is not announced between PEs, PE 3 can select the L3VE interface with an UP state for traffic transmission according to the state of the L3VE interface. Ensure that the dedicated line traffic speed limit of the network side access L2 is accurate.

[0035] In one possible implementation, the first communication device also includes a third dedicated line interface, which is used to transmit a second dedicated line service. The method also includes: receiving second traffic of the second dedicated line service through the third dedicated line interface; in response to the status of the third dedicated line interface being normal UP, according to the second speed limit policy for the second dedicated line service configured on the third dedicated line interface, performing traffic speed limit when sending the second traffic to the fourth communication device through the third dedicated line interface.

[0036] Optionally, the first communication device tracks the DF state of the first AC interface on the third dedicated line interface, and sets the state of the third dedicated line interface according to the DF state of the first AC interface; the third communication device tracks the DF state of the second AC interface on the third dedicated line interface, and sets the state of the fourth dedicated line interface according to the DF state of the second AC interface. In one possible implementation, the first communication device sets the state of the third dedicated line interface to UP in response to the DF state of the first AC interface being the active DF, and the third communication device sets the state of the fourth dedicated line interface to down in response to the DF state of the second AC interface being the standby DF. In one possible implementation, the first communication device sets the state of the third dedicated line interface to UP in response to the DF state of the first AC interface being the standby DF, and the third communication device sets the state of the fourth dedicated line interface to down in response to the DF state of the second AC interface being the active DF.

[0037] Optionally, the first communication device tracks the E-Trunk state of the first AC interface on the third dedicated line interface, and sets the state of the third dedicated line interface according to the E-Trunk state of the first AC interface; the third communication device tracks the E-Trunk state of the second AC interface on the third dedicated line interface, and sets the state of the fourth dedicated line interface according to the E-Trunk state of the second AC interface. In a possible implementation, the first communication device sets the state of the third dedicated line interface to UP in response to the E-Trunk state of the first AC interface being the active E-Trunk, and the third communication device sets the state of the fourth dedicated line interface to down in response to the E-Trunk state of the second AC interface being the standby E-Trunk. In a possible implementation, the first communication device sets the state of the third dedicated line interface to UP in response to the E-Trunk state of the first AC interface being the standby E-Trunk, and the third communication device sets the state of the fourth dedicated line interface to down in response to the E-Trunk state of the second AC interface being the active E-Trunk.

[0038] The first communication device can set the corresponding dedicated line interface to different states for the AC interface of different dedicated line users, so that traffic transmission has greater flexibility.

[0039] In the second aspect, the present application provides a first communication device, characterized in that it includes: a processing module, used to set the state of a first dedicated line interface of the first communication device to down, the first dedicated line interface is used to transmit a first dedicated line service; a receiving module, used to receive the first traffic of the first dedicated line service sent by a second communication device through a first AC interface; a sending module, used to send the first traffic to a third communication device, wherein the second dedicated line interface of the third communication device is configured with a first speed limit policy for the first dedicated line service, the second dedicated line interface is used to transmit the first dedicated line service, the second communication device is multi-home and multi-active to connect the first communication device and the third communication device, and the first communication device is connected to the second communication device through the first AC interface, and the third communication device is connected to the second communication device through the second AC interface, and the first AC interface, the second AC interface, the first dedicated line interface and the second dedicated line interface belong to the same BD.

[0040] In a possible implementation manner, the processing module is specifically configured to track the DF status of the first AC interface on the first dedicated line interface, the DF status of the first AC interface, and set the status of the first dedicated line interface to down.

[0041] In one possible implementation, the processing module is specifically configured to, in response to the DF status of the first AC interface being a standby DF, set the status of the first dedicated line interface to down; or, in response to the DF status of the first AC interface being an active DF, set the status of the first dedicated line interface to down.

[0042] In a possible implementation manner, the processing module is specifically configured to track an E-Trunk state of the first AC interface on the first dedicated line interface, and set a state of the first dedicated line interface to down according to the E-Trunk state of the first AC interface.

[0043] In a possible implementation, the processing module is specifically configured to, in response to the E-Trunk state of the first AC interface being a standby E-Trunk, set the state of the first dedicated line interface to down; or, in response to the E-Trunk state of the first AC interface being an active E-Trunk, set the state of the first dedicated line interface to down.

[0044] In a possible implementation, the first dedicated line interface and the second dedicated line interface are both virtual broadcast domain interfaces vbdif, and the first dedicated line interface and the second dedicated line interface are configured with the same IP address and MAC address.

[0045] In a possible implementation, the first dedicated line interface and the second dedicated line interface are both VE interfaces, wherein the first dedicated line interface includes a first L3VE interface and a first L2VE interface, and the second dedicated line interface includes a second L3VE interface and a second L2VE interface.

[0046] In a possible implementation, both the first dedicated line interface and the second dedicated line interface are VE interfaces, wherein the first dedicated line interface includes a first L3VE interface and a first L2VE interface, and the second dedicated line interface includes a second L3VE interface and a second L2VE interface, and the processing module is specifically configured to set the state of the first L2VE interface to down according to the DF state of the first AC interface; and in response to the state of the first L2VE interface being down, set the state of the first L3VE interface to down.

[0047] In a possible implementation, both the first dedicated line interface and the second dedicated line interface are VE interfaces, wherein the first dedicated line interface includes a first L3VE interface and a first L2VE interface, and the second dedicated line interface includes a second L3VE interface and a second L2VE interface, and the processing module is specifically configured to set the state of the first L2VE interface to down according to the E-Trunk state of the first AC interface; and in response to the state of the first L2VE interface being down, set the state of the first L3VE interface to down.

[0048] In a possible implementation manner, the first L3VE interface and the second L3VE interface are configured with the same IP address and MAC address, and the sending module is specifically configured to send the first traffic to the second L2VE interface through the first L2VE interface.

[0049] In a possible implementation manner, the first dedicated line interface accesses L3VPN or EVPN.

[0050] In one possible implementation, the first L2VE interface and the second L2VE interface carry the first dedicated line service through EVPN, and the first L3VE interface and the second L3VE interface carry the first dedicated line service through EVPN. The same ESI is configured on the first L3VE interface and the second L3VE interface, and the operating mode of the Ethernet segment ES identified by the ESI is single-active mode.

[0051] In one possible implementation, the receiving module is also used to receive the second traffic of the second dedicated line service through the third dedicated line interface; the sending module is also used to respond to the status of the third dedicated line interface being normal UP, and according to the second speed limit policy for the second dedicated line service configured on the third dedicated line interface, to perform traffic speed limit when sending the second traffic to the fourth communication device through the third dedicated line interface.

[0052] In a third aspect, the present application provides a communication device, comprising a communication interface and a processor, wherein the communication interface is used to perform the transceiver operations involved in the method described in any of the above aspects and any possible implementation of any of the aspects, and the processor is used to perform other operations other than the transceiver operations involved in the method described in any of the above aspects and any possible implementation of any of the aspects. For example, when the processor is used to execute the method described in the second aspect, the first communication device executes the method described in the first aspect, and the processor is used to set the state of the first dedicated line interface of the first communication device to fault down, and the first dedicated line interface is used to transmit the first dedicated line service; the communication interface is used to receive the first traffic of the first dedicated line service sent by the second communication device through the first AC interface; and send the first traffic to the third communication device through the first dedicated line interface.

[0053] Among them, the second dedicated line interface of the third communication device is configured with a first speed limit policy for the first dedicated line service, the second dedicated line interface is used to transmit the first dedicated line service, the second communication device is multi-home and multi-active to connect the first communication device and the third communication device, and the first communication device is connected to the second communication device through the first AC interface, and the third communication device is connected to the second communication device through the second AC interface, and the first AC interface, the second AC interface, the first dedicated line interface and the second dedicated line interface belong to the same broadcast domain BD.

[0054] In a fourth aspect, the present application provides a communication device, comprising a processor and a memory, wherein the memory stores instructions, and when the instructions are executed by the processor, the communication device executes the method described in any of the preceding aspects and the method involved in any possible implementation of any aspect.

[0055] In a fifth aspect, the present application provides a communication system, comprising: a first communication device, a second communication device, and a third communication device, wherein the second communication device is multi-homed to connect the first communication device and the third communication device in a multi-active mode, and the first communication device is connected to the second communication device through a first access circuit AC interface, and the third communication device is connected to the second communication device through a second AC interface, and the first AC interface, the second AC interface, the first dedicated line interface of the first communication device, and the second dedicated line interface of the third communication device belong to the same broadcast domain BD, wherein,

[0056] The first communication device is used to: set the state of the first dedicated line interface to down, the first dedicated line interface is used to transmit a first dedicated line service; receive the first flow of the first dedicated line service sent by the second communication device through the first AC interface; and send the first flow to the third communication device through the first dedicated line interface;

[0057] The second communication device is configured to: send the first traffic to the first communication device through the first AC interface; and send the third traffic of the first dedicated line service to the third communication device through the second AC interface;

[0058] The third communication device is used to: receive the first traffic sent by the first communication device through the second dedicated line interface, and receive the third traffic of the first dedicated line service sent by the second communication device through the second AC interface, wherein the third communication device is connected to the second communication device through the second AC interface; configure a first speed limit policy for the first dedicated line service on the second dedicated line interface, and send the first traffic and the third traffic through the second dedicated line interface.

[0059] In a possible implementation manner, the first communication device tracks the designated forwarder DF status of the first AC interface on the first dedicated line interface, and sets the status of the first dedicated line interface to down according to the DF status of the first AC interface.

[0060] In one possible implementation, in response to the DF status of the first AC interface being a standby DF, the first communication device sets the status of the first dedicated line interface to down; or, in response to the DF status of the first AC interface being an active DF, sets the status of the first dedicated line interface to down.

[0061] In one possible implementation, the first communication device tracks an inter-device link aggregation E-Trunk state of the first AC interface on the first dedicated line interface, and sets a state of the first dedicated line interface to down according to the E-Trunk state of the first AC interface.

[0062] In a possible implementation, in response to the E-Trunk state of the first AC interface being a standby E-Trunk, the first communication device sets the state of the first dedicated line interface to down; or, in response to the E-Trunk state of the first AC interface being an active E-Trunk, sets the state of the first dedicated line interface to down.

[0063] In one possible implementation, the first dedicated line interface of the first communication device and the second dedicated line interface of the third communication device are both virtual broadcast domain interfaces vbdif, and the first dedicated line interface and the second dedicated line interface are configured with the same IP address and MAC address.

[0064] In a possible implementation, the first dedicated line interface and the second dedicated line interface are both virtual Ethernet VE interfaces, wherein the first dedicated line interface includes a first L3VE interface and a first L2VE interface, and the second dedicated line interface includes a second L3VE interface and a second L2VE interface.

[0065] In a possible implementation manner, both the first dedicated line interface and the second dedicated line interface are VE interfaces, wherein the first dedicated line interface includes a first L3VE interface and a first L2VE interface, and the second dedicated line interface includes a second L3VE interface and a second L2VE interface, and according to the DF state of the first AC interface, the first communication device sets the state of the first L2VE interface to down according to the DF state of the first AC interface; and in response to the state of the first L2VE interface being down, sets the state of the first L3VE interface to down.

[0066] In a possible implementation manner, the first dedicated line interface and the second dedicated line interface are both VE interfaces, wherein the first dedicated line interface includes a first L3VE interface and a first L2VE interface, and the second dedicated line interface includes a second L3VE interface and a second L2VE interface, and according to the E-Trunk state of the first AC interface, the first communication device sets the state of the first L2VE interface to down according to the E-Trunk state of the first AC interface; and in response to the state of the first L2VE interface being down, sets the state of the first L3VE interface to down.

[0067] In one possible implementation, the first L3VE interface and the second L3VE interface are configured with the same IP address and MAC address, the first traffic is sent to the third communication device through the first dedicated line interface, and the first communication device sends the first traffic to the second L2VE interface through the first L2VE interface.

[0068] In a possible implementation, the first dedicated line interface accesses a layer 3 virtual private network L3VPN or an Ethernet virtual private network EVPN.

[0069] In one possible implementation, the first L2VE interface and the second L2VE interface carry the first dedicated line service through EVPN, the first L3VE interface and the second L3VE interface carry the first dedicated line service through EVPN, the same ESI is configured on the first L3VE interface and the second L3VE interface, and the operation mode of the Ethernet segment ES identified by the ESI is single-active mode.

[0070] In a possible implementation manner, the communication system further includes a fourth communication device.

[0071] The first communication device also includes a third dedicated line interface, which is used to transmit a second dedicated line service. The method also includes: receiving a second flow of the second dedicated line service through the third dedicated line interface; in response to the status of the third dedicated line interface being normal UP, according to the second speed limit policy for the second dedicated line service configured on the third dedicated line interface, performing traffic speed limit when sending the second flow to the fourth communication device through the third dedicated line interface.

[0072] In a sixth aspect, the present application provides a computer-readable storage medium, which stores instructions, and when the computer-readable storage medium is executed on a processor, implements part or all of the operations included in the method described in any of the preceding aspects and any possible implementation method of any of the preceding aspects.

[0073] In a seventh aspect, the present application provides a computer program product, which includes instructions, and when the computer program product is executed on a processor, implements part or all of the operations included in the method described in any of the preceding aspects and any possible implementation manner of any of the preceding aspects.

[0074] In a specific implementation, the communication device described in the present application may be a network device such as a router or a switch, or a component on each network device for performing related operations, such as a line card or an interface board, or a chip for performing related operations. When the communication device is a chip, the chip includes: an interface circuit and a processing circuit. The interface circuit is connected to the processing circuit, and the processing circuit and the interface circuit are used to enable the chip to perform the method described in any of the aforementioned aspects and part or all of the operations included in any possible implementation of any of the aforementioned aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0076] Figure 1 It is a structural diagram of a network provided in an embodiment of the present application;

[0077] Figure 2 is a flow chart of a method for limiting the speed of traffic transmission provided in an embodiment of the present application;

[0078] Figure 3 It is a flow chart of another method for limiting the speed of traffic transmission provided in an embodiment of the present application;

[0079] Figure 4 It is a flow chart of a method for configuring a rate limit for traffic transmission provided in an embodiment of the present application;

[0080] Figure 5a It is a structural diagram of a dedicated line network for traffic transmission provided in an embodiment of the present application;

[0081] Figure 5b It is a schematic diagram of a networking example of traffic transmission provided in an embodiment of the present application;

[0082] Figure 6 It is a flow chart of another method for configuring the speed limit of traffic transmission provided in an embodiment of the present application;

[0083] Figure 7a It is a structural diagram of another dedicated line network for traffic transmission provided in an embodiment of the present application;

[0084] Figure 7b It is a schematic diagram of a networking example of traffic transmission provided in an embodiment of the present application;

[0085] Figure 8It is a flow chart of another method for configuring the speed limit of traffic transmission provided in an embodiment of the present application;

[0086] Figure 9a It is a structural diagram of another dedicated line network for traffic transmission provided in an embodiment of the present application;

[0087] Figure 9b It is a schematic diagram of a networking example of traffic transmission provided in an embodiment of the present application;

[0088] Fig.10 is a structural diagram of a first communication device provided in an embodiment of the present application;

[0089] Fig.11 It is a structural diagram of a communication device 60 provided in an embodiment of the present application. DETAILED DESCRIPTION

[0090] In order to enable those skilled in the art to better understand the solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments.

[0091] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0092] The terms "first" and "second" in the description and claims of the embodiments of the present application are used to distinguish different objects rather than to describe a specific order of objects. For example, a first target object and a second target object are used to distinguish different target objects rather than to describe a specific order of target objects.

[0093] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0094] In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more than two. For example, multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.

[0095] For ease of understanding, the following first explains the relevant nouns or terms used in the embodiments of the present application:

[0096] 1. QoS

[0097] With limited bandwidth resources, communication devices allocate bandwidth to various services based on QoS to provide end-to-end service quality assurance for services. For example, voice, video and important data applications can be given priority in network devices by configuring QoS.

[0098] 2. More Homes, More Lives

[0099] In the present application, multi-homing refers to a deployment mode in which a user-side communication device is connected to multiple network-side communication devices through multiple links. In the multi-homing scenario, single-active mode and multi-active mode are supported. Among them, the single-active mode means that only one link among multiple links is active, and the other links are inactive. The active state means that the link can be used to carry and forward data streams. In the scenario of active-standby protection, the link in the active state is usually used as the main link. Correspondingly, the inactive state means that the link cannot be used to carry and forward data streams, and is usually used as a backup link. The multi-active mode means that more than two links among multiple links are active, and the links in the active state can realize load-sharing forwarding of data streams, thereby providing a transmission capacity with a larger bandwidth. In a specific implementation, in the multi-active mode, the state of at least one link among the multiple links is inactive. The inactive link is used as a backup. When the main link fails, it can be switched to the backup link for redundant protection. In another specific implementation, the multi-active mode of the present application includes a full-active mode, which means that the status of all links in the link segment is active, that is, there are no inactive links. All these active links can realize load-sharing forwarding of data streams, thereby providing a larger bandwidth transmission capacity. However, the full-active mode scenario does not support backup, that is, there is no backup link. When the main link fails, it cannot switch to the backup link for redundant protection.

[0100] In this application, the multi-homing multi-active deployment scenario is exemplified based on dual-homing dual-active. Those skilled in the art can understand that multi-homing multi-active includes but is not limited to dual-homing dual-active. Figure 1 and Figure 2 The specific description will not be repeated here.

[0101] 3. Trunk

[0102] Bind multiple independent physical interfaces together and use them as a large-bandwidth logical interface.

[0103] 4. Hash algorithm

[0104] The Hash algorithm is a fixed type of algorithm provided by the chip. Different algorithms have different calculation effects on different traffic models. There are multiple algorithms to choose from, and the calculation results will directly affect the effect of load sharing.

[0105] 5. Uneven load sharing

[0106] It means that after load balancing, traffic is concentrated on one or several links for transmission, while other links have no traffic or little traffic.

[0107] 6.DF

[0108] When the customer edge (CE) device is multi-homed to the Ethernet virtual private network (EVPN), DF election is introduced into EVPN to avoid the waste of network resources caused by the CE device receiving duplicate traffic from multiple multi-homed PE devices. Based on DF election, one or more PE devices are elected from multiple multi-homed PE devices to forward traffic to the user site. Among them, the main PE device responsible for forwarding BUM traffic to the CE device is called the designated forwarder DF, which can also be called the main DF. Other PE devices that are not responsible for forwarding BUM traffic to the CE act as backup paths when the DF fails. These PE devices are called backup designated forwarders (BDF or backup DF), and backup designated forwarders can also be called non-DF.

[0109] 7. E-Trunk

[0110] E-Trunk is a mechanism for implementing cross-device link aggregation. It is based on the Link Aggregation Control Protocol (LACP) and is able to implement link aggregation E-Trunk between multiple devices. The E-Trunk mechanism is mainly used for link protection between CE devices and PEs and for protection against PE device node failures when CE devices are dual-homed to the network. Two PE devices can negotiate the master and backup status of the E-Trunk through E-Trunk messages, that is, one PE is the primary E-Trunk (primary E-Trunk) and the other is the backup E-Trunk (backup E-Trunk). The link status of the primary E-Trunk is Up, and the link status of the backup E-Trunk is down. When the primary E-Trunk link fails, it acts as a backup link.

[0111] Figure 1 This is a schematic diagram of a network structure provided by an embodiment of the present application, referring to Figure 1Provided is a networking architecture in which a dedicated line user wishes to transmit traffic between a user side and a network side in the form of load sharing under a CE multi-homing multi-active networking, the networking including a first communication device 10 and a third communication device 20 deployed between the network side and the user side, a second communication device 30 deployed on the user side and a fourth communication device 40 deployed on the network side. Figure 1 As shown, when establishing the network, the second communication device 30 is connected to the first communication device 10 and the third communication device 20 respectively, and the first communication device 10 and the third communication device 20 and the fourth communication device 40 establish Border Gateway Protocol (BGP) EVPN neighbors, and establish a dedicated line service carrying EVPN, and the dedicated line includes a Layer 2 dedicated line and a Layer 3 dedicated line.

[0112] When the three-layer dedicated line (L3) adopts EVPN bearer, in order to improve the link utilization, it is generally set to EVPN multi-home multi-active mode, such as dual-home dual-active mode. In order to make full use of the bandwidth, the second communication device 30 is usually bundled (trunk) to access the first communication device 10 and the third communication device 20, and sends traffic to the fourth communication device 40. The traffic can be load-shared to the first communication device 10 and the third communication device 20 through the Hash algorithm. That is to say, a dedicated line user needs the first communication device 10 and the third communication device 20 to limit the speed at the same time on a dedicated line, but because the first communication device 10 and the third communication device 20 are not synchronized, they cannot be jointly speed-limited. Once any one of the first communication device 10 and the third communication device 20 fails in the link with the second communication device 10, or the load sharing between the first communication device 10 and the third communication device 20 is uneven, resulting in the load shared by one of the communication devices being insufficient to carry the traffic, it will cause the problem of inaccurate QoS speed limit.

[0113] For Layer 2 dedicated lines (L2), there are similar problems as for Layer 3 dedicated lines. When the Layer 2 dedicated line is carried by EVPN, it is generally set to EVPN multi-active mode, such as dual-active mode. Similarly, in order to make full use of the bandwidth, the second communication device 10 usually bundles (trunk) the traffic accessed by the first communication device 10 and the third communication device 20 to send to the fourth communication device 40. This traffic will also cause the problem of inaccurate QoS speed limit due to the same reasons mentioned above.

[0114] In order to solve the problem of inaccurate speed limit, the embodiment of the present application provides a method of limiting the speed of traffic transmission by changing the traffic forwarding path. Figure 2 is a flow chart of a method for limiting the speed of traffic transmission provided in an embodiment of the present application, such as Figure 2 As shown, the method is performed by a first communication device, comprising:

[0115] S101. A first communication device sets a state of a first dedicated line interface to down, where the first dedicated line interface is used to transmit a first dedicated line service.

[0116] For example, a dedicated line user (such as enterprise A) uses a second communication device (such as a CE device) to access the first communication device and the third communication device in a bundled (trunk) manner. Furthermore, the second communication device is multi-homed and multi-active (such as dual-homed and dual-active, etc.) connected to the first communication device and the third communication device, wherein the first communication device is connected to the second communication device through a first AC interface, and the third communication device is connected to the second communication device through a second AC interface. Optionally, the AC interface is a physical interface including ten sub-interfaces. If there is an enterprise A in the network (with more dedicated line services and requiring a physical interface to provide services) with multi-homed and multi-active (such as dual-homed and dual-active, etc.) connected to the first communication device and the third communication device, the AC interface (including the first AC interface and the second AC interface) provided in the embodiment of the present application is a physical interface. If there are multiple dedicated line users in the network, such as enterprise A and enterprise B, which are both multi-homing and multi-active (such as dual-homing and dual-active) connected to the first communication device and the third communication device, the first AC interface of the dedicated line user (such as enterprise A) provided in the embodiment of the present application corresponding to the first communication device is a physical sub-interface, such as sub-interface 1.1, and the second AC interface corresponding to the third communication device is also sub-interface 1.1. The third AC interface of the dedicated line user (such as enterprise B) provided in the embodiment of the present application corresponding to the first communication device is another physical sub-interface, such as sub-interface 1.2, and the fourth AC interface corresponding to the third communication device is also sub-interface 1.2, etc. Further, in actual applications, the AC interface can be a sub-interface of a physical interface, or other sub-interfaces, such as a VLAN sub-interface, a trunk sub-interface, etc., and is not limited to the example.

[0117] In addition, the interface of the first communication device for transmitting the first dedicated line service (such as the interface for transmitting the dedicated line service of enterprise A) is defined as the first dedicated line interface. The interface of the third communication device for transmitting the first dedicated line service (such as the interface for transmitting the dedicated line service of enterprise A) is defined as the second dedicated line interface. Moreover, the first AC interface, the second AC interface, the first dedicated line interface, and the second dedicated line interface belong to the same BD, which is the broadcast domain of the Layer 2 dedicated line (L2) for forwarding traffic in the dedicated line.

[0118] Furthermore, in the first communication device, the state of the first dedicated line interface can be independently configured as down or UP, or can be configured in conjunction with other mechanisms, such as tracking the DF state or E-Trunk state of the first AC interface, and setting the first dedicated line interface to down or UP according to the tracked DF state or E-Trunk state. The state of the second dedicated line interface in the third communication device can be configured with reference to the first dedicated line interface.

[0119] Optionally, the first communication device tracks the DF state of the first AC interface on the first dedicated line interface, and sets the state of the first dedicated line interface according to the DF state of the first AC interface; the third communication device tracks the DF state of the second AC interface on the first dedicated line interface, and sets the state of the second dedicated line interface according to the DF state of the second AC interface. Since the AC interface is bound to the EVPN instance, the DF states of the first AC interface and the second AC interface are the BD-based DF election results of the EVPN instance. The DF election result includes a primary DF and a backup DF. The device with the DF state as the primary DF is used to forward traffic when the link forwarding traffic is normal. At this time, the device with the DF state as the backup DF does not forward traffic. When the link forwarding traffic by the device with the DF state as the primary DF fails, the device with the DF state as the backup DF forwards traffic. In a possible implementation, the first communication device sets the state of the first dedicated line interface to down in response to the DF state of the first AC interface being the backup DF, and the third communication device sets the state of the second dedicated line interface to UP in response to the DF state of the second AC interface being the primary DF. Since the DF state of the first AC interface is the standby DF, and the state of the first dedicated line interface is set to down, the first AC interface and the DF standby state of the first communication device are consistent in not forwarding traffic, that is, when the third communication device is working normally, the first communication device does not forward the first traffic of the first dedicated line service to the fourth communication device, but sends the first traffic to the third communication device working normally, and the third communication device limits the speed of the first traffic and sends it, which can achieve collaborative, efficient and accurate speed limiting.

[0120] In one possible implementation, the first communication device sets the state of the first dedicated line interface to down in response to the DF state of the first AC interface being the active DF, and the third communication device sets the state of the second dedicated line interface to UP in response to the DF state of the second AC interface being the standby DF, thereby enhancing the flexibility of the state setting of the first dedicated line interface.

[0121] Furthermore, by setting linkage with DF status, different interfaces (such as AC interface and dedicated line interface) can communicate and respond to each other, which can make troubleshooting and maintenance easier.

[0122] Optionally, the first communication device tracks the E-TRUNK state of the first AC interface on the first dedicated line interface, and sets the state of the first dedicated line interface according to the E-Trunk state of the first AC interface; the third communication device tracks the E-TRUNK state of the second AC interface on the second dedicated line interface, and sets the state of the second dedicated line interface according to the E-Trunk state of the second AC interface. The E-Trunk state includes a primary E-Trunk and a backup E-Trunk. The device with the E-Trunk state as the primary E-Trunk is used to forward traffic when the link forwarding traffic is normal. At this time, the device with the E-Trunk state as the backup E-Trunk does not forward traffic. When the link forwarding traffic by the device with the E-Trunk state as the primary E-Trunk fails, the device with the E-Trunk state as the backup E-Trunk forwards traffic. In a possible implementation, in response to the E-Trunk state of the first AC interface being a standby E-Trunk, the first communication device sets the state of the first dedicated line interface to down, and in response to the E-Trunk state of the second AC interface being a primary E-Trunk, the third communication device sets the state of the second dedicated line interface to UP. In a possible implementation, in response to the E-Trunk state of the first AC interface being a primary E-Trunk, the first communication device sets the state of the first dedicated line interface to down, and in response to the E-Trunk state of the second AC interface being a standby E-Trunk, the third communication device sets the state of the second dedicated line interface to UP. In this way, by tracking the E-Trunk state of the AC interface and setting the state of the dedicated line interface in linkage, on the one hand, it has high coordination, and on the other hand, it can flexibly set the state of the dedicated line interface in linkage according to the E-Trunk state, so that the configuration scheme of the device is richer.

[0123] S102: The first communication device receives, through the first AC interface, first traffic of a first dedicated line service sent by a second communication device.

[0124] For example, the first dedicated line service is the dedicated line service of enterprise A. Enterprise A sends the traffic of the first dedicated line service through the second device, including the first traffic and the third traffic. The first traffic is received by the first communication device through the first AC interface, and the third traffic is received by the third communication device through the second AC interface.

[0125] S103: The first communication device sends the first traffic to the third communication device through the first dedicated line interface, wherein the second dedicated line interface of the third communication device is configured with a first rate limiting strategy for the first dedicated line service.

[0126] Since the state of the first dedicated line interface of the first communication device is set to down, the first communication device sends the received first traffic to the third communication device through the first dedicated line interface, and the third communication device sends the first traffic received from the first communication device and the third traffic received from the second communication device to the fourth communication device through the second dedicated line interface. The second dedicated line interface is configured with a first speed limit policy for the first dedicated line service. For example, if the first dedicated line service is an 80M dedicated line service of enterprise A, the first speed limit policy configured on the second dedicated line interface for the first dedicated line service may be to set the QoS speed limit to 80M.

[0127] In an embodiment of the present application, because of the two devices (the first communication device and the third communication device) accessed by the second communication device with multi-home and multi-active, the first dedicated line interface of the first communication device is set to down, and the first traffic arriving at the first dedicated line interface is forwarded to the second dedicated line interface of the third communication device, and is speed-limited and sent by the second dedicated line interface set to UP. That is, the traffic sent by the first dedicated line service is speed-limited by the first speed-limiting policy on the second dedicated line interface of the third communication device, and then sent to the fourth communication device, thereby ensuring that the sent uplink traffic can be accurately speed-limited.

[0128] In addition, when the fourth communication device sends the traffic of the first dedicated line service to the second communication device, since the first dedicated line interface of the first communication device is set to down, the downstream first traffic does not form a load burden between the first communication device and the third communication device, but is sent to the third communication device whose second dedicated line interface is set to UP. After the speed is limited based on the first speed limit strategy through the second dedicated line interface of the third communication device, it is sent to the second communication device, thereby ensuring the accurate speed limit of the downstream traffic.

[0129] In a possible implementation, the embodiment of the present application provides a method of changing the traffic forwarding path to ensure the accuracy of traffic speed limiting. Figure 3 is a flow chart of another method for limiting the speed of traffic transmission provided in an embodiment of the present application, such as Figure 3 As shown, the method is executed by a first communication device, the first communication device also includes a third dedicated line interface, the third dedicated line interface is used to transmit the second dedicated line service, and the method also includes:

[0130] S104. The first communication device receives second traffic of the second dedicated line service through the third dedicated line interface.

[0131] S105. In response to the state of the third dedicated line interface being normally UP, the first communication device limits the traffic rate when sending the second traffic to the fourth communication device through the third dedicated line interface according to the second rate limiting policy for the second dedicated line service configured on the third dedicated line interface.

[0132] For example, a dedicated line user (such as enterprise B) uses a second communication device (such as a CE device) to connect the first communication device and the third communication device in dual homing and dual active mode, wherein the first communication device is connected to the second communication device of enterprise B through the first AC interface, and the third communication device is connected to the second communication device of enterprise B through the second AC interface. The first communication device defines the dedicated line interface for transmitting the second dedicated line service of enterprise B as the third dedicated line interface, and the third communication device defines the dedicated line interface for transmitting the second dedicated line service of enterprise B as the fourth dedicated line interface. Moreover, the first AC interface, the second AC interface, the third dedicated line interface, and the fourth dedicated line interface belong to the same BD. The status of the third dedicated line interface can be configured as UP, and the status of the fourth dedicated line interface can be configured as down.

[0133] Optionally, the first communication device tracks the DF state of the first AC interface on the third dedicated line interface, and sets the state of the third dedicated line interface to UP according to the DF state of the first AC interface; the third communication device tracks the DF state of the second AC interface on the third dedicated line interface, and sets the state of the fourth dedicated line interface to down according to the DF state of the second AC interface. In a possible implementation, the first communication device sets the state of the third dedicated line interface to UP in response to the DF state of the first AC interface being the active DF, and the third communication device sets the state of the fourth dedicated line interface to down in response to the DF state of the second AC interface being the standby DF. In a possible implementation, the first communication device sets the state of the third dedicated line interface to UP in response to the DF state of the first AC interface being the standby DF, and the third communication device sets the state of the fourth dedicated line interface to down in response to the DF state of the second AC interface being the active DF.

[0134] Optionally, the first communication device tracks the E-Trunk state of the first AC interface on the third dedicated line interface, and sets the state of the third dedicated line interface to UP according to the E-Trunk state of the first AC interface; the third communication device tracks the E-Trunk state of the second AC interface on the third dedicated line interface, and sets the state of the fourth dedicated line interface to down according to the E-Trunk state of the second AC interface. In a possible implementation, the first communication device sets the state of the third dedicated line interface to UP in response to the E-Trunk state of the first AC interface being the active E-Trunk, and the third communication device sets the state of the fourth dedicated line interface to down in response to the E-Trunk state of the second AC interface being the standby E-Trunk. In a possible implementation, the first communication device sets the state of the third dedicated line interface to UP in response to the E-Trunk state of the first AC interface being the standby E-Trunk, and the third communication device sets the state of the fourth dedicated line interface to down in response to the E-Trunk state of the second AC interface being the active E-Trunk.

[0135] Since the status of the fourth dedicated line interface of the third communication device is set to down, the third communication device will send the second traffic of the second dedicated line service received to the first communication device through the fourth dedicated line interface, and the first communication device will send the second traffic received from the second communication device and the third communication device to the fourth communication device through the third dedicated line interface, wherein the third dedicated line interface is configured with a second speed limit policy for the second dedicated line service. For example, if the second dedicated line service is the 87M dedicated line service of enterprise B, the second speed limit policy configured for the second dedicated line service on the third dedicated line interface may be to set the QoS speed limit to 87M.

[0136] The first communication device can set the AC interfaces for different dedicated line users and the corresponding dedicated line interfaces to different states. For example, in the example of this embodiment, the first dedicated line interface corresponding to the first AC interface for the dedicated line user enterprise A can be set to down, and the first traffic can not be sent to the fourth communication device. The third dedicated line interface corresponding to the first AC interface for the dedicated line user enterprise B can be set to UP, and the second traffic for the second dedicated line service can be sent to the fourth communication device. This has greater flexibility.

[0137] Furthermore, in addition to interfaces for providing dedicated line services for dedicated line users, such as sub-interface 1.1 and sub-interface 1.2, the first communication device and the third communication device may also include sub-interfaces for transmitting other services, such as sub-interfaces for widening services, etc. For dedicated line services, the forwarding speed of traffic can be limited according to the methods of S101 to S105. For other services, based on the multi-home and multi-active access of the second communication device to the first communication device and the third communication device, the traffic of non-dedicated line services can still be transmitted with the remote end (such as the fourth communication device) in a load sharing manner.

[0138] The following example is a scenario in which the first communication device and the second communication device are further configured based on the above method to solve the problem of inaccurate traffic speed limit (such as inaccurate QoS speed limit). In some scenarios, the first dedicated line interface and the second dedicated line interface can be connected to L3VPN, and in other scenarios, the first dedicated line interface and the second dedicated line interface can be connected to EVPN. The following examples are used to illustrate:

[0139] Figure 4 is a flow chart of a method for configuring a rate limit for traffic transmission provided in an embodiment of the present application. Figure 5a is a structural diagram of a dedicated line network for traffic transmission provided in an embodiment of the present application, Figure 5b is a schematic diagram of a networking example of traffic transmission provided in an embodiment of the present application, Figure 4 The provided method can be applied in Figure 5a and Figure 5bProvide dedicated line networking to achieve traffic speed limit, Figure 4 In the provided method, corresponding to the above example, the second communication device is a CE device 10 deployed on the user side, the fourth communication device is a device 20 deployed on the network side, the first communication device is a PE 1 deployed on a first access leaf node (Access Leaf, Aleaf) 30, hereinafter referred to as the first Aleaf 30, and the third communication device is a PE 2 deployed on a second Aleaf 40, hereinafter referred to as the second Aleaf 40. Figure 4 The method shown is explained by taking the example that when establishing a network, the first Aleaf 30 and the second Aleaf 40 access L3VPN, transmit traffic with the device 20 respectively through the three-layer dedicated line L3, and establish a dedicated line service carrying EVPN between the CE device 10 and the device 20 through the first Aleaf 30 and the second Aleaf 40.

[0140] like Figure 4 As shown, the method includes:

[0141] S201 : The first Aleaf 30 and the second Aleaf 40 establish BGP EVPN neighbors with the device 20 respectively.

[0142] S202: The CE device 10 is connected to the first Aleaf 30 and the second Aleaf 40 in a trunk manner. The first Aleaf 30 and the second Aleaf 40 are configured with the same ESI.

[0143] The CE device 10 is dual-homing and dual-actively connected to the first Aleaf 30 and the second Aleaf 40, and the first Aleaf 30 is connected to the CE device 10 through the first AC interface, and the second Aleaf 40 is connected to the CE device 10 through the second AC interface. The first AC interface and the second AC interface belong to the same BD.

[0144] For example, if there is only one enterprise A in the network that uses the CE device 10 to connect the first Aleaf 30 and the second Aleaf 40, the first Aleaf 30 can set the first AC interface to 1, and the second Aleaf 40 also sets the second AC interface to 1, pointing to the same dedicated line user. If there are multiple dedicated line users in the network, such as enterprise A and enterprise B respectively use CE devices to connect the first Aleaf 30 and the second Aleaf 40, the first Aleaf 30 and the second Aleaf 40 can specify a sub-interface for each dedicated line user, such as the first Aleaf 30 can set the first AC interface pointing to enterprise A to 1.1, the second Aleaf 40 also sets the second AC interface pointing to enterprise A to 1.1, the first Aleaf 30 can set the first AC interface pointing to enterprise B to 1.2, the second Aleaf 40 also sets the second AC interface pointing to enterprise B to 1.2, etc. The first Aleaf 30 and the second Aleaf 40 can both configure ESI to 111, and the operation mode of the ES identified by them can be dual-homing dual-active.

[0145] S203 . Bind the first vbdif interface of the first Aleaf 30 and the second vbdif interface of the second Aleaf 40 to a BD.

[0146] The first vbdif interface of the first Aleaf 30 is used to transmit the first dedicated line service, and the second vbdif interface of the second Aleaf 40 is used to transmit the first dedicated line service.

[0147] Reference Figure 5b In the network, the Layer 3 dedicated line user (Enterprise A) is allocated two VPNs, one is Layer 2 EVPN VPLS (Virtual Private LAN Service, VPLS), Enterprise A corresponds to evpna, and the other is Layer 3 EVPN, Enterprise A corresponds to vpnb. Configure BD and the corresponding L3 EVPN and L2 EVPN VPLS, that is, the first Aleaf 30 configures L3 EVPN as evpna, the second Aleaf 40 configures L3 EVPN as evpna, the first Aleaf 30 configures L2 EVPN VPLS as evpnb, and the second Aleaf 40 configures L2 EVPN VPLS as evpnb. Correspondingly, the first vbdif interface and the second vbdif interface are bound to the BD.

[0148] S204 . The first vbdif interface of the first Aleaf 30 and the second vbdif interface of the second Aleaf 40 are configured with the same IP address and MAC address.

[0149] For example, refer to Figure 5b , the IP address of the first vbdif interface is configured as 10.0.0.1 / 30, the IP address of the second vbdif interface is also configured as 10.0.0.1 / 30, the MAC address of the first vbdif interface is configured as 1-1-1, the MAC address of the second vbdif interface is also configured as 1-1-1, etc. The L3 dedicated line interfaces configured for the first Aleaf 30 and the second Aleaf 40 are vbdif interfaces corresponding to the BD. After the first vbdif interface and the second vbdif interface are configured with the same IP address and MAC address, the first Aleaf 30 and the second Aleaf 40 can send the traffic of the first dedicated line service to the same device 20 on L3.

[0150] S205. The second Aleaf 40 sets the state of the second vbdif interface to UP, and configures a first rate limiting policy for the first dedicated line service on the second vbdif interface.

[0151] S206: The first Aleaf 30 sets the state of the first vbdif interface to down.

[0152] The status setting of the first vbdif interface and the second vbdif interface can be implemented by tracking the DF status of the AC interface or the E-Trunk status as shown in the above example. Figure 5b The first Aleaf 30 tracks the DF status of the first AC interface as standby, and sets the first vbdif interface to down. The second Aleaf 40 tracks the DF status of the second AC interface as active, and sets the second vbdif interface to UP.

[0153] Based on the configuration of the first Aleaf 30 and the second Aleaf 40 in steps S201 to S206, refer to Figure 5a and Figure 5bIn the provided networking, in one possible implementation, the CE device 10 transmits a first dedicated line service and sends a total of 100M of traffic for the first dedicated line service. Since the CE device 10 is bundled to access the first Aleaf 30 and the second Aleaf 40, the traffic of the first dedicated line service is shared by the first Aleaf 30 and the second Aleaf 40 (the traffic of the first dedicated line service received by the first Aleaf 30 is defined as the first traffic, and the traffic of the first dedicated line service received by the second Aleaf 40 is defined as the third traffic) and transmitted to the device 20. The destination IP address of the traffic of the first dedicated line service sent by the CE device 10 is the same IP address and MAC address on the vbdif interface of the first Aleaf 30 and the second Aleaf 40. The following two cases are used as examples for explanation: In the first case, the first Aleaf 30 and the second Aleaf 40 are load-balanced, and both the first Aleaf 30 and the second Aleaf 40 receive 50M of traffic of the first dedicated line service. In the second case, the first Aleaf 30 and the second Aleaf 40 are load-balanced unbalanced, and the first Aleaf 30 receives 30M of the first traffic through the first AC interface, and the second Aleaf 40 receives 70M of the third traffic through the second AC interface. In the first case, when the 50M first traffic reaches the first Aleaf 30, since the first vbdif interface is down, the destination MAC address of the 50M first traffic cannot find the corresponding MAC address, and it is found that the first vbdif interface is down, so the first Aleaf 30 forwards the 50M first traffic to the second Aleaf 40. The second vbdif interface of the second Aleaf 40 is set to UP, and its MAC address is the destination MAC address of the first traffic. Therefore, the second Aleaf 40 connects the 50M third traffic received from the CE device 10 and the 50M first traffic received from the first Aleaf 30 (such as the L2VPN interface) to L3 together. The second vbdif interface is configured with a first speed limit policy for the first dedicated line service, such as a QoS speed limit of 80M. The 100M first dedicated line service traffic sent by the second Aleaf 40 to the device 20 through the second vbdif interface is accurately limited to 80M.In the second case, among the traffic of the first dedicated line service sent by the CE device 10, 30M of the first traffic is received by the first ALeaf 30, and 70M of the third traffic is received by the second Aleaf 40. When the 30M of the first traffic reaches the first Aleaf 30, it is found that the first vbdif interface is down, and the 30M of the traffic is forwarded to the second Aleaf 40. The second Aleaf 40 connects the 70M of the third traffic received from the CE device 10 and the 30M of the first traffic received from the first Aleaf 30, totaling 100M, to L3 together, and sends it to the device 20 through the second vbdif interface. The 100M of the traffic of the first dedicated line service is accurately limited to 80M. Through the examples of the above two cases, it can be seen that no matter how the load sharing of the first Aleaf 30 and the second Aleaf 40 is, the method of changing the traffic forwarding path provided in the embodiment of the present application can effectively solve the problem of inaccurate speed limit of the upstream first traffic.

[0154] Based on the configuration of the first Aleaf 30 and the second Aleaf 40 in steps S201 to S206, refer to Figure 5a and Figure 5b In the provided networking, in one possible implementation, device 20 needs to send traffic for the first dedicated line service to CE device 10. Since the first vbdif interface of the first Aleaf 30 is set to down and the second vbdif interface is set to UP, the routing priority of the second Aleaf 40 is higher than that of the first Aleaf 30. Device 20 will send all traffic of the first dedicated line service to be sent to CE device 10 to the second Aleaf 40, which will be received by the second vbdif interface of the second Aleaf 40. Since the second vbdif interface of the second Aleaf 40 has been configured with QoS speed limit, the accurate speed limit of the downstream first traffic can also be guaranteed.

[0155] Figure 6 is a flow chart of another method for configuring a speed limit for traffic transmission provided in an embodiment of the present application. Figure 7a is a structural diagram of another dedicated line network for traffic transmission provided in an embodiment of the present application, Figure 7b is a schematic diagram of a networking example of traffic transmission provided in an embodiment of the present application, Figure 6 The provided method can be applied in Figure 7a and Figure 7b Provide dedicated line networking to achieve traffic speed limit, Figure 6In the provided method, corresponding to the above example, the second communication device is a CE device 10 deployed on the user side, the fourth communication device is a device 20 deployed on the network side, the first communication device is a PE 1 deployed on the first Aleaf 30, hereinafter referred to as the first Aleaf 30, and the third communication device is a PE 2 deployed on the second Aleaf 40, hereinafter referred to as the second Aleaf 40. Figure 6 The method shown is described by taking the example that when establishing a network, the first Aleaf 30 and the second Aleaf 40 access L3VPN, transmit traffic with the device 20 through the three-layer dedicated line L3, usually L3 adopts the EVPN dual-home dual-active mode, and the CE device 10 and the device 20 establish a dedicated line service carrying EVPN through the first Aleaf 30 and the second Aleaf 40. As shown in Figure 7, the first dedicated line interface of the first Aleaf 30 and the second dedicated line interface of the second Aleaf 40 are both VE interfaces.

[0156] like Figure 6 As shown, the method includes:

[0157] S301 : The first Aleaf 30 and the second Aleaf 40 establish BGP EVPN neighbors with the device 20 respectively.

[0158] S302: The CE device 10 is connected to the first Aleaf 30 and the second Aleaf 40 in a trunk manner. The first Aleaf 30 and the second Aleaf 40 are configured with the same ESI.

[0159] The first Aleaf 30 is connected to the CE device 10 via a first AC interface, and the second Aleaf 40 is connected to the CE device 10 via a second AC interface. The first AC interface and the second AC interface belong to the same BD. Figure 7b , the first Aleaf 30 and the second Aleaf 40 can both configure ESI as 111, and the operation mode of the ES identified therein can be dual-homing dual-active.

[0160] S303: The first Aleaf 30 and the second Aleaf 40 deploy VE interfaces.

[0161] The first dedicated line interface deployment of the first Aleaf 30 includes deploying a first L3VE interface and a first L2VE interface, and the second dedicated line interface deployment of the second Aleaf 40 includes deploying a second L3VE interface and a second L2VE interface, the first L3VE interface and the first L2VE interface are internally looped back, and the second L3VE interface and the second L2VE interface are internally looped back.

[0162] S304 , the first L2VE interface of the first Aleaf 30 and the second L2VE interface of the second Aleaf 40 are bound to a BD.

[0163] For example, the first dedicated line service is a dedicated line service of enterprise A. The CE device 10 of enterprise A is connected to the first Aleaf 30 and the second Aleaf 40, and the first AC interface and the second AC interface belong to the same BD. The BD and EVPN are configured so that the first AC interface, the second AC interface, the first L2VE interface and the second L2VE interface belong to the same BD. Figure 7b , bd are both 10.

[0164] S305 . The first L3VE interface of the first Aleaf 30 and the second L3VE interface of the second Aleaf 40 are configured with the same IP address and MAC address.

[0165] For example, refer to Figure 7b For example, the IP address of the first L3VE interface is configured as 10.0.0.1 / 30, the IP address of the second L3VE interface is also configured as 10.0.0.1 / 30, the MAC address of the first L3VE interface is configured as 1-1-1, the MAC address of the second L3VE interface is also configured as 1-1-1, and so on. The L3 dedicated line interface configured for the first Aleaf 30 and the second Aleaf 40 is an L3VE interface corresponding to the BD. After the first L3VE interface and the second L3VE interface are configured with the same IP address and MAC address, the first Aleaf 30 and the second Aleaf 40 can send the traffic of the first dedicated line service to the same device 20 on L3, and the first Aleaf 30 can send the traffic of the first dedicated line service to each other through the first L2VE interface and the second L2VE interface of the second Aleaf 40. For example, when the state of the first L2VE interface is set to down, the first Aleaf 30 can send the first traffic to the second L2VE interface of the second Aleaf 40 through the first L2VE interface, and when the state of the second L2VE interface is set to down, the second Aleaf 40 can send the third traffic to the first L2VE interface of the first Aleaf 30 through the second L2VE interface.

[0166] S306. The state of the second L2VE interface of the second Aleaf 40 is set to UP, and a first rate limiting policy for the first dedicated line service is configured on the second L2VE interface.

[0167] For example, the second Aleaf 40 may set the state of the second L2VE interface to UP according to the DF state of the second AC interface, such as, when the DF state of the second AC interface is active, the state of the first L2VE interface is set to UP, or, when the DF state of the second AC interface is standby, the state of the second L2VE interface is set to UP; or, the second Aleaf 40 may set the state of the second L2VE interface to UP according to the E-Trunk state of the first AC interface, such as, when the E-Trunk state of the second AC interface is active, the state of the second L2VE interface is set to UP, or, when the E-Trunk state of the second AC interface is standby, the state of the second L2VE interface is set to UP. In this embodiment of the present application, Figure 7b In the example, the second Aleaf 40 sets the state of the second L2VE interface to UP in response to the DF state of the second AC interface being active.

[0168] S307: In response to the second L2VE interface being in an UP state, the second Aleaf 40 sets the second L3VE interface to be in an UP state.

[0169] S308: The first Aleaf 30 sets the state of the first L2VE interface to down.

[0170] For example, the first Aleaf 30 may set the state of the first L2VE interface to down according to the DF state of the first AC interface, such as when the DF state of the first AC interface is standby, the state of the first L2VE interface is set to down, or when the DF state of the first AC interface is active, the state of the first L2VE interface is set to down; or, the first Aleaf 30 may set the state of the first L2VE interface to down according to the E-Trunk state of the first AC interface, such as when the E-Trunk state of the first AC interface is standby, the state of the first L2VE interface is set to down, or when the E-Trunk state of the first AC interface is active, the state of the first L2VE interface is set to down. Figure 7b In the example, the first Aleaf 30 sets the state of the first L2VE interface to down in response to the DF state of the first AC interface being standby.

[0171] S309: In response to the first L2VE interface being in a down state, the first Aleaf 30 sets the first L3VE interface to be down.

[0172] The state of the first L3VE interface is consistent with the state of the first L2VE interface.

[0173] Based on the configuration of the first Aleaf 30 and the second Aleaf 40 in steps S301 to S309, refer to Figure 7a and Figure 7b In the provided networking, in a possible implementation, the CE device 10 transmits a first dedicated line service and sends a total of 100M of traffic of the first dedicated line service. The CE device 10 is bundled and connected to the first Aleaf 30 and the second Aleaf 40. The first traffic is shared by the first Aleaf 30 and the second Aleaf 40 and transmitted to the device 20. The destination IP address of the traffic of the first dedicated line service sent by the CE device 10 is the same as the IP address and MAC address on the first L3VE interface of the first Aleaf 30 and the second L3VE interface of the second Aleaf 40. To illustrate with an example, when the load sharing between the first Aleaf 30 and the second Aleaf 40 is unbalanced, such as the first Aleaf 30 receives 30M of the first traffic through the first AC interface, and the second Aleaf 40 receives 70M of the third traffic through the second AC interface, the first traffic sent by the CE device 10, 30M of the first traffic is received by the first ALeaf 30, and 70M of the third traffic is received by the second Aleaf 40. When the 30M first traffic reaches the first Aleaf 30, it is found that the first L2VE is down. The first Aleaf 30 can send the 30M first traffic to the second L2VE interface of the second Aleaf 40 through the first L2VE interface. The second Aleaf 40 accesses the 70M third traffic received from the CE device 10 and the 30M first traffic received from the first Aleaf 30, totaling 100M, through the L3 through the second L3VE interface, and sends them to the device 20 according to the first speed limit policy for the first dedicated line service, thereby achieving accurate speed limit for the upstream traffic.

[0174] Based on the configuration of the first Aleaf 30 and the second Aleaf 40 in steps S301 to S309, refer to Figure 7a and Figure 7bIn the provided networking, in one possible implementation, device 20 needs to send traffic for a first dedicated line service to CE device 10. Two examples are used to illustrate. In the first case, the first Aleaf 30 and the second Aleaf 40 receive traffic for the first dedicated line service from a remote end. The traffic for the first dedicated line service may come from device 20 or devices deployed on other Aleafs, etc. Since the first L3VE interface of the first Aleaf 30 is set to down, device 20 cannot find the first Aleaf 30 for unicast traffic. Therefore, all traffic for the first dedicated line service sent to CE device 10 will be sent to the second Aleaf 40 that can be found. Through the second L3VE interface, the traffic is sent to device 20 from CE device 10 according to the first speed limit policy for the first dedicated line service, thereby ensuring the accuracy of the speed limit for the downstream traffic. In the second case, the first Aleaf 30 and the second Aleaf 40 receive broadcast traffic from a remote end. One copy of the traffic for the first dedicated line service is received by the first Aleaf 30, and another copy of the traffic for the first dedicated line service is received by the second Aleaf 40. Refer to Figure 7b In the configuration scheme shown, the first Aleaf 30 is a standby DF device, which prunes (i.e. deletes) the received traffic of the first dedicated line service, and the second Aleaf 40 receives and sends the limited traffic of the first dedicated line service to the CE device 10 according to the first speed limit strategy for the first dedicated line service, which can ensure the accurate speed limit of the downstream traffic.

[0175] Reference Figure 6 The provided method can solve the problem that the traffic of the first dedicated line service sent by the first Aleaf 30 and the second Aleaf 40 to the device 20 is not accurately limited at L3. The embodiment of the present application also provides a method that can solve the problem that the traffic of the first dedicated line service sent by the first Aleaf 30 and the second Aleaf 40 to the device 20 is not accurately limited at L2. Figure 8 is a flow chart of another method for configuring a speed limit for traffic transmission provided in an embodiment of the present application. Figure 9a is a structural diagram of another dedicated line network for traffic transmission provided in an embodiment of the present application, Figure 9b is a schematic diagram of a networking example of traffic transmission provided in an embodiment of the present application, Figure 8 The provided method can be applied in Figure 9a and Figure 9b Provide dedicated line networking to achieve traffic speed limit, Figure 8In the provided method, corresponding to the above example, the CE device 10 is deployed on the user side, the fourth communication device is a device 20 deployed on the network side, such as a PE 3, the first communication device is PE 1 deployed on the first Aleaf 30, hereinafter referred to as the first Aleaf 30, and the third communication device is PE 2 deployed on the second Aleaf 40, hereinafter referred to as the second Aleaf 40. Figure 8 The method shown is described by taking the example that when establishing a network, the first Aleaf 30 and the second Aleaf 40 are connected to EVPN, and traffic is transmitted with the device 20 through the Layer 2 dedicated line L2. Usually, L2 adopts the EVPN single-active mode, and the CE device 10 and the device 20 establish a dedicated line service carrying EVPN through the first Aleaf 30 and the second Aleaf 40. Figure 9a and Figure 9b As shown, the first dedicated line interface of the first Aleaf 30 and the second dedicated line interface of the second Aleaf 40 are both VE interfaces.

[0176] like Figure 8 As shown, the method includes:

[0177] S401 : The first Aleaf 30 and the second Aleaf 40 establish BGP EVPN neighbors with the device 20 respectively.

[0178] Furthermore, PE 1 of the first Aleaf 30 and PE 2 of the second Aleaf 40 access EVPN with the remote PE 3, and EVPN is configured as evpna, so that when PE 3 sends the traffic of the first dedicated line service to the CE device 10 through PE 1 of the first Aleaf 30 and PE 2 of the second Aleaf 40, the traffic of the first dedicated line service can be sent through at least one channel from the remote end to PE 1 and PE 2.

[0179] S402: The CE device 10 is connected to the first Aleaf 30 and the second Aleaf 40 in a trunk manner.

[0180] S403: The first Aleaf 30 and the second Aleaf 40 deploy VE interfaces, the first Aleaf 30 and the second Aleaf 40 are configured with the same ESI, and the operation mode is the single-active mode.

[0181] The first dedicated line interface of the first Aleaf 30 is deployed to include a first L3VE interface and a first L2VE interface, the second dedicated line interface of the second Aleaf 40 is deployed to include a second L3VE interface and a second L2VE interface, the first L3VE interface and the first L2VE interface are internally looped back, and the second L3VE interface and the second L2VE interface are internally looped back.

[0182] Furthermore, the same ESI is configured for the first L3VE interface and the second L3VE interface, such as 333, and the operating mode of the ES identified therein is the single active mode.

[0183] In some practical application scenarios, the first Aleaf 30 may include a first L3VE interface and a first L2VE interface for transmitting a first dedicated line service, and other sub-interfaces for non-dedicated line services, such as a sub-interface for a broadband service. When the first L3VE interface is configured in a single-active mode, other non-dedicated line services can access the first Aleaf 30 and the second Aleaf 40 based on the dual-home and dual-active mode of the CE device 10, and use the dual-home and dual-active mode normally to transmit traffic.

[0184] S404: Bind the first L2VE interface of the first Aleaf 30 and the second L2VE interface of the second Aleaf 40 to a BD.

[0185] For example, the first dedicated line service is the dedicated line service of enterprise A. The CE device 10 of enterprise A is connected to the first Aleaf 30 and the second Aleaf 40, and the first AC interface and the second AC interface belong to the same BD. The BD and EVPN are configured so that the first AC interface, the second AC interface, the first L2VE interface and the second L2VE interface belong to the same BD.

[0186] Furthermore, the user (Enterprise A) of the Layer 2 private line in the network is assigned two VPNs, Layer 2 EVPN VPLS, refer to Figure 9b In the example, BD and the corresponding L2 EVPN VPLS are configured, that is, the first Aleaf 30 configures the L2 EVPN VPLS as evpnb, and the second Aleaf 40 configures the L2 EVPN VPLS as evpnb. Correspondingly, the first L2VE interface and the second L2VE interface are bound to the BD. This is equivalent to establishing an EVPN channel between the CE device 10 and the first Aleaf 30 and the second Aleaf 40, so that when the CE device 10 sends the traffic of the first dedicated line service to the remote PE 3 through the PE 1 of the first Aleaf 30 and the PE 2 of the second Aleaf 40, the traffic of the first dedicated line service can be sent through at least one of the channels to PE 1 and PE 2.

[0187] S405. The first L3VE interface of the first Aleaf 30 and the second L3VE interface of the second Aleaf 40 are connected to the EVPN.

[0188] For example, the first L3VE interface and the second L3VE interface access EVPN VPLS or Virtual Private Wire Service (VPWS).

[0189] Furthermore, the first L2VE interface and the second L2VE interface can carry the first dedicated line service through EVPN, and the first L3VE interface and the second L3VE interface can also carry the first dedicated line service through EVPN. For example, the first dedicated line service can be carried through an EVPN service framework such as EVPN VPWS or EVPNVPLS.

[0190] S406. The state of the second L2VE interface of the second Aleaf 40 is set to UP, and a first rate limiting policy for the first dedicated line service is configured on the second L2VE interface.

[0191] S407: In response to the second L2VE interface being in an UP state, the second Aleaf 40 sets the second L3VE interface to be in an UP state.

[0192] Further, the state setting of the first L2VE interface of the second Aleaf 40 may be implemented by tracking the DF state of the second AC interface or tracking the E-Trunk state setting of the second AC interface with reference to the above example.

[0193] S408: The first Aleaf 30 sets the state of the first L2VE interface to down.

[0194] S409: In response to the first L2VE interface being in a down state, the first Aleaf 30 sets the first L3VE interface to be down.

[0195] Further, the state setting of the first L2VE interface of the first Aleaf 30 may be implemented by tracking the DF state of the first AC interface or tracking the E-Trunk state setting of the first AC interface with reference to the above example.

[0196] Based on the configuration of the first Aleaf 30 and the second Aleaf 40 in steps S401 to S409, refer to Figure 9a and Figure 9bIn the provided networking, in one possible implementation, the CE device 10 transmits a first dedicated line service and sends a total of 100M of traffic of the first dedicated line service. Since the CE device 10 is bundled with the first Aleaf 30 and the second Aleaf 40, the traffic of the first dedicated line service is shared by the first Aleaf 30 and the second Aleaf 40 and transmitted to the device 20. Taking an example to illustrate, the traffic of the first dedicated line service sent by the CE device 10, the configured RT, matches the EVPN channel configured as evpnb, wherein 30M of the first traffic is received by the first ALeaf 30, and 70M of the third traffic is received by the second Aleaf 40. When the 30M of the first traffic reaches the first Aleaf 30, it is found that the first L2VE is down. Since the EVPN VPLS of L2 of the first Aleaf 30 is configured as evpnb, the EVPN VPLS of L2 of the second Aleaf 40 is also configured as evpnb, the first Aleaf 30 can forward the 30M of the first traffic to the second L2VE interface of the second Aleaf 40 through the first L2VE interface. When the second Aleaf 40 sends the first traffic and the third traffic to the device 20 through the second L3VE interface according to the first rate limit policy for the first dedicated line service, the configured RT matches the EVPN channel configured as evpnb, and can successfully send the traffic of the first dedicated line service to PE 3, ensuring that the traffic arrives correctly and the rate limit is accurate.

[0197] Based on the configuration of the first Aleaf 30 and the second Aleaf 40 in steps S401 to S409, refer to Figure 9a and Figure 9b The network provided is illustrated by two cases. For example, PE 3 needs to send traffic for the first dedicated line service to CE device 10. In the first case, a single-active route is announced between PEs. PE 3 can select one from PE 1 of the first Aleaf 30 or PE 2 of the second Aleaf 40 (refer to PE 1 and PE 2). Figure 8 In the second case, the single-active route is not announced between PEs. PE 3 can determine the PE with the L3VE interface set to UP from the status of the L3VE interface as the next-hop route for forwarding. For example, in the example of this embodiment, PE 3 can determine PE 2 and send the traffic of the first dedicated line service to the CE device. Figure 8 The configuration is equivalent to sending the traffic of the first dedicated line service to the CE device 10 through the second L3VE interface that has been configured with the speed limit policy, which can achieve accurate speed limit of the downstream traffic.

[0198] Based on the above examples, the various traffic forwarding methods provided in the embodiments of the present application can effectively solve the problem of inaccurate traffic speed limiting when dedicated line services are transmitted on dedicated lines, and can ensure the accuracy of dedicated line traffic speed limiting.

[0199] Fig.10 It is a structural diagram of a first communication device provided in an embodiment of the present application. The first communication device 50 includes: a processing module 501, a receiving module 502 and a sending module 503.

[0200] The processing module 501 is used to set the state of a first dedicated line interface of a first communication device to down, where the first dedicated line interface is used to transmit a first dedicated line service.

[0201] The receiving module 502 is configured to receive, through a first AC interface, first traffic of a first dedicated line service sent by a second communication device.

[0202] The sending module 503 is used to send the first traffic to the third communication device.

[0203] Among them, the second dedicated line interface of the third communication device is configured with a first speed limit strategy for the first dedicated line service, the second dedicated line interface is used to transmit the first dedicated line service, the second communication device is multi-home and multi-active to connect the first communication device and the third communication device, and the first communication device is connected to the second communication device through the first AC interface, and the third communication device is connected to the second communication device through the second AC interface, and the first AC interface, the second AC interface, the first dedicated line interface and the second dedicated line interface belong to the same BD.

[0204] In a possible implementation, the processing module 501 is specifically configured to track the DF status of the first AC interface on the first dedicated line interface, the DF status of the first AC interface, and set the status of the first dedicated line interface to down.

[0205] For example, the processing module 501 is specifically configured to set the state of the first dedicated line interface to down in response to the DF state of the first AC interface being a standby DF; or, in response to the DF state of the first AC interface being an active DF, set the state of the first dedicated line interface to down.

[0206] In a possible implementation, the processing module 501 is specifically configured to track the E-Trunk state of the first AC interface on the first dedicated line interface, and set the state of the first dedicated line interface to down according to the E-Trunk state of the first AC interface.

[0207] For example, the processing module 501 is specifically configured to, in response to the E-Trunk state of the first AC interface being a standby E-Trunk, set the state of the first dedicated line interface to down; or, in response to the E-Trunk state of the first AC interface being an active E-Trunk, set the state of the first dedicated line interface to down.

[0208] In a possible implementation, the first dedicated line interface and the second dedicated line interface are both vbdif, and the first dedicated line interface and the second dedicated line interface are configured with the same IP address and MAC address.

[0209] In a possible implementation, the first dedicated line interface and the second dedicated line interface are both VE interfaces, wherein the first dedicated line interface includes a first L3VE interface and a first L2VE interface, and the second dedicated line interface includes a second L3VE interface and a second L2VE interface.

[0210] In a possible implementation, the first dedicated line interface and the second dedicated line interface are both VE interfaces, wherein the first dedicated line interface includes a first L3VE interface and a first L2VE interface, and the second dedicated line interface includes a second L3VE interface and a second L2VE interface. The processing module 501 is specifically configured to set the state of the first L2VE interface to down according to the DF state of the first AC interface; and in response to the state of the first L2VE interface being down, set the state of the first L3VE interface to down.

[0211] In a possible implementation, the first dedicated line interface and the second dedicated line interface are both VE interfaces, wherein the first dedicated line interface includes a first L3VE interface and a first L2VE interface, and the second dedicated line interface includes a second L3VE interface and a second L2VE interface. The processing module 501 is specifically configured to set the state of the first L2VE interface to down according to the E-Trunk state of the first AC interface; and in response to the state of the first L2VE interface being down, set the state of the first L3VE interface to down.

[0212] In a possible implementation, the first L3VE interface and the second L3VE interface are configured with the same IP address and MAC address, and the sending module 503 is specifically configured to send the first traffic to the second L2VE interface through the first L2VE interface.

[0213] In a possible implementation manner, the first dedicated line interface accesses L3VPN or EVPN.

[0214] In one possible implementation, the first L2VE interface and the second L2VE interface carry the first dedicated line service through EVPN, and the first L3VE interface and the second L3VE interface carry the first dedicated line service through EVPN. The same ESI is configured on the first L3VE interface and the second L3VE interface, and the operating mode of the ES identified by the ESI is the single-active mode.

[0215] In one possible implementation, the receiving module 502 is also used to receive the second traffic of the second dedicated line service through the third dedicated line interface; the sending module 503 is also used to respond to the status of the third dedicated line interface being normal UP, and according to the second speed limiting strategy for the second dedicated line service configured on the third dedicated line interface, to limit the traffic when sending the second traffic to the fourth communication device through the third dedicated line interface.

[0216] In a possible implementation, the processing module 501 is specifically configured to track the DF state of the first AC interface and the DF state of the first AC interface on the third dedicated line interface, and set the state of the third dedicated line interface to UP.

[0217] For example, the processing module 501 is specifically configured to set the state of the third dedicated line interface to UP in response to the DF state of the first AC interface being the standby DF; or, in response to the DF state of the first AC interface being the active DF, set the state of the third dedicated line interface to UP.

[0218] In a possible implementation, the processing module 501 is specifically configured to track the E-Trunk state of the first AC interface on the third dedicated line interface, and set the state of the third dedicated line interface to UP according to the E-Trunk state of the first AC interface.

[0219] For example, the processing module 501 is specifically configured to, in response to the E-Trunk state of the first AC interface being a standby E-Trunk, set the state of the third dedicated line interface to UP; or, in response to the E-Trunk state of the first AC interface being an active E-Trunk, set the state of the third dedicated line interface to UP.

[0220] It should be understood that Fig.10 The modules shown are only examples. The processing module 501, the receiving module 502 and the sending module 503 can refer to the method part in the embodiment of the present application to perform their operations, or perform variations of their operations. For example, the first communication device 50 can be applied to Figure 1 - In the scenario provided in FIG. 9 , the first communication device or the first Aleaf 30 performs its operation, or performs a variation of its operation. The structure of the third communication device refers to the first communication device, and can refer to the method part in the embodiment of the present application to perform its operation, or perform a variation of its operation, such as the third communication device can be applied Figure 1- In the scenario provided in FIG. 9 , the operation is performed as a third communication device or a second Aleaf 40 .

[0221] In addition, the present application embodiment also provides a communication device 60, see Fig.11 As shown, Fig.11: is a structural diagram of a communication device 60 provided in an embodiment of the present application. The communication device 60 includes a processor 601 and a memory 602. The processor 601 can be a central processing unit (CPU), a network processor (NP) or a combination of a CPU and a NP, and is used to execute the forwarding processing related steps in the device exemplified in the above embodiment. The processor can also be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above-mentioned PLD can be a complex programmable logic device (CPLD), a field programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof. The processor 601 can refer to one processor or include multiple processors. The memory 602 may include a volatile memory, such as a random access memory (RAM); the memory may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD); the memory 602 may also include a combination of the above-mentioned types of memories. The memory 602 may refer to a memory, or may include multiple memories for storing program instructions. In one embodiment, the memory 602 stores computer-readable instructions, and the computer-readable instructions include multiple software modules, such as a sending module, a processing module and a receiving module. After executing each software module, the processor 601 may perform corresponding operations according to the instructions of each software module. In this embodiment, the operation performed by the software module actually refers to the operation performed by the processor 601 according to the instructions of the software module. Optionally, the processor 601 may also store program codes or instructions for executing the embodiments of the present application. In this case, the processor 601 does not need to read the program codes or instructions from the memory 602.

[0222] The communication device 60 can be used to execute the method in the above embodiment. Figure 1In the traffic transmission scenario provided in Figure 9, the communication device 60 can execute the operations performed by the third communication device or the first Aleaf 30 in methods S101 to S103, S104 to S105, S201 to S206, S301 to S309, and S401 to S409, or the communication device 60 can execute the operations performed by the third communication device or the second Aleaf 40 in methods S101 to S103, S104 to S105, S201 to S206, S301 to S309, and S401 to S409.

[0223] An embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When the computer-readable storage medium is executed on a processor, part or all of the operations in any of the methods in any of the aforementioned embodiments are implemented.

[0224] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed on a processor, implements part or all of the operations in any of the methods in any of the aforementioned embodiments.

[0225] In a specific implementation, the communication device of the embodiment of the present application can be a network device such as a router or a switch, or a component on each network device for performing related operations, such as a line card or an interface board, or a chip for performing related operations. When the communication device is a chip, the chip includes: an interface circuit and a processing circuit. The interface circuit is connected to the processing circuit, and the processing circuit and the interface circuit are used to enable the chip to perform some or all of the operations included in any of the aforementioned methods and any possible implementation of any of the aforementioned aspects.

[0226] The present application also provides a communication system, which can be applied in Figure 1 In the method shown in FIG. 9 , the structure of the system can refer to Figure 1 5, 7 and 9, comprising: a first communication device, a second communication device and a third communication device, the second communication device being multi-homed connected to the first communication device and the third communication device in an active-active mode, and the first communication device being connected to the second communication device via a first AC interface, and the third communication device being connected to the second communication device via a second AC interface, the first AC interface, the second AC interface, the first dedicated line interface of the first communication device and the second dedicated line interface of the third communication device belonging to the same BD, wherein,

[0227] The first communication device is used to: set the state of the first dedicated line interface to down, the first dedicated line interface is used to transmit the first dedicated line service; receive the first traffic of the first dedicated line service sent by the second communication device through the first AC interface; and send the first traffic to the third communication device through the first dedicated line interface.

[0228] The second communication device is used to: send the first traffic to the first communication device through the first AC interface; and send the third traffic of the first dedicated line service to the third communication device through the second AC interface.

[0229] The third communication device is used to: receive the first traffic sent by the first communication device through the second dedicated line interface, and receive the third traffic of the first dedicated line service sent by the second communication device through the second AC interface, wherein the third communication device is connected to the second communication device through the second AC interface; configure the first speed limit policy for the first dedicated line service on the second dedicated line interface, and send the first traffic and the third traffic through the second dedicated line interface.

[0230] In a possible implementation manner, the first communication device tracks the designated forwarder DF state of the first AC interface on the first dedicated line interface, and sets the state of the first dedicated line interface to down according to the DF state of the first AC interface.

[0231] In one possible implementation, in response to the DF status of the first AC interface being a standby DF, the first communication device sets the status of the first dedicated line interface to down; or, in response to the DF status of the first AC interface being an active DF, sets the status of the first dedicated line interface to down.

[0232] In a possible implementation, the first communication device tracks the inter-device link aggregation E-Trunk state of the first AC interface on the first dedicated line interface, and sets the state of the first dedicated line interface to down according to the E-Trunk state of the first AC interface.

[0233] In one possible implementation, in response to the E-Trunk state of the first AC interface being a standby E-Trunk, the first communication device sets the state of the first dedicated line interface to down; or, in response to the E-Trunk state of the first AC interface being an active E-Trunk, sets the state of the first dedicated line interface to down.

[0234] In a possible implementation, the first dedicated line interface of the first communication device and the second dedicated line interface of the third communication device are both vbdif, and the first dedicated line interface and the second dedicated line interface are configured with the same IP address and MAC address.

[0235] In a possible implementation, the first dedicated line interface and the second dedicated line interface are both virtual Ethernet VE interfaces, wherein the first dedicated line interface includes a first L3VE interface and a first L2VE interface, and the second dedicated line interface includes a second L3VE interface and a second L2VE interface.

[0236] In a possible implementation manner, the first dedicated line interface and the second dedicated line interface are both VE interfaces, wherein the first dedicated line interface includes a first L3VE interface and a first L2VE interface, and the second dedicated line interface includes a second L3VE interface and a second L2VE interface, and according to a DF state of the first AC interface, the first communication device sets the state of the first L2VE interface to down according to the DF state of the first AC interface; and in response to the state of the first L2VE interface being down, sets the state of the first L3VE interface to down.

[0237] In a possible implementation, the first dedicated line interface and the second dedicated line interface are both VE interfaces, wherein the first dedicated line interface includes a first L3VE interface and a first L2VE interface, and the second dedicated line interface includes a second L3VE interface and a second L2VE interface, and according to an E-Trunk state of the first AC interface, the first communication device sets the state of the first L2VE interface to down according to the E-Trunk state of the first AC interface; and in response to the state of the first L2VE interface being down, sets the state of the first L3VE interface to down.

[0238] In one possible implementation, the first L3VE interface and the second L3VE interface are configured with the same IP address and MAC address, the first traffic is sent to the third communication device through the first dedicated line interface, and the first communication device sends the first traffic to the second L2VE interface through the first L2VE interface.

[0239] In a possible implementation manner, the first dedicated line interface accesses L3VPN or EVPN.

[0240] In one possible implementation, the first L2VE interface and the second L2VE interface carry the first dedicated line service through EVPN, the first L3VE interface and the second L3VE interface carry the first dedicated line service through EVPN, the same ESI is configured on the first L3VE interface and the second L3VE interface, and the operating mode of the ES identified by the ESI is the single-active mode.

[0241] In a possible implementation manner, the communication system further includes a fourth communication device.

[0242] The first communication device also includes a third dedicated line interface, which is used to transmit a second dedicated line service. The method also includes: receiving second traffic of the second dedicated line service through the third dedicated line interface; in response to the status of the third dedicated line interface being normal UP, according to the second speed limit policy for the second dedicated line service configured on the third dedicated line interface, limiting the traffic speed when sending the second traffic to the fourth communication device through the third dedicated line interface.

[0243] Furthermore, the fourth communication device provided in the embodiment of the present application may be a device including a reflector.

[0244] The present application also provides a chip, including an interface circuit and a processing circuit. The interface circuit and the processing circuit are connected, and the processing circuit is used to enable the chip to perform part or all of the operations in any of the methods in any of the above embodiments.

[0245] Furthermore, the chip may be a specific implementation of a communication device included in a method for implementing any of the aforementioned aspects and any possible implementation manner of any of the aforementioned aspects, wherein the communication device includes a first communication device and a second communication device, and the communication device may be a network device such as a router or a switch, or may be a component on a network device for performing related operations, such as a line card or an interface board, or may be a chip for performing related operations, etc.

[0246] An embodiment of the present application also provides a chip system, including: a processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the chip system implements part or all of the operations of any method in any of the methods of any of the aforementioned embodiments.

[0247] Optionally, the processor in the chip system may be one or more. The processor may be implemented by hardware or by software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented by software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.

[0248] Optionally, the memory in the chip system may also be one or more. The memory may be integrated with the processor or may be separately arranged with the processor, which is not limited in the embodiments of the present application. Exemplarily, the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip or may be arranged on different chips respectively. The embodiments of the present application do not specifically limit the type of memory and the arrangement of the memory and the processor.

[0249] Exemplarily, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a CPU, a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.

[0250] The terms "first", "second", "third", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0251] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0252] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.

[0253] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for limiting the speed of traffic, characterized in that: Executed by a first communication device, the method includes: Setting the state of a first dedicated line interface of the first communication device to down, where the first dedicated line interface is used to transmit a first dedicated line service; Receiving, through the first access circuit AC interface, the first flow of the first dedicated line service sent by the second communication device; The first traffic is sent to a third communication device through the first dedicated line interface, wherein a first speed limit policy for the first dedicated line service is configured on the second dedicated line interface of the third communication device, the second dedicated line interface is used to transmit the first dedicated line service, the second communication device is multi-home and multi-active to connect the first communication device and the third communication device, and the first communication device is connected to the second communication device through the first AC interface, and the third communication device is connected to the second communication device through the second AC interface, and the first AC interface, the second AC interface, the first dedicated line interface and the second dedicated line interface belong to the same broadcast domain BD.

2. The method according to claim 1, characterized in that The step of setting the state of the first dedicated line interface of the first communication device to fault down includes: The designated forwarder DF status of the first AC interface is tracked on the first dedicated line interface, and the status of the first dedicated line interface is set to down according to the DF status of the first AC interface.

3. The method according to claim 2, characterized in that The step of setting the state of the first dedicated line interface to down according to the DF state of the first AC interface includes: In response to the DF status of the first AC interface being a standby DF, setting the status of the first dedicated line interface to down; or, In response to the DF status of the first AC interface being the active DF, the status of the first dedicated line interface is set to down.

4. The method according to claim 1, characterized in that: The step of setting the state of the first dedicated line interface of the first communication device to fault down includes: Track an inter-device link aggregation E-Trunk state of the first AC interface on the first dedicated line interface, and set the state of the first dedicated line interface to down according to the E-Trunk state of the first AC interface.

5. The method according to claim 4, characterized in that The step of setting the state of the first dedicated line interface to down according to the E-Trunk state of the first AC interface includes: In response to the E-Trunk state of the first AC interface being a standby E-Trunk, setting the state of the first dedicated line interface to down; or, In response to the E-Trunk state of the first AC interface being an active E-Trunk, the state of the first dedicated line interface is set to down.

6. The method according to any one of claims 1 to 5, characterized in that: The first dedicated line interface and the second dedicated line interface are both virtual broadcast domain interfaces vbdif, and the first dedicated line interface and the second dedicated line interface are configured with the same IP address and MAC address.

7. The method according to any one of claims 1 to 5, characterized in that: The first dedicated line interface and the second dedicated line interface are both virtual Ethernet VE interfaces, wherein the first dedicated line interface includes a first L3VE interface and a first L2VE interface, and the second dedicated line interface includes a second L3VE interface and a second L2VE interface.

8. The method according to claim 2 or 3, characterized in that: The first dedicated line interface and the second dedicated line interface are both VE interfaces, wherein the first dedicated line interface includes a first L3VE interface and a first L2VE interface, and the second dedicated line interface includes a second L3VE interface and a second L2VE interface, and setting the state of the first dedicated line interface to down according to the DF state of the first AC interface includes: According to the DF state of the first AC interface, setting the state of the first L2VE interface to down; In response to the state of the first L2VE interface being down, setting the state of the first L3VE interface to down.

9. The method according to claim 4 or 5, characterized in that: The first dedicated line interface and the second dedicated line interface are both VE interfaces, wherein the first dedicated line interface includes a first L3VE interface and a first L2VE interface, and the second dedicated line interface includes a second L3VE interface and a second L2VE interface, and setting the state of the first dedicated line interface to down according to the E-Trunk state of the first AC interface includes: According to the E-Trunk state of the first AC interface, setting the state of the first L2VE interface to down; In response to the state of the first L2VE interface being down, setting the state of the first L3VE interface to down.

10. The method according to any one of claims 7 to 9, characterized in that: The first L3VE interface and the second L3VE interface are configured with the same IP address and MAC address, and the sending the first traffic to the third communication device through the first dedicated line interface includes: The first traffic is sent to the second L2VE interface through the first L2VE interface.

11. The method according to any one of claims 1 to 10, characterized in that: The first dedicated line interface is connected to a layer 3 virtual private network L3VPN or an Ethernet virtual private network EVPN.

12. The method according to any one of claims 7 to 10, characterized in that: The first L2VE interface and the second L2VE interface carry the first dedicated line service through EVPN, the first L3VE interface and the second L3VE interface carry the first dedicated line service through EVPN, the same ESI is configured on the first L3VE interface and the second L3VE interface, and the operation mode of the Ethernet segment ES identified by the ESI is single-active mode.

13. The method according to any one of claims 1 to 12, characterized in that: The first communication device further includes a third dedicated line interface, where the third dedicated line interface is used to transmit the second dedicated line service. The method further includes: Receiving second traffic of the second dedicated line service through the third dedicated line interface; In response to the state of the third dedicated line interface being normal UP, according to the second rate limiting policy for the second dedicated line service configured on the third dedicated line interface, traffic rate limiting is performed when the second traffic is sent to the fourth communication device through the third dedicated line interface.

14. A first communication device, characterized in that: include: A processing module, configured to set the state of a first dedicated line interface of the first communication device to be down, wherein the first dedicated line interface is used to transmit a first dedicated line service; A receiving module, configured to receive, through a first access circuit AC interface, a first flow of the first dedicated line service sent by a second communication device; A sending module is used to send the first traffic to a third communication device, wherein a first speed limit policy for the first dedicated line service is configured on the second dedicated line interface of the third communication device, the second dedicated line interface is used to transmit the first dedicated line service, the second communication device is multi-home and multi-active to connect the first communication device and the third communication device, and the first communication device is connected to the second communication device through the first AC interface, and the third communication device is connected to the second communication device through the second AC interface, and the first AC interface, the second AC interface, the first dedicated line interface and the second dedicated line interface belong to the same broadcast domain BD.

15. The device according to claim 14, characterized in that The processing module is specifically configured to track the DF status of the designated forwarder of the first AC interface and the DF status of the first AC interface on the first dedicated line interface, and set the status of the first dedicated line interface to down.

16. The device according to claim 15, characterized in that The processing module is specifically configured to, in response to the DF status of the first AC interface being a standby DF, set the status of the first dedicated line interface to down; or, in response to the DF status of the first AC interface being an active DF, set the status of the first dedicated line interface to down.

17. The device according to claim 14, characterized in that The processing module is specifically configured to track the inter-device link aggregation E-Trunk state of the first AC interface on the first dedicated line interface, and set the state of the first dedicated line interface to down according to the E-Trunk state of the first AC interface.

18. The device according to claim 17, characterized in that The processing module is specifically configured to, in response to the E-Trunk state of the first AC interface being a standby E-Trunk, set the state of the first dedicated line interface to down; or, in response to the E-Trunk state of the first AC interface being an active E-Trunk, set the state of the first dedicated line interface to down.

19. The device according to any one of claims 14 to 18, characterized in that The first dedicated line interface and the second dedicated line interface are both virtual broadcast domain interfaces vbdif, and the first dedicated line interface and the second dedicated line interface are configured with the same IP address and MAC address.

20. The device according to any one of claims 14 to 18, characterized in that The first dedicated line interface and the second dedicated line interface are both virtual Ethernet VE interfaces, wherein the first dedicated line interface includes a first L3VE interface and a first L2VE interface, and the second dedicated line interface includes a second L3VE interface and a second L2VE interface.

21. The device according to claim 15 or 16, characterized in that The first dedicated line interface and the second dedicated line interface are both VE interfaces, wherein the first dedicated line interface includes a first L3VE interface and a first L2VE interface, and the second dedicated line interface includes a second L3VE interface and a second L2VE interface, The processing module is specifically configured to set the state of the first L2VE interface to down according to the DF state of the first AC interface; and in response to the state of the first L2VE interface being down, set the state of the first L3VE interface to down.

22. The device according to claim 17 or 18, characterized in that The first dedicated line interface and the second dedicated line interface are both VE interfaces, wherein the first dedicated line interface includes a first L3VE interface and a first L2VE interface, and the second dedicated line interface includes a second L3VE interface and a second L2VE interface, The processing module is specifically configured to set the state of the first L2VE interface to down according to the E-Trunk state of the first AC interface; and in response to the state of the first L2VE interface being down, set the state of the first L3VE interface to down.

23. The device according to any one of claims 20 to 22, characterized in that The first L3VE interface and the second L3VE interface are configured with the same IP address and MAC address, The sending module is specifically configured to send the first traffic to the second L2VE interface through the first L2VE interface.

24. The device according to any one of claims 14 to 23, characterized in that The first dedicated line interface is connected to a layer 3 virtual private network L3VPN or an Ethernet virtual private network EVPN.

25. The device according to any one of claims 20 to 23, characterized in that The first L2VE interface and the second L2VE interface carry the first dedicated line service through EVPN, the first L3VE interface and the second L3VE interface carry the first dedicated line service through EVPN, the same ESI is configured on the first L3VE interface and the second L3VE interface, and the operation mode of the Ethernet segment ES identified by the ESI is single-active mode.

26. The device according to any one of claims 14 to 25, characterized in that The receiving module is further configured to receive the second traffic of the second dedicated line service through the third dedicated line interface; The sending module is also used to respond to the status of the third dedicated line interface being normal UP, and according to the second speed limit strategy for the second dedicated line service configured on the third dedicated line interface, to limit the traffic speed when sending the second traffic to the fourth communication device through the third dedicated line interface.

27. A computer program product, characterized in that The computer program product includes a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 13 is implemented.

28. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 11 to 13 is implemented.

29. A communication system, characterized in that: include: A first communication device, a second communication device and a third communication device, wherein the second communication device is multi-homed to the first communication device and the third communication device in an active-active mode, and the first communication device is connected to the second communication device via a first access circuit AC interface, and the third communication device is connected to the second communication device via a second AC interface, and the first AC interface, the second AC interface, the first dedicated line interface of the first communication device and the second dedicated line interface of the third communication device belong to the same broadcast domain BD, wherein: The first communication device is used for: Setting the state of the first dedicated line interface to down, where the first dedicated line interface is used to transmit the first dedicated line service; receiving, through the first AC interface, first traffic of the first dedicated line service sent by the second communication device; Sending the first traffic to the third communication device through the first dedicated line interface; The second communication device is used for: sending the first traffic to the first communication device through the first AC interface; Sending the third traffic of the first dedicated line service to the third communication device through the second AC interface; The third communication device is used for: The first traffic sent by the first communication device is received through the second dedicated line interface, and the third traffic of the first dedicated line service sent by the second communication device is received through the second AC interface, wherein the third communication device is connected to the second communication device through the second AC interface; a first speed limit policy for the first dedicated line service is configured on the second dedicated line interface, and the first traffic and the third traffic are sent through the second dedicated line interface.