Data processing method and related device
By receiving the link feedback message from the switch and processing it according to the identification resolution type, the problem of high system energy consumption caused by the topology discovery protocol in SDN is solved, and the efficiency of link information acquisition is improved.
Patent Information
- Application Number
- CN202111582261.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-22
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-12-22
AI Technical Summary
In software-defined networking (SDN), existing topology discovery protocols result in high system energy consumption because the controller needs to periodically send topology discovery messages to all switches, resulting in unnecessary processing and waste of system resources.
By receiving link feedback messages sent by the switch, the parsing type is determined based on the identification of the source switch and the target switch, and only the necessary link feedback messages are parsed and processed to obtain link information and reduce system energy consumption.
This reduces system energy consumption when obtaining link information, improves processing efficiency, and avoids unnecessary processing of all link feedback messages.
Smart Images

Figure CN114285782B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data processing method and related devices. Background Art
[0002] The topology discovery of software-defined network (SDN) uses the discovery protocol of the NOX controller, OFDP, which is implemented on the basis of the Link Layer Discovery Protocol (LLDP) in traditional networks. The essence of LLDP is an information discovery and notification protocol, which stipulates that devices from different manufacturers can not only send their own configuration messages to adjacent network devices, but also store the messages of adjacent network devices.
[0003] When the device is connected for the first time, the switch will configure the IP address and TCP port number of the controller. When it starts, the switch will communicate with the corresponding controller and establish a secure transmission channel (Transport Layer Security, TLS) to protect the connection. The controller sends a message to the switch through the secure channel to send its own device version and other information, and sends a request message to request the configuration message of the switch. The switch sends a reply message to the controller to reply to the controller, replying with its own MAC address and information of each port, etc. At this time, the controller and the switch have a preliminary interaction, but the controller only knows the address and port configuration information of the switch, but does not know the position of the switch in the network, and the link status information of the switch connection.
[0004] In order to obtain the global network topology view, the controller periodically sends messages containing topology discovery protocol data units to all ports of all switches in the network at a specified time (default 5s).
[0005] The switch can allow the controller to set forwarding rules between switches to control the path of the flow in the network. In the current topology discovery, the controller will send pre-installed rules to the switch in advance. When the switch receives a topology discovery message (Ethernet type 0X88cc) from a port other than the controller, it adds the receiving port and other information, and encapsulates and forwards it to the controller. When performing topology discovery, it processes all messages, resulting in high energy consumption of the system. Summary of the invention
[0006] The embodiments of the present application provide a data processing method and related devices, which can reduce energy consumption when acquiring system link information.
[0007] A first aspect of an embodiment of the present application provides a data processing method, the method comprising:
[0008] receiving a link feedback message sent by a switch, wherein the link feedback message includes a source switch identifier and a target switch identifier;
[0009] Determine the parsing type of the link feedback message according to the source switch identifier and the target switch identifier;
[0010] The link feedback message is parsed according to the parsing type to obtain link information.
[0011] In combination with the first aspect, in a possible implementation manner, determining the parsing type of the link feedback message according to the source switch identifier and the target switch identifier includes:
[0012] Determine an identifier offset according to the source switch identifier and the target switch identifier;
[0013] The parsing type is determined according to the identification offset.
[0014] In combination with the first aspect, in a possible implementation manner, the method further includes:
[0015] Determine the target link quality between the source switch and the target switch according to the link information;
[0016] According to the target link quality being lower than a preset link quality, determining a first fault prediction time according to the target link quality;
[0017] Acquire data traffic between the source switch and the target switch;
[0018] Determining a second fault prediction time according to the data flow;
[0019] Determining a target fault prediction time according to the first fault prediction time and the second fault prediction time;
[0020] The target failure prediction time is sent to the switch.
[0021] In combination with the first aspect, in a possible implementation manner, the determining the second fault prediction time according to the data flow, the device includes:
[0022] According to the data flow, determine the peak flow within a preset time interval to obtain K target peak flows;
[0023] Determine the offsets between the K peak flows and a preset peak flow rate to obtain K target offsets;
[0024] The second fault prediction time is determined according to the K target offsets and the time of the peak flow corresponding to the K target offsets.
[0025] In combination with the first aspect, in a possible implementation manner, the link feedback message includes link failure information, and the method further includes:
[0026] Determine the fault type according to the link fault log information;
[0027] Acquire first device information of the source switch, and acquire second device information of the target switch;
[0028] Determine a fault resolution method according to the fault type, the first device information, and the second device information.
[0029] A second aspect of an embodiment of the present application provides a data processing device, the device comprising:
[0030] A receiving unit, configured to receive a link feedback message sent by a switch, wherein the link feedback message includes a source switch identifier and a target switch identifier;
[0031] A determination unit, configured to determine a parsing type of the link feedback message according to the source switch identifier and the target switch identifier;
[0032] A processing unit is used to parse the link feedback message according to the parsing type to obtain link information.
[0033] In conjunction with the second aspect, in a possible implementation manner, the determining unit is used to:
[0034] Determine an identifier offset according to the source switch identifier and the target switch identifier;
[0035] The parsing type is determined according to the identification offset.
[0036] In conjunction with the second aspect, in a possible implementation manner, the device is further used for:
[0037] Determine the target link quality between the source switch and the target switch according to the link information;
[0038] According to the target link quality being lower than a preset link quality, determining a first fault prediction time according to the target link quality;
[0039] Acquire data traffic between the source switch and the target switch;
[0040] Determining a second fault prediction time according to the data flow;
[0041] Determining a target fault prediction time according to the first fault prediction time and the second fault prediction time;
[0042] The target failure prediction time is sent to the switch.
[0043] In conjunction with the second aspect, in a possible implementation manner, in determining the second fault prediction time according to the data flow, the apparatus is configured to:
[0044] According to the data flow, determine the peak flow within a preset time interval to obtain K target peak flows;
[0045] Determine the offsets between the K peak flows and a preset peak flow rate to obtain K target offsets;
[0046] The second fault prediction time is determined according to the K target offsets and the time of the peak flow corresponding to the K target offsets.
[0047] In conjunction with the second aspect, in a possible implementation manner, the link feedback message includes link failure information, and the apparatus is further configured to:
[0048] Determine the fault type according to the link fault log information;
[0049] Acquire first device information of the source switch, and acquire second device information of the target switch;
[0050] Determine a fault resolution method according to the fault type, the first device information, and the second device information.
[0051] A third aspect of an embodiment of the present application provides a terminal, comprising a processor, an input device, an output device and a memory, wherein the processor, input device, output device and memory are interconnected, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the step instructions in the first aspect of the embodiment of the present application.
[0052] The fourth aspect of the embodiments of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in the first aspect of the embodiments of the present application.
[0053] A fifth aspect of the embodiments of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
[0054] Implementing the embodiments of the present application has at least the following beneficial effects:
[0055] By receiving a link feedback message sent by a switch, the link feedback message includes a source switch identifier and a target switch identifier, determining a parsing type of the link feedback message according to the source switch identifier and the target switch identifier, and parsing the link feedback message according to the parsing type to obtain link information, so that the link feedback message can be parsed according to the parsing type determined by the source switch identifier and the target switch identifier, thereby eliminating the need to process all link feedback messages, thereby reducing system energy consumption when acquiring link information. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0057] Figure 1A A flowchart of a data processing method is provided for an embodiment of the present application;
[0058] Figure 1B A link schematic diagram is provided for an embodiment of the present application;
[0059] Figure 1C Another link schematic diagram is provided for the embodiment of the present application;
[0060] Figure 1D Another link schematic diagram is provided for the embodiment of the present application;
[0061] Figure 1E Another link schematic diagram is provided for the embodiment of the present application;
[0062] Figure 2 A flowchart of another data processing method is provided for an embodiment of the present application;
[0063] Figure 3 A schematic diagram of the structure of a terminal provided in an embodiment of the present application;
[0064] Figure 4 A structural diagram of data processing is provided for an embodiment of the present application. DETAILED DESCRIPTION
[0065] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0066] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0067] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.
[0068] See also Figure 1A , Figure 1A A flow chart of a data processing method is provided for an embodiment of the present application. Figure 1A As shown, the data processing method is applied to the SDN controller, and the data processing method includes:
[0069] 101. Receive a link feedback message sent by a switch, where the link feedback message includes a source switch identifier and a target switch identifier.
[0070] The SDN controller receives a link feedback message. The link feedback message can be sent by the source switch or the target switch. The source switch and the target switch are switches in the SDN network. The link feedback message sent by them is used to feedback link information, so that the SDN controller can obtain link status information in the SDN.
[0071] The source switch ID and the target switch ID may be customized by the system or may be set using the inherent ID of the switch.
[0072] 102. Determine a parsing type of the link feedback message according to the source switch identifier and the target switch identifier.
[0073] The resolution type may be determined based on an identifier offset determined according to the source switch identifier and the target switch identifier. The offset may be directly determined based on the values of the source switch identifier and the target switch identifier.
[0074] 103. According to the analysis type, parse the link feedback message to obtain link information.
[0075] Different analysis types have different processing methods. For example, if the analysis type is the first type, the link feedback message is analyzed; if the analysis type is the second type, the link feedback message is discarded.
[0076] In this example, a link feedback message sent by a receiving switch includes a source switch identifier and a target switch identifier, and a parsing type of the link feedback message is determined according to the source switch identifier and the target switch identifier. The link feedback message is parsed according to the parsing type to obtain link information, so that the link feedback message can be parsed according to the parsing type determined by the source switch identifier and the target switch identifier, thereby eliminating the need to process all link feedback messages, thereby reducing system energy consumption when acquiring link information.
[0077] In a possible implementation, a possible method for determining the parsing type of the link feedback message according to the source switch identifier and the target switch identifier includes:
[0078] A1. Determine an identifier offset according to the source switch identifier and the target switch identifier;
[0079] A2. Determine the parsing type according to the identification offset.
[0080] The difference between the values of the source switch identifier and the target switch identifier may be determined as the identifier offset.
[0081] According to the identification offset, the method for determining the parsing type may be: if the value of the identification offset is positive, the parsing type is the first type; if the value of the identification offset is negative, the parsing type is the second type. Of course, it may also be that if the value of the identification offset is positive, the parsing type is the second type; if the value of the identification offset is negative, the parsing type is the first type.
[0082] In this example, the parsing type is determined by identifying the offset, which can improve the accuracy of determining the parsing type.
[0083] In a possible implementation, the present application embodiment further provides a method for fault prediction, which is specifically as follows:
[0084] B1. Determine the target link quality between the source switch and the target switch according to the link information;
[0085] B2. according to which the target link quality is lower than the preset link quality, determining a first fault prediction time according to the target link quality;
[0086] B3. Obtaining data traffic between the source switch and the target switch;
[0087] B4. Determine a second fault prediction time according to the data flow;
[0088] B5. Determine a target fault prediction time according to the first fault prediction time and the second fault prediction time;
[0089] B6. Send the target fault prediction time to the switch.
[0090] The link information can reflect the link quality, so that the target link quality can be determined. The preset link quality is set by experience value or historical data. Since the probability of link failure increases when the link quality is low, the first failure prediction time of link failure can be predicted.
[0091] The lower the link quality, the closer the first fault prediction time is to the current time; the higher the link quality, the farther the first fault prediction time is from the current time.
[0092] The data flow between the source switch and the target switch can be understood as the data flow when the source switch and the target switch exchange data. The larger the data flow, the closer the second fault prediction time is to the current time; the smaller the link quality, the farther the second fault prediction time is from the current time.
[0093] The time closer to the current time between the first fault prediction time and the second fault prediction time can be determined as the target fault prediction time. Of course, the time corresponding to the average of the time difference between the first fault prediction time and the second fault prediction time and the current time can also be determined as the target fault prediction time.
[0094] In this example, the first fault prediction time is determined by the link quality, and the second fault prediction time is determined by the size of the data flow, and the target fault prediction time is determined based on the first fault prediction time and the second fault prediction time, thereby improving the accuracy of determining the target fault prediction time.
[0095] In a possible implementation, a possible method for determining a second fault prediction time according to the data flow includes:
[0096] C1. Determine the peak flow rate within a preset time interval according to the data flow rate to obtain K target peak flows;
[0097] C2. Determine the offset between the K peak flows and the preset peak flows to obtain K target offsets;
[0098] C3. Determine the second fault prediction time according to the K target offsets and the time of the peak flow corresponding to the K target offsets.
[0099] The data flow includes a plurality of peak flows. The preset time interval is set by empirical values or historical data. The peak flow within the preset time interval can be understood as the flow when the flow peaks. The preset peak flow is set by empirical values or historical data.
[0100] The moment of the peak flow corresponding to the maximum value of the K target offsets may be determined as the second fault prediction moment. Alternatively, the moment of the flow value corresponding to the average value of the K target offsets may be determined as the second fault prediction moment.
[0101] In this example, the second fault prediction moment is determined by a target offset determined by an offset between a peak flow rate and a preset peak flow rate, thereby improving the accuracy of determining the second fault prediction moment.
[0102] In a possible implementation, the link feedback message includes link failure information, and a possible method further includes:
[0103] D1. Determine the fault type according to the link fault log information;
[0104] D2. Acquire first device information of the source switch, and acquire second device information of the target switch;
[0105] D3. Determine a fault resolution method based on the fault type, the first device information, and the second device information.
[0106] The link fault log information records the fault information, so that the fault type can be determined based on the fault information. The device information of the switch can be understood as the inherent attribute information, operation status information, etc. of the switch.
[0107] Different fault types, first device information, and second device information correspond to different fault solutions, which can be adapted to the fault type, first device information, and second device information to solve the link fault, thereby improving the accuracy of determining the link fault solution.
[0108] In a specific implementation, the embodiment of the present application provides a specific link message processing method, which is as follows:
[0109] 1. Periodic polling with no change in network topology
[0110] like Figure 1B As shown, including the SDN controller, Switch S1, and Switch S2, the same link between switches S1 and S2 will generate two Packet-In messages (S1, port1)→(S2, port3) and (S2, port3)→(S1, port1), of which (S1, port1)→(S2, port3) will update the link, while (S2, port3)→(S1, port1) will be discarded. In this way, the number of Packet-Ins that actually need to be processed is equal to the total number of links, which is 50% of the total number of Packet-In messages.
[0111] 2. Changes in connection ports between nodes
[0112] like Figure 1C As shown, the switch S2 changes its port 3 to port 4 and is connected to port 1 of the switch S1.
[0113] At this time, the same link between switches S1 and S2 will generate two Packet-In messages (S1, port1)→(S2, port4) and (S2, port4)→(S1, port1). Among them, (S1, port1)→(S2, port4) will update the link, while (S2, port4)→(S1, port1) will be discarded. In this way, the actual number of Packet-Ins that need to be processed is equal to the total number of links, which is 50% of the total number of Packet-In messages.
[0114] 3. Add new nodes
[0115] like Figure 1DAs shown, the newly added switch S0 (the controller has not yet numbered the switches, all are defaulted to S0) is changed from port 3 to port 4 to be connected to port 1 of switch S1.
[0116] At this time, the same link between switches S0 and S1 will generate two Packet-In messages (S0, port1)→(S1, port3) and (S1, port3)→(S0, port1). Among them, (S0, port1)→(S1, port3) will update the link, while (S1, port3)→(S0, port1) will be discarded. In this way, the actual number of Packet-Ins that need to be processed is equal to the total number of links, which is 50% of the total number of Packet-In messages.
[0117] 4. Node or port failure causes link failure
[0118] like Figure 1E As shown in the figure, the link between switches S1 and S2 fails due to the failure of node S2 or the failure of Port3 of S2. Then the two Packet-In messages (S1, port1)→(S2, port3) and (S2, port3)→(S1, port1) of this link cannot be sent to the controller normally. At this time, the original link representation aging mechanism takes effect, and the corresponding representation will be deleted after the timer times out. In this way, the number of Packet-Ins that actually need to be processed is equal to the number of corresponding links, which is 50% of the total number of Packet-In messages.
[0119] See also Figure 2 , Figure 2 A flowchart of another data processing method is provided for the embodiment of the present application. Figure 2 As shown, the data processing method includes:
[0120] 201. Receive a link feedback message sent by a switch, where the link feedback message includes a source switch identifier and a target switch identifier;
[0121] 202. Determine a parsing type of the link feedback message according to the source switch identifier and the target switch identifier;
[0122] 203. According to the analysis type, parse the link feedback message to obtain link information;
[0123] 204. Determine the target link quality between the source switch and the target switch according to the link information;
[0124] 205. According to the target link quality being lower than a preset link quality, determining a first fault prediction time according to the target link quality;
[0125] 206. Obtain data traffic between the source switch and the target switch;
[0126] 207. Determine a second fault prediction time according to the data flow;
[0127] 208. Determine a target fault prediction time according to the first fault prediction time and the second fault prediction time;
[0128] 209. Send the target fault prediction time to the switch.
[0129] In this example, the first fault prediction time is determined by the link quality, and the second fault prediction time is determined by the size of the data flow, and the target fault prediction time is determined based on the first fault prediction time and the second fault prediction time, thereby improving the accuracy of determining the target fault prediction time.
[0130] For the above embodiments, please refer to Figure 3 , Figure 3 A schematic diagram of the structure of a terminal provided in an embodiment of the present application, as shown in the figure, includes a processor, an input device, an output device and a memory, the processor, the input device, the output device and the memory are interconnected, wherein the memory is used to store a computer program, the computer program includes program instructions, the processor is configured to call the program instructions, and the program includes instructions for executing the following steps;
[0131] receiving a link feedback message sent by a switch, wherein the link feedback message includes a source switch identifier and a target switch identifier;
[0132] Determine the parsing type of the link feedback message according to the source switch identifier and the target switch identifier;
[0133] The link feedback message is parsed according to the parsing type to obtain link information.
[0134] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that in order to realize the above functions, the terminal includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0135] The embodiment of the present application can divide the terminal into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0136] In line with the above, see Figure 4 , Figure 4 A structural diagram of a data processing device is provided for an embodiment of the present application. Figure 4 As shown, the device comprises:
[0137] The receiving unit 401 is configured to receive a link feedback message sent by a switch, wherein the link feedback message includes a source switch identifier and a target switch identifier;
[0138] A determination unit 402, configured to determine a parsing type of the link feedback message according to the source switch identifier and the target switch identifier;
[0139] The processing unit 403 is used to parse the link feedback message according to the parsing type to obtain link information.
[0140] In a possible implementation, the determining unit 402 is configured to:
[0141] Determine an identifier offset according to the source switch identifier and the target switch identifier;
[0142] The parsing type is determined according to the identification offset.
[0143] In a possible implementation, the device is further used for:
[0144] Determine the target link quality between the source switch and the target switch according to the link information;
[0145] According to the target link quality being lower than a preset link quality, determining a first fault prediction time according to the target link quality;
[0146] Acquire data traffic between the source switch and the target switch;
[0147] Determining a second fault prediction time according to the data flow;
[0148] Determining a target fault prediction time according to the first fault prediction time and the second fault prediction time;
[0149] The target failure prediction time is sent to the switch.
[0150] In a possible implementation manner, in determining the second fault prediction time according to the data flow, the apparatus is configured to:
[0151] According to the data flow, determine the peak flow within a preset time interval to obtain K target peak flows;
[0152] Determine the offsets between the K peak flows and a preset peak flow rate to obtain K target offsets;
[0153] The second fault prediction time is determined according to the K target offsets and the time of the peak flow corresponding to the K target offsets.
[0154] In a possible implementation manner, the link feedback message includes link failure information, and the apparatus is further configured to:
[0155] Determine the fault type according to the link fault log information;
[0156] Acquire first device information of the source switch, and acquire second device information of the target switch;
[0157] Determine a fault resolution method according to the fault type, the first device information, and the second device information.
[0158] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any data processing method recorded in the above method embodiments.
[0159] An embodiment of the present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program enables a computer to execute part or all of the steps of any data processing method recorded in the above method embodiments.
[0160] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0161] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0162] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the device or unit can be electrical or other forms.
[0163] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0164] In addition, the functional units in the various embodiments of the application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software program modules.
[0165] If the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program codes.
[0166] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, which can include: a flash drive, a read-only memory, a random access memory, a magnetic disk or an optical disk, etc.
[0167] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A data processing method, characterized in that: The method comprises: receiving a link feedback message sent by a switch, wherein the link feedback message includes a source switch identifier and a target switch identifier; Determine the parsing type of the link feedback message according to the source switch identifier and the target switch identifier; Parsing the link feedback message according to the parsing type to obtain link information; Determine the target link quality between the source switch and the target switch according to the link information; According to the target link quality being lower than a preset link quality, determining a first fault prediction time according to the target link quality; Acquire data traffic between the source switch and the target switch; Determining a second fault prediction time according to the data flow; Determining a target fault prediction time according to the first fault prediction time and the second fault prediction time; The target failure prediction time is sent to the switch.
2. The method according to claim 1, characterized in that The determining the parsing type of the link feedback message according to the source switch identifier and the target switch identifier includes: Determine an identifier offset according to the source switch identifier and the target switch identifier; The parsing type is determined according to the identification offset.
3. The method according to claim 1, characterized in that: The determining the second fault prediction time according to the data flow includes: According to the data flow, determine the peak flow within a preset time interval to obtain K target peak flows; Determine the offset between the K target peak flows and the preset peak flows to obtain K target offsets; The second fault prediction time is determined according to the K target offsets and the time of the peak flow corresponding to the K target offsets.
4. The method according to claim 3, characterized in that The link feedback message includes link failure information, and the method further includes: Determine the fault type according to the link fault information; Acquire first device information of the source switch, and acquire second device information of the target switch; Determine a fault resolution method according to the fault type, the first device information, and the second device information.
5. A data processing device, characterized in that: The device comprises: A receiving unit, configured to receive a link feedback message sent by a switch, wherein the link feedback message includes a source switch identifier and a target switch identifier; A determination unit, configured to determine a parsing type of the link feedback message according to the source switch identifier and the target switch identifier; A processing unit is used to parse and process the link feedback message according to the parsing type to obtain link information, determine the target link quality between the source switch and the target switch according to the link information; determine a first fault prediction time according to the target link quality, based on the target link quality being lower than a preset link quality; obtain data traffic between the source switch and the target switch; determine a second fault prediction time according to the data traffic; determine a target fault prediction time according to the first fault prediction time and the second fault prediction time; and send the target fault prediction time to the switch.
6. The device according to claim 5, characterized in that The determining unit is used for: Determine an identifier offset according to the source switch identifier and the target switch identifier; The parsing type is determined according to the identification offset.
7. A terminal, characterized in that: The method comprises a processor, an input device, an output device and a memory, wherein the processor, the input device, the output device and the memory are interconnected, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 4.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 4.
