CN112532594A - Method and device for creating aggregation group and forwarding message - Google Patents

Method and device for creating aggregation group and forwarding message Download PDF

Info

Publication number
CN112532594A
CN112532594A CN202011281652.9A CN202011281652A CN112532594A CN 112532594 A CN112532594 A CN 112532594A CN 202011281652 A CN202011281652 A CN 202011281652A CN 112532594 A CN112532594 A CN 112532594A
Authority
CN
China
Prior art keywords
aggregation group
target
sub
policy
acl
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.)
Granted
Application number
CN202011281652.9A
Other languages
Chinese (zh)
Other versions
CN112532594B (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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN202011281652.9A priority Critical patent/CN112532594B/en
Publication of CN112532594A publication Critical patent/CN112532594A/en
Application granted granted Critical
Publication of CN112532594B publication Critical patent/CN112532594B/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
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/101Access control lists [ACL]
    • 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/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • 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/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/827Aggregation of resource allocation or reservation requests
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a method and a device for creating an aggregation group and forwarding a message, wherein the method comprises the following steps: when the number of target member ports configured by a user for a target aggregation group is larger than the maximum number of member ports supported by a shunting device chip in the network shunting device, creating at least one sub-aggregation group; and respectively generating corresponding equivalent strategy ACLs for the at least one sub-aggregation group according to the shunting strategy ACLs configured by the user for the target aggregation group. When the number of the member ports which a user wants to configure for one aggregation group is larger than the maximum number upper limit of the member ports supported by the shunting device chip, the method and the device can actually break through the limit of the maximum number upper limit of the member ports by creating the sub aggregation group and the equivalent policy ACL, so that the aggregation configuration mode of the network shunting device does not need to be changed or hardware upgrading is carried out on the shunting device chip, and a more flexible flow load sharing scheme can be realized.

Description

Method and device for creating aggregation group and forwarding message
Technical Field
The present application relates to the field of network communication technologies, and in particular, to a method and an apparatus for creating an aggregation group and forwarding a packet.
Background
In order to implement functions of network data protocol analysis, VOIP traffic, monitoring and control of P2P traffic, and the like, a conventional operator network needs to use a network offloading device to offload specified traffic to a specified egress interface through an offloading policy of the offloading device.
The current network shunting function is mainly realized by Access Control Lists (ACLs), and the messages meeting the conditions are forwarded to a designated interface according to the matching conditions set in the ACL list items, so that network shunting is realized.
Generally, a basic network offloading device relies on an ASIC (Application Specific Integrated Circuit) switching chip to forward traffic, and performs load sharing in a port aggregation group through the switching chip, but the maximum number of member ports supported by each aggregation group in the switching chip is limited, and when a user desires that the number of member ports configured for one aggregation group is greater than the upper limit of the maximum number of member ports supported by the offloading device chip, the network offloading device cannot configure the member ports.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for creating an aggregation group and forwarding a packet, so as to expand an upper limit of an aggregation member port.
In order to achieve the above purpose, the present application provides the following technical solutions:
according to a first aspect of the present application, a method for creating an aggregation group is provided, which is applied to a network offloading device, and includes:
when the number of target member ports configured by a user for a target aggregation group is larger than the maximum number of member ports supported by a shunting device chip in the network shunting device, creating at least one sub-aggregation group associated with the target aggregation group; the sum of the number of the member ports of the target aggregation group and the at least one sub aggregation group is the number of the member ports of the target aggregation group, and the number of the member ports of the target aggregation group and each sub aggregation group is not more than the maximum number of the member ports;
and respectively generating corresponding equivalent policy ACLs for the at least one sub-aggregation group according to the shunting policy ACL configured by the user for the target aggregation group, wherein the matching condition of the equivalent policy ACLs and the used policy load sharing algorithm are the same as the shunting policy ACLs.
According to a second aspect of the present application, a packet forwarding method is provided, which is applied to a network offloading device, and includes:
receiving a target message meeting a matching condition, wherein the matching condition is defined in a shunting strategy ACL corresponding to a target aggregation group and an equivalent strategy ACL corresponding to each sub-aggregation group associated with the target aggregation group, and the shunting strategy ACL and the equivalent strategy ACL are also defined with the same strategy load sharing algorithm; the network distribution equipment creates the sub-aggregation groups under the condition that the number of target member ports configured for the target aggregation group by a user is larger than the maximum number of member ports supported by a distribution equipment chip in the network distribution equipment, the sum of the number of the member ports of the target aggregation group and all the sub-aggregation groups is the number of the target member ports, and the number of the member ports of the target aggregation group and each sub-aggregation group is not larger than the maximum number of the member ports;
selecting a policy ACL from the shunting policy ACL and the equivalent policy ACL according to the policy load sharing algorithm so as to redirect the target message to a specific aggregation group corresponding to the selected policy ACL;
and selecting a member port from the specific aggregation group according to a member port load sharing algorithm configured by the specific aggregation group, so as to forward the target message through the selected member port.
According to a third aspect of the present application, an aggregation group creation apparatus applied to a network offloading device is provided, including:
a creation unit: when the number of target member ports configured by a user for a target aggregation group is larger than the maximum number of member ports supported by a shunting device chip in the network shunting device, creating at least one sub-aggregation group associated with the target aggregation group; the sum of the number of the member ports of the target aggregation group and the at least one sub aggregation group is the number of the member ports of the target aggregation group, and the number of the member ports of the target aggregation group and each sub aggregation group is not more than the maximum number of the member ports;
a generation unit: and respectively generating corresponding equivalent policy ACLs for the at least one sub-aggregation group according to the shunting policy ACL configured by the user for the target aggregation group, wherein the matching condition of the equivalent policy ACLs and the used policy load sharing algorithm are the same as the shunting policy ACLs.
According to a fourth aspect of the present application, a packet forwarding apparatus is provided, which is applied to a network offloading device, and includes:
a receiving unit: receiving a target message meeting a matching condition, wherein the matching condition is defined in a shunting strategy ACL corresponding to a target aggregation group and an equivalent strategy ACL corresponding to each sub-aggregation group associated with the target aggregation group, and the shunting strategy ACL and the equivalent strategy ACL are also defined with the same strategy load sharing algorithm; the network distribution equipment creates the sub-aggregation groups under the condition that the number of target member ports configured for the target aggregation group by a user is larger than the maximum number of member ports supported by a distribution equipment chip in the network distribution equipment, the sum of the number of the member ports of the target aggregation group and all the sub-aggregation groups is the number of the target member ports, and the number of the member ports of the target aggregation group and each sub-aggregation group is not larger than the maximum number of the member ports;
a first selection unit: selecting a policy ACL from the shunting policy ACL and the equivalent policy ACL according to the policy load sharing algorithm so as to redirect the target message to a specific aggregation group corresponding to the selected policy ACL;
a second selection unit: and selecting a member port from the specific aggregation group according to a member port load sharing algorithm configured by the specific aggregation group, so as to forward the target message through the selected member port.
According to a fifth aspect of the present application, there is provided an electronic device comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor implements the method according to any of the embodiments of the first and second aspects by executing the executable instructions.
According to a sixth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the steps of the method as described in any of the embodiments of the first and second aspects above.
According to the technical scheme, when the number of the member ports which a user wants to configure for an aggregation group is larger than the maximum upper limit of the number of the member ports supported by a shunting device chip, the application can actually break through the limit of the maximum upper limit of the number of the member ports by creating the sub-aggregation group and the equivalent policy ACL, so that the aggregation configuration mode of the network shunting device does not need to be changed or hardware upgrading is carried out on the shunting device chip, and a more flexible flow load sharing scheme can be realized.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
FIG. 1 is a flow chart illustrating a method of aggregate group creation according to an exemplary embodiment of the present application;
fig. 2 is a flowchart illustrating a message forwarding method according to an exemplary embodiment of the present application;
fig. 3 is a schematic diagram of a network architecture of a message forwarding system according to an exemplary embodiment of the present application;
fig. 4 is a detailed flowchart illustrating a message forwarding method according to an exemplary embodiment of the present application;
FIG. 5 is a schematic diagram of a shunt device shown in accordance with an exemplary embodiment of the present application;
FIG. 6 is a schematic diagram illustrating a message forwarding electronic device according to an exemplary embodiment of the present application;
FIG. 7 is a block diagram illustrating an aggregate group creation apparatus in accordance with an exemplary embodiment of the present application;
fig. 8 is a block diagram illustrating another message forwarding device according to an example embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Next, examples of the present application will be described in detail.
Fig. 1 is a flowchart illustrating an aggregation group creation method according to an embodiment of the present application. As shown in fig. 1, the method is applied to a network offloading device, and may include the following steps:
step 102: when the number of target member ports configured by a user for a target aggregation group is larger than the maximum number of member ports supported by a shunting device chip in the network shunting device, creating at least one sub-aggregation group associated with the target aggregation group.
In this embodiment, when the network offloading device receives an aggregation group port command configured by a user, the number of target member ports configured by the user for a target aggregation group is compared with the maximum number of member ports supported by an offloading device chip in the network offloading device.
And if the number of the target member ports configured by the user for the target aggregation group is not greater than the maximum number of the member ports supported by the shunting device chip in the network shunting device, the network shunting device normally configures the target aggregation group, and load balancing is performed on the flow.
If the number of target member ports configured by a user for a target aggregation group is larger than the maximum number of member ports supported by a shunting device chip in the network shunting device, creating at least one sub-aggregation group associated with the target aggregation group; the sum of the number of the member ports of the target aggregation group and the at least one sub aggregation group is the number of the target member ports, and the number of the member ports of the target aggregation group and each sub aggregation group is not more than the maximum number of the member ports. By dividing the target member ports configured by the user for the target aggregation group into the plurality of sub-aggregation groups, the target aggregation group and each sub-aggregation group can be supported by the shunting device chip, and the limitation of the number of the member ports of the chip aggregation port group is broken through.
For example, when the maximum aggregation member port number supported by the shunting device chip is a, and the target member port number configured by the user for the target aggregation group is B (B > a), the network shunting device reserves C (C ≦ a) target member ports in the target aggregation group, and creates n sub-aggregation groups associated with the target aggregation group, where the sub-aggregation group i includes Di member ports, and ie [1, n ∈ [1, n ≦ a ] sub-aggregation groups]Di is less than or equal to A, the number of the member ports contained in the target aggregation group and the number of the member ports contained in all the sub-aggregation groups are C + ∑ Di=B。
The network distribution equipment records a structure body corresponding to each aggregation group, and the structure body is used for recording information of the corresponding aggregation group. The information recorded by the structure body can comprise a type mark bit; the type flag bit corresponding to the target aggregation group is a first value, the type flag bit corresponding to the sub-aggregation group is a second value, and the second value is different from the first value, for example, the first value is 1, the second value is 0, and of course, other values may also be adopted. By including the type flag bit in the structure, the target aggregation group and the sub-aggregation group are conveniently distinguished, so that whether the structure is the sub-aggregation group or the target aggregation group can be judged according to the value of the type flag bit.
The structure body may include an aggregation group linked list, and the linked list information of each sub-aggregation group may be added to the aggregation group linked list of the target aggregation group in the process of creating the sub-aggregation groups. The child aggregation groups are associated with the target aggregation group through an aggregation group linked list, and all the child aggregation groups can be traversed through the target aggregation group.
Step 104: and respectively generating corresponding equivalent policy ACLs for the at least one sub-aggregation group according to the shunting policy ACL configured by the user for the target aggregation group, wherein the matching condition of the equivalent policy ACLs and the used policy load sharing algorithm are the same as the shunting policy ACLs.
The flow distribution policy ACL may forward the flow according to a predefined rule, and in the present application, configured by a user, may redirect the packet meeting a specific matching condition to the target aggregation group.
The matching condition is configured by a user, and may be input from a specific input interface, may be a specific purpose IP, or may be a specific protocol type, which is not limited in this application.
The equivalent policy ACL is generated by the network shunting equipment, and the message meeting the same matching condition with the shunting policy ACL can be redirected to the sub aggregation group corresponding to the equivalent policy ACL in the application.
The strategy load sharing algorithm is an algorithm for balancing and sharing equipment load through scheduling, can enable equipment to achieve optimal resource use, and can select a proper forwarding strategy ACL and an output member port for a message in the application. The policy load sharing algorithm may be a polling method, a random method, or the like, which is not limited in the present application.
By setting an equivalent policy ACL which is the same as the matching condition of the shunting policy ACL and the policy load sharing algorithm, the network shunting device can support the aggregation group member ports of which the configuration number exceeds the maximum member port number supported by the shunting device chip.
For example, if the shunting policy ACL configured by the user redirects the message satisfying the condition X to the target aggregation group, the equivalent policy ACL corresponding to the sub-aggregation group i redirects the message satisfying the condition X to the sub-aggregation group i.
And when any sub-aggregation group or all member ports in any sub-aggregation group are deleted, removing the link information corresponding to any sub-aggregation group in the aggregation group linked list and the equivalent policy ACL corresponding to any sub-aggregation group.
In this embodiment, when a user configuration command deletes an aggregation group member port, it is determined whether the deleted port is a member port of a sub-aggregation group, if so, it is determined whether a member port still exists in the sub-aggregation group, and if not, the sub-aggregation group is deleted and link information and a corresponding equivalent policy ACL of the sub-aggregation group in the aggregation group linked list are deleted.
When a user deletes a target aggregation group, all sub-aggregation groups and all equivalent policy ACLs of the target aggregation group are deleted. And deleting the corresponding empty aggregation group and the corresponding policy ACL according to the user setting so as to reduce the memory occupation of the network shunting equipment.
When the network shunting equipment receives a target message meeting shunting strategy ACL matching conditions, selecting a strategy ACL from the shunting strategy ACL and the equivalent strategy ACL according to the strategy load sharing algorithm, and redirecting the target message to a specific aggregation group corresponding to the selected strategy ACL;
and selecting a member port from the specific aggregation group according to a member port load sharing algorithm configured by the specific aggregation group, so as to forward the target message through the selected member port.
According to the technical scheme provided by the application, the target member ports can be divided into the aggregation groups by creating the sub-aggregation groups and the corresponding equivalent policy ACLs, and the number of the member ports of each aggregation group is not more than the maximum number of the member ports supported by the chip of the shunt device, so that the network shunt device breaks through the number limit of the member ports of the chip aggregation group, and a more flexible flow load sharing scheme can be realized.
Fig. 2 is a flowchart of a message forwarding method according to an embodiment of the present application. As shown in fig. 2, the method applied to the network offloading device may include the following steps:
step 202: receiving a target message meeting a matching condition, where the matching condition is defined in a shunting policy ACL corresponding to a target aggregation group and an equivalent policy ACL corresponding to each sub-aggregation group associated with the target aggregation group, and the shunting policy ACL and the equivalent policy ACL also define a same policy load sharing algorithm.
The explanation of the matching condition and the breakout policy ACL, and the method for creating the sub aggregation group and the equivalent policy ACL refer to the related description of step 102 in the embodiment shown in fig. 1, and are not described herein again.
Step 204: and selecting a policy ACL from the shunting policy ACL and the equivalent policy ACL according to the policy load sharing algorithm so as to redirect the target message to a specific aggregation group corresponding to the selected policy ACL.
The working principle of the policy load sharing algorithm may refer to the related description of step 104 in the embodiment shown in fig. 1, and is not described herein again.
Step 206: and selecting a member port from the specific aggregation group according to a member port load sharing algorithm configured by the specific aggregation group, so as to forward the target message through the selected member port.
According to the technical scheme provided by the application, the target message is redirected to the corresponding sub-aggregation group through the equivalent policy ACL, so that the target message can be forwarded at the limited aggregation group member port of the chip of the network shunt equipment, and the flow load sharing under the condition of more required output member ports is completed.
Fig. 3 is a schematic diagram of a network architecture of a packet forwarding system according to an embodiment of the present application. As shown in fig. 3, the message forwarding system may include a source device 31, a distribution device 32, and a target device 33, where the distribution device 32 implements message forwarding between the source device 31 and the target device 33. The flow dividing device 32 includes a target aggregation group and a plurality of sub aggregation groups, and the number of the sub aggregation groups in the flow dividing device is not limited in this application. The sub aggregation group may share the member ports in the target aggregation group configured by the user, so that the number of the member ports that the offloading device 32 can support configuration is no longer limited to the maximum number of the member ports supported by the chip. When the number of the member ports configured for the aggregation group by the user is greater than the upper limit of the maximum number of the member ports supported by the shunting device chip, the shunting device 32 creates a sub-aggregation group and an equivalent policy ACL, when receiving the message from the source device 31, selects the policy ACL according to a policy sharing algorithm to redirect the message meeting the condition to the corresponding aggregation group, and then selects one member port according to the policy sharing algorithm of the aggregation group to forward the message meeting the condition to the target device 33, thereby realizing a more flexible traffic load sharing scheme.
In the technical solution of the present application, the limitation of the maximum number of member ports supported by a chip can be broken through by improving a target aggregation group in a shunting device, which is described in detail below with reference to fig. 4. Fig. 4 is a detailed flowchart of a message forwarding method according to an exemplary embodiment of the present application. As shown in fig. 4, the packet forwarding process between the source device 31, the splitter device 32, and the target device 33 includes the following steps:
step 402: and the user configures the number of member ports of the target aggregation group and the flow distribution strategy ACL.
For example, the user configures a target aggregation group in the network offload device, including configuring the number of member ports to 30, and configuring an offload policy ACL applied to the target aggregation group, for example, the offload policy ACL is used to redirect a packet with an ingress interface of 4 to the target aggregation group.
Step 404: and judging whether the number of the target member ports configured by the user exceeds the upper limit of the member ports supported by the chip.
For example, the maximum number of the member ports supported by the chip in the network offloading device is 8, and when the number of the aggregation group member ports configured by the user is 30, the number of the target member ports configured by the user exceeds the upper limit of the member ports supported by the chip.
If the number of target member ports configured by the user does not exceed the maximum member port upper limit supported by the chip, the network offloading device 32 forwards the traffic normally: and receiving the target message meeting the matching condition, redirecting the message to the target aggregation group through the shunting policy ACL, and selecting a member port in the target aggregation group according to a policy sharing algorithm to forward the target message to the target equipment 33.
Step 406: a corresponding sub-aggregation-group is created for the target aggregation-group.
When the number of target member ports configured by a user for a target aggregation group is larger than the maximum number of member ports supported by a shunting device chip in the network shunting device, creating at least one sub-aggregation group associated with the target aggregation group. The sub-aggregation group may refer to the related description of step 102 in the embodiment shown in fig. 1, and is not described herein again.
In this embodiment, as shown in fig. 5, a schematic diagram of a flow dividing device according to an exemplary embodiment of the present application is shown. The network shunting equipment judges that the aggregation group member port configured by a user exceeds the upper limit of the member port supported by the chip, creates a sub aggregation group 1, a sub aggregation group 2 and a sub aggregation group 3, and divides the target aggregation group member port into the sub aggregation groups. The target aggregation group has 8 member ports, the sub aggregation group 1 has 8 member ports, the sub aggregation group 2 has 8 member ports, and the sub aggregation group 3 has 6 member ports.
Step 408: an equivalent policy ACL is created for the child aggregation group.
And respectively generating corresponding equivalent strategy ACLs for the at least one sub-aggregation group according to the shunting strategy ACLs configured by the user for the target aggregation group. The equivalent policy ACL refers to the description related to step 102 in the embodiment shown in fig. 1, and is not described herein again.
In this embodiment, as shown in fig. 5, a schematic diagram of a flow dividing device according to an exemplary embodiment of the present application is shown. The network offload device creates equivalent policies ACL1, 2, 3, corresponding to sub-aggregation-groups 1, 2, 3, respectively. The equivalent policy ACL1 may redirect a packet with an ingress interface of 4 to the sub-aggregation group 1, the equivalent policy ACL2 may redirect a packet with an ingress interface of 4 to the sub-aggregation group 2, and the equivalent policy ACL3 may redirect a packet with an ingress interface of 4 to the sub-aggregation group 3.
Step 410: the distribution device 32 receives the target packet sent by the source device 31.
The offloading device 32 receives the target packet that satisfies the matching condition, where the matching condition is defined in an offloading policy ACL corresponding to the target aggregation group and an equivalent policy ACL corresponding to each sub-aggregation group associated with the target aggregation group.
In this embodiment, the offloading device 32 receives a message with an ingress interface of 4 sent by the source device 31.
Step 412: a policy ACL is selected.
And selecting a policy ACL from the shunting policy ACL and the equivalent policy ACL according to the policy load sharing algorithm so as to redirect the target message to a specific aggregation group corresponding to the selected policy ACL.
In this embodiment, as shown in fig. 5, the offloading device 32 selects an equivalent policy ACL2 from the offloading policy ACL and the equivalent policies ACL1, 2, and 3 according to the policy load sharing algorithm to forward the packet, and the equivalent policy ACL2 redirects the packet with the ingress interface of 4 to the sub-aggregation group 2.
Step 414: the member port is selected to forward the target packet to the target device 33.
And selecting a member port from the specific aggregation group according to a member port load sharing algorithm configured by the specific aggregation group, so as to forward the target message through the selected member port.
In this example, as shown in fig. 5, the offloading device 32 selects one member port from 8 member ports of the sub-aggregation group 2 according to a member port load sharing algorithm configured in the sub-aggregation group 2, and forwards the packet with the ingress interface of 4 to the target device 33.
Corresponding to the method embodiment, the application also provides an embodiment of the device.
Fig. 6 is a schematic diagram of an electronic device for message forwarding according to an exemplary embodiment of the present application. Referring to fig. 6, at the hardware level, the electronic device includes a processor 602, an internal bus 604, a network interface 606, a memory 608, and a non-volatile memory 610, but may also include hardware required for other services. The processor 602 reads a corresponding computer program from the non-volatile memory 610 into the memory 608 and then runs the computer program, thereby forming a device for solving the dual-computer hot-standby dual-master problem on a logic level. Of course, besides the software implementation, the present application does not exclude other implementations, such as logic devices or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or logic devices.
Fig. 7 is a block diagram illustrating an aggregation group creation apparatus according to an exemplary embodiment of the present application. Referring to fig. 7, the apparatus includes a creating unit 702 and a generating unit 704, wherein:
the creating unit 702 is configured to create at least one sub-aggregation group associated with a target aggregation group when a number of target member ports configured by a user for the target aggregation group is greater than a maximum number of member ports supported by a offloading device chip in the network offloading device; the sum of the number of the member ports of the target aggregation group and the at least one sub aggregation group is the number of the target member ports, and the number of the member ports of the target aggregation group and each sub aggregation group is not more than the maximum number of the member ports.
The generating unit 704 is configured to generate corresponding equivalent policy ACLs for the at least one sub aggregation group according to the offload policy ACL configured by the user for the target aggregation group, where matching conditions of the equivalent policy ACLs and a policy load sharing algorithm used by the equivalent policy ACLs are the same as the offload policy ACL.
Optionally, the creating at least one sub-aggregation-group associated with the target aggregation-group includes: creating at least one sub-aggregation-group; and respectively adding the link information of each sub-aggregation group into the aggregation group linked list of the target aggregation group.
Optionally, the apparatus further comprises:
the first deletion unit 706: and when any sub-aggregation group or all member ports in any sub-aggregation group are deleted, removing the link information corresponding to any sub-aggregation group in the aggregation group linked list and the equivalent policy ACL corresponding to any sub-aggregation group.
The second deletion unit 708: when the target aggregation group is deleted, all child aggregation groups and all equivalent policy ACLs of the target aggregation group are deleted.
Optionally, the apparatus includes: the structure body corresponding to each aggregation group comprises a type mark bit, and the structure body is used for storing the information of the corresponding aggregation group; and the type mark bit corresponding to the target aggregation group is a first value, and the type mark bit corresponding to the sub aggregation group is a second value.
Optionally, the apparatus is specifically configured to: when a target message meeting the matching condition is received, selecting a policy ACL from the shunting policy ACL and the equivalent policy ACL according to the policy load sharing algorithm so as to redirect the target message to a specific aggregation group corresponding to the selected policy ACL;
and selecting a member port from the specific aggregation group according to a member port load sharing algorithm configured by the specific aggregation group, so as to forward the target message through the selected member port.
Fig. 8 is a block diagram illustrating a message forwarding apparatus according to an exemplary embodiment of the present application. Referring to fig. 8, the apparatus includes a receiving unit 802, a first selecting unit 804, and a second selecting unit 806, wherein:
the receiving unit 802 is configured to receive a target packet that meets a matching condition, where the matching condition is defined in a breakout policy ACL corresponding to a target aggregation group and an equivalent policy ACL corresponding to each sub-aggregation group associated with the target aggregation group, and the breakout policy ACL and the equivalent policy ACL also define a same policy load sharing algorithm; the sub-aggregation groups are created by the network offloading device under the condition that the number of target member ports configured for the target aggregation group by a user is greater than the maximum number of member ports supported by an offloading device chip in the network offloading device, the sum of the number of member ports of the target aggregation group and all the sub-aggregation groups is the number of the target member ports, and the number of member ports of the target aggregation group and each of the sub-aggregation groups is not greater than the maximum number of member ports.
The first selecting unit 804 is configured to select a policy ACL from the offload policy ACL and the equivalent policy ACL according to the policy load sharing algorithm, so as to redirect the target packet to a specific aggregation group corresponding to the selected policy ACL.
The second selecting unit 806 is configured to select a member port from the specific aggregation group according to a member port load sharing algorithm configured by the specific aggregation group, so as to forward the target packet through the selected member port.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and 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 modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
In an example embodiment, there is also provided a non-transitory computer readable storage medium, for example a memory, comprising instructions executable by a processor of a message forwarding device to implement a method as in any of the above embodiments, such as the method may comprise:
when the number of target member ports configured by a user for a target aggregation group is larger than the maximum number of member ports supported by a shunting device chip in the network shunting device, creating at least one sub-aggregation group associated with the target aggregation group; generating corresponding equivalent policy ACLs for the at least one sub-aggregation group respectively according to a shunting policy ACL configured by the user for the target aggregation group; when a target message meeting the matching condition is received, selecting a policy ACL from the shunting policy ACL and the equivalent policy ACL according to the policy load sharing algorithm so as to redirect the target message to a specific aggregation group corresponding to the selected policy ACL; and selecting a member port from the specific aggregation group according to a member port load sharing algorithm configured by the specific aggregation group, so as to forward the target message through the selected member port.
The non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc., which is not limited in this application.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (11)

1. An aggregation group creation method applied to a network offloading device, the method comprising:
when the number of target member ports configured by a user for a target aggregation group is larger than the maximum number of member ports supported by a shunting device chip in the network shunting device, creating at least one sub-aggregation group associated with the target aggregation group; the sum of the number of the member ports of the target aggregation group and the at least one sub aggregation group is the number of the member ports of the target aggregation group, and the number of the member ports of the target aggregation group and each sub aggregation group is not more than the maximum number of the member ports;
and respectively generating corresponding equivalent policy ACLs for the at least one sub-aggregation group according to the shunting policy ACL configured by the user for the target aggregation group, wherein the matching condition of the equivalent policy ACLs and the used policy load sharing algorithm are the same as the shunting policy ACLs.
2. The method of claim 1, wherein the creating at least one sub-aggregation-group associated with the target aggregation-group comprises:
creating at least one sub-aggregation-group;
and respectively adding the link information of each sub-aggregation group into the aggregation group linked list of the target aggregation group.
3. The method of claim 2, further comprising:
and when any sub-aggregation group or all member ports in any sub-aggregation group are deleted, removing the link information corresponding to any sub-aggregation group in the aggregation group linked list and the equivalent policy ACL corresponding to any sub-aggregation group.
4. The method of claim 1, further comprising:
when the target aggregation group is deleted, all child aggregation groups and all equivalent policy ACLs of the target aggregation group are deleted.
5. The method according to claim 1, wherein a structure corresponding to each aggregation group includes a type flag bit, and the structure is used for storing information of the corresponding aggregation group; and the type mark bit corresponding to the target aggregation group is a first value, and the type mark bit corresponding to the sub aggregation group is a second value.
6. The method of claim 1, further comprising:
when a target message meeting the matching condition is received, selecting a policy ACL from the shunting policy ACL and the equivalent policy ACL according to the policy load sharing algorithm so as to redirect the target message to a specific aggregation group corresponding to the selected policy ACL;
and selecting a member port from the specific aggregation group according to a member port load sharing algorithm configured by the specific aggregation group, so as to forward the target message through the selected member port.
7. A message forwarding method is applied to a network shunting device, and the method comprises the following steps:
receiving a target message meeting a matching condition, wherein the matching condition is defined in a shunting strategy ACL corresponding to a target aggregation group and an equivalent strategy ACL corresponding to each sub-aggregation group associated with the target aggregation group, and the shunting strategy ACL and the equivalent strategy ACL are also defined with the same strategy load sharing algorithm; the network distribution equipment creates the sub-aggregation groups under the condition that the number of target member ports configured for the target aggregation group by a user is larger than the maximum number of member ports supported by a distribution equipment chip in the network distribution equipment, the sum of the number of the member ports of the target aggregation group and all the sub-aggregation groups is the number of the target member ports, and the number of the member ports of the target aggregation group and each sub-aggregation group is not larger than the maximum number of the member ports;
selecting a policy ACL from the shunting policy ACL and the equivalent policy ACL according to the policy load sharing algorithm so as to redirect the target message to a specific aggregation group corresponding to the selected policy ACL;
and selecting a member port from the specific aggregation group according to a member port load sharing algorithm configured by the specific aggregation group, so as to forward the target message through the selected member port.
8. An aggregation group creation apparatus applied to a network offloading device, the apparatus comprising:
a creation unit: when the number of target member ports configured by a user for a target aggregation group is larger than the maximum number of member ports supported by a shunting device chip in the network shunting device, creating at least one sub-aggregation group associated with the target aggregation group; the sum of the number of the member ports of the target aggregation group and the at least one sub aggregation group is the number of the member ports of the target aggregation group, and the number of the member ports of the target aggregation group and each sub aggregation group is not more than the maximum number of the member ports;
a generation unit: and respectively generating corresponding equivalent policy ACLs for the at least one sub-aggregation group according to the shunting policy ACL configured by the user for the target aggregation group, wherein the matching condition of the equivalent policy ACLs and the used policy load sharing algorithm are the same as the shunting policy ACLs.
9. A message forwarding device is applied to a network shunting device, and the device comprises:
a receiving unit: receiving a target message meeting a matching condition, wherein the matching condition is defined in a shunting strategy ACL corresponding to a target aggregation group and an equivalent strategy ACL corresponding to each sub-aggregation group associated with the target aggregation group, and the shunting strategy ACL and the equivalent strategy ACL are also defined with the same strategy load sharing algorithm; the network distribution equipment creates the sub-aggregation groups under the condition that the number of target member ports configured for the target aggregation group by a user is larger than the maximum number of member ports supported by a distribution equipment chip in the network distribution equipment, the sum of the number of the member ports of the target aggregation group and all the sub-aggregation groups is the number of the target member ports, and the number of the member ports of the target aggregation group and each sub-aggregation group is not larger than the maximum number of the member ports;
a first selection unit: selecting a policy ACL from the shunting policy ACL and the equivalent policy ACL according to the policy load sharing algorithm so as to redirect the target message to a specific aggregation group corresponding to the selected policy ACL;
a second selection unit: and selecting a member port from the specific aggregation group according to a member port load sharing algorithm configured by the specific aggregation group, so as to forward the target message through the selected member port.
10. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor implements the method of any one of claims 1-7 by executing the executable instructions.
11. A computer-readable storage medium having stored thereon computer instructions, which when executed by a processor, perform the steps of the method according to any one of claims 1-7.
CN202011281652.9A 2020-11-16 2020-11-16 Method and device for creating aggregation group and forwarding message Active CN112532594B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011281652.9A CN112532594B (en) 2020-11-16 2020-11-16 Method and device for creating aggregation group and forwarding message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011281652.9A CN112532594B (en) 2020-11-16 2020-11-16 Method and device for creating aggregation group and forwarding message

Publications (2)

Publication Number Publication Date
CN112532594A true CN112532594A (en) 2021-03-19
CN112532594B CN112532594B (en) 2022-11-25

Family

ID=74980988

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011281652.9A Active CN112532594B (en) 2020-11-16 2020-11-16 Method and device for creating aggregation group and forwarding message

Country Status (1)

Country Link
CN (1) CN112532594B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113938519A (en) * 2021-11-11 2022-01-14 深圳市风云实业有限公司 Network traffic load balancing method and system based on combination of software and hardware

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014012474A1 (en) * 2012-07-19 2014-01-23 中兴通讯股份有限公司 Traffic forwarding method and system based on virtual switch cluster
CN103595567A (en) * 2013-11-13 2014-02-19 杭州华三通信技术有限公司 Method and device for mapping ports in aggregation link
CN104104570A (en) * 2013-04-07 2014-10-15 杭州华三通信技术有限公司 Aggregation processing method in IRF (Intelligent Resilient Framework) system and device
CN104852869A (en) * 2014-02-14 2015-08-19 杭州华三通信技术有限公司 Port aggregation method and device
CN106254282A (en) * 2016-09-30 2016-12-21 杭州华三通信技术有限公司 The implementation method of link aggregation and device
US20160380801A1 (en) * 2015-06-24 2016-12-29 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Switch, device and method for constructing aggregated link
CN106302223A (en) * 2016-09-20 2017-01-04 杭州迪普科技有限公司 A kind of method and apparatus of aggregation group flow shunt
US20170207950A1 (en) * 2014-05-27 2017-07-20 Zte Corporation Method and device for triggering protection switching by signal degrade of link aggregation port
CN111356181A (en) * 2020-02-25 2020-06-30 杭州迪普信息技术有限公司 Flow forwarding method and device, network equipment and computer readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014012474A1 (en) * 2012-07-19 2014-01-23 中兴通讯股份有限公司 Traffic forwarding method and system based on virtual switch cluster
CN104104570A (en) * 2013-04-07 2014-10-15 杭州华三通信技术有限公司 Aggregation processing method in IRF (Intelligent Resilient Framework) system and device
CN103595567A (en) * 2013-11-13 2014-02-19 杭州华三通信技术有限公司 Method and device for mapping ports in aggregation link
CN104852869A (en) * 2014-02-14 2015-08-19 杭州华三通信技术有限公司 Port aggregation method and device
US20170207950A1 (en) * 2014-05-27 2017-07-20 Zte Corporation Method and device for triggering protection switching by signal degrade of link aggregation port
US20160380801A1 (en) * 2015-06-24 2016-12-29 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Switch, device and method for constructing aggregated link
CN106302223A (en) * 2016-09-20 2017-01-04 杭州迪普科技有限公司 A kind of method and apparatus of aggregation group flow shunt
CN106254282A (en) * 2016-09-30 2016-12-21 杭州华三通信技术有限公司 The implementation method of link aggregation and device
CN111356181A (en) * 2020-02-25 2020-06-30 杭州迪普信息技术有限公司 Flow forwarding method and device, network equipment and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113938519A (en) * 2021-11-11 2022-01-14 深圳市风云实业有限公司 Network traffic load balancing method and system based on combination of software and hardware

Also Published As

Publication number Publication date
CN112532594B (en) 2022-11-25

Similar Documents

Publication Publication Date Title
EP2991304B1 (en) Conflict detection and solving method and device
US7623533B2 (en) Switch meshing using multiple directional spanning trees
CA3076119C (en) Packet transmission method and apparatus
US7603481B2 (en) Dynamic routing through a content distribution network
EP2667553B1 (en) Packet processing method, device and system
US20100153532A1 (en) Network system, network management server, and configuration scheduling method
US11336577B2 (en) Method and apparatus for implementing load sharing
US9246827B1 (en) Method and apparatus for controlling the flow of packets in a data network
CN106130920A (en) A kind of message forwarding method and device
CN105939240A (en) Load balancing method and device
CN106059917B (en) Routing information processing method and device
EP4020890B1 (en) Method and system for balancing cross-domain broadcast network load of blockchain, computer device, and readable storage medium
WO2021063224A1 (en) Data offload method and apparatus
CN112532594B (en) Method and device for creating aggregation group and forwarding message
JP5107429B2 (en) Routing based on aptitude
US8527694B2 (en) Method and apparatus for updating table entries of a ternary content addressable memory
CN112054969B (en) Method and device for realizing message mirror image
CN111464443B (en) Message forwarding method, device, equipment and storage medium based on service function chain
EP3627782A1 (en) Data processing method and apparatus and switching device
CN113765796B (en) Flow forwarding control method and device
CN117319343A (en) Policy routing implementation method, device and storage medium
CN112751766A (en) Message forwarding method and device and computer storage medium
CN108173776A (en) Message forwarding method and device, computer readable storage medium
US11902144B1 (en) Preserving consistency of redundant border gateway protocol link state topology information
US20230068443A1 (en) Dynamic packet routing using prioritized groups

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