CN108270690B - Method and device for controlling message flow - Google Patents

Method and device for controlling message flow Download PDF

Info

Publication number
CN108270690B
CN108270690B CN201611263212.4A CN201611263212A CN108270690B CN 108270690 B CN108270690 B CN 108270690B CN 201611263212 A CN201611263212 A CN 201611263212A CN 108270690 B CN108270690 B CN 108270690B
Authority
CN
China
Prior art keywords
routing device
routing
target
equipment
speed limit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611263212.4A
Other languages
Chinese (zh)
Other versions
CN108270690A (en
Inventor
崔元元
车树明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Huawei Digital Technologies Co Ltd
Original Assignee
Beijing Huawei Digital Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Huawei Digital Technologies Co Ltd filed Critical Beijing Huawei Digital Technologies Co Ltd
Priority to CN201611263212.4A priority Critical patent/CN108270690B/en
Publication of CN108270690A publication Critical patent/CN108270690A/en
Application granted granted Critical
Publication of CN108270690B publication Critical patent/CN108270690B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/22Traffic shaping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/20Traffic policing

Abstract

The application discloses a method and a device for controlling message flow, which can reduce the service pressure of forwarding plane equipment. The method is performed in a communication system comprising a control plane device, a forwarding plane device and a routing device, the forwarding plane device being connected to a backbone network through at least one routing device, the method comprising: the control surface equipment determines speed limit information, wherein the speed limit information is used for indicating the upper limit of the flow to be controlled of a target message, and the target message is a message which is sent by a backbone network and needs to be forwarded to user equipment; the control plane device sends the speed limit information to the at least one routing device, so that the first routing device in the at least one routing device performs flow control on the target message according to the speed limit information, and the flow of the target message is not higher than the upper limit of the flow.

Description

Method and device for controlling message flow
Technical Field
The present application relates to the field of message processing, and more particularly, to a method and an apparatus for controlling message traffic.
Background
The separation scene of the control plane and the forwarding plane is mainly applied to the TIC network architecture of the China Mobile. The control plane mainly refers to a part used for transmitting instructions and calculating table entries in the system. Such as forwarding of protocol packets, protocol table entry calculation, maintenance, etc. The forwarding plane refers to a part of the system where data packets are encapsulated and forwarded. Such as receiving, decapsulating, encapsulating, forwarding, etc., of data packets. A good system design should be that the control plane and the forwarding plane are separated as much as possible without affecting each other. When the control plane of the system fails temporarily, the forwarding plane can continue to work, so that the reliability of the whole network can be improved.
A Broadband Remote Access Server (BRAS) User Plane (User Plane, UP) in the TIC Edge network is a forwarding Plane device, and implements configuration of a physical interface, configuration management of a network side service, forwarding of BRAS User service traffic, and uploading of a protocol message. The BRAS CP in the TIC Core is a Cloud BRAS, which is a control plane device, manages a plurality of BRAS UPs, and realizes uniform configuration of BRAS services, uniform management of users, and uniform allocation of resources.
In the prior art, a user successfully gets online from a BRAS UP device, a BRAS CP generates a user forwarding table (e.g., a user table and a speed limit table), and issues the user forwarding table to the BRAS UP through an open flow (Openflow) channel, so that the BRAS UP forwards a service traffic and limits the speed of the user.
At present, all user speed limit is carried out on BRAS UP equipment, so that the service pressure of the BRAS UP equipment is relatively large.
Disclosure of Invention
The application provides a method and a device for controlling message flow, which can reduce the service pressure of forwarding plane equipment.
In a first aspect, the present application provides a method for controlling packet traffic, performed in a communication system including a control plane device, a forwarding plane device, and at least one routing device, where the forwarding plane device is capable of being connected to a backbone network through at least one first routing device of the at least one routing device, the method including: the control surface equipment determines speed limit information, wherein the speed limit information is used for indicating the upper limit of the flow to be controlled of a target message, and the target message is a message sent to the user equipment from the backbone network; the control surface device sends the speed limit information to a target first routing device in the at least one first routing device, so that the target first routing device can control the flow of the target message according to the speed limit information, and the flow of the target message is not higher than the upper limit of the flow.
In one possible implementation, the at least one first routing device includes a primary routing device and a backup routing device.
In one possible implementation manner, before the control plane device sends the speed limit information to the target first routing device of the at least one first routing device, the method includes: the control plane device determines a target first routing device from the main routing device and the standby routing device according to the working state of the main routing device.
In one possible implementation manner, the determining, by the control plane device, a target first routing device from the main routing device and the standby routing device according to the working state of the main routing device includes: when the working state of the main routing equipment is a normal state, the control surface equipment determines the main routing equipment as target first routing equipment; and when the working state of the main routing equipment is a fault state, the control surface equipment determines the standby routing equipment as the target first routing equipment.
In one possible implementation manner, before the control plane device sends the speed limit information to the target first routing device of the at least one first routing device, the method further includes: the control plane equipment acquires first information, wherein the first information is used for indicating a network topology structure between the forwarding plane equipment and the at least one routing equipment; the control plane device determines the at least one first routing device from the at least one routing device according to a network topology.
In a second aspect, the present application provides a method for controlling packet traffic, performed in a communication system including a control plane device, a forwarding plane device and at least one routing device, the forwarding plane device being connectable to a backbone network through at least one first routing device of the at least one routing device, the method including: a target first routing device in the at least one first routing device receives speed limit information sent by a control surface device, wherein the speed limit information is used for indicating an upper flow limit required to be controlled by a target message, and the target message is a message sent to a user device from a backbone network; and the target first routing equipment performs flow control on the target message according to the speed limit information.
In one possible implementation, the at least one first routing device includes a primary routing device and a backup routing device.
In one possible implementation, the target first routing device is determined by the control plane device from the main routing device and the standby routing device according to the working state of the main routing device.
In a possible implementation manner, when the working state of the main routing device is a normal state, the target first routing device is the main routing device; or, when the working state of the main routing device is the fault state, the target first routing device is the standby routing device.
In a possible implementation manner, the at least one first routing device is determined by the control plane device from the at least one routing device according to first information, where the first information is used to indicate a network topology between the forwarding plane device and the at least one routing device.
In this embodiment of the present application, the target first routing device limits the speed of the target packet, and may be configured to send speed limit information to the target first routing device by a control plane device (or a forwarding plane device), where the speed limit information is used to indicate an upper limit that the flow of the target packet can reach. Therefore, the target first routing equipment carries out speed limit processing on the target message according to the speed limit information.
In a third aspect, the present application provides an apparatus for controlling packet traffic, configured to execute the method in the first aspect or any possible implementation manner of the first aspect. In particular, the apparatus comprises means for performing the method of the first aspect or any possible implementation manner of the first aspect.
In a fourth aspect, the present application provides an apparatus for controlling packet traffic, configured to execute the method in the second aspect or any possible implementation manner of the second aspect. In particular, the apparatus comprises means for performing the method of the second aspect or any possible implementation of the second aspect.
In a fifth aspect, the present application provides an apparatus for controlling message traffic, the apparatus including a processor and a memory. The memory is used for storing the computer program, and the processor is used for calling and running the computer program from the memory. When the program is run, the processor performs the method of the first aspect described above or any possible implementation of the first aspect.
In a sixth aspect, the present application provides an apparatus for controlling message traffic, including a processor and a memory. The memory is used for storing the computer program, and the processor is used for calling and running the computer program from the memory. When the program is run, the processor performs the method of the second aspect described above or any possible implementation of the second aspect.
In a seventh aspect, the present application provides a computer-readable medium for storing a computer program comprising instructions for performing the method of the first aspect or any possible implementation manner of the first aspect.
In an eighth aspect, the present application provides a computer readable medium for storing a computer program comprising instructions for performing the method of the second aspect or any possible implementation of the second aspect.
In this embodiment, after determining the speed limit information of a message (i.e., a target message) sent from the backbone network to the user equipment, the control plane device sends the speed limit information to a target first routing device in at least one first routing device connected to the forwarding plane device, so that the target first routing device performs flow control (or speed limit) on the target message. By the method for controlling the flow, the flow control of the backhaul message is not centralized on the forwarding plane equipment any more, so that the service pressure of the forwarding plane equipment can be reduced.
Drawings
Fig. 1 is a scenario diagram of control forwarding separation.
Fig. 2 is an interaction diagram of a method 200 for controlling packet traffic according to an embodiment of the present application.
Fig. 3 shows a network topology of forwarding plane devices and routing devices.
Fig. 4 shows another network topology of forwarding plane devices and routing devices.
Fig. 5 shows yet another network topology of forwarding plane devices and routing devices.
Fig. 6 is a schematic diagram of an apparatus 400 for controlling packet traffic according to an embodiment of the present application.
Fig. 7 is a schematic diagram of an apparatus 500 for controlling packet traffic according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of a device 600 for controlling packet traffic according to an embodiment of the present application.
Fig. 9 is a schematic structural diagram of a device 700 for controlling packet traffic according to an embodiment of the present application.
Detailed Description
The technical solutions of the embodiments of the present application will be described below with reference to the accompanying drawings.
First, a brief description will be made of related concepts related to the embodiments of the present application.
User committed access rate: when a user is on line and is accessed as a single user, each on-line user applies for independent Committed Access Rate (CAR) resources, and only the user is subjected to CAR speed limit.
BGP Flow Specification: the traditional traffic filtering policy is generally configured in a static manner, and can only be applied locally, and cannot be transmitted across routers. A type of Flow Specification is defined in Request For Comments (RFC) document RFC5575, and a new Border Gateway Protocol (BGP) network layer reachability information type and extended community attributes are extended. The BGP protocol is used for publishing the matching rule of flow filtration and the action executed after flow matching, so that the flow matching rule and the flow behavior can be published to the remote router, and the flow matching rule and the flow behavior are applied to the remote router, thereby eliminating or relieving the influence of attack flow on the network forwarding performance.
Fig. 1 shows a scenario for controlling the forwarding separation. As shown in fig. 1, a Broadband Remote Access Server User Plane (BRAS UP) in a Telecommunication Infrastructure Cloud Edge node (TIC) Edge is a physical device of a forwarding Plane, and implements configuration of a physical interface, configuration management of a network side service, forwarding of BRAS User service traffic, and uploading of a protocol packet. A Control Plane (CP) in the TIC Core is a Cloud BRAS, which is a Control Plane device, and manages a plurality of BRAS UPs, thereby implementing uniform configuration of BRAS services, uniform management of users, and uniform allocation of resources. The Configuration and management of the UP by the CP are realized by establishing a Virtual eXtensible Local Area Network (VXLAN) tunnel, an OpenFlow (OpenFlow) and a Network Configuration (NetConf) channel between the UP and the CP.
1. An OpenFlow channel is established between the BRAS CP and the BRAS UP, and the following functions are completed:
(1) the forwarding table item of the load bearing user is issued;
(2) carrying flow statistics and other forwarding plane messages are sent upwards;
(3) and reporting BRAS UP equipment resources such as interfaces, board cards and the like.
2. And the synchronization of resource information such as command lines and the like is completed between the BRAS CP and the BRAS UP through a NetConf protocol.
3. The dialing message is sent to the BRAS CP through the VxLAN tunnel for processing, and is forwarded to the user through the VxLAN tunnel by the BRAS UP when being issued.
4. All BAS interfaces on the BRAS UP are mapped to the BRAS CP equipment, and the BRAS CP completes service configuration, inquiry and management of the BAS interfaces on the BRAS UP in a four-dimensional interface mode.
5. And the BRAS CP generates a user forwarding table item, and the user forwarding table item is issued to the BRAS UP through an OpenFlow channel, and the UP realizes the forwarding of the service flow.
6. The BRAS CP centrally handles authentication.
(1) The BRAS CP is connected with a Remote Authentication Dial In User Service (RADIUS) server and a Dynamic Host Configuration Protocol (DHCP) server, and centrally processes Authentication, authorization and charging requests of all users.
(2) The domain is uniformly configured on the BRAS CP, and simultaneously takes effect on all BRAS UP;
(3) when the RADIUS server is in interface connection, the carried part is related to the access interface name, such as a Network Attached Storage interface (NAS-PORT) format and an NAS-PORT-ID format, and supports a four-dimensional interface.
Fig. 2 is an interaction diagram of a method 200 for controlling packet traffic according to an embodiment of the present application. Wherein the method 200 is performed in a communication system comprising a control plane device, a forwarding plane device and at least one routing device, the forwarding plane device being connectable to the backbone network via at least one first routing device of the at least one routing device. As shown in FIG. 2, the method 200 generally includes steps 210 and 230.
210. The control plane device determines the speed limit information.
The speed limit information is used for indicating the upper limit of the flow to be controlled of a target message, and the target message is sent to the user equipment from the backbone network.
It will be appreciated that there are two directions in which messages are transmitted in the network. One direction is the need sent by the user equipment to be forwarded to the backbone network via the forwarding plane equipment and the routing equipment. The other direction is the direction that needs to be sent by the backbone network to the user equipment via the routing equipment and the forwarding plane equipment. The target message in the embodiment of the present application refers to a message sent from the backbone network to the user equipment. Therefore, the target packet may also be referred to as a backhaul packet.
In addition, the flow control of the backhaul message means that the speed of the backhaul message is limited.
220. The control surface device sends the speed limit information to a target first routing device in the at least one first routing device, so that the target first routing device can control the flow of the target message according to the speed limit information, and the flow of the target message is not higher than the upper limit of the flow. And the target first routing equipment receives the speed limit information sent by the control plane equipment.
In this embodiment, after determining the speed limit information of the backhaul packet sent from the backbone network to the user equipment, the control plane device sends the speed limit information to a target first routing device in at least one first routing device connected to the forwarding plane device, so that the target first routing device performs flow control (or speed limit) on the backhaul packet according to the speed limit information. Therefore, the problem that in the prior art, the service pressure of the forwarding plane equipment is too high due to the fact that the speed limit processing of the backhaul message is totally concentrated on the forwarding plane equipment can be solved. The service pressure of the forwarding plane equipment can be reduced.
Specifically, the first routing device in the embodiment of the present application includes various situations based on a network topology between the forwarding plane device and at least one routing device included in the communication system.
Optionally, as an embodiment, the at least one first routing device includes a primary routing device and a standby routing device.
It should be understood that the main routing device and the standby routing device are used as a set of routing devices, and the standby routing device is used as a standby routing device and does not function when the main routing device is in normal operation. And when the main routing equipment fails, the standby routing equipment takes over the work of the main routing equipment.
Optionally, as an embodiment, before the control plane device sends the speed limit information to the target first routing device in the at least one first routing device, the method includes:
the control plane device determines a target first routing device from the main routing device and the standby routing device according to the working state of the main routing device.
More specifically, as an embodiment, the determining, by the control plane device, a target first routing device from the main routing device and the standby routing device according to the operating state of the main routing device includes:
when the working state of the main routing equipment is a normal state, the control surface equipment determines the main routing equipment as target first routing equipment;
and when the working state of the main routing equipment is a fault state, the control surface equipment determines the standby routing equipment as the target first routing equipment.
It can be understood that, if the forwarding plane device is connected to a main routing device and a standby routing device of the main routing device, when the control plane device determines the target first routing device, the main routing device may be selected as the target first routing device or the standby routing device may be selected as the target first routing device according to the working state of the main routing device.
Specifically, when the main routing device works normally, the backhaul message sent from the backbone network to the user device passes through the main routing device, so that the control plane device determines the main routing device as the target first routing device, that is, the main routing device controls the flow of the backhaul message according to the speed limit information. At this time, the target first routing device is specifically a master routing device. When the main routing equipment fails, the standby routing equipment takes over the work of the main routing equipment, and the return message sent from the backbone network to the user equipment passes through the standby routing equipment, so that the control surface equipment determines the standby routing equipment as the target first routing equipment, and the standby routing equipment controls the flow of the return message according to the speed limit information. At this time, the target first routing device is specifically a standby routing device.
Alternatively, when the control plane device determines that the forwarding plane device and the main routing device are connected with the standby routing device, the control plane device may send the speed limit information to the main routing device and the standby routing device. Alternatively, the control plane device may send the speed limit information according to the operating state of the main routing device. For example, if the control plane device determines that the operating state of the main routing device is a normal state, the control plane device transmits only the speed limit information to the main routing device. And if the control surface equipment determines that the working state of the main routing equipment is a fault state, the control surface equipment only sends the speed limit information to the standby routing equipment.
Optionally, as an embodiment, before the control plane device sends the speed limit information to the target first routing device in the at least one first routing device, the method further includes:
the control plane equipment acquires first information, wherein the first information is used for indicating a network topology structure between the forwarding plane equipment and the at least one routing equipment;
the control plane device determines the at least one first routing device from the at least one routing device according to the network topology.
Specifically, the control plane device may determine the at least first routing device connected to the forwarding plane device by obtaining information of network topologies (i.e., networking conditions of the forwarding plane device and the routing device) of the forwarding plane device and the at least one routing device. And further, sending the speed limit information to a target first routing device in the at least one routing device.
Specifically, the network topology of the forwarding plane device and at least one routing device included in the communication system includes the following three cases.
Case 1
The forwarding plane device is connected with a plurality of routing devices.
In this embodiment, the communication system includes a plurality of routing devices, and the forwarding plane device is connected to a plurality of routing devices in the plurality of routing devices, and the control plane device determines that the forwarding plane device performs flow control on the target packet.
Fig. 3 shows a network topology of forwarding plane devices and routing devices. As shown in fig. 3, for example, the forwarding plane device BRAS UP #1 is mounted on the routing devices CR #1, CR #2, and CR # 3. For the return message flowing through the BRAS UP #1, the control plane equipment determines that the speed of the return message is limited by the BRAS UP # 1. For another example, the forwarding plane device BRAS UP #2 is mounted on the routing devices CR #1 and CR # 2. For the backhaul message flowing through BRAS UP #2, the control plane equipment determines that the speed of the backhaul message is limited by BRAS UP # 2.
Unlike previous forwarding plane devices that connect one master and one standby routing device, BRAS UP #2 shown in fig. 3 is connected with two routing devices CR #1 and CR #2, but CR #1 and CR #2 are not a set of master and standby routing devices (i.e., CR #1 and CR #2 are independent of each other). Therefore, the backhaul message flowing through BRAS UP #2 is controlled by BRAS UP # 2.
In this embodiment of the present application, if one forwarding plane device is mounted on multiple routing devices, in this case, since the multiple routing devices can share the load, the speed of the backhaul packet can be limited on the forwarding plane device. The specific speed limiting process may be the same as the prior art and will not be described in detail here.
It should be noted that the plurality of routing devices described herein includes two or more routing devices. In the case of two routing devices, the two routing devices should be independent of each other, rather than a relationship between the master and backup routing devices.
Case 2
The forwarding plane device is connected to one of the at least one routing device.
Fig. 4 shows another network topology of forwarding plane devices and routing devices. As shown in fig. 4, the forwarding plane device BRAS UP #1 is mounted on the routing device CR # 1. Under the network topology, the control plane equipment BRAS CP determines that the flow control is performed on the backhaul message by CR # 1.
That is, if one forwarding plane device is mounted on only one routing device (hereinafter, referred to as routing device #1), in this case, since the packets of all the users who are on line from the forwarding plane device are forwarded through the routing device #1, the control plane device determines that the speed of the backhaul packet is limited by the routing device # 1.
Case 3
The forwarding plane device is connected with a group of main and standby route devices.
Fig. 5 shows yet another network topology of forwarding plane devices and routing devices. As shown in fig. 5, the forwarding plane device BRAS UP #1 is mounted on two routing devices, respectively. And one of the two routing devices is a main routing device, and the other one is a standby routing device. When the main routing equipment works normally, the return message passes through the main routing equipment. When the main routing equipment fails, the backhaul message passes through the standby routing equipment. Under the network topology structure, correspondingly, when the main routing equipment works normally, the control plane equipment BRAS CP determines that the main routing equipment controls the flow of the backhaul message. When the main routing equipment fails, the BRAS CP determines that the standby routing equipment performs flow control on the return message.
In summary, the control plane device may determine, according to the network topology structure of the forwarding plane device and the routing device, to limit the speed of the backhaul packet at the user side (i.e., the forwarding plane device) or the network side (e.g., the CR).
In summary, the control plane device determines the position for limiting the speed of the user backhaul traffic according to the network topology structure of the forwarding plane device and the routing device (or the networking situation of the forwarding plane device and the routing device). For a scenario that a forwarding plane device is mounted on a single routing device CR, or the forwarding plane device is mounted on a primary CR, it is determined to limit the rate of user backhaul traffic on a network side (e.g., a CR device). Link bandwidth between the CR device and the forwarding plane device is saved, and thus traffic pressure of the forwarding plane device can be reduced.
230. And the target first routing equipment performs flow control on the target message according to the speed limit information.
In this embodiment of the present application, the control plane device determines that the routing device (specifically, the target first routing device) performs flow control on a backhaul packet (that is, a target packet) sent from the backbone network to the user equipment, so as to avoid a problem in the prior art that all backhaul packets are subjected to flow control by the forwarding plane device, which results in a large service pressure of the forwarding plane device. Therefore, the traffic pressure of the forwarding plane equipment can be relieved.
For convenience of understanding, the following method for controlling packet traffic provided in the embodiment of the present application is illustrated, and mainly includes the following steps 310 and 340.
In the following, BRAS CP device and BRAS UP device are referred to as CP device and UP device, respectively.
310. And establishing connection between the CP device and the UP device and the CR device.
Specifically, an open flow (openflow) channel is established between the CP device and the UP device, and a border gateway protocol (bgp) peer and a bgp flowpeer relationship are established between the CP device and the CR device.
320. BRAS online configuration and Quality of Service (QOS) speed limit configuration.
Specifically, a QoS configuration template (hereinafter referred to as a qos-profile template) is configured on the CP device, a user speed limit parameter is configured under the qos-profile template, the direction is outbend, and the qos-profile template is bound under an online domain.
As described above for BRAS CP and BRAS UP devices, the interface on the forwarding plane device BRAS UP is a three-dimensional interface, and when all BAS interfaces on BRAS UP are mapped onto the control plane device BRAS CP, in order to distinguish BRAS UP, the identifier (i.e., UPID) of the one-dimensional BRAS UP device is added. Therefore, the BRAS CP completes service configuration of the BAS interface on the BRAS UP by means of a four-dimensional interface and binds with an online domain of a user.
The detailed process of steps 310-320 can be referred to in the prior art and will not be described in detail here.
330. And the CP selects the speed-limiting position of the flow of the return message.
Specifically, a command line switch may be set on the CP device, and a position for limiting the speed of the backhaul packet traffic of the user is selected. That is, the CP determines whether the backhaul message is rate-limited on the network side (e.g., CR) or the user side (e.g., BRAS UP). How the CP device selects the speed-limiting position may refer to the aforementioned three networking conditions of the UP device and the CR, and the UP device selects the corresponding speed-limiting position respectively. And will not be described in detail herein.
For convenience of explaining step 340, it is assumed that in step 330, the CP device selects to perform rate-limiting processing on the backhaul message on the network side.
340. And the user is on line, and the module # A on the CP equipment converts the user CAR into a bgp flow Specification rule.
The user is on-line, the dial message is sent to the CP equipment for processing, and the CP equipment manages all user table entries: including the corresponding relation between the user session and the IP address, the speed limit requirement, etc.
It should be noted that, if a user (hereinafter referred to as user # a) comes on line from the forwarding plane equipment BRAS UP by dialing, the dialing message of the user # a is sent to the control plane equipment BRAS CP for processing. The BRAS CP allocates a session number (user session) to the user # a, and allocates a Medium Access Control (MAC) address, an Internet Protocol (IP) address, and the like to the user # a based on the user session, thereby generating a user entry of the user # a, for example, a speed limit of the user, a correspondence between the user session and the IP address, and the like.
The module # A converts the descending CAR based on user session into CAR based on user IP, the BGP Flow Specification rule is that the target IP is matched as the user IP, the action is the CAR action in the qos profile, and the direction is the outgoing direction. As shown in table 1.
TABLE 1
Figure BDA0001200180850000111
In the embodiment of the present application, the module # a refers to a functional module (or a unit) that is provided on a CP and converts a CAR based on a user session into a BGP Flow Specification rule. After the module # a on the control surface device completes the conversion from the CAR based on the user session to the CAR based on the user IP, the control surface device issues the BGP Flow Specification rule (i.e., the speed limit information) to the target first routing device. When a user accesses a backhaul message of the backbone network and passes through the target first routing device, the BGP Flow Specification rule of the target first routing device takes effect, and the speed limit of the backhaul message Flow is completed.
In step 310, the CP device has established a bgp flowspec peer relationship with the CR device. Specifically, in a single CR scenario, the CP device sends the BGP Flow Specification rule to the single CR device, and the single CR device limits the rate of backhaul traffic. In the primary and standby CR scenarios, the CP sends the BGP Flow Specification rule to the primary and standby CR devices. Under the condition that the main CR works normally, the return message passes through the main CR, and the main CR limits the speed of the return message. And under the condition that the main CR fails, the return message passes through the standby CR, and the standby CR limits the return flow.
In the embodiment of the present application, the control plane device determines that the routing device performs flow control on the backhaul message (i.e., the target message) sent from the backbone network to the user equipment, so as to avoid a problem that traffic pressure of the forwarding plane device is high because all backhaul messages are subjected to flow control by the forwarding plane device. Therefore, the traffic pressure of the forwarding plane equipment can be relieved.
The method for controlling packet traffic according to the embodiment of the present application is described in detail above with reference to fig. 1 to 5, and the apparatus and device for controlling packet traffic according to the embodiment of the present application are described below with reference to fig. 6 to 9.
Fig. 6 is a schematic diagram of an apparatus 400 for controlling packet traffic according to the present application. Wherein the apparatus 400 is configured in a communication system comprising a forwarding plane device and at least one routing device, the forwarding plane device being connectable to the backbone network via at least one first routing device of the at least one routing device. As shown in fig. 6, the apparatus 400 includes:
a processing unit 410, configured to determine speed limit information, where the speed limit information is used to indicate an upper limit of a flow to be controlled by a target packet, and the target packet is a packet sent from a backbone network to a user equipment;
a sending unit 420, configured to send the speed limit information to a target first routing device in the at least one first routing device, so that the target first routing device performs flow control on the target packet according to the speed limit information, so that a flow of the target packet is not higher than an upper limit of the flow.
Each unit and the other operations or functions in the apparatus 400 according to the embodiment of the present application are respectively for implementing the method 200 for controlling packet traffic provided in the embodiment of the present application and the corresponding flow executed by the control plane device in each embodiment. For brevity, no further description is provided herein.
Fig. 7 is a schematic diagram of an apparatus 500 for controlling packet traffic according to an embodiment of the present application. Wherein the apparatus 500 is configured in a communication system comprising a control plane device, a forwarding plane device and at least one routing device, the forwarding plane device being connectable to the backbone network via at least one first routing device of the at least one routing device, the apparatus 500 being one of the at least one routing device. As shown in fig. 7, the apparatus 500 includes:
a receiving unit 510, configured to receive speed limit information sent by a control plane device, where the speed limit information is used to indicate an upper flow limit that a target packet needs to be controlled, where the target packet is a packet sent from a backbone network to a user equipment;
and the processing unit 520 is configured to perform flow control on the target packet according to the speed limit information, so that the flow of the target packet is not higher than the upper limit of the flow.
Each unit and the other operations or functions in the apparatus 500 according to the embodiment of the present application are respectively for implementing the method 200 for controlling packet traffic provided in the embodiment of the present application and the corresponding flow executed by the target first routing device in each embodiment. For brevity, no further description is provided herein.
Fig. 8 is a schematic structural diagram of a device 600 for controlling packet traffic according to an embodiment of the present application. As shown in fig. 8, the apparatus 600 includes: one or more processors 601, one or more memories 602, one or more transceivers (each transceiver comprising a transmitter 603 and a receiver 604). The transmitter 603 or the receiver 604 is connected to one or more antennas 605 and transmits and receives signals through the antennas. The memory 602 stores computer program instructions (or code) therein. The processor 601 executes the computer program instructions stored in the memory 602 to implement the method 200 for controlling packet traffic provided by the embodiment of the present application and the corresponding processes and/or operations executed by the control plane device in the embodiments. For brevity, no further description is provided herein.
Fig. 9 is a schematic structural diagram of a device 700 for controlling packet traffic according to an embodiment of the present application. As shown in fig. 9, the apparatus 700 includes: one or more processors 701, one or more memories 702, one or more transceivers (each transceiver comprising a transmitter 703 and a receiver 704). The transmitter 703 or receiver 704 is connected to one or more antennas 705 and transmits and receives signals through the antennas. The memory 702 stores computer program instructions (or code) therein. The processor 701 executes the computer program instructions stored in the memory 702 to implement the method 200 for controlling packet traffic provided by the embodiment of the present application and the corresponding processes and/or operations executed by the target first routing device in the embodiments. For brevity, no further description is provided herein.
In the embodiment of the present application, the processor may be a Central Processing Unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program in the present application.
The Memory may be, but is not limited to, a Read-Only Memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be separate or integrated with the processor.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The steps of the method for controlling message traffic disclosed in the embodiments of the present application can be directly embodied as the completion of the execution by a hardware processor. Or by a combination of hardware and software modules within the processor. The software modules may be located in ram, flash, rom, prom, or eprom, registers, among other storage media as is well known in the art. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the method in combination with the hardware. To avoid repetition, it is not described in detail here.
It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiments of the present application.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (20)

1. A method of controlling packet traffic, performed in a communication system comprising a control plane device, a forwarding plane device and at least one routing device, the forwarding plane device being connectable to a backbone network via at least one first routing device of the at least one routing device, the method comprising:
the control surface equipment determines speed limit information, wherein the speed limit information is used for indicating the upper limit of the flow to be controlled by a target message, and the target message is sent to user equipment from the backbone network;
and the control surface equipment sends the speed limit information to a target first routing equipment in the at least one first routing equipment, so that the target first routing equipment controls the flow of the target message according to the speed limit information, and the flow of the target message is not higher than the upper limit of the flow.
2. The method according to claim 1, wherein the at least one first routing device comprises a primary routing device and a backup routing device.
3. The method as claimed in claim 2, wherein before the control plane device sends the speed limit information to the target first routing device of the at least one first routing device, the method comprises:
and the control plane equipment determines the target first routing equipment from the main routing equipment and the standby routing equipment according to the working state of the main routing equipment.
4. The method according to claim 3, wherein the control plane device determining the target first routing device from the primary routing device and the standby routing device according to the working state of the primary routing device comprises:
when the working state of the main routing device is a normal state, the control plane device determines the main routing device as the target first routing device;
and when the working state of the main routing equipment is a fault state, the control plane equipment determines the standby routing equipment as the target first routing equipment.
5. The method according to any of claims 1 to 4, wherein before the control plane device sends the speed limit information to a target first routing device of the at least one first routing device, the method further comprises:
the control plane device obtains first information, where the first information is used to indicate a network topology structure between the forwarding plane device and the at least one routing device;
the control plane device determines the at least one first routing device from the at least one routing device according to the network topology.
6. A method of controlling packet traffic, performed in a communication system comprising a control plane device, a forwarding plane device and at least one routing device, the forwarding plane device being connectable to a backbone network via at least one first routing device of the at least one routing device, the method comprising:
a target first routing device in the at least one first routing device receives speed limit information sent by the control surface device, wherein the speed limit information is used for indicating an upper flow limit which needs to be controlled by a target message, and the target message is a message sent from the backbone network to user equipment;
and the target first routing equipment performs flow control on the target message according to the speed limit information.
7. The method according to claim 6, wherein the at least one first routing device comprises a primary routing device and a backup routing device.
8. The method according to claim 7, wherein the target first routing device is determined by the control plane device from the primary routing device and the backup routing device according to the operating state of the primary routing device.
9. The method according to claim 8, wherein when the operating state of the master routing device is a normal state, the target first routing device is the master routing device; or
And when the working state of the main routing equipment is a fault state, the target first routing equipment is the standby routing equipment.
10. The method according to any of claims 6 to 9, wherein the at least one first routing device is determined by the control plane device from the at least one routing device according to first information indicating a network topology between the forwarding plane device and the at least one routing device.
11. An apparatus for controlling packet traffic, configured in a communication system including a forwarding plane device and at least one routing device, the forwarding plane device being capable of connecting to a backbone network through at least one first routing device of the at least one routing device, the apparatus comprising:
the processing unit is used for determining speed limit information, wherein the speed limit information is used for indicating the upper limit of the flow to be controlled of a target message, and the target message is sent to user equipment from the backbone network;
a sending unit, configured to send the speed limit information to a target first routing device in the at least one first routing device, so that the target first routing device performs flow control on the target packet according to the speed limit information, so that the flow of the target packet is not higher than the upper limit of the flow.
12. The apparatus according to claim 11, wherein the at least one first routing device comprises a primary routing device and a backup routing device.
13. The apparatus according to claim 12, wherein the processing unit is specifically configured to determine the target first routing device from the primary routing device and the standby routing device according to an operating state of the primary routing device.
14. The apparatus according to claim 13, wherein the processing unit is specifically configured to:
when the working state of the main routing device is a normal state, determining the main routing device as the target first routing device; alternatively, the first and second electrodes may be,
and when the working state of the main routing equipment is a fault state, determining the standby routing equipment as the target first routing equipment.
15. The apparatus according to any one of claims 11 to 14, wherein the processing unit is further configured to:
acquiring first information, wherein the first information is used for indicating a network topology structure between the forwarding plane equipment and the at least one routing equipment;
determining the at least one first routing device from the at least one routing device according to the network topology.
16. An apparatus for controlling packet traffic, configured in a communication system comprising a control plane device, a forwarding plane device and at least one routing device, the forwarding plane device being connectable to a backbone network via at least one first routing device of the at least one routing device, the apparatus comprising:
a receiving unit, configured to receive speed limit information sent by the control plane device, where the speed limit information is used to indicate an upper flow limit that a target packet needs to be controlled, and the target packet is a packet sent from the backbone network to a user equipment;
and the processing unit is used for controlling the flow of the target message according to the speed limit information.
17. The apparatus according to claim 16, wherein the at least one first routing device comprises a primary routing device and a backup routing device.
18. The apparatus according to claim 17, wherein the apparatus is determined by the control plane device from the master routing device and the standby routing device according to the operating state of the master routing device.
19. The apparatus according to claim 18, wherein when the working state of the main routing device is a normal state, the apparatus is the main routing device; alternatively, the first and second electrodes may be,
and when the working state of the main routing equipment is a fault state, the device is the standby routing equipment.
20. The apparatus according to any of claims 16 to 19, wherein the at least one first routing device is determined by the control plane device from the at least one routing device according to first information indicating a network topology between the forwarding plane device and the at least one routing device.
CN201611263212.4A 2016-12-30 2016-12-30 Method and device for controlling message flow Active CN108270690B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611263212.4A CN108270690B (en) 2016-12-30 2016-12-30 Method and device for controlling message flow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611263212.4A CN108270690B (en) 2016-12-30 2016-12-30 Method and device for controlling message flow

Publications (2)

Publication Number Publication Date
CN108270690A CN108270690A (en) 2018-07-10
CN108270690B true CN108270690B (en) 2021-12-24

Family

ID=62753908

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611263212.4A Active CN108270690B (en) 2016-12-30 2016-12-30 Method and device for controlling message flow

Country Status (1)

Country Link
CN (1) CN108270690B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109246025B (en) * 2018-08-09 2022-02-01 烽火通信科技股份有限公司 Flow control system and method based on network medium
CN109120542A (en) * 2018-08-20 2019-01-01 国云科技股份有限公司 A kind of flow management system and its implementation based on edge calculations
CN109245926B (en) * 2018-08-28 2021-10-15 郑州云海信息技术有限公司 Intelligent network card, intelligent network card system and control method
CN111431787B (en) * 2019-01-10 2022-02-11 中国移动通信有限公司研究院 Tunnel establishment method and device and computer readable storage medium
CN113055191B (en) * 2019-12-27 2023-08-01 中兴通讯股份有限公司 Forwarding method and device and forwarding plane of broadband remote access server
CN114079572A (en) * 2020-08-11 2022-02-22 华为技术有限公司 Network attack defense method, CP device and UP device
CN112118129B (en) * 2020-08-24 2022-08-12 烽火通信科技股份有限公司 Fault positioning method and device based on service flow
CN115051951B (en) * 2021-02-26 2024-04-19 中国电信股份有限公司 Service flow scheduling method, centralized controller and storage medium
CN116938826B (en) * 2023-09-14 2024-01-05 中移(苏州)软件技术有限公司 Network speed limiting method, device and system and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984069A (en) * 2012-11-30 2013-03-20 福建星网锐捷网络有限公司 Entry regulation method, entry regulation device and switching equipment
CN103534999A (en) * 2012-01-21 2014-01-22 华为技术有限公司 Message forwarding method and device
US8904258B2 (en) * 2010-09-07 2014-12-02 Zephyr Photonics Modulation-forward error correction (MFEC) codes and methods of constructing and utilizing the same

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8396950B1 (en) * 2000-03-02 2013-03-12 Rockstar Consortium Us Lp Method and apparatus for the fast detection of connectivity loss between devices in a network
US7936691B2 (en) * 2005-02-28 2011-05-03 Network Equipment Technologies, Inc. Replication of static and dynamic databases in network devices
US8339959B1 (en) * 2008-05-20 2012-12-25 Juniper Networks, Inc. Streamlined packet forwarding using dynamic filters for routing and security in a shared forwarding plane
US8316435B1 (en) * 2008-08-14 2012-11-20 Juniper Networks, Inc. Routing device having integrated MPLS-aware firewall with virtual security system support
KR20120071953A (en) * 2010-12-23 2012-07-03 한국전자통신연구원 Method for transmitting routing information and routing apparatus in wireless network
CN102082734B (en) * 2011-02-28 2014-06-25 杭州华三通信技术有限公司 Service message transmission method and equipment
US9485118B1 (en) * 2012-09-28 2016-11-01 Juniper Networks, Inc. Penalty-box policers for network device control plane protection
WO2014071605A1 (en) * 2012-11-09 2014-05-15 华为技术有限公司 Method, forwarding-plane apparatus, and network device for processing packet
WO2015196403A1 (en) * 2014-06-26 2015-12-30 华为技术有限公司 Method and device for controlling quality of service of software defined network
CN104283882B (en) * 2014-10-11 2018-01-12 武汉烽火网络有限责任公司 A kind of intelligent safety protection method of router
CN104821913B (en) * 2015-05-05 2019-01-29 新华三技术有限公司 A kind of data message forwarding method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8904258B2 (en) * 2010-09-07 2014-12-02 Zephyr Photonics Modulation-forward error correction (MFEC) codes and methods of constructing and utilizing the same
CN103534999A (en) * 2012-01-21 2014-01-22 华为技术有限公司 Message forwarding method and device
CN102984069A (en) * 2012-11-30 2013-03-20 福建星网锐捷网络有限公司 Entry regulation method, entry regulation device and switching equipment

Also Published As

Publication number Publication date
CN108270690A (en) 2018-07-10

Similar Documents

Publication Publication Date Title
CN108270690B (en) Method and device for controlling message flow
EP3759870B1 (en) Network slicing with smart contracts
CN106464534B (en) Sheet for provisioning and managing customer premises equipment devices
CN111866987B (en) Communication method and device
KR101953790B1 (en) Apparatus and method for cloud networking
US20210289436A1 (en) Data Processing Method, Controller, and Forwarding Device
WO2015143610A1 (en) Service implementation method for nfv system, and communications unit
JP2019504564A (en) Method for establishing a roaming connection
WO2016184368A1 (en) Method, device and system for authorizing service of user
US10462048B2 (en) Virtual cluster establishment method and network device
EP3989512A1 (en) Method for controlling traffic forwarding, device, and system
EP4152882A1 (en) Session establishment method, apparatus and system and computer storage medium
CN114143283B (en) Tunnel self-adaptive configuration method and device, central terminal equipment and communication system
WO2021169291A1 (en) Route advertising method, network elements, system, and device
WO2015113285A1 (en) Control method and centralized controller in communication network and wireless communication network system
US20220286409A1 (en) Method and apparatus for configuring quality of service policy for service, and computing device
CN111083120B (en) Data transmission method and device, electronic equipment and storage medium
US11929851B2 (en) Gateway selection method, device, and system
CN113300981A (en) Message transmission method, device and system
US20230224236A1 (en) Routing Information Transmission Method and Apparatus
CN112751701B (en) System, method and computer readable medium for managing network devices
WO2011160384A1 (en) Telecommunication method and gateway apparatus
EP3720078B1 (en) Anima network information processing method, device, and system
CN112203302A (en) Access equipment configuration method and network management system
WO2016101437A1 (en) Method and device for service cutover and wide-band access server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant