CN116455809A - Method, device, equipment and storage medium for processing data after link abnormality - Google Patents

Method, device, equipment and storage medium for processing data after link abnormality Download PDF

Info

Publication number
CN116455809A
CN116455809A CN202211710245.4A CN202211710245A CN116455809A CN 116455809 A CN116455809 A CN 116455809A CN 202211710245 A CN202211710245 A CN 202211710245A CN 116455809 A CN116455809 A CN 116455809A
Authority
CN
China
Prior art keywords
module
link
command
data
link state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211710245.4A
Other languages
Chinese (zh)
Inventor
尹夕振
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Wuxin Technology Co ltd
Original Assignee
Beijing Wuxin Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Wuxin Technology Co ltd filed Critical Beijing Wuxin Technology Co ltd
Priority to CN202211710245.4A priority Critical patent/CN116455809A/en
Publication of CN116455809A publication Critical patent/CN116455809A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a data processing method after link abnormality, which comprises the following steps: if the link state of the link is in an abnormal condition, generating a first command through the response module based on the access request sent by the source module, and returning the first command to the source module; rewriting, by the routing module, the new access request sent by the source module based on the first command to generate a second command; responding to the second command through the recycle bin module to obtain response data, and returning the response data to the source module; the invention can effectively solve the problem that the whole data path is blocked after the link is abnormal in the data transmission process of the system-level chip, does not need to restart the system chip, can timely respond when the link is abnormal, effectively forms a data path protection mechanism of the link abnormality and ensures the data processing efficiency and the stability of the system by setting the command of the source module and the data transmission of the response module, the routing module and the recycle station module when the link is abnormal.

Description

Method, device, equipment and storage medium for processing data after link abnormality
Technical Field
The embodiment of the invention relates to the technical field of network communication, in particular to a method and a device for processing data after link abnormality, computer equipment and a computer readable storage medium.
Background
The existing SOC chip can comprise various devices, some devices can transmit data through the devices with link training, if link abnormality occurs in the transmission process, the whole system access path can be suspended, some devices can not respond in time under the condition of the current link abnormality due to the link abnormality, and finally, the devices can be restored after restarting the system based on the link abnormality detection and restoration mechanism, but the operation of other devices can be influenced by the process of restarting the system. Therefore, the system can not effectively solve the problem that the system access path is suspended under the condition of abnormal current link.
Disclosure of Invention
In view of the above, the present invention provides a method, an apparatus, a computer device and a computer readable storage medium for processing data after a link abnormality, which are used for solving the problem that a system access path is blocked in the case of the current link abnormality.
One aspect of the embodiment of the invention provides a data processing method after link abnormality, which is applied to a system-on-chip, wherein the system-on-chip comprises a response module, a routing module and a recycle bin module; the data processing method comprises the following steps:
acquiring a link state of a link;
if the link state of the link is in an abnormal condition, generating a first command based on the access request sent by the source module through the response module, and sending the first command to the source module, wherein the first command comprises the link state and preconfigured data which correspond to the link state and are used for indicating the source module to send a subsequent access request to the routing module when the link state is in an abnormal condition;
receiving, by the routing module, a new access request sent by the source module based on the first command, where the new access request includes the link state, the preconfigured data, and request data of the access request;
when the link state of the link is abnormal, rewriting the new access request of the first command to generate a second command, and sending the second command to the recycle bin module, wherein the second command comprises the link state, data obtained by converting the preconfigured data based on a preconfigured command rewriting rule and request data of the access request; a kind of electronic device with high-pressure air-conditioning system
Responding to the second command through the recycle bin module to obtain response data, and returning the response data to the source module.
Optionally, the system-on-chip includes a plurality of destination modules with link layer data transmission functions;
the step of obtaining the link state of the link further includes:
and acquiring the link state of the link in real time through a destination module which receives the access request sent by the source module, wherein the link state comprises the link state in a normal condition or the link state in an abnormal condition.
Optionally, each of the destination modules is preconfigured with the response module;
the generating, by the response module, a first command based on the access request sent by the source module, and sending the first command to the source module, further includes:
acquiring a pre-configuration response time sequence corresponding to a communication protocol between the source module and the destination module through a response module in the destination module according to the link state;
determining a preconfigured target abnormal state and corresponding preconfigured target data based on the link state; a kind of electronic device with high-pressure air-conditioning system
And responding to the access request according to a pre-configuration response time sequence corresponding to the source module based on the target abnormal state and the pre-configuration target data so as to generate the first command, and sending the first command to the source module.
Optionally, the method further comprises:
if the link state of the link is abnormal, if the same destination module receives access requests sent by a plurality of source modules within a preset time period, respectively responding to the plurality of access requests through the same destination module to obtain first commands respectively corresponding to the plurality of access requests, and respectively returning the plurality of access requests to the corresponding source modules; a kind of electronic device with high-pressure air-conditioning system
And receiving new access requests generated and sent by the source modules based on the corresponding first commands through the routing module, caching the new access requests, and sequentially processing the new access requests according to the sequence of receiving the new access requests.
Optionally, in the case that the link state of the link is abnormal, the writing the new access request to generate a second command further includes:
analyzing the new access request under the condition that the link state of the link is abnormal, and determining a target communication protocol between a destination module for sending the first command and a source module for accessing the destination module;
determining a preconfigured command rewrite rule corresponding to the target communication protocol from a plurality of preconfigured command rewrite rules based on the target communication protocol; a kind of electronic device with high-pressure air-conditioning system
And rewriting the new access request based on a pre-configured command rewriting rule corresponding to the target communication protocol to generate the second command.
Optionally, the method further comprises: pre-configuring a response module in each destination module, wherein the pre-configuring of the response module comprises:
configuring a response time sequence corresponding to a communication protocol between the source module and the destination module under the condition that a link state is abnormal in advance according to user requirements; a kind of electronic device with high-pressure air-conditioning system
According to each abnormal condition of the link state in advance, configuring an abnormal state corresponding to each abnormal condition of the link state and pre-configuration data corresponding to each abnormal state.
Optionally, the sending the second command to the recycle bin module further includes:
and under the condition that the link state of the link is abnormal, determining the recycle bin module and a corresponding sending path based on a corresponding routing rule, and sending the second command to the recycle bin module according to the sending path.
An aspect of the embodiment of the present invention further provides a data processing apparatus after link abnormality, which is applied to a system-in-chip, where the system-in-chip includes a response module, a routing module, and a recycle bin module; the device comprises:
the acquisition module is used for acquiring the link state of the link;
the abnormal response module is used for generating a first command based on the access request sent by the source module through the response module if the link state of the link is in an abnormal condition, and sending the first command to the source module, wherein the first command comprises the link state and preconfigured data which corresponds to the link state and is used for indicating the source module to send a subsequent access request to the routing module when the link state is in the abnormal condition;
a receiving module, configured to receive, by using the routing module, a new access request sent by the source module based on the first command, where the new access request includes the link state, the preconfigured data, and request data of an access request;
the rewrite module is used for rewriting the new access request to generate a second command and sending the second command to the recycle bin module when the link state of the link is abnormal, wherein the second command comprises the link state, data obtained by converting the preconfigured data based on a preconfigured command rewrite rule and request data of the access request; a kind of electronic device with high-pressure air-conditioning system
And the recycle bin module response module is used for responding to the second command through the recycle bin module so as to obtain response data, and returning the response data to the source module.
An aspect of an embodiment of the present invention further provides a computer apparatus, where the computer apparatus includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the processor implements the steps of the data processing method after the link abnormality as described above.
An aspect of an embodiment of the present invention further provides a system-on-chip, including: the system comprises a plurality of destination modules with link layer data transmission functions, a routing module and a recycle bin module, wherein the destination modules are used for receiving and responding to access requests sent by a source module;
the destination module is preconfigured with a response module, and the response module is used for: responding to an access request sent by the source module when the link state of the link is in an abnormal condition, so as to generate a first command, and sending the first command to the source module, wherein the first command comprises the link state and preconfigured data which corresponds to the link state and is used for indicating the source module to send a subsequent access request to the routing module when the link state is in the abnormal condition;
the routing module is used for: when the link state of the link is abnormal, rewriting the new access request to generate a second command, and sending the second command to the recycle bin module, wherein the second command comprises the link state, data obtained by converting the preconfigured data based on a preconfigured command rewriting rule and request data of the access request;
the recycle bin module is used for: and receiving and responding to the second command sent by the routing module to obtain response data, and returning the response data to the source module.
According to the data processing method, the device, the computer equipment and the computer readable storage medium after the link is abnormal, if the link state of the link is in an abnormal condition, the response module responds to the access request sent by the source module so as to generate a first command; analyzing the link state in the first command through the routing module; if the link state of the link is in an abnormal condition, the first command is rewritten to generate a second command; responding to the second command through the recycle bin module to obtain response data, and returning the response data to the source module; according to the embodiment, the command of the source module is responded in time when the link is abnormal by setting the recycle bin module, and the data transmission of the response module, the routing module and the recycle bin module can effectively solve the problem that the data path of the whole system is blocked after the link is abnormal (for example, the link is disconnected) in the data transmission process of the system-level chip, the system chip is not required to be restarted, and on the premise that the work of other equipment is not influenced, the access request of the source module can be responded when the link is abnormal, the data path protection mechanism of the link is effectively formed, and the data processing efficiency and the stability of the system are ensured.
The invention will now be described in more detail with reference to the drawings and specific examples, which are not intended to limit the invention thereto.
Drawings
FIG. 1 schematically illustrates an example flow chart of a method of data processing after link anomalies are implemented in accordance with this invention;
FIG. 2 schematically illustrates a connection structure diagram of a response module in a data processing method after implementing a link anomaly in accordance with the present invention;
FIG. 3 is a schematic diagram showing the connection structure of the reason module in the data processing method after the link abnormality is implemented according to the present invention;
FIG. 4 schematically illustrates a block diagram of a data processing apparatus after a link abnormality in accordance with a second embodiment of the present invention;
fig. 5 schematically shows a hardware configuration diagram of a computer device adapted to implement a method for processing data after a link abnormality according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that the descriptions of "first," "second," etc. in the embodiments of the present invention are for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be considered to be absent and not within the scope of protection claimed in the present invention.
In the description of the present invention, it should be understood that the numerical references before the steps do not identify the order in which the steps are performed, but are merely used to facilitate description of the present invention and to distinguish between each step, and thus should not be construed as limiting the present invention.
Example 1
Referring to fig. 1, a flowchart of steps of a method for processing data after a link failure according to an embodiment of the present invention is shown. It will be appreciated that the flow charts in the method embodiments are not intended to limit the order in which the steps are performed. The data processing method after the link abnormality is applied to a system-on-chip (SOC) chip. The system-on-chip comprises a response module, a routing module and a recycle bin module. The following description is made by taking a system-in-chip as an execution body, specifically as follows:
as shown in fig. 1, the method for processing data after link abnormality may include steps S100 to S108, in which:
step S100, obtaining a link state of the link.
Wherein the link state includes the link state being in a normal condition or the link state being in an abnormal condition, the link state being in an abnormal condition including but not limited to: abnormal conditions in which the link is in disconnection, abnormal conditions in which the link is in data transmission errors, and the like.
In an exemplary embodiment, the system-on-chip includes a plurality of destination modules with link layer data transmission functions; the destination module receives and responds to the access request initiated by the source module through the link layer data transmission function. The step S100 of obtaining the link state of the link further includes: and acquiring the link state of the link in real time through a destination module which receives the access request sent by the source module, wherein the link state comprises the link state in a normal condition or the link state in an abnormal condition. In this embodiment, the system-level chip includes a plurality of functional modules and a plurality of destination modules, and in the process of performing data interaction, not every destination module performs data transmission interaction at the same time, so that only the destination module that receives the access request needs to monitor and acquire the link state of the link in real time, which not only reduces occupation of resources, but also can respond to the access request according to the link state obtained by real-time monitoring, thereby effectively ensuring that system data and control channels are not suspended when the link of the system-level chip is abnormal, and ensuring effective transmission and interaction of the data.
Step S102, if the link state of the link is in an abnormal condition, generating, by the response module, a first command based on the access request sent by the source module, and sending the first command to the source module, where the first command includes the link state and preconfigured data corresponding to the link state and used for instructing the source module to send a subsequent access request to the routing module when the link state is in an abnormal condition.
In order to realize that the link abnormality does not cause the data path of the system to hang up in the data transmission process, in an exemplary embodiment, the method further includes: pre-configuring a response module in each destination module, wherein the pre-configuring of the response module comprises: configuring a response time sequence corresponding to a communication protocol between the source module and the destination module under the condition that a link state is abnormal in advance according to user requirements; and configuring an abnormal state corresponding to each abnormal condition of the link state and pre-configuration data corresponding to each abnormal state in advance according to each abnormal condition of the link state. Referring to fig. 2, in this embodiment, a response module is configured in each destination module, and each response module includes a configuration module and a timing control module. The configuration module is used for setting pre-configuration codes or pre-configuration specific characters according to abnormal conditions of different link states so as to represent the abnormal conditions corresponding to the link states, and is also used for configuring pre-configuration data corresponding to each abnormal state according to the environment of the system-in-chip, for example, setting certain specific signal values according to the environment of the system. In the application process, when the link state is in an abnormal condition, the access request sent by the source module is remapped according to the determined abnormal state and the corresponding preconfigured data. The system comprises a plurality of destination modules, a source module, a time sequence control module and a link state management module, wherein a communication protocol for data interaction is pre-configured between each destination module and the corresponding source module, and the time sequence control module is used for configuring a response time sequence corresponding to the access of the source module, such as a read-write response time sequence of an AXI, in each destination module according to the requirements of users and the corresponding communication protocol under the condition that the link state is abnormal. In the application process, when the link state is in an abnormal condition, responding to the access request sent by the source module according to the response time sequence determined by the communication protocol.
In an exemplary embodiment, each of the destination modules is preconfigured with the response module; the step S102 of generating, by the response module, a first command based on the access request sent by the source module, and sending the first command to the source module may further include: acquiring a pre-configuration response time sequence corresponding to a communication protocol between the source module and the destination module through a response module in the destination module according to the link state; determining a preconfigured target abnormal state and corresponding preconfigured target data based on the link state; and responding to the access request according to a pre-configuration response time sequence corresponding to the source module based on the target abnormal state and the pre-configuration target data so as to generate the first command, and sending the first command to the source module. In this embodiment, when the link is in an abnormal condition, the link responds in time according to the configured response module in the destination module, so as to effectively avoid the condition that the transmission network (i.e. the data path) inside the system is dead. In other embodiments, if the link state is in a normal state, the sending module and the receiving module in the destination module process the access request sent by the source module according to the conventional response time sequence, and return the corresponding response data to the source module.
Step S104, receiving, by the routing module, a new access request sent by the source module based on the first command, where the new access request includes the link state, the preconfigured data, and request data of the access request.
And step S106, when the link state of the link is abnormal, rewriting the new access request to generate a second command, and sending the second command to the recycle bin module, wherein the second command comprises the link state, data obtained by converting the preconfigured data based on a preconfigured command rewriting rule and request data of the access request.
In an exemplary embodiment, the step S106 of overwriting the new access request to generate the second command in the case that the link state of the link is abnormal may be further obtained by: analyzing the new access request under the condition that the link state of the link is abnormal, and determining a target communication protocol between a destination module for sending the first command and a source module for accessing the destination module; determining a preconfigured command rewrite rule corresponding to the target communication protocol from a plurality of preconfigured command rewrite rules based on the target communication protocol; and rewriting the new access request based on a pre-configured command rewrite rule corresponding to the target communication protocol to generate the second command. Referring to fig. 3, in this embodiment, the routing module is used for state parsing, command buffering, command rewriting, and command sending. The routing module receives the new access request sent by the source module, analyzes and obtains that the current link state is in an abnormal condition, rewrites the new access request according to a command rewrite rule determined by the communication protocol, such as an address mapping rewrite rule and the like, and converts the new access request into a second command. Even if the current link state is in abnormal condition, the access request is processed according to the set command rewrite rule, and the condition that the data path of the system is suspended is avoided.
In an exemplary embodiment, the method further comprises: if the link state of the link is abnormal, if the same destination module receives access requests sent by a plurality of source modules within a preset time period, respectively responding to the plurality of access requests through the same destination module to obtain first commands respectively corresponding to the plurality of access requests, and respectively returning the plurality of access requests to the corresponding source modules; and receiving new access requests generated and sent by the source modules based on the corresponding first commands through the routing module, caching the new access requests, and sequentially processing the new access requests according to the sequence of receiving the new access requests. In this embodiment, when the routing module receives new access requests generated by a plurality of source modules respectively responding to a plurality of first commands sent by the same destination module within a short time period or within a preset time period, and the routing module processes the requests received after the first requests according to the time sequence, the routing module processes the requests received after the first requests, and sequentially caches the plurality of new access requests, so that sequential processing is facilitated, and data processing efficiency and system stability are effectively improved.
In an exemplary embodiment, the sending the second command to the recycle bin module further includes: and under the condition that the link state of the link is abnormal, determining the recycle bin module and a corresponding sending path based on a corresponding routing rule, and sending the second command to the recycle bin module according to the sending path. In this embodiment, the transmission paths may be multiple, and the routing rule and the corresponding transmission path of the response may be flexibly configured in advance by software based on the environment, the resource, the load, and the like of the system-in-chip, so that data transmission in the application process is facilitated.
And step S108, responding to the second command through the recycle bin module to obtain response data, and returning the response data to the source module.
In this embodiment, a recycle bin module is provided, and even if the link is in an abnormal condition, the recycle bin module can timely respond to an access request of the source module, and the source module is prompted that the current link is in an abnormal condition through returned response data.
The embodiment has at least the following advantages: by setting the command of the source module and the data transmission of the response module, the routing module and the recycle station module when the link is abnormal, the situation that the data path of the whole system is blocked after the link is abnormal (for example, the link is disconnected) in the data transmission process of the system-level chip can be effectively solved, the system chip is not required to be restarted, and on the premise that the work of other equipment is not influenced, the access request of the source module can be responded when the link is abnormal, the data path protection mechanism of the link is effectively formed, and the data processing efficiency and the stability of the system are ensured.
Example two
With continued reference to FIG. 4, a block diagram of a data processing apparatus after link anomalies in accordance with the present invention is schematically illustrated. In this embodiment, the data processing apparatus after link abnormality may include or be divided into one or more program modules, and the one or more program modules are stored in a storage medium and executed by one or more processors to complete the present invention, and the data processing method after link abnormality described above may be implemented. Program modules in accordance with the embodiments of the present invention are directed to a series of computer program instruction segments capable of performing particular functions, and more particularly, to a program that is adapted to describe the execution of a data processing apparatus after a link failure in a storage medium than the program itself. The following description will specifically describe the functions of the program modules of the present embodiment. The data processing device after the link abnormality is applied to a system-level chip, wherein the system-level chip comprises a response module, a routing module and a recycle bin module.
As shown in fig. 4, the data processing apparatus after the link abnormality may include an acquisition module 400, an abnormality response module 402, a receiving module 404, a rewriting module 406, and a recycle bin module response module 408, where:
an obtaining module 400, configured to obtain a link state of a link;
an exception response module 402, configured to generate, by the response module, a first command based on an access request sent by a source module if a link state of the link is in an abnormal condition, and send the first command to the source module, where the first command includes the link state and preconfigured data corresponding to the link state and used for instructing the source module to send a subsequent access request to the routing module when the link state is in an abnormal condition;
a receiving module 404, configured to receive, by using the routing module, a new access request sent by the source module based on the first command, where the new access request includes the link state, the preconfigured data, and request data of an access request;
a rewrite module 406, configured to rewrite the new access request to generate a second command when the link state of the link is abnormal, and send the second command to the recycle bin module, where the second command includes the link state, data obtained by converting the preconfigured data based on a preconfigured command rewrite rule, and request data of the access request; a kind of electronic device with high-pressure air-conditioning system
The recycle bin module response module 408 is configured to respond to the second command through the recycle bin module to obtain response data, and return the response data to the source module.
Example III
In this embodiment, a system-on-chip is provided for executing the data processing method after link abnormality of the above embodiment. Wherein, system-on-chip includes: the system comprises a plurality of destination modules with link layer data transmission functions, a routing module and a recycle bin module, wherein the destination modules are used for receiving and responding to access requests sent by a source module;
the destination module is preconfigured with a response module, and the response module is used for: when the link state of the link is abnormal, responding to the access request sent by the source module to generate a first command,
the first command is sent to the source module, and the first command comprises the link state and preconfigured data corresponding to the link state and used for indicating the source module to send a subsequent access request to the routing module when the link state is abnormal;
the routing module is used for: when the link state of the link is abnormal, rewriting the new access request to generate a second command, and sending the second command to the recycle bin module, wherein the second command comprises the link state, data obtained by converting the preconfigured data based on a preconfigured command rewriting rule and request data of the access request;
the recycle bin module is used for: and receiving and responding to the second command sent by the routing module to obtain response data, and returning the response data to the source module.
Example IV
Referring to fig. 5, a hardware architecture diagram of a computer device 10000 suitable for implementing a data processing method after a link abnormality according to a fourth embodiment of the present invention is shown. In this embodiment, the computer apparatus 10000 is an apparatus capable of automatically performing numerical calculation and/or information processing according to an instruction set or stored in advance. The computer device 10000 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server, or a cabinet server (including an independent server, or a server cluster formed by a plurality of servers), a gateway, or the like. As shown in fig. 5, the computer device 10000 includes, but is not limited to, at least a memory 10010, a processor 10020, and a network interface 10030, which can be communicatively connected to each other through a system bus. Wherein:
in this embodiment, the memory 10010 includes at least one type of computer-readable storage medium including flash memory, hard disk, multimedia card, card memory (e.g., SD or DX memory, etc.), random Access Memory (RAM), static Random Access Memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, memory 10010 may be an internal storage unit of computer device 10000, such as a hard disk or memory of computer device 10000. In other embodiments, the memory 10010 may also be an external storage device of the computer device 10000, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the computer device 10000. Of course, the memory 10010 may also include both an internal storage unit of the computer device 10000 and an external storage device thereof. In this embodiment, the memory 10010 is generally used to store an operating system and various application software installed on the computer apparatus 10000, such as program codes of the data processing apparatus after link abnormality in the above embodiment. In addition, the memory 10010 may be used to temporarily store various types of data that have been output or are to be output.
The processor 10020 may be a central processing unit (Central Processing Unit, simply CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 10020 is typically configured to control overall operation of the computer device 10000, such as performing control and processing related to data interaction or communication with the computer device 10000. In this embodiment, the processor 10020 is configured to execute the program code stored in the memory 10010 or process data, for example, execute the data processing apparatus after the link abnormality, so as to implement the data processing method after the link abnormality in the above embodiment.
The network interface 10030 may comprise a wireless network interface or a wired network interface, which network interface 10030 is typically used for establishing a communication connection between the computer apparatus 10000 and other electronic devices. For example, the network interface 10030 is configured to connect the computer device 10000 to an external terminal through a network, and establish a data transmission channel and a communication connection between the computer device 10000 and the external terminal. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a global system for mobile communications (Global System of Mobile communication, abbreviated as GSM), wideband code division multiple access (Wideband Code Division Multiple Access, abbreviated as WCDMA), a 4G network, a 5G network, bluetooth (Bluetooth), wi-Fi, etc.
It is noted that fig. 5 only shows a computer device 10000 having components 10010-10030, but it is understood that not all shown components are required to be implemented, more or fewer components may alternatively be implemented.
In this embodiment, the data processing apparatus after the link abnormality stored in the memory 10010 may be further divided into one or more program modules, which are stored in the memory 10010 and executed by one or more processors (the processor 10020 in this embodiment) to complete the present invention.
For example, fig. 4 shows a schematic program module diagram of a second embodiment of the data processing apparatus after implementing the link exception, where the data processing apparatus after implementing the link exception may be divided into an obtaining module 400, an exception response module 402, a receiving module 404, a rewriting module 406, and a recycle bin module
And a response module 408. Wherein the program modules referred to in the present invention are a series of 5 computer program instruction segments capable of performing a specific function, more suitable than a program for describing the data processing apparatus after the link abnormality
Execution in the computer device 10000. The specific functions of the program modules 400-408 are described in detail in the second embodiment, and are not described herein.
Example five
The present embodiment also provides a computer-readable storage medium having stored thereon a computer program which, when executed by at least one processor, implements the steps of the data processing method after link abnormality in the embodiment.
In this embodiment, the computer-readable storage medium includes a flash memory, a hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a static random access 5 memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application mall, etc. In some embodiments, the computer readable storage medium may be an internal storage unit of a computer device, such as a hard disk or a memory of the computer device. In the case of an alternative embodiment of the present invention,
the computer readable storage medium may also be an external storage device of a computer device, such as a plug-in hard disk, smart Media Card (SMC) or a secure number provided on the computer device 0
A word (Secure Digital, abbreviated SD) Card, a Flash Card (Flash Card), etc. Of course, the computer-readable storage medium may also include both internal storage units of a computer device and external storage devices. In this embodiment, the computer-readable storage medium is typically used to store operations installed in a computer device
Systems and various types of application software, such as program code for the stuck detect method in embodiments, and the like. Furthermore, the computer 5 computer readable storage medium may also be used to temporarily store various types of data that have been output or are to be output.
It will be appreciated by those skilled in the art that the modules or steps of the embodiments of the invention described above may be implemented in a general purpose computing device, they may be centralized on a single computing device, or distributed over a network of computing devices, or, alternatively, they may be implemented in a program executable by a computing device
The sequence code is implemented such that they may be stored in a memory device for execution by a computing device, and 5 in some cases, the steps shown or described may be performed in a different order than that shown or described, or it may be performed
Each fabricated as a separate integrated circuit module, or a plurality of modules or steps within them fabricated as a single integrated circuit module. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
0 or more is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention
Equivalent structures or equivalent flow transformations by the descriptions and drawings of the present invention or direct or indirect application in other relevant technical fields are also included in the scope of the present invention.

Claims (10)

1. The data processing method after the link abnormality is characterized by being applied to a system-level chip, wherein the system-level chip comprises a response module, a routing module and a recycle bin module; the data processing method comprises the following steps:
acquiring a link state of a link;
if the link state of the link is in an abnormal condition, generating a first command based on the access request sent by the source module through the response module, and sending the first command to the source module, wherein the first command comprises the link state and preconfigured data which correspond to the link state and are used for indicating the source module to send a subsequent access request to the routing module when the link state is in the abnormal condition;
receiving, by the routing module, a new access request sent by the source module based on the first command, where the new access request includes the link state, the preconfigured data, and request data of the access request;
when the link state of the link is abnormal, rewriting the new access request to generate a second command, and sending the second command to the recycle bin module, wherein the second command comprises the link state, data obtained by converting the preconfigured data based on a preconfigured command rewriting rule and request data of the access request; a kind of electronic device with high-pressure air-conditioning system
Responding to the second command through the recycle bin module to obtain response data, and returning the response data to the source module.
2. The method for processing data after link abnormality according to claim 1, wherein the system-on-chip includes a plurality of destination modules having a link layer data transmission function;
the step of obtaining the link state of the link further includes:
and acquiring the link state of the link in real time through a destination module which receives the access request sent by the source module, wherein the link state comprises the link state in a normal condition or the link state in an abnormal condition.
3. The post-link-anomaly data processing method of claim 2, wherein the response module is preconfigured in each of the destination modules;
the generating, by the response module, a first command based on the access request sent by the source module, and sending the first command to the source module, further includes:
acquiring a pre-configuration response time sequence corresponding to a communication protocol between the source module and the destination module through a response module in the destination module according to the link state;
determining a preconfigured target abnormal state and corresponding preconfigured target data based on the link state; a kind of electronic device with high-pressure air-conditioning system
And responding to the access request according to a pre-configuration response time sequence corresponding to the source module based on the target abnormal state and the pre-configuration target data so as to generate the first command, and sending the first command to the source module.
4. A method of processing post-link-anomaly data according to any one of claims 1 to 3, further comprising:
if the link state of the link is abnormal, if the same destination module receives access requests sent by a plurality of source modules within a preset time period, respectively responding to the plurality of access requests through the same destination module to obtain first commands respectively corresponding to the plurality of access requests, and respectively returning the plurality of access requests to the corresponding source modules; a kind of electronic device with high-pressure air-conditioning system
And receiving new access requests generated and sent by the source modules based on the corresponding first commands through the routing module, caching the new access requests, and sequentially processing the new access requests according to the sequence of receiving the new access requests.
5. The method according to claim 1, wherein, in the case that the link state of the link is abnormal, the writing the new access request to generate the second command, further comprises:
analyzing the new access request under the condition that the link state of the link is abnormal, and determining a target communication protocol between a destination module for sending the first command and a source module for accessing the destination module;
determining a preconfigured command rewrite rule corresponding to the target communication protocol from a plurality of preconfigured command rewrite rules based on the target communication protocol; a kind of electronic device with high-pressure air-conditioning system
And rewriting the new access request based on a pre-configured command rewriting rule corresponding to the target communication protocol to generate the second command.
6. A method of post-link-anomaly data processing according to claim 3, further comprising: pre-configuring a response module in each destination module, wherein the pre-configuring of the response module comprises:
configuring a response time sequence corresponding to a communication protocol between the source module and the destination module under the condition that a link state is abnormal in advance according to user requirements; a kind of electronic device with high-pressure air-conditioning system
According to each abnormal condition of the link state in advance, configuring an abnormal state corresponding to each abnormal condition of the link state and pre-configuration data corresponding to each abnormal state.
7. The post-link-exception data processing method of claim 1, wherein the sending the second command to the recycle bin module further comprises:
and under the condition that the link state of the link is abnormal, determining the recycle bin module and a corresponding sending path based on a corresponding routing rule, and sending the second command to the recycle bin module according to the sending path.
8. The data processing device after the link abnormality is characterized by being applied to a system-level chip, wherein the system-level chip comprises a response module, a routing module and a recycle bin module; the device comprises:
the acquisition module is used for acquiring the link state of the link;
the abnormal response module is used for generating a first command based on the access request sent by the source module through the response module if the link state of the link is in an abnormal condition, and sending the first command to the source module, wherein the first command comprises the link state and preconfigured data which corresponds to the link state and is used for indicating the source module to send a subsequent access request to the routing module when the link state is in the abnormal condition;
a receiving module, configured to receive, by using the routing module, a new access request sent by the source module based on the first command, where the new access request includes the link state, the preconfigured data, and request data of an access request;
the rewrite module is used for rewriting the new access request to generate a second command and sending the second command to the recycle bin module when the link state of the link is abnormal, wherein the second command comprises the link state, data obtained by converting the preconfigured data based on a preconfigured command rewrite rule and request data of the access request; a kind of electronic device with high-pressure air-conditioning system
And the recycle bin module response module is used for responding to the second command through the recycle bin module so as to obtain response data, and returning the response data to the source module.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of data processing after a link abnormality according to any one of claims 1 to 7 when the computer program is executed.
10. A system-on-chip, comprising: the system comprises a plurality of destination modules with link layer data transmission functions, a routing module and a recycle bin module, wherein the destination modules are used for receiving and responding to access requests sent by a source module;
the destination module is preconfigured with a response module, and the response module is used for: responding to an access request sent by the source module when the link state of the link is in an abnormal condition, so as to generate a first command, and sending the first command to the source module, wherein the first command comprises the link state and preconfigured data which corresponds to the link state and is used for indicating the source module to send a subsequent access request to the routing module when the link state is in the abnormal condition;
the routing module is used for: when the link state of the link is abnormal, rewriting the new access request to generate a second command, and sending the second command to the recycle bin module, wherein the second command comprises the link state, data obtained by converting the preconfigured data based on a preconfigured command rewriting rule and request data of the access request;
the recycle bin module is used for: and receiving and responding to the second command sent by the routing module to obtain response data, and returning the response data to the source module.
CN202211710245.4A 2022-12-29 2022-12-29 Method, device, equipment and storage medium for processing data after link abnormality Pending CN116455809A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211710245.4A CN116455809A (en) 2022-12-29 2022-12-29 Method, device, equipment and storage medium for processing data after link abnormality

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211710245.4A CN116455809A (en) 2022-12-29 2022-12-29 Method, device, equipment and storage medium for processing data after link abnormality

Publications (1)

Publication Number Publication Date
CN116455809A true CN116455809A (en) 2023-07-18

Family

ID=87118995

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211710245.4A Pending CN116455809A (en) 2022-12-29 2022-12-29 Method, device, equipment and storage medium for processing data after link abnormality

Country Status (1)

Country Link
CN (1) CN116455809A (en)

Similar Documents

Publication Publication Date Title
CN108388599B (en) Electronic device, data migration and calling method and storage medium
US11509505B2 (en) Method and apparatus for operating smart network interface card
CN111416821A (en) Internet of things equipment information acquisition method, system and device
CN106547645B (en) Method for automatically restoring image file and server system
CN112506755B (en) Log acquisition method, device, computer equipment and storage medium
CN112039900A (en) Network security risk detection method, system, computer device and storage medium
CN108255735B (en) Associated environment testing method, electronic device and computer readable storage medium
CN108924043A (en) System monitoring method, gateway communication, gateway apparatus, service processing equipment
CN112422450A (en) Computer equipment, and flow control method and device for service request
CN114389969A (en) Client test method and device, electronic equipment and storage medium
CN111625264B (en) Method, device, equipment and medium for upgrading multi-level management system
CN113191889A (en) Wind control configuration method, configuration system, electronic device and readable storage medium
CN112650674A (en) Method for remotely acquiring and debugging webpage log, computer equipment and storage medium
CN112001707A (en) Business workflow generation method and system based on business data
CN116450165A (en) Method, system, terminal and storage medium for quickly building environment and deploying program
CN116192626A (en) Device access method and device, computer readable storage medium and electronic device
CN116455809A (en) Method, device, equipment and storage medium for processing data after link abnormality
CN114070889B (en) Configuration method, traffic forwarding device, storage medium, and program product
CN112416698B (en) Expansion method and device of monitoring system, storage medium and electronic equipment
CN110677353B (en) Data access method and system
CN114328080A (en) Firmware state detection method and device and electronic equipment
CN114490196A (en) Database switching method, system, device and medium
CN114253573A (en) PCIe device firmware batch upgrading method, system, terminal and storage medium
CN112416385A (en) Acquisition component management method and system
CN111064636A (en) Control method, device and system for connection of front-end processor and computer equipment

Legal Events

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