Convergence and diversion system

Implementing aggregation and distribution through universal switching hardware and computing hardware platforms solves the problem of existing equipment requiring different line cards to support different specifications of interfaces and processing capabilities, reducing costs and simplifying overall machine management.

CN115065641BActive Publication Date: 2024-08-23SHENZHEN DONGSHENG DATA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210647269.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-09
Publication Date
2024-08-23
Estimated Expiration
2042-06-09

AI Technical Summary

Technical Problem

Existing aggregation and distribution equipment requires the development of different line cards to support the number of interfaces or processing capabilities of different specifications, resulting in high costs.

Method used

Adopt a convergence and distribution system based on universal switching hardware and computing hardware platforms, and perform data processing and distribution through data line modules, business processing modules and multi-user output modules, avoiding dependence on line cards, switching boards and main control boards .

Benefits of technology

It reduces the cost of aggregation and distribution equipment, avoids the need to develop different line cards and switching boards under different specifications of processing bandwidth requirements, simplifies overall machine management, and does not rely on specialized main control boards and hardware environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115065641B
    Figure CN115065641B
Patent Text Reader

Abstract

The present invention discloses a convergence and shunting system, including a data line module, a plurality of service processing modules, and a plurality of multi-user output modules communicatively connected to the service processing modules; the service processing modules include a switching node and a plurality of service processing nodes communicatively connected to the switching nodes, and the multi-user output modules include a multi-user node and a plurality of output nodes communicatively connected to the multi-user nodes. The present invention processes data messages through the service processing nodes of the service processing modules, determines the output nodes of the data messages through the multi-user nodes, and then forwards the data messages to the target user terminals through the output nodes. Since the service processing modules and the multi-user output modules are both implemented with universal hardware, convergence and shunting devices with different functions can all adopt the convergence and shunting system, and there is no need to develop different line cards for different convergence and shunting devices, thereby reducing the cost of the convergence and shunting devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a convergence and distribution system. Background Art

[0002] The convergence and diversion equipment is a real-time data collection and analysis equipment, which filters and diverts the copied messages according to the established rules and sends them to the back-end business system. Traditional convergence and diversion equipment often adopts dedicated hardware architectures such as ATCA architecture used in the telecommunications field or data center field. The convergence and diversion equipment of ATCA architecture often includes chassis, line cards, switching boards, and main control boards. Specifically, network data is connected to the system from the line card, and the line card filters the network data according to the rules and sends the filtered network data to the switching board for forwarding. The switching board forwards the network data to the target line card, and the line card then outputs the network data load balancing from the interface of the board according to the user configuration.

[0003] At present, the convergence and distribution equipment of the ATCA architecture is implemented using special hardware chips, such as NP chips, FPGA chips or switching chips. The number of interfaces and processing capabilities supported by line cards of different convergence and distribution equipment are different. Different line cards need to be developed to support the number of interfaces or processing capabilities of different specifications, resulting in high costs for the convergence and distribution equipment.

[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present invention is to provide a convergence and distribution system, aiming to solve the technical problem that different line cards need to be developed to support different specifications of interface numbers or processing capabilities in existing convergence and distribution equipment.

[0006] To achieve the above-mentioned object, the present invention provides a convergence and distribution system implemented based on a general switching hardware and computing hardware platform, the convergence and distribution system comprising a data line module, a plurality of service processing modules and a plurality of multi-user output modules communicatively connected to the service processing modules;

[0007] The service processing module includes a switching node and a plurality of service processing nodes communicatively connected to the switching node, and the multi-user output module includes a multi-user node and a plurality of output nodes communicatively connected to the multi-user node;

[0008] The data line module inputs the received data message into a target switching node of a target business processing module among the multiple business processing modules;

[0009] The target switching node preprocesses the data message, and sends the preprocessed first data message to a target service processing node among the multiple service processing nodes;

[0010] The target service processing node obtains the five-tuple information, the payload content, and the mask rule ID information corresponding to the first data message, determines the hit information corresponding to the five-tuple information based on the five-tuple information, determines the second data message corresponding to the first data message based on the hit information, and forwards the second data message to the target user output module in the multi-user output module through the target switching node;

[0011] The target multi-user node of the target user output module determines the third data message corresponding to each destination user and the target output node corresponding to each destination user based on the second data message, and transmits each third data message to the corresponding target output node respectively;

[0012] The target output node outputs the third data message to a target user terminal corresponding to the target user.

[0013] Further, the target switching node obtains the quintuple information of the data message, and queries the mask rule based on the quintuple information to obtain the mask rule id information corresponding to the quintuple information;

[0014] The target switching node adds a custom message header to the data message and adds the mask rule id information to the custom message header to obtain a preprocessed first data message;

[0015] The target switching node determines a target service processing node among multiple service processing nodes based on a load balancing algorithm, and sends the first data message to the target service processing node.

[0016] Further, the target service processing node determines the dynamically derived five-tuple rule, precise five-tuple rule, mask rule and string rule corresponding to the first data message based on the five-tuple information, the payload content and the mask rule id information;

[0017] The target service processing node determines the composite rule corresponding to the first data message based on the precise five-element rule, the mask rule and the character string rule;

[0018] The target business processing node determines the priority of the hit rule of each destination user corresponding to the quintuple information among the dynamically derived quintuple rule, the precise quintuple rule, the mask rule, the string rule and the compound rule, and determines the hit information of the destination user based on the priority.

[0019] Further, the target service processing node determines the dynamically derived five-tuple rule corresponding to the first data message based on the dynamically derived five-tuple rule table and the five-tuple information;

[0020] The target service processing node determines the precise five-tuple rule corresponding to the first data message based on the five-tuple information; determines the mask rule corresponding to the first data message based on the mask rule id information;

[0021] The target service processing node determines a character string rule corresponding to the first data message based on the payload content.

[0022] Further, the target service processing node determines a maximum priority rule corresponding to each destination user based on the priority, and determines a target maximum priority rule whose rule result is a non-discarding action based on the rule results corresponding to each maximum priority rule;

[0023] The target service processing node uses the rule id information of the target maximum priority rule as the hit information, and adds the hit information to the custom message header of the first data message to obtain the second data message.

[0024] Further, the target service processing node determines the rule weight corresponding to each destination user based on the weight corresponding to the hit rule, the weight corresponding to the precise five-element rule, the weight corresponding to the mask rule, the weight corresponding to the string rule, and the weight corresponding to the composite rule, and determines the target rule weight that is greater than the preset weight among the rule weights;

[0025] The target service processing node uses the rule ID information of the maximum priority rule corresponding to the target rule weight as the hit information, and adds the hit information to the custom message header of the first data message to obtain the second data message.

[0026] Further, the target service processing node determines the number of hits of each of the dynamically derived five-element rule, the precise five-element rule, the mask rule, the string rule, and the composite rule, and determines the user priority of each destination user based on the number of hits and the priority;

[0027] The target service processing node determines a target user priority greater than a preset threshold among the user priorities, and determines a target user corresponding to the target user priority among each target user;

[0028] The target service processing node determines a to-be-processed rule corresponding to the maximum priority among the rule priorities of each target user, and determines a target to-be-processed rule with a rule result being a non-discarding action based on the rule results corresponding to each to-be-processed rule;

[0029] The target service processing node uses the rule id information of the target to-be-processed rule as the hit information, and adds the hit information to the custom message header of the first data message to obtain the second data message.

[0030] Further, the target multi-user node obtains the five-tuple information corresponding to the second data message and the rule id information in the hit information;

[0031] The target multi-user node replicates the second data message based on the number of the rule id information to obtain replicated messages corresponding to the number;

[0032] The target multi-user node adds the corresponding VLAN information and rule id information of the destination user to the MAC address of each duplicate message to obtain a third data message.

[0033] Further, the target output node obtains quintuple information and VLAN information corresponding to the third data message, determines a target output interface group based on the VLAN information, and outputs the third data message to a target user terminal corresponding to a target user through the target output interface group.

[0034] Further, the switching node includes general programmable switch hardware, the service processing node includes general computing hardware, the multi-user node includes general programmable switch hardware, and the output node includes general programmable switch hardware.

[0035] The present invention sets a service processing module and a multi-user output module, processes data messages through the service processing node of the service processing module, forwards the processed data messages to the multi-user node of the multi-user output module through the switching node, determines the output node of the data message through the multi-user node, and then forwards the data message to the target user terminal through the output node, thereby realizing the convergence and diversion of data messages. Since the service processing module and the multi-user output module are both implemented by universal hardware, the convergence and diversion process does not need to be implemented by devices such as line cards, switching boards, and main control boards, and thus convergence and diversion devices with different functions can all use the convergence and diversion system, without the need to develop different line cards for different convergence and diversion devices, thereby reducing the cost of the convergence and diversion devices. At the same time, in view of the fact that a special main control board is required to manage the whole machine board and services during the existing whole machine management, and the whole machine management software needs to run on a main control board with a special hardware environment, the convergence and diversion system does not require a special main control board and hardware environment. For bandwidth requirements of different specifications, the convergence and distribution system can avoid the situation where the convergence and distribution devices of ATCA and orthogonal architectures have different specifications of chassis and the convergence and distribution devices of orthogonal architectures have different switch boards. The convergence and distribution system does not need to develop new line cards and switch boards when the backplane switching bandwidth needs to be improved, further saving hardware development costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is a structural schematic diagram of an embodiment of a converging and diverting system of the present invention;

[0037] Figure 2 It is a structural schematic diagram of a service processing module in the convergence and distribution system of the present invention;

[0038] Figure 3 It is a schematic diagram of the structure of a multi-user output module in the convergence and distribution system of the present invention.

[0039] Description of Figure Numbers:

[0040] Label name Label name 100 Convergence and diversion system 110 Data line module 120 Business processing module 130 Multi-user output module 121 Switching Node 122 Business processing node 131 Multi-user node 132 Output Node

[0041] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0042] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0044] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0045] In addition, the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0046] The present invention also provides a convergence and diversion system, referring to Figures 1 to 3 .

[0047] In this embodiment, refer to Figure 1 The convergence and distribution system 100 includes a data line module 110 , a plurality of service processing modules 120 , and a multi-user output module 130 communicatively connected to the service processing module 120 .

[0048] Among them, refer to Figure 2 , the service processing module 120 includes a switching node 121 and a plurality of service processing nodes 122 that are communicatively connected to the switching node 121, that is, each service processing module 120 includes a switching node 121 and a plurality of service processing nodes 122, and each service processing node 122 is communicatively connected to the corresponding switching node 121 via an optical fiber. The switching node 121 includes general programmable switch hardware, that is, the general programmable switch hardware of the switching node 121 implements functions such as data access and forwarding, and the service processing node 122 implements service processing functions using hardware of a general computing platform hardware architecture, thereby being able to form a service processing module 120 through the existing general programmable switch hardware and hardware of a computing platform hardware architecture.

[0049] Reference Figure 3The multi-user output module 130 includes a multi-user node 131 and a plurality of output nodes 132 communicatively connected to the multi-user node 131. In this embodiment, a plurality of multi-user output modules 130 may be provided, and the multi-user nodes 131 of each multi-user output module 130 are respectively connected to the plurality of output nodes 132 via optical fibers. The multi-user node 131 includes general programmable switch hardware, and the output node 132 includes general programmable switch hardware, so that the multi-user output module 130 can be formed by the existing general programmable switch hardware.

[0050] The data line module 110 inputs the received data message into the target switching node 121 of the target business processing module 120 among the multiple business processing modules 120. The data line can be directly connected to the switching node 121 of the business processing module 120 through the line connection. When the data line module 110 receives the data message, the data line module 110 can obtain the first load information of each business processing module 120, and determine the target business processing module 120 among the multiple business processing modules 120 through the load balancing algorithm based on the first load information. Alternatively, a load device is set in the convergence and distribution system 100, and the load device is respectively connected to the data line module 110 and the multiple business processing modules 120 for communication. When it is detected that the data line module 110 receives the data message, the load device obtains the first load information of each business processing module 120, and determines the target business processing module 120 among the multiple business processing modules 120 through the load balancing algorithm based on the first load information, and feeds the target business processing module 120 back to the data line module 110. When the target service processing module 120 is determined, the data line module 110 forwards the received data message to the target switching node 121 of the target service processing module 120 , and tries to ensure that the number of lines received by each switching node 121 is relatively balanced.

[0051] The target switching node 121 preprocesses the data message, and sends the preprocessed first data message to a target service processing node 122 among the multiple service processing nodes 122 .

[0052] In this embodiment, the target switching node 121 first pre-processes the data message to obtain the first message data. At the same time, the target switching node 121 determines the target business processing node 122 among the multiple business processing nodes 122 based on the load balancing algorithm. The load balancing algorithm can be a five-yuan rent SDIP hash algorithm (exclusive OR calculation method), and forwards the first data message to the target business processing node 122. Specifically, the first data message is forwarded to the output interface group corresponding to the target business processing node 122 in the target switching node 121, and the first data message is forwarded to the target business processing node 122 through the output interface group.

[0053] Specifically, the target switching node 121 obtains the quintuple information of the data message, and queries the mask rule based on the quintuple information to obtain the mask rule id information corresponding to the quintuple information. The target switching node 121 adds a custom message header to the data message and adds the mask rule id information to the custom message header to obtain the preprocessed first data message. The target switching node 121 determines the target service processing node 122 among the multiple service processing nodes 122 based on the load balancing algorithm, and sends the first data message to the target service processing node 122.

[0054] In this embodiment, the five-tuple information includes the source IP address, the source port, the destination IP address, the destination port and the transport layer protocol. The target switching node 121 first parses the data message and extracts the five-tuple information of the message. Then, the target switching node 121 queries the mask rule based on the five-tuple information to obtain the mask rule id information corresponding to the five-tuple information. The mask rule id information is the id information of the mask rule of the five-tuple information. Next, the target switching node 121 adds a custom message header to the data message, that is, sets a custom message header in the data message, and adds the mask rule id information to the custom message header to obtain the first data message after preprocessing, and then marks the mask rule id information to the custom message header of the first data message for subsequent use.

[0055] The target business processing node 122 obtains the five-tuple information, payload content and mask rule id information corresponding to the first data packet, determines the hit information corresponding to the five-tuple information based on the five-tuple information, determines the second data packet corresponding to the first data packet based on the hit information, and forwards the second data packet to the multi-user node 131 of the multi-user output module 130 through the target switching node 121.

[0056] In this embodiment, when the target business processing node 122 obtains the first data message, it parses the first data message and extracts the five-tuple information, payload content and mask rule id information in the first data message. Then, the target business processing node 122 respectively determines the rules corresponding to the five-tuple information, payload content and mask rule id information, determines the hit information based on the rules, determines the second data message corresponding to the first data message based on the hit information, and then forwards the second data message to the target switching node 121.

[0057] When receiving the second data message, the target switching node 121 determines the target multi-user output module 130 corresponding to the second data message in the multi-user output module 130 based on the internal forwarding rule and the load balancing algorithm, and outputs the second data message to the output interface group corresponding to the target multi-user output module 130 in the target switching node 121, and outputs the second data message to the target multi-user output module 130 through the output interface group corresponding to the target multi-user output module 130.

[0058] Specifically, in one embodiment, the target business processing node 122 determines the dynamically derived five-tuple rule, mask rule and string rule corresponding to the first data message based on the five-tuple information, payload content and mask rule id information; the target business processing node 122 determines the composite rule corresponding to the first data message based on the precise five-tuple rule, the mask rule and the string rule; the target business processing node 122 determines the priority of the hit rule of each destination user corresponding to the five-tuple information among the dynamically derived five-tuple rule, the precise five-tuple rule, the mask rule, the string rule and the composite rule, and determines the hit information of the destination user based on the priority.

[0059] In this embodiment, when the quintuple information, payload content and mask rule id information are obtained, the target service processing node 122 determines the dynamically derived quintuple rule, mask rule and string rule corresponding to the first data message based on the quintuple information, payload content and mask rule id information. Specifically, the target service processing node 122 determines the dynamically derived quintuple rule corresponding to the first data message based on the dynamically derived quintuple rule table and the quintuple information, that is, the target service processing node 122 queries the dynamically derived quintuple rule table according to the quintuple information to obtain the dynamically derived quintuple rule that matches the quintuple information, that is, the dynamically derived quintuple rule corresponding to the first data message; the target service processing node 122 determines the precise quintuple rule corresponding to the first data message based on the quintuple information, for example, the target service processing node 122 queries the precise quintuple rule corresponding to the quintuple information through the flow table of flow management; The target service processing node 122 determines the mask rule corresponding to the first data message based on the mask rule id information. For example, the target service processing node 122 queries the mask rule list through the mask rule id information, obtains the mask rule corresponding to the mask rule id information, and obtains the mask rule corresponding to the first data message; the target service processing node 122 determines the string rule corresponding to the first data message based on the payload content. For example, the target service processing node 122 determines the string rule table through the payload content, and determines the string rule corresponding to the first data message, that is, the string rule corresponding to the payload content. Then, the dynamically derived five-tuple rule, precise five-tuple rule, mask rule and string rule can be accurately obtained through the five-tuple information, payload content and mask rule id information, thereby improving the diversion efficiency of data messages.

[0060] It should be noted that the dynamically derived five-element rule refers to a five-element rule derived from a specific rule. The dynamically derived five-element rule table includes multiple dynamically derived five-element rules. For example, in order to track the traffic of a five-element session, a five-element rule can be generated after a string rule is hit. A message of a certain data flow hits the string rule, while subsequent messages of the data flow may not include the string rule. In order to track subsequent messages of the data flow, when the string rule is hit, a dynamically derived five-element rule is generated according to the hit message, and the dynamically derived five-element rule is added to the dynamically derived five-element rule table. Subsequent messages of the data flow will inevitably hit the dynamically derived five-element rule in the dynamically derived five-element rule table.

[0061] Next, the target business processing node 122 determines the compound rule corresponding to the first data message based on the precise five-element rule, the mask rule and the string rule; specifically, the target business processing node 122 obtains the precise five-element rule id information corresponding to the precise five-element rule, the mask rule id information corresponding to the mask rule and the string rule id information corresponding to the string rule, and queries the compound rule table based on the precise five-element rule id information, the mask rule id information and the string rule id information to determine the compound rule corresponding to the first data message, the compound rule being a rule in the compound rule table that matches the precise five-element rule id information, the mask rule id information and the string rule id information, wherein the compound rules in the compound rule table are compounded according to the rule id information corresponding to the precise five-element rule, the mask rule and the string rule, and each compound rule in the compound rule table corresponds to the rule id of a precise five-element rule and the rule id of a string rule, or each compound rule corresponds to the rule id of a mask rule and the rule id of a string rule.

[0062] When determining the composite rule, the target service processing node 122 determines the priority of the hit rule of each destination user corresponding to the five-tuple information among the dynamically derived five-tuple rule, the precise five-tuple rule, the mask rule, the string rule and the composite rule. Specifically, the target service processing node 122 determines each destination user based on the five-tuple information, for example, determines the destination user based on the destination IP address or the destination port, and then determines the hit rule corresponding to each destination user among the dynamically derived five-tuple rule, the precise five-tuple rule, the mask rule, the string rule and the composite rule. For each destination user, the hit rule may include one or more rules among the dynamically derived five-tuple rule, the precise five-tuple rule, the mask rule, the string rule and the composite rule. The hit rules of each destination user may be the same or different. The target service processing node 122 determines the priority of each hit rule according to the priority of the dynamically derived five-tuple rule, the priority of the precise five-tuple rule, the priority of the mask rule, the priority of the string rule and the priority of the composite rule, and determines the hit information of the destination user based on the priority of the hit rule.

[0063] Specifically, in one implementation, the target service processing node 122 determines the maximum priority rule corresponding to each destination user based on the priority, and determines the target maximum priority rule whose rule result is a non-discarding action based on the rule results corresponding to each maximum priority rule; the target service processing node 122 uses the rule id information of the target maximum priority rule as the hit information, and adds the hit information to the custom message header of the first data message to obtain the second data message.

[0064] In this embodiment, when determining the priority of each hit rule, the target service processing node 122 determines the maximum priority rule corresponding to each destination user based on the priority. For each destination user, the maximum priority rule is the rule corresponding to the maximum priority in the priority of its hit rules. When the maximum priority rule is obtained, the target service processing node 122 obtains the rule results corresponding to each maximum priority rule. For each maximum priority rule, if the rule result is a non-discarding action, the maximum priority rule is the target maximum priority rule. Next, the target service processing node 122 obtains the rule id information corresponding to the target maximum priority rule, and uses the rule id information as the hit information, and adds the hit information to the custom message header of the first data message to obtain the second data message. In addition, the hit information can be accurately obtained through the rule result of the maximum priority rule, further improving the efficiency of data message diversion.

[0065] Furthermore, in another embodiment, the target business processing node 122 determines the rule weight corresponding to each destination user based on the weight corresponding to the hit rule, the weight corresponding to the precise five-element rule, the weight corresponding to the mask rule, the weight corresponding to the string rule, and the weight corresponding to the compound rule, and determines the target rule weight among the rule weights that is greater than the preset weight; the target business processing node 122 uses the rule id information of the maximum priority rule corresponding to the target rule weight as the hit information, and adds the hit information to the custom message header of the first data message to obtain the second data message.

[0066] In this embodiment, the target business processing node 122 obtains the weight corresponding to the hit rule, the weight corresponding to the precise five-element rule, the weight corresponding to the mask rule, the weight corresponding to the string rule, and the weight corresponding to the composite rule, and determines the rule weight corresponding to each destination user based on the obtained weight. For each destination user, the rule weight is the sum of the weights of each rule in the hit rule corresponding to it. Then, the target business processing node 122 determines the target rule weight that is greater than the preset weight in the rule weight; the target business processing node 122 uses the rule id information of the maximum priority rule corresponding to the target rule weight as the hit information, and adds the hit information to the custom message header of the first data message to obtain the second data message. Then, the hit information can be accurately obtained through the priority and the weight of the rule, further improving the efficiency of data message diversion.

[0067] Furthermore, in another embodiment, the target business processing node 122 determines the number of hits of each rule in the dynamically derived five-element rule, the precise five-element rule, the mask rule, the string rule and the compound rule, and determines the user priority of each destination user based on the number of hits and the priority; the target business processing node 122 determines the target user priority in the user priority that is greater than a preset threshold, and determines the target user corresponding to the target user priority among each destination user; the target business processing node 122 determines the pending rule corresponding to the maximum priority in the rule priority of each target user, and based on the rule results corresponding to each pending rule, determines the target pending rule whose rule result is a non-discarding action; the target business processing node 122 uses the rule id information of the target pending rule as the hit information, and adds the hit information to the custom message header of the first data message to obtain the second data message.

[0068] In this embodiment, when determining the priority of each hit rule, the target business processing node 122 determines the hit count of each rule in the dynamically derived five-element rule, the precise five-element rule, the mask rule, the string rule, and the compound rule. For each to-be-determined rule in the dynamically derived five-element rule, the precise five-element rule, the mask rule, the string rule, and the compound rule, the hit count is the number of users of the target users including the to-be-determined rule in the hit rules corresponding to each target user. Then, the user priority corresponding to each target user is determined based on the hit count and the priority of each hit rule. Specifically, for each target user, its user priority = the priority of each hit rule * the weight corresponding to the hit rule / the hit count corresponding to the hit rule, that is, the user priority is:

[0069]

[0070] Among them, A is the user priority of the destination user, i is the number of hit rules corresponding to the destination user, and b i is the priority of the i-th rule in the hit rule, c i is the weight of the i-th rule in the hit rule, N i is the number of hits of the i-th rule in the hit rules.

[0071] When the user priority corresponding to each destination user is obtained, the target service processing node 122 determines the target user priority greater than the preset threshold in the user priority, determines the target user corresponding to the target user priority in each destination user, and determines the pending rule corresponding to the maximum priority in the rule priority of each target user. For each target user, its rule priority is the priority of all rules corresponding to the target user, and based on the rule results corresponding to each pending rule, determines the target pending rule whose rule result is a non-discarding action; the target service processing node 122 uses the rule id information of the target pending rule as the hit information, and adds the hit information to the custom message header of the first data message to obtain the second data message. Then, the hit information can be accurately obtained through the priority, the number of hits and the weight of the rule, and the efficiency of data message diversion is further improved.

[0072] However, the present design is not limited thereto. In other implementations, when the user priority corresponding to each destination user is obtained, the target service processing node 122 determines the priority of the to-be-screened user that is less than or equal to the preset threshold value in the user priority, and determines the to-be-screened user corresponding to the to-be-screened user priority in each destination user. The target service processing node 122 obtains the current operating state of the output interface group corresponding to the to-be-screened user, and the current operating state includes a transmission state and an idle state. The target service processing node 122 determines the busy user in the transmission state among the to-be-screened users according to the current operating state. The target service processing node 122 uses the other users among each destination user except the busy user as the destination user. The target user is then determined by the target service processing node 122 to be processed corresponding to the maximum priority of the rule priorities of each target user. For each target user, its rule priority is the priority of all rules corresponding to the target user, and based on the rule results corresponding to each of the rules to be processed, the target rule to be processed whose rule result is a non-discarding action is determined; the target service processing node 122 uses the rule ID information of the target rule to be processed as the hit information, and adds the hit information to the custom message header of the first data message to obtain the second data message, and further improves the efficiency of data message diversion by eliminating busy users with lower user priorities from the target users.

[0073] The target multi-user node 131 of the target user output module determines the third data message corresponding to each destination user and the target output node 132 corresponding to each destination user based on the second data message, and transmits each third data message to the corresponding target output node 132 respectively.

[0074] In this embodiment, when the target multi-user node 131 receives the second data packet, it determines the third data packet corresponding to each destination user and the target output node 132 corresponding to each destination user based on the second data packet. For example, the VLAN information of the destination user or the target user is added to the second data packet to obtain the third data packet, and the target output node 132 is determined according to the rule id information of the second data packet, and each third data packet is transmitted to the corresponding target output node 132.

[0075] Specifically, in one implementation, the target multi-user node 131 obtains the five-tuple information corresponding to the second data packet and the rule id information in the hit information; the target multi-user node 131 copies the second data packet based on the number of the rule id information to obtain the number of copied packets corresponding to the number; the target multi-user node 131 adds the corresponding destination user's VLAN information and rule id information to the MAC address of each copied packet to obtain a third data packet.

[0076] In this embodiment, the target multi-user node 131 performs message parsing on the second data message, obtains the five-tuple information corresponding to the second data message and the rule id information in the hit information, and copies the second data message according to the number of rule id information to obtain the number of copied messages corresponding to the number. The target multi-user node 131 adds the corresponding VLAN information and rule id information of the destination user to the MAC address of each copied message, so that each copied message carries the VLAN information and rule id information of a destination user, and obtains a third data message.

[0077] The target output node 132 outputs the third data message to the target user terminal corresponding to the target user. Specifically, the target output node 132 obtains the five-tuple information and VLAN information corresponding to the third data message, determines the target output interface group based on the VLAN information, and outputs the third data message to the target user terminal corresponding to the target user through the target output interface group. That is, the vlan id mask rule table is queried through the VLAN information to obtain the target output interface group, and the target output interface group is determined through the load balancing algorithm, which can be the five-tuple SDIP hash algorithm (exclusive or calculation method).

[0078] The convergence and diversion system of this embodiment, by setting up a business processing module and a multi-user output module, processes the data message through the business processing node of the business processing module, and forwards the processed data message to the multi-user node of the multi-user output module through the switching node, determines the output node of the data message through the multi-user node, and then forwards the data message to the target user terminal through the output node, thereby realizing the convergence and diversion of data messages. Since the business processing module and the multi-user output module are both implemented by universal hardware, the convergence and diversion process does not need to be implemented by devices such as line cards, switching boards, and main control boards, and thus convergence and diversion devices with different functions can all use the convergence and diversion system, and there is no need to develop different line cards for different convergence and diversion devices, thereby reducing the cost of convergence and diversion devices. At the same time, in view of the fact that a special main control board is required to manage the whole machine board and services during the existing whole machine management, and the whole machine management software needs to run on a main control board with a special hardware environment, the convergence and diversion system does not require a special main control board and hardware environment. For bandwidth requirements of different specifications, the convergence and distribution system can avoid the situation where the convergence and distribution devices of ATCA and orthogonal architectures have different specifications of chassis and the convergence and distribution devices of orthogonal architectures have different switch boards. The convergence and distribution system does not need to develop new line cards and switch boards when the backplane switching bandwidth needs to be improved, further saving hardware development costs.

[0079] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0080] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0081] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0082] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A converging and diverting system, characterized in that: The convergence and distribution system includes a data line module, a plurality of service processing modules, and a plurality of multi-user output modules communicatively connected to the service processing modules; The service processing module includes a switching node and a plurality of service processing nodes communicatively connected to the switching node, and the multi-user output module includes a multi-user node and a plurality of output nodes communicatively connected to the multi-user node; The data line module inputs the received data message into a target switching node of a target business processing module among the multiple business processing modules; The target switching node preprocesses the data message, and sends the preprocessed first data message to a target service processing node among the multiple service processing nodes; The target service processing node obtains the five-tuple information, the payload content, and the mask rule ID information corresponding to the first data message, determines the hit information corresponding to the five-tuple information based on the five-tuple information, determines the second data message corresponding to the first data message based on the hit information, and forwards the second data message to the target user output module in the multi-user output module through the target switching node; The target multi-user node of the target user output module determines the third data message corresponding to each destination user and the target output node corresponding to each destination user based on the second data message, and transmits each third data message to the corresponding target output node respectively; The target output node outputs the third data message to a target user terminal corresponding to the target user; Among them, the target business processing node determines the dynamically derived five-tuple rule, precise five-tuple rule, mask rule and string rule corresponding to the first data message based on the five-tuple information, payload content and mask rule id information; the target business processing node determines the composite rule corresponding to the first data message based on the precise five-tuple rule, the mask rule and the string rule; the target business processing node determines the priority of the hit rules of each destination user corresponding to the five-tuple information among the dynamically derived five-tuple rule, the precise five-tuple rule, the mask rule, the string rule and the composite rule, and determines the hit information of the destination user based on the priority.

2. The converging and diverting system according to claim 1, characterized in that: The target switching node obtains the quintuple information of the data message, and queries the mask rule based on the quintuple information to obtain the mask rule id information corresponding to the quintuple information; The target switching node adds a custom message header to the data message and adds the mask rule id information to the custom message header to obtain a preprocessed first data message; The target switching node determines a target service processing node among multiple service processing nodes based on a load balancing algorithm, and sends the first data message to the target service processing node.

3. The converging and diverting system according to claim 1, characterized in that: The target service processing node determines the dynamically derived five-tuple rule corresponding to the first data message based on the dynamically derived five-tuple rule table and the five-tuple information; The target service processing node determines the precise five-tuple rule corresponding to the first data message based on the five-tuple information; determines the mask rule corresponding to the first data message based on the mask rule id information; The target service processing node determines a character string rule corresponding to the first data message based on the payload content.

4. The converging and diverging system according to claim 1, characterized in that: The target service processing node determines the maximum priority rule corresponding to each destination user based on the priority, and determines the target maximum priority rule with the rule result being a non-discarding action based on the rule results corresponding to each maximum priority rule; The target service processing node uses the rule id information of the target maximum priority rule as the hit information, and adds the hit information to the custom message header of the first data message to obtain the second data message.

5. The converging and diverging system according to claim 1, characterized in that: The target service processing node determines the rule weight corresponding to each destination user based on the weight corresponding to the hit rule, the weight corresponding to the precise five-element rule, the weight corresponding to the mask rule, the weight corresponding to the string rule, and the weight corresponding to the composite rule, and determines the target rule weight that is greater than the preset weight among the rule weights; The target service processing node uses the rule ID information of the maximum priority rule corresponding to the target rule weight as the hit information, and adds the hit information to the custom message header of the first data message to obtain the second data message.

6. The converging and diverging system according to claim 1, characterized in that: The target service processing node determines the number of hits of each of the dynamically derived five-element rule, the precise five-element rule, the mask rule, the string rule, and the composite rule, and determines the user priority of each destination user based on the number of hits and the priority; The target service processing node determines a target user priority greater than a preset threshold among the user priorities, and determines a target user corresponding to the target user priority among each target user; The target service processing node determines a to-be-processed rule corresponding to the maximum priority among the rule priorities of each target user, and determines a target to-be-processed rule with a rule result being a non-discarding action based on the rule results corresponding to each to-be-processed rule; The target service processing node uses the rule id information of the target to-be-processed rule as the hit information, and adds the hit information to the custom message header of the first data message to obtain the second data message.

7. The converging and diverging system according to claim 1, characterized in that: The target multi-user node obtains the five-tuple information corresponding to the second data message and the rule id information in the hit information; The target multi-user node replicates the second data message based on the number of the rule id information to obtain replicated messages corresponding to the number; The target multi-user node adds the corresponding VLAN information and rule id information of the destination user to the MAC address of each duplicate message to obtain a third data message.

8. The converging and diverging system according to claim 1, characterized in that: The target output node obtains quintuple information and VLAN information corresponding to the third data message, determines a target output interface group based on the VLAN information, and outputs the third data message to a target user terminal corresponding to a target user through the target output interface group.

9. The converging and diverging system according to any one of claims 1 to 8, characterized in that: The switching node includes general programmable switch hardware, the multi-user node includes general programmable switch hardware, and the output node includes general programmable switch hardware.