Message data transmission method and device, storage medium and electronic device

By configuring the processor on each switching chip in the network switching device, monitoring and updating the port status in real time, and directly interacting with data, it solves the problem of low transmission efficiency caused by failure or overload of ECMP group members, and realizes rapid switching and improves transmission efficiency.

CN119109892APending Publication Date: 2024-12-10SUZHOU CENTEC COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411336172.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-24
Publication Date
2024-12-10

AI Technical Summary

Technical Problem

In network forwarding, in case of failure of ECMP group members or service overload, it is difficult for the existing technology to quickly switch data paths, resulting in low packet data transmission efficiency and unable to effectively solve the transmission efficiency problem.

Method used

In network switching devices, each switching chip is configured with a processor, and through the connection between switching chips, it monitors and updates the port status in real time, directly interacts data, avoids the participation of the main control CPU, and realizes rapid switching of data paths.

Benefits of technology

The transmission efficiency of message data is improved, the delay caused by the third device transmitting port status data is reduced, and the message data forwarding path of the target switching chip is quickly switched.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119109892A_ABST
    Figure CN119109892A_ABST
Patent Text Reader

Abstract

The invention discloses a message data transmission method and device, a storage medium and an electronic device, and the method comprises the steps: receiving a data transmission request which is used for requesting to transmit target message data to other network equipment; the data transmission request is responded, port state data sent by a reference processor is obtained, the reference processor is a processor configured on a reference switch chip except the target switch chip in the multiple switch chips, and the port state data is used for indicating the message transmission state of a message transmission port included in the corresponding switch chip; updating an initial state table on the target switch chip according to the port state data to obtain a target state table; and screening out candidate switching chips for transmitting the target message data from the plurality of switching chips according to the target state table. By adopting the technical scheme, the problem of low transmission efficiency of the message data in related technologies is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to a method and device for transmitting message data, a storage medium, and an electronic device. Background Art

[0002] In network forwarding, there may be multiple paths for message data to reach the destination from the current hop. If the costs of these paths are the same (the costs may include the number of devices to be passed, the number of routes, the time, etc.), these paths constitute an ECMP (Equal Cost Multiple Path) group, and each path is a member of the ECMP group. The switching chip will select data streams to forward to different members according to the current traffic load of each member to achieve load sharing. If a member's link fails, the data needs to be switched to other unfaulted paths to prevent a large number of packet losses from causing service interruptions.

[0003] In a network switching device composed of multiple stacked switching chips, there is a situation where the local chip port and the remote chip port (i.e., not the local chip) are in the same ECMP group. At this time, if the remote chip port fails or the service is overloaded, the local chip needs to switch the message data to other normal paths for forwarding to prevent the loss of message data from causing service interruption. In the related technology, since the local chip cannot perceive the abnormal situation of the remote chip port in real time, the remote chip needs to interrupt the current service and notify the main control CPU (Central Processing Unit) of the network switching device, and then the main control CPU notifies the local chip to switch the data link, and then selects other normal ports for message data transmission. This switching time can be as long as hundreds of milliseconds, resulting in low transmission efficiency of message data.

[0004] With regard to the problem of low transmission efficiency of message data in related technologies, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a method and device for transmitting message data, a storage medium, and an electronic device, so as to at least solve the problem of low transmission efficiency of message data in the related art.

[0006] According to an embodiment of the present application, a method for transmitting message data is provided, wherein a plurality of switching chips are deployed on a network switching device, each of the switching chips is respectively configured with a processor, and a connection relationship is established between the plurality of processors, and the switching chip is used to implement a message data transmission function of the network switching device, and the method is applied to a target processor configured on a target switching chip among the plurality of the switching chips, including:

[0007] Receiving a data transmission request, wherein the data transmission request is used to request to send target message data to other network devices;

[0008] In response to the data transmission request, obtaining port status data sent by a reference processor, wherein the reference processor is a processor configured on a reference switching chip other than the target switching chip among the plurality of switching chips, and the port status data is used to indicate a message transmission status of a message transmission port included in the corresponding switching chip;

[0009] The initial state table on the target switching chip is updated according to the port state data to obtain a target state table, wherein the initial state table records the message transmission state of the message transmission port included in each of the switching chips in the plurality of switching chips;

[0010] A candidate switching chip for transmitting the target message data is screened out from a plurality of switching chips according to the target state table.

[0011] Optionally, obtaining the port status data sent by the reference processor includes:

[0012] Sending a status acquisition request to the reference processor, wherein the status acquisition request is used to request to query the current operating status of the message transmission port on the reference switching chip;

[0013] Receiving target response information sent by the reference processor in response to the status acquisition request, wherein the target response information is generated by the reference processor according to a current message transmission state of a message transmission port on the corresponding reference switching chip;

[0014] The port status data of the reference switch chip is converted according to the target response information.

[0015] Optionally, converting the port status data of the reference switching chip according to the target response information includes one of the following:

[0016] In the case where the target response information is a status message, extracting a target field value of a key field corresponding to each message transmission port in the reference switching chip carried in the status message, wherein the status message is generated by the reference processor according to the operating status of each message transmission port in the reference switching chip, and the key field is used to indicate the operating status of the corresponding message transmission port in the reference switching chip; determining the port status data corresponding to the target field value from the field value and status data of the key field having a corresponding relationship;

[0017] In a case where the target response information is a target interrupt message for indicating the operating status of a message transmission port, a target message transmission port corresponding to the target interrupt message is determined from interrupt messages and ports having a corresponding relationship; and the operating status of the target message transmission port is determined to be a target operating status corresponding to a message type of the target interrupt message, wherein the port status data includes the target operating status of the target message transmission port.

[0018] Optionally, before obtaining the port status data sent by the reference processor, the method further includes:

[0019] Receiving a status update request sent by the reference processor, wherein the status update request is generated by the reference processor according to the operating status of the message transmission port in the reference switching chip after detecting that an update cycle for the port status has been reached;

[0020] The candidate state table stored in the target switch chip is updated according to the running state of the message transmission port of the reference switch chip carried in the state update request to obtain the initial state table.

[0021] Optionally, updating the initial state table on the target switch chip according to the port state data includes:

[0022] In the case where the port state data is target fault data of a port, the initial fault data of the corresponding message transmission port in the initial state table is updated using the target fault data to obtain the target state table, wherein the target fault data is used to indicate the fault state of the corresponding message transmission port in the reference switching chip;

[0023] In the case where the port status data is target message transmission data, the target message transmission data is used to update the initial message transmission data of the corresponding message transmission port in the initial status table to obtain the target status table, wherein the target message transmission data is used to indicate the execution status of the message transmission service of the corresponding message transmission port in the reference switching chip.

[0024] Optionally, the selecting a candidate switching chip for transmitting the target message data from a plurality of switching chips according to the target state table includes:

[0025] According to the fault data of the message transmission port recorded in the target state table, searching for an initial message transmission port among the message transmission ports included in the plurality of switching chips, wherein the fault data is used to indicate whether the operation state of the corresponding message transmission port is in a fault state, and the initial message transmission port is a message transmission port in a normal operation state;

[0026] Sorting the plurality of initial message transmission ports according to the message transmission data of each message transmission port recorded in the target state table to obtain a port sequence, wherein the message transmission data is used to characterize the execution status of the message transmission service of the corresponding message transmission port;

[0027] Extracting reference message transmission ports whose order meets the target ordering condition from the port sequence;

[0028] The switch chip to which the reference message transmission port belongs is determined as the candidate switch chip.

[0029] Optionally, the step of sorting the plurality of initial message transmission ports according to the message transmission data of each message transmission port recorded in the target state table to obtain a port sequence comprises:

[0030] Obtaining a weight parameter of each sub-data in a plurality of sub-data, wherein the message transmission data includes the plurality of sub-data, and the plurality of sub-data are used to characterize the execution of the message transmission service by the initial message transmission port from a plurality of dimensions;

[0031] Using the weight parameter to perform weighted sum calculation on the multiple sub-data, to obtain a message transmission score of each of the initial message transmission ports, wherein the message transmission score is used to indicate the corresponding capability of the corresponding initial message transmission port for the message transmission service;

[0032] The plurality of initial message transmission ports are sorted according to the data relationship of the message transmission scores to obtain the port sequence.

[0033] According to another embodiment of the embodiment of the present application, a message data transmission device is further provided, wherein a plurality of switching chips are deployed on a network switching device, each of the switching chips is respectively configured with a processor, and a plurality of the processors are connected to each other, and the switching chip is used to implement the message data transmission function of the network switching device, and the device is applied to a target processor configured on a target switching chip among the plurality of the switching chips, including:

[0034] A first receiving module, used for receiving a data transmission request, wherein the data transmission request is used for requesting to send target message data to other network devices;

[0035] an acquisition module, configured to respond to the data transmission request and acquire port status data sent by a reference processor, wherein the reference processor is a processor configured on a reference switching chip other than the target switching chip among the plurality of switching chips, and the port status data is used to indicate a message transmission status of a message transmission port included in the corresponding switching chip;

[0036] A first updating module, configured to update an initial state table on the target switching chip according to the port state data to obtain a target state table, wherein the initial state table records the message transmission state of the message transmission port included in each of the switching chips in the plurality of switching chips;

[0037] A screening module is used to screen out a candidate switching chip for transmitting the target message data from a plurality of switching chips according to the target state table.

[0038] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned message data transmission method when running.

[0039] According to another aspect of an embodiment of the present application, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the message data transmission method through the computer program.

[0040] In an embodiment of the present application, a processor is configured on each of the multiple switching chips deployed on the network switching device, and the processors of different switching chips are associated with each other. Therefore, before transmitting message data, the target switching chip can obtain the port status data sent by the processor configured on the reference switching chip through the processor configured on the target switching chip, and then query the message transmission status of the message transmission port included in the corresponding switching chip according to the port status data, and then update the initial status table on the target switching chip according to the port status data to obtain the target status table, and then screen out the candidate switching chips for transmitting the target message data from the multiple switching chips according to the target status table, so that the switching chip can directly perform data interaction through the processor configured on the switching chip. This process does not require the participation of the main control CPU in the network switching device. It only needs to monitor the message transmission status of the message transmission port included in the current switching chip in real time through the processor configured on the switching chip, and then synchronize and update the initial status table on the target switching chip, thereby realizing the rapid switching of the message data forwarding path of the target switching chip, avoiding the delay problem caused by the third device transmitting the port status data in the related technology, and improving the transmission efficiency of the message data. The above technical solution solves the problem of low transmission efficiency of message data in related technologies and achieves the technical effect of improving the transmission efficiency of message data. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0042] 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0043] Figure 1 It is a hardware environment schematic diagram of a method for transmitting message data according to an embodiment of the present application;

[0044] Figure 2 is a flow chart of a method for transmitting message data according to an embodiment of the present application;

[0045] Figure 3 A schematic diagram of a method for fast ECMP switching in a stacking scenario according to an embodiment of the present application Figure 1 ;

[0046] Figure 4 A schematic diagram of a method for fast ECMP switching in a stacking scenario according to an embodiment of the present application Figure 2 ;

[0047] Figure 5 It is a structural block diagram of a message data transmission device according to an embodiment of the present application. DETAILED DESCRIPTION

[0048] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

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

[0050] The method embodiments provided in the embodiments of the present application can be executed in a computer terminal, a device terminal or a similar computing device. Taking running on a computer terminal as an example, Figure 1 FIG. 1 is a schematic diagram of a hardware environment of a method for transmitting message data according to an embodiment of the present application. Figure 1 As shown, the computer terminal may include one or more ( Figure 1 Only one is shown in the figure) processor 102 (processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. In an exemplary embodiment, the computer terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer terminal. Figure 1 More or fewer components as shown, or with Figure 1 Equivalent functions or comparisons shown Figure 1 A different configuration with more features is shown.

[0051] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for sending message push in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0052] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0053] In this embodiment, a method for transmitting message data is provided, which is applied to the above-mentioned computer terminal. Figure 2 1 is a flow chart of a method for transmitting message data according to an embodiment of the present application, and the flow includes the following steps:

[0054] Step S202, receiving a data transmission request, wherein the data transmission request is used to request to send target message data to other network devices;

[0055] Step S204, in response to the data transmission request, obtaining port status data sent by a reference processor, wherein the reference processor is a processor configured on a reference switching chip other than the target switching chip among the plurality of switching chips, and the port status data is used to indicate a message transmission status of a message transmission port included in the corresponding switching chip;

[0056] Step S206, updating the initial state table on the target switching chip according to the port state data to obtain a target state table, wherein the initial state table records the message transmission state of the message transmission port included in each of the switching chips in the plurality of switching chips;

[0057] Step S208: Screening out a candidate switch chip for transmitting the target message data from a plurality of switch chips according to the target state table.

[0058] Through the above steps, a processor is configured on each of the multiple switching chips deployed on the network switching device, and the processors of different switching chips are associated with each other. Therefore, before the target switching chip transmits the message data, it can obtain the port status data sent by the processor configured on the reference switching chip through the processor configured on the target switching chip, and then query the message transmission status of the message transmission port included in the corresponding switching chip according to the port status data, and then update the initial state table on the target switching chip according to the port status data to obtain the target state table, and then screen out the candidate switching chips for transmitting the target message data from the multiple switching chips according to the target state table, so that the switching chip can directly perform data interaction through the processor configured on the switching chip. This process does not require the participation of the main control CPU in the network switching device, and only needs to monitor the message transmission status of the message transmission port included in the current switching chip in real time through the processor configured on the switching chip, and then synchronize and update the initial state table on the target switching chip, thereby realizing the rapid switching of the message data forwarding path of the target switching chip, avoiding the delay problem caused by the third device transmitting the port status data in the related technology, and improving the transmission efficiency of the message data. The above technical solution solves the problem of low transmission efficiency of message data in related technologies and achieves the technical effect of improving the transmission efficiency of message data.

[0059] In the embodiment provided in the above step S204, the message transmission state of the message transmission port can be used, but not limited to, to characterize whether the corresponding message transmission port can normally perform the message transmission service, that is, the port state data includes data for whether the message transmission port is currently in a fault state. The message transmission state can also be used to characterize the execution of the message transmission service by the corresponding message transmission port, so the port state data includes the service load of the message transmission port, the message transmission rate, etc., which is not limited in this solution.

[0060] Optionally, in an embodiment of the present application, the port status data sent by the reference processor can be obtained by sending a status acquisition request to the reference processor, that is, when the target processor detects that the port status data of the reference switching chip is needed, it sends a status acquisition request to the processor deployed on the corresponding switching chip, and then queries the current operating status of the message transmission port on the reference switching chip, and then converts the port status data of the reference switching chip according to the target response information sent by the reference processor. The target processor detects whether the port status data of the reference switching chip is needed by: detecting the update status of the port status data of the reference switching chip in the status table recorded in the target switching chip, and the update status indicates the time interval between the update time of the port status data of the reference switching chip and the current moment. When the time interval is greater than the target time interval, it is determined that the reference switching chip needs to be obtained. Port status data; in this embodiment, it can be obtained by querying the port operation log recorded in the reference switching chip, which can be achieved in the following ways: sending a log acquisition request to the reference processor, the log acquisition request is used to request to obtain the port operation log generated by the reference switching chip, the port operation log records the port operation status information of the message transmission port included in the reference switching chip; converting the data format of the port operation log to obtain a target operation log, the data format of the target operation log is an internal data format that can be directly processed by the processor; traversing each field in the target operation log, extracting the field value of the status field corresponding to the message transmission port included in the reference switching chip, the status field is used to indicate the operation status of the message transmission port included in the reference switching chip; converting the port status data of the reference switching chip according to the field value of the status field.

[0061] In the embodiment provided in the above step S206, the initial state table is a data storage structure for recording the real-time or historical operation state data of each message transmission port on all switch chips in the network switching device. Such data may include, but is not limited to, the operation state of the port (normal, faulty, maintenance-medium), the fault type (such as open circuit, short circuit, logic error, electrical performance degradation, etc.), the time when the fault occurred, the recovery time (if it has been recovered), and possible fault causes.

[0062] Optionally, in an embodiment of the present application, after receiving the port status data sent by the reference processor, the initial status table on the target switching chip needs to be updated according to the port status data. When the port status data indicates port fault data, the initial fault data of the corresponding port in the initial status table on the target switching chip is updated; when the port status data indicates message transmission data, for example, a port on the reference switching chip may have a service overload or transmission error, the initial message transmission data of the corresponding port in the initial status table on the target switching chip is updated.

[0063] Optionally, in an embodiment of the present application, updating the initial state table on the target switching chip according to the port status data can also be achieved by parsing the port status data according to a protocol pre-agreed between the chips, and the implementation steps are as follows: S1: According to the protocol and data format pre-agreed between the target switching chip and the reference switching chip, the port status data sent by the reference processor is parsed to extract the current status information of each port included in the reference switching chip; S2: Based on the port status data obtained by the analysis, the corresponding entry is queried in the initial state table according to the port identifier corresponding to each port in the reference switching chip; S3: After finding the corresponding entry, the status information of the entry is updated according to the port status data. If the port status becomes inactive or faulty, the status of the entry is marked as unavailable; if the port resumes the active state, the status of the entry is marked as available.

[0064] In the embodiment provided in the above step S208, after the initial state table is updated to the target state table, it is necessary to reselect the candidate switching chip for transmitting the message data in the target state table, which can be to first filter out the message transmission ports in the target state table that are in normal operation, and then prioritize the filtered normal message transmission ports to obtain a port sequence, and then extract the reference message transmission ports that meet the sorting conditions from the sequence, and finally determine the switching chip to which the reference message transmission port belongs as the candidate switching chip. Then, the target message data can be transmitted to the candidate switching chip, and the candidate switching chip selects the message transmission port for transmitting the target message data according to its own load condition, thereby improving the transmission efficiency of the target message data.

[0065] As an optional embodiment, obtaining the port status data sent by the reference processor includes:

[0066] Sending a status acquisition request to the reference processor, wherein the status acquisition request is used to request to query the current operating status of the message transmission port on the reference switching chip;

[0067] Receiving target response information sent by the reference processor in response to the status acquisition request, wherein the target response information is generated by the reference processor according to a current message transmission state of a message transmission port on the corresponding reference switching chip;

[0068] The port status data of the reference switch chip is converted according to the target response information.

[0069] Optionally, in an embodiment of the present application, the current operating status of the message transmission port is used to characterize the current transmission capacity of the message transmission port for message data transmission. The status acquisition request may include but is not limited to requesting to obtain the port load status, port transmission rate, port configuration status, port fault status, etc. of the message transmission port. This solution does not limit this.

[0070] Optionally, in an embodiment of the present application, after receiving a data transmission request, the target processor will first detect the status update status of the message transmission ports included on each switching chip, and then trigger a status acquisition request when the port status information is not the latest information. In this way, the data transmission pressure caused by sending status acquisition requests to all reference processors can be effectively avoided, which can be achieved through the following steps: obtaining status update information of the reference processor, the status update information is used to indicate the status update status of the message transmission port included on the reference switching chip; extracting a status identifier corresponding to each message transmission port in the reference switching chip from the status update information, the status identifier is used to indicate whether the status information of the corresponding message transmission port is the latest information; when the status identifier is used to indicate that the status information of the corresponding message transmission port is not the latest information, sending a status acquisition request to the reference processor.

[0071] Optionally, in an embodiment of the present application, the target response information is used to indicate information reflecting the current message transmission status of the message transmission port on the reference switching chip. The target response information may include but is not limited to status messages, interrupt messages, error warnings, etc., and this solution does not limit this.

[0072] As an optional embodiment, converting the port status data of the reference switching chip according to the target response information includes one of the following:

[0073] In the case where the target response information is a status message, extracting a target field value of a key field corresponding to each message transmission port in the reference switching chip carried in the status message, wherein the status message is generated by the reference processor according to the operating status of each message transmission port in the reference switching chip, and the key field is used to indicate the operating status of the corresponding message transmission port in the reference switching chip; determining the port status data corresponding to the target field value from the field value and status data of the key field having a corresponding relationship;

[0074] In a case where the target response information is a target interrupt message for indicating the operating status of a message transmission port, a target message transmission port corresponding to the target interrupt message is determined from interrupt messages and ports having a corresponding relationship; and the operating status of the target message transmission port is determined to be a target operating status corresponding to a message type of the target interrupt message, wherein the port status data includes the target operating status of the target message transmission port.

[0075] Optionally, in an embodiment of the present application, the status message is used to reflect the current message transmission status of each message transmission port in the reference switching chip. The key fields in the status message are used to characterize the message transmission capability of the corresponding message transmission port in the reference switching chip. The key fields may include but are not limited to window size, maximum transmission unit, link rate and bandwidth, DSCP (Differentiated Services Code Point), etc. This solution does not limit this.

[0076] Optionally, in an embodiment of the present application, an interrupt message is used to reflect that a message transmission port in a reference switching chip has a transmission interruption due to abnormal reasons during message transmission. The interrupt message may include but is not limited to a port receiving data interruption, a port sending data completion interruption, a port overflow interruption, a port error interruption, etc. This solution does not limit this.

[0077] As an optional embodiment, before obtaining the port status data sent by the reference processor, the method further includes:

[0078] Receiving a status update request sent by the reference processor, wherein the status update request is generated by the reference processor according to the operating status of the message transmission port in the reference switching chip after detecting that an update cycle for the port status has been reached;

[0079] The candidate state table stored in the target switch chip is updated according to the running state of the message transmission port of the reference switch chip carried in the state update request to obtain the initial state table.

[0080] Optionally, in an embodiment of the present application, before obtaining the port status data sent by the reference processor, the target processor and the reference processor may agree on time synchronization of the port status data, thereby realizing periodic updating of the initial status table on the target switching chip. The reference processor may periodically send a heartbeat packet containing the current port status data of the reference switching chip to the target processor. Regardless of whether the port status of the reference switching chip changes, the target processor updates the initial status table on the target switching chip according to the received heartbeat packet. The implementation steps are as follows: S1: Set the timestamp information of the heartbeat packet, wherein the timestamp information is used to indicate the period for the reference processor to send the port status information, and the heartbeat packet includes the port status information and the timestamp information. S2: The reference processor periodically sends a heartbeat packet to the target processor according to the timestamp information in the heartbeat packet. S3: The target processor parses the port status information carried by the heartbeat packet, and updates the initial status table on the target switching chip accordingly, while monitoring the delay and stability of the communication through the timestamp in the heartbeat packet.

[0081] Optionally, in an embodiment of the present application, the initial state table on the target switching chip can also be periodically updated by polling, and the implementation method is as follows: S1: The target processor sends a polling request to the reference processor at a predetermined time interval. S2: After receiving the polling request, the reference processor queries the port state data in the current reference switching chip and sends the queried port state data to the target processor. S3: The target processor updates the initial state table on the target switching chip according to the port state data sent by the reference processor.

[0082] As an optional embodiment, updating the initial state table on the target switch chip according to the port state data includes:

[0083] In the case where the port state data is target fault data of a port, the initial fault data of the corresponding message transmission port in the initial state table is updated using the target fault data to obtain the target state table, wherein the target fault data is used to indicate the fault state of the corresponding message transmission port in the reference switching chip;

[0084] In the case where the port status data is target message transmission data, the target message transmission data is used to update the initial message transmission data of the corresponding message transmission port in the initial status table to obtain the target status table, wherein the target message transmission data is used to indicate the execution status of the message transmission service of the corresponding message transmission port in the reference switching chip.

[0085] Optionally, in an embodiment of the present application, the target fault data is used to characterize the current fault condition of the corresponding message transmission port in the reference switching chip. The target fault data may include but is not limited to open circuit fault, logic function fault, power supply fault, heat dissipation fault, etc. This solution does not limit this.

[0086] Optionally, in an embodiment of the present application, the message transmission data may include but is not limited to the number of services, service type, service transmission rate, service transmission frequency, etc. of the message transmission service performed by the message transmission port, and this solution does not limit this.

[0087] As an optional embodiment, the step of selecting a candidate switching chip for transmitting the target message data from a plurality of switching chips according to the target state table includes:

[0088] According to the fault data of the message transmission port recorded in the target state table, searching for an initial message transmission port among the message transmission ports included in the plurality of switching chips, wherein the fault data is used to indicate whether the operation state of the corresponding message transmission port is in a fault state, and the initial message transmission port is a message transmission port in a normal operation state;

[0089] Sorting the plurality of initial message transmission ports according to the message transmission data of each message transmission port recorded in the target state table to obtain a port sequence, wherein the message transmission data is used to characterize the execution status of the message transmission service of the corresponding message transmission port;

[0090] Extracting reference message transmission ports whose order meets the target ordering condition from the port sequence;

[0091] The switch chip to which the reference message transmission port belongs is determined as the candidate switch chip.

[0092] Optionally, in an embodiment of the present application, fault data is used to characterize the health status of each message transmission port in the status table. The fault data may include, but is not limited to, a simple "normal" or "faulty" identification, and may also include information such as the specific type of fault, scope of impact, severity, etc. This solution does not limit this.

[0093] Optionally, in an embodiment of the present application, when the target switching chip needs to perform message data transmission, it will first query the target status table to obtain the latest fault data of the message transmission ports on all available switching chips. Based on these fault data, the target processor will traverse all port information in the target status table, filter out ports in normal operating state as candidate initial message transmission ports, and then sort multiple initial message transmission ports according to the set sorting rules and the message transmission data of each message transmission port recorded in the target status table, and then filter out reference message transmission ports that meet the requirements based on the sorting results, and determine the switching chip to which the reference message transmission port belongs as the candidate switching chip.

[0094] As an optional embodiment, the multiple initial message transmission ports are sorted according to the message transmission data of each message transmission port recorded in the target state table to obtain a port sequence, including:

[0095] Obtaining a weight parameter of each sub-data in a plurality of sub-data, wherein the message transmission data includes the plurality of sub-data, and the plurality of sub-data are used to characterize the execution of the message transmission service by the initial message transmission port from a plurality of dimensions;

[0096] Using the weight parameter to perform weighted sum calculation on the multiple sub-data, to obtain a message transmission score of each of the initial message transmission ports, wherein the message transmission score is used to indicate the corresponding capability of the corresponding initial message transmission port for the message transmission service;

[0097] The plurality of initial message transmission ports are sorted according to the data relationship of the message transmission scores to obtain the port sequence.

[0098] Optionally, in an embodiment of the present application, sub-data is used to characterize the transmission performance of the initial message transmission port when performing message transmission services from multiple dimensions. The sub-data may include but is not limited to the average transmission rate, packet loss rate, delay time, concurrent processing capability, error rate, resource utilization (such as CPU, memory usage), etc. of the message transmission port. This solution does not limit this.

[0099] Optionally, in an embodiment of the present application, the weight parameters are used to characterize the importance of different sub-data when evaluating the performance of the message transmission port. The weight parameters for each sub-data can be manually set according to general rules, or historical data or real-time data can be collected to automatically determine the weight parameters of each sub-data through statistical analysis or machine learning algorithms.

[0100] Optionally, in an embodiment of the present application, after obtaining the weight parameters of each sub-data, the message transmission score of each initial message transmission port is calculated by weighted summation, and the multi-dimensional sub-data can be integrated into a single indicator, and then the comprehensive performance of multiple initial message transmission ports can be comprehensively evaluated according to the message transmission scores, and then the multiple initial message transmission ports are sorted according to the calculated message transmission scores. The sorting process can be in ascending order or descending order, and this scheme does not limit this.

[0101] In order to better understand the above process, the above process is described below in conjunction with an optional embodiment, but it is not intended to limit the technical solution of the embodiment of the present application.

[0102] In this embodiment, a method for fast ECMP switching in a stacking scenario is provided. The basic idea of ​​this method is to use the built-in CPU of the chip to implement link monitoring between stacked chips and fast switching of link status of ECMP group members. Figure 3 A schematic diagram of a method for fast ECMP switching in a stacking scenario according to an embodiment of the present application Figure 1 ,like Figure 3 As shown in the figure, each switch chip has a built-in small CPU. The built-in CPU is limited by memory size and other reasons, so it cannot complete complex logic like the main CPU, but its interaction speed with the chip is faster than that of the main control CPU. Since the logic required for link monitoring and state switching is not complex, the built-in CPU of the chip can be responsible for executing this logic, which mainly includes the following steps:

[0103] Step S301: There are three members in the ECMP Group: Port 1 and Port 2 of CHIP 1 and Port 3 of CHIP 2. The message enters from CHIP 1 and is originally forwarded from Port 3.

[0104] Step S302: Port 3 fails and forwarding is unavailable. The built-in CPU of CHIP 2 quickly senses the state change and organizes a message to send to the built-in CPU of CHIP 1 to notify the change.

[0105] Step S303: The built-in CPU of CHIP 1 receives the message, senses the state change of CHIP 2, and sends a configuration to modify the member state table of ECMP. The port state of Port 3 is changed to a fault state, and CHIP 1 automatically selects other members that are not faulty for forwarding subsequent traffic (the total time from the failure of Port 3 to the selection of traffic forwarding to the new member is sub-millisecond level);

[0106] Step S304: When Port 3 resumes working, the built-in CPU of CHIP 2 will also notify the built-in CPU of CHIP 1 to modify the ECMP member status table back to its original state.

[0107] In the above embodiment, from the working principle of the chip, the chip has a member status table, which records the link status of the ECMP group members. If the status is down, the chip automatically forwards the traffic to other members that are not faulty. For the member ports of this chip, the chip can automatically monitor their status and realize automatic switching after the port fails, but for the link status record of the remote member, it can only be perceived by the main control CPU and then sent down for configuration modification.

[0108] Figure 4 A schematic diagram of a method for fast ECMP switching in a stacking scenario according to an embodiment of the present application Figure 2 ,like Figure 4 As shown in the figure, the built-in CPU of the chip monitors the local port status in real time. Once a change occurs, it sends a message through the chip interconnection port to notify the built-in CPU of the remote chip. In this way, in a stacking scenario, the local chip monitors the port status of the remote chip. According to the monitoring situation, the built-in CPU modifies the ECMP member status table of its own chip to achieve fast traffic switching.

[0109] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software and a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, 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, a disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.

[0110] Figure 5 1 is a structural block diagram of a message data transmission device according to an embodiment of the present application, wherein a plurality of switching chips are deployed on a network switching device, each of the switching chips is respectively configured with a processor, and a plurality of the processors are connected to each other, and the switching chip is used to implement the message data transmission function of the network switching device, and the device is applied to a target processor configured on a target switching chip among the plurality of the switching chips, such as Figure 5 As shown, including:

[0111] A first receiving module 502 is used to receive a data transmission request, wherein the data transmission request is used to request to send target message data to other network devices;

[0112] An acquisition module 504 is used to respond to the data transmission request and acquire port status data sent by a reference processor, wherein the reference processor is a processor configured on a reference switching chip other than the target switching chip among the plurality of switching chips, and the port status data is used to indicate a message transmission status of a message transmission port included in the corresponding switching chip;

[0113] A first updating module 506 is used to update the initial state table on the target switching chip according to the port state data to obtain a target state table, wherein the initial state table records the message transmission state of the message transmission port included in each of the switching chips in the plurality of switching chips;

[0114] The screening module 508 is used to screen out a candidate switching chip for transmitting the target message data from a plurality of switching chips according to the target state table.

[0115] Through the above embodiments, a processor is configured on each of the multiple switching chips deployed on the network switching device, and the processors of different switching chips are associated with each other. Therefore, before the target switching chip transmits the message data, it can obtain the port status data sent by the processor configured on the reference switching chip through the processor configured on the target switching chip, and then query the message transmission status of the message transmission port included in the corresponding switching chip according to the port status data, and then update the initial status table on the target switching chip according to the port status data to obtain the target status table, and then screen out the candidate switching chips for transmitting the target message data from the multiple switching chips according to the target status table, so that the switching chip can directly perform data interaction through the processor configured on the switching chip. This process does not require the participation of the main control CPU in the network switching device, and only needs to monitor the message transmission status of the message transmission port included in the current switching chip in real time through the processor configured on the switching chip, and then synchronize and update the initial status table on the target switching chip, thereby realizing the rapid switching of the message data forwarding path of the target switching chip, avoiding the delay problem caused by the third device transmitting the port status data in the related technology, and improving the transmission efficiency of the message data. The above technical solution solves the problem of low transmission efficiency of message data in related technologies and achieves the technical effect of improving the transmission efficiency of message data.

[0116] Optionally, the acquisition module includes:

[0117] A sending unit, configured to send a status acquisition request to the reference processor, wherein the status acquisition request is used to request to query the current operating status of the message transmission port on the reference switching chip;

[0118] A receiving unit, configured to receive target response information sent by the reference processor in response to the status acquisition request, wherein the target response information is generated by the reference processor according to a current message transmission state of a message transmission port on the corresponding reference switching chip;

[0119] A conversion unit is used to convert the port status data of the reference switching chip according to the target response information.

[0120] Optionally, the conversion unit is further used for:

[0121] In the case where the target response information is a status message, extracting a target field value of a key field corresponding to each message transmission port in the reference switching chip carried in the status message, wherein the status message is generated by the reference processor according to the operating status of each message transmission port in the reference switching chip, and the key field is used to indicate the operating status of the corresponding message transmission port in the reference switching chip; determining the port status data corresponding to the target field value from the field value and status data of the key field having a corresponding relationship;

[0122] In a case where the target response information is a target interrupt message for indicating the operating status of a message transmission port, a target message transmission port corresponding to the target interrupt message is determined from interrupt messages and ports having a corresponding relationship; and the operating status of the target message transmission port is determined to be a target operating status corresponding to a message type of the target interrupt message, wherein the port status data includes the target operating status of the target message transmission port.

[0123] Optionally, the device further comprises:

[0124] A second receiving module, configured to receive a status update request sent by the reference processor before obtaining the port status data sent by the reference processor, wherein the status update request is generated by the reference processor according to the operating status of the message transmission port in the reference switching chip after detecting that an update cycle for the port status has been reached;

[0125] The second updating module is used to update the candidate state table stored in the target switching chip according to the running state of the message transmission port of the reference switching chip carried in the state update request to obtain the initial state table.

[0126] Optionally, the first update module includes:

[0127] a first updating unit, configured to update the initial fault data of the corresponding message transmission port in the initial state table using the target fault data to obtain the target state table when the port state data is the target fault data of the port, wherein the target fault data is used to indicate the fault state of the corresponding message transmission port in the reference switching chip;

[0128] A second update unit is used to update the initial message transmission data of the corresponding message transmission port in the initial state table using the target message transmission data when the port state data is the target message transmission data, so as to obtain the target state table, wherein the target message transmission data is used to indicate the execution status of the message transmission service of the corresponding message transmission port in the reference switching chip.

[0129] Optionally, the screening module includes:

[0130] A search unit, configured to search for an initial message transmission port among the message transmission ports included in the plurality of switching chips according to the fault data of the message transmission port recorded in the target state table, wherein the fault data is used to indicate whether the operation state of the corresponding message transmission port is in a fault state, and the initial message transmission port is a message transmission port in a normal operation state;

[0131] A sorting unit, used for sorting the plurality of initial message transmission ports according to the message transmission data of each message transmission port recorded in the target state table to obtain a port sequence, wherein the message transmission data is used to characterize the execution status of the message transmission service of the corresponding message transmission port;

[0132] An extraction unit, configured to extract, from the port sequence, reference message transmission ports whose order meets a target ordering condition;

[0133] The determining unit is configured to determine the switching chip to which the reference message transmission port belongs as the candidate switching chip.

[0134] Optionally, the sorting unit is further used to:

[0135] Obtaining a weight parameter of each sub-data in a plurality of sub-data, wherein the message transmission data includes the plurality of sub-data, and the plurality of sub-data are used to characterize the execution of the message transmission service by the initial message transmission port from a plurality of dimensions;

[0136] Using the weight parameter to perform weighted sum calculation on the multiple sub-data, to obtain a message transmission score of each of the initial message transmission ports, wherein the message transmission score is used to indicate the corresponding capability of the corresponding initial message transmission port for the message transmission service;

[0137] The plurality of initial message transmission ports are sorted according to the data relationship of the message transmission scores to obtain the port sequence.

[0138] An embodiment of the present application further provides a storage medium, which includes a stored program, wherein when the program is run, any of the above-mentioned message data transmission methods is executed.

[0139] Optionally, in this embodiment, the storage medium may be configured to store program codes for executing the following steps:

[0140] S1, receiving a data transmission request, wherein the data transmission request is used to request to send target message data to other network devices;

[0141] S2, in response to the data transmission request, obtaining port status data sent by a reference processor, wherein the reference processor is a processor configured on a reference switching chip other than the target switching chip among the plurality of switching chips, and the port status data is used to indicate a message transmission status of a message transmission port included in the corresponding switching chip;

[0142] S3, updating the initial state table on the target switching chip according to the port state data to obtain a target state table, wherein the initial state table records the message transmission state of the message transmission port included in each of the switching chips in the plurality of switching chips;

[0143] S4, selecting a candidate switch chip for transmitting the target message data from a plurality of switch chips according to the target state table.

[0144] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above-mentioned message data transmission method embodiments.

[0145] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0146] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0147] S1, receiving a data transmission request, wherein the data transmission request is used to request to send target message data to other network devices;

[0148] S2, in response to the data transmission request, obtaining port status data sent by a reference processor, wherein the reference processor is a processor configured on a reference switching chip other than the target switching chip among the plurality of switching chips, and the port status data is used to indicate a message transmission status of a message transmission port included in the corresponding switching chip;

[0149] S3, updating the initial state table on the target switching chip according to the port state data to obtain a target state table, wherein the initial state table records the message transmission state of the message transmission port included in each of the switching chips in the plurality of switching chips;

[0150] S4, selecting a candidate switch chip for transmitting the target message data from a plurality of switch chips according to the target state table.

[0151] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.

[0152] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0153] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0154] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any one of the above method embodiments.

[0155] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0156] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0157] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for transmitting message data, characterized in that: A plurality of switching chips are deployed on a network switching device, each of the switching chips is respectively configured with a processor, and the plurality of processors are connected to each other. The switching chip is used to implement a message data transmission function of the network switching device. The method is applied to a target processor configured on a target switching chip among the plurality of switching chips. The method includes: Receiving a data transmission request, wherein the data transmission request is used to request to send target message data to other network devices; In response to the data transmission request, obtaining port status data sent by a reference processor, wherein the reference processor is a processor configured on a reference switching chip other than the target switching chip among the plurality of switching chips, and the port status data is used to indicate a message transmission status of a message transmission port included in the corresponding switching chip; The initial state table on the target switching chip is updated according to the port state data to obtain a target state table, wherein the initial state table records the message transmission state of the message transmission port included in each of the switching chips in the plurality of switching chips; A candidate switching chip for transmitting the target message data is screened out from a plurality of switching chips according to the target state table.

2. The method according to claim 1, characterized in that The obtaining of the port status data sent by the reference processor comprises: Sending a status acquisition request to the reference processor, wherein the status acquisition request is used to request to query the current operating status of the message transmission port on the reference switching chip; Receiving target response information sent by the reference processor in response to the status acquisition request, wherein the target response information is generated by the reference processor according to a current message transmission state of a message transmission port on the corresponding reference switching chip; The port status data of the reference switch chip is converted according to the target response information.

3. The method according to claim 2, characterized in that The converting the port status data of the reference switching chip according to the target response information includes one of the following: In the case where the target response information is a status message, extracting a target field value of a key field corresponding to each message transmission port in the reference switching chip carried in the status message, wherein the status message is generated by the reference processor according to the operating status of each message transmission port in the reference switching chip, and the key field is used to indicate the operating status of the corresponding message transmission port in the reference switching chip; determining the port status data corresponding to the target field value from the field value and status data of the key field having a corresponding relationship; In a case where the target response information is a target interrupt message for indicating the operating status of a message transmission port, a target message transmission port corresponding to the target interrupt message is determined from interrupt messages and ports having a corresponding relationship; and the operating status of the target message transmission port is determined to be a target operating status corresponding to a message type of the target interrupt message, wherein the port status data includes the target operating status of the target message transmission port.

4. The method according to claim 1, characterized in that Before obtaining the port status data sent by the reference processor, the method further includes: Receiving a status update request sent by the reference processor, wherein the status update request is generated by the reference processor according to the operating status of the message transmission port in the reference switching chip after detecting that an update cycle for the port status has been reached; The candidate state table stored in the target switch chip is updated according to the running state of the message transmission port of the reference switch chip carried in the state update request to obtain the initial state table.

5. The method according to claim 1, characterized in that The updating of the initial state table on the target switching chip according to the port state data includes: In the case where the port state data is target fault data of a port, the initial fault data of the corresponding message transmission port in the initial state table is updated using the target fault data to obtain the target state table, wherein the target fault data is used to indicate the fault state of the corresponding message transmission port in the reference switching chip; In the case where the port status data is target message transmission data, the target message transmission data is used to update the initial message transmission data of the corresponding message transmission port in the initial status table to obtain the target status table, wherein the target message transmission data is used to indicate the execution status of the message transmission service of the corresponding message transmission port in the reference switching chip.

6. The method according to claim 1, characterized in that The step of selecting a candidate switching chip for transmitting the target message data from a plurality of switching chips according to the target state table includes: According to the fault data of the message transmission port recorded in the target state table, searching for an initial message transmission port among the message transmission ports included in the plurality of switching chips, wherein the fault data is used to indicate whether the operation state of the corresponding message transmission port is in a fault state, and the initial message transmission port is a message transmission port in a normal operation state; Sorting the plurality of initial message transmission ports according to the message transmission data of each message transmission port recorded in the target state table to obtain a port sequence, wherein the message transmission data is used to characterize the execution status of the message transmission service of the corresponding message transmission port; Extracting reference message transmission ports whose order meets the target ordering condition from the port sequence; The switch chip to which the reference message transmission port belongs is determined as the candidate switch chip.

7. The method according to claim 6, characterized in that The step of sorting the plurality of initial message transmission ports according to the message transmission data of each message transmission port recorded in the target state table to obtain a port sequence comprises: Obtaining a weight parameter of each sub-data in a plurality of sub-data, wherein the message transmission data includes the plurality of sub-data, and the plurality of sub-data are used to characterize the execution of the message transmission service by the initial message transmission port from a plurality of dimensions; Using the weight parameter to perform weighted sum calculation on the multiple sub-data, to obtain a message transmission score of each of the initial message transmission ports, wherein the message transmission score is used to indicate the corresponding capability of the corresponding initial message transmission port for the message transmission service; The plurality of initial message transmission ports are sorted according to the data relationship of the message transmission scores to obtain the port sequence.

8. A message data transmission device, characterized in that: A plurality of switching chips are deployed on the network switching device, each of the switching chips is respectively configured with a processor, and a plurality of the processors are connected to each other. The switching chip is used to implement the message data transmission function of the network switching device. The device is applied to a target processor configured on a target switching chip among the plurality of the switching chips, and the device includes: A first receiving module, used for receiving a data transmission request, wherein the data transmission request is used for requesting to send target message data to other network devices; an acquisition module, configured to respond to the data transmission request and acquire port status data sent by a reference processor, wherein the reference processor is a processor configured on a reference switching chip other than the target switching chip among the plurality of switching chips, and the port status data is used to indicate a message transmission status of a message transmission port included in the corresponding switching chip; A first updating module, configured to update an initial state table on the target switching chip according to the port state data to obtain a target state table, wherein the initial state table records the message transmission state of the message transmission port included in each of the switching chips in the plurality of switching chips; A screening module is used to screen out a candidate switching chip for transmitting the target message data from a plurality of switching chips according to the target state table.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 7 when executed.

10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.