CN109660322B - Data processing method and device and computer storage medium - Google Patents

Data processing method and device and computer storage medium Download PDF

Info

Publication number
CN109660322B
CN109660322B CN201710948485.0A CN201710948485A CN109660322B CN 109660322 B CN109660322 B CN 109660322B CN 201710948485 A CN201710948485 A CN 201710948485A CN 109660322 B CN109660322 B CN 109660322B
Authority
CN
China
Prior art keywords
data
retransmission
network layer
soft reset
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.)
Active
Application number
CN201710948485.0A
Other languages
Chinese (zh)
Other versions
CN109660322A (en
Inventor
李阳
胡达
王馨
臧高勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sanechips Technology Co Ltd
Original Assignee
Sanechips 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 Sanechips Technology Co Ltd filed Critical Sanechips Technology Co Ltd
Priority to CN201710948485.0A priority Critical patent/CN109660322B/en
Publication of CN109660322A publication Critical patent/CN109660322A/en
Application granted granted Critical
Publication of CN109660322B publication Critical patent/CN109660322B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1867Arrangements specially adapted for the transmitter end
    • H04L1/1874Buffer management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/325Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the network layer [OSI layer 3], e.g. X.25

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses a data processing method, which comprises the following steps: when the state of the physical layer changes, the network layer is subjected to soft reset; and detecting the soft reset state of the network layer, and processing data according to the soft reset state of the network layer. The invention also discloses two data processing devices and a computer storage medium.

Description

Data processing method and device and computer storage medium
Technical Field
The present invention relates to the field of data transmission, and in particular, to a data processing method and apparatus, and a computer storage medium.
Background
When transmitting a message, the network layer processes message data and sends the processed message data to the network system through the data link layer and the physical layer. In the half-duplex mode, different electronic devices receive and send messages through the same medium; if two electronic devices in half-duplex mode simultaneously detect that the medium is in idle state and send message data, data transmission may fail due to data transmission collision.
In the related art, the problem of collision of data transmission links is solved and the reliability of message data transmission is ensured through a Carrier Sense Multiple Access (CSMA) collision detection protocol in an IEEE802.3 standard protocol. Specifically, before sending data, the electronic device needs to monitor whether a data transmission channel is idle; when the data transmission channel is idle, transmitting data; and detecting data transmission conflicts in real time in the process of sending data; and when the data transmission conflict is detected, stopping sending the data. And after receiving the retransmission state information fed back by the data link layer, the network layer retransmits the data according to the retransmission state information.
However, in a specific application scenario, retransmission state information may be abnormal, which may further cause uncontrollable data-based interaction between a network layer and a data link layer, and thus data retransmission may not be implemented.
Disclosure of Invention
In view of this, embodiments of the present invention are expected to provide a data processing method, an apparatus, and a computer storage medium, which can improve reliability of data transmission between a network layer and a data link layer.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides a data processing method, which comprises the following steps:
when the state of the physical layer changes, the network layer is subjected to soft reset;
detecting a soft reset state of the network layer;
and processing data according to the soft reset state of the network layer.
In the foregoing solution, the performing soft reset on the network layer includes:
receiving a soft reset instruction;
and performing soft reset configuration on the network layer based on the soft reset instruction.
In the foregoing solution, the processing data according to the soft reset state of the network layer includes:
when the soft reset state of the network layer is detected to be effective, emptying data in an Output asynchronous First-in First-out (FIFO) buffer;
and opening the data flow path enable so that the network layer sends new data to the data link layer.
In the foregoing solution, the processing data according to the soft reset state of the network layer includes:
and when detecting that the soft reset state of the network layer is invalid and receiving retransmission state information sent by a data link layer, processing data according to the retransmission state information.
In the foregoing solution, the processing data according to the retransmission state information includes:
and when the retransmission state information is detected to be used for indicating retransmission data and the retransmission enable carried by the retransmission state information is valid, returning back to the address of the entry FIFO cache corresponding to the last sent data so that the network layer can resend the data to the data link layer.
In the foregoing solution, the processing data according to the retransmission state information includes:
and when the retransmission state information is used for indicating retransmission data and retransmission enabling carried by the retransmission state information is invalid, releasing an inlet FIFO cache corresponding to the finally sent data.
In the foregoing solution, the processing data according to the retransmission state information includes:
and when the retransmission state information is used for indicating that the data is not retransmitted and the retransmission state information sent by the data link layer is not received in the preset time, releasing the entry FIFO cache corresponding to the finally sent data.
An embodiment of the present invention further provides a data processing apparatus, including: the device comprises a soft reset module, a detection module and a processing module; wherein the content of the first and second substances,
the soft reset module is used for carrying out soft reset on the network layer when the state of the physical layer changes;
the detection module is used for detecting the soft reset state of the network layer;
and the processing module is used for processing data according to the soft reset state of the network layer.
In the above scheme, the soft reset module is specifically configured to receive a soft reset instruction;
and performing soft reset configuration on the network layer based on the soft reset instruction.
In the foregoing solution, the processing module is specifically configured to empty data in the egress asynchronous FIFO buffer when the detection module detects that the soft reset state of the network layer is valid;
and opening the data flow path enable so that the network layer sends new data to the data link layer.
In the foregoing scheme, the processing module is specifically configured to process the data according to the retransmission state information when the detection module detects that the soft reset state of the network layer is invalid and receives the retransmission state information sent by the data link layer.
In the foregoing scheme, the processing module is specifically configured to, when the detection module detects that the retransmission state information is used to indicate retransmission data and retransmission enable carried by the retransmission state information is valid, return to an address of an entry FIFO buffer corresponding to the last sent data, so that the network layer resends the data to the data link layer.
In the foregoing scheme, the processing module is specifically configured to release the entry FIFO buffer corresponding to the last sent data when the retransmission state information is used to indicate retransmission data and the retransmission enable carried by the retransmission state information is invalid.
In the foregoing scheme, the processing module is specifically configured to release the entry FIFO buffer corresponding to the last sent data when the retransmission state information is used to indicate that no data is retransmitted and the retransmission state information sent by the data link layer is not received within a preset time.
An embodiment of the present invention further provides a data processing apparatus, including: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is configured to perform the steps of the above method when running the computer program.
An embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps of the above method.
According to the data processing method, the data processing device and the computer storage medium provided by the embodiment of the invention, when the state of the physical layer changes, the network layer is subjected to soft reset; and detecting the soft reset state of the network layer, and processing data according to the soft reset state of the network layer. Therefore, whether the network layer needs to resend data to the data link layer or not is judged by monitoring the state change of the physical layer and the soft reset state of the network layer, and the reliability of data transmission between the network layer and the data link layer is improved.
Drawings
FIG. 1 is a diagram illustrating a location of retransmission status information according to the present invention;
FIG. 2 is a schematic process flow diagram of a data processing method according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a retire entry FIFO cache address according to an embodiment of the present invention;
FIG. 4 is a schematic processing flow chart of a second data processing method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a data processing apparatus according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating a hardware configuration of a data processing apparatus according to an embodiment of the present invention.
Detailed Description
So that the manner in which the features and aspects of the embodiments of the present invention can be understood in detail, a more particular description of the embodiments of the invention, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings.
In the related art, retransmission status information sent by a data link layer to a network layer corresponds to data packets one to one, that is, a data packet to be transmitted corresponds to retransmission status information, and a generation position of the retransmission status information, as shown in fig. 1, may be located at any time within an interval between start positions of two adjacent packets. The retransmission status information may be abnormal (e.g., lost) due to the data link layer itself, the retransmission status information may be abnormal (e.g., lost) due to the duplex mode switching of the electronic device in the data transmission system, and the retransmission status information may be abnormal (e.g., lost) due to the data link layer being reset alone. The uncontrollable interaction between the network layer and the data link layer caused by the abnormal retransmission state information is mainly embodied in the following three aspects:
first, since the network layer releases the stored synchronous cache data according to the retransmission status information, the abnormal retransmission status information will cause the abnormal release of the synchronous cache data stored in the network layer.
Secondly, when the data link layer is reset independently or the electronic device of the data transmission system performs duplex mode switching, the asynchronous FIFO buffer may already buffer a plurality of data packets, and in order to correctly release corresponding synchronous buffer data, the data packets buffered in the asynchronous FIFO buffer need to be transmitted based on the previous transmission mode; however, since the data link layer has switched the transmission mode, the synchronous buffer data corresponding to the data packet buffered by the asynchronous FIFO cannot be released correctly.
Third, in the half-duplex mode, if the data link layer does not send the retransmission status information to the network layer during the data transmission process, the network layer will hang up due to waiting for the retransmission status information.
Based on the problems in the related art, an embodiment of the present invention provides a processing flow of a data processing method, as shown in fig. 2, including the following steps:
and step S101, when the state of the physical layer changes, carrying out soft reset on the network layer.
In an optional embodiment, the change of the physical layer state means that the data transmission mode of the network layer and the data link layer is changed or the data link layer is reset independently; the change of the data transmission mode of the network layer and the data link layer may refer to the conversion of the data transmission mode from the simplex mode to the duplex mode, or the conversion of the data transmission mode from the duplex mode to the simplex mode. The state of the physical layer may be obtained by the network layer itself, or obtained by other electronic devices and then sent to the network layer.
Based on the above optional embodiment, the process of implementing the soft reset on the network layer may be that after the network layer itself obtains that the physical layer state changes, the network layer sends a soft reset instruction to a soft reset module inside the network layer, and the soft reset module performs soft reset configuration on the network layer based on the received soft reset instruction. The implementation process of performing soft reset on the network layer may also be that, after acquiring that the state of the physical layer changes, other electronic devices outside the network layer send a soft reset instruction to the network layer, and the network layer device performs soft reset configuration on the network layer based on the soft reset instruction.
And step S102, detecting the soft reset state of the network layer.
In an optional embodiment, the soft reset state of the network layer refers to whether the soft reset configuration of the network layer is preferred; therefore, the network layer device detecting the soft reset state of the network layer means that the network layer device detects whether the soft reset configuration of the network layer is valid.
It should be noted that, before performing step S102, the network layer and the data link layer need to be configured to be in the same duplex mode, such as: the network layer and the data link layer are both in a half-duplex mode, or the network layer and the data link layer are both in a full-duplex mode.
And step S103, processing data according to the soft reset state of the network layer.
In an optional embodiment, the process of the network layer sending data to the data link layer is as follows: and detecting the cache state of the inlet FIFO and the cache state of the outlet asynchronous FIFO, starting data scheduling when the fragmented data exists in the inlet FIFO cache and the residual space of the outlet asynchronous FIFO cache can be used for storing the fragmented data, namely the network layer starts to send data to the data link layer. Specifically, reading cache data from the initial position of the data packet, and sending the read cache data to an egress asynchronous FIFO cache; with the reading of the cache data, whether the tail part of the data packet is read or not is judged in real time, and when the tail part of the data packet is read, a complete data packet scheduling is completed, namely, the data is transmitted to a data link layer from a network layer.
In one embodiment, the network layer device empties the data in the egress asynchronous FIFO buffer when detecting that the soft reset state of the network layer is active. And when the network layer equipment determines to empty the data in the outlet asynchronous FIFO cache, starting the data flow path enable, or when other electronic equipment except the network layer determines to empty the data in the outlet asynchronous FIFO cache, triggering the network layer to start the data flow path enable, so that the network layer sends new data to the data link layer.
In another embodiment, when the network layer device detects that the soft reset state of the network layer is invalid, receives retransmission state information sent by the data link layer and is used for indicating retransmission data, and the retransmission enable carried by the retransmission state information is valid, the network layer device returns to the entry FIFO buffer address corresponding to the last sent data, so that the network layer resends the data to the data link layer. The schematic diagram of the retire entry FIFO buffer address is shown in FIG. 3, i.e. the read address of the data is retired from the current data end address to the data start address.
In another embodiment, when the network layer device detects that the soft reset state of the network layer is invalid, and receives retransmission state information sent by the data link layer to indicate retransmission of data, and retransmission enable carried by the retransmission state information is invalid, it indicates that the current data has been successfully sent to the data link layer by the network layer, and does not need to resend the current data, so that an entry FIFO buffer corresponding to the last sent data is released.
In another embodiment, when the network layer device detects that the soft reset state of the network layer is invalid, and the retransmission state information is used to indicate that data is not retransmitted and retransmission state information sent by the data link layer is not received within a preset time, it represents that the current data has been successfully sent to the data link layer by the network layer, and there is no need to resend the current data, so that an entry FIFO buffer corresponding to the last sent data is released.
Here, in order to avoid that the data link layer does not send the retransmission state information to the network layer to stop the operation of the data sending system in the normal operating state, a time may be preset, and a counter is used to monitor whether the preset time is reached, and when the preset time is reached, the network layer does not receive the retransmission state information, and it is considered that the data link layer does not send the retransmission state information to the network layer based on the currently sent data; the network layer does not need to resend the current data to the data link layer. Therefore, the problem that retransmission state information sent to the network layer by the data link layer is abnormal can be avoided, and the reliability of data transmission between the network layer and the data link layer is further improved.
As shown in fig. 4, a processing flow of a data processing method according to a second embodiment of the present invention includes the following steps:
in step S201, a data transmission process is started.
Step S202, the network layer equipment judges whether the data flow path enable is opened, and if the judgment result is yes, the step S203 is executed; if the determination result is negative and the preset condition is satisfied, the step S202 is continuously executed.
Here, satisfying the preset condition includes at least: the method comprises the steps of meeting a preset time period, or receiving an instruction for judging whether the Tung cottage enable of the data stream is started.
The initial value of the data flow path is open, and when the network layer soft reset is configured, the data flow path is closed; in practical application, the on and off of the data stream cottage enable can be configured according to requirements.
Step S203, the network layer device judges whether the entry FIFO buffer status and the exit asynchronous FIFO buffer status meet the data scheduling condition, and if the judgment result is yes, the step S204 is executed; when the determination result is no, step S202 is executed.
In an alternative embodiment, the data scheduling condition is that the fragmented data exists in the ingress FIFO buffer and the remaining space of the egress asynchronous FIFO buffer can be used for storing the fragmented data.
Step S204, starting data scheduling.
In an optional embodiment, the implementation process of starting data scheduling is as follows: in the ingress FIFO buffer, data is read starting from the start position of the data, and the read data is sent to the egress asynchronous FIFO buffer.
In step S205, the network layer device determines whether the tail of the data is read, and if the determination result is no, executes step S206.
Here, only when the end of the data is read, it means that one complete data is scheduled.
In step S206, the network layer device determines whether the tail of the current fragmented data is read, and if the determination result is yes, step S204 is executed to continue scheduling the next fragmented data of the data until the tail of the data is read.
Here, each data is divided into a plurality of fragmented data, and the process of scheduling the data may be understood as scheduling the plurality of fragmented data included in the data, respectively.
Step S207, in step S205, completing scheduling of one data, and when it is obtained in step S315 that the physical layer state changes, the network layer device determines whether the soft reset state of the network layer is valid; if yes, go to step S212; when the determination result is no, step S208 is executed.
It should be noted that the change of the physical layer state means that the data transmission mode of the network layer and the data link layer changes or the data link layer is reset separately; the change of the data transmission mode of the network layer and the data link layer may refer to the conversion of the data transmission mode from the simplex mode to the duplex mode, or the conversion of the data transmission mode from the duplex mode to the simplex mode. The state of the physical layer may be obtained by the network layer itself, or obtained by other electronic devices and then sent to the network layer.
Step S208, the network layer device determines whether the retransmission state information sent by the received data link layer is valid, and if the determination result is yes, step S211 is executed; when the determination result is no, step S209 is executed.
Here, the retransmission status information sent by the data link layer is valid, which means that the parameter carried by the retransmission status information is used to indicate that data is to be retransmitted.
In step S209, the network layer device determines whether the retransmission aging time has come, and if the determination result is yes, executes step S212, and if the determination result is no, executes step S210 or step S207.
Step S210, release the entry FIFO buffer.
In order to avoid that the data link layer does not send retransmission state information to the network layer to cause the data sending system to stop working under a normal working state, a time and several retransmission aging times can be preset, whether the preset time is reached is monitored by a counter, and when the preset time is reached, the network layer does not receive the retransmission state information, the data link layer is considered not to send the retransmission state information to the network layer based on the currently sent data; the network layer does not need to resend the current data to the data link layer.
In step S211, the network layer device determines whether the retransmission enable carried by the retransmission state information is valid, if the determination result is yes, step S213 is executed, and if the determination result is no, step S210 is executed.
In step S212, the egress asynchronous FIFO buffer is cleared.
And when the network layer equipment detects that the soft reset state of the network layer is effective, emptying the data in the outlet asynchronous FIFO cache. And when the network layer equipment determines to empty the data in the outlet asynchronous FIFO cache, starting the data flow path enable, or when other electronic equipment except the network layer determines to empty the data in the outlet asynchronous FIFO cache, triggering the network layer to start the data flow path enable, so that the network layer sends new data to the data link layer.
In step S213, the network layer device returns to the entry FIFO buffer address.
And when the network layer equipment detects that the soft reset state of the network layer is invalid, receives retransmission state information sent by the data link layer and is used for indicating retransmission data, and the retransmission enable carried by the retransmission state information is valid, returning to the entry FIFO cache address corresponding to the finally sent data so that the network layer resends the data to the data link layer. The schematic diagram of the retire entry FIFO buffer address is shown in FIG. 3, i.e. the read address of the data is retired from the current data end address to the data start address.
Step S214, determining whether the egress asynchronous FIFO buffer is cleared, if yes, executing step S202, and if no, repeatedly executing step S212.
In step S215, the change in the physical layer state is acquired.
Specifically, the state of the physical layer may be obtained by the network layer itself, or obtained by other electronic devices and then sent to the network layer.
Here, the change of the physical layer state means that the data transmission mode of the network layer and the data link layer is changed or the data link layer is reset independently; the change of the data transmission mode of the network layer and the data link layer may refer to the conversion of the data transmission mode from the simplex mode to the duplex mode, or the conversion of the data transmission mode from the duplex mode to the simplex mode.
A third embodiment of the present invention further provides a data processing apparatus 100, where a structure of the data processing apparatus 100, as shown in fig. 5, includes: the system comprises a soft reset module 10, a detection module 11 and a processing module 12; wherein the content of the first and second substances,
the soft reset module 10 is configured to perform soft reset on a network layer when a physical layer state changes;
the detection module 11 is configured to detect a soft reset state of the network layer;
the processing module 12 is configured to process data according to the soft reset state of the network layer.
In the above scheme, the soft reset module 10 is specifically configured to receive a soft reset instruction; and performing soft reset configuration on the network layer based on the soft reset instruction.
In the foregoing solution, the processing module 12 is specifically configured to empty data in the egress asynchronous FIFO buffer when the detection module detects that the soft reset state of the network layer is valid; and opening the data flow path enable so that the network layer sends new data to the data link layer.
In the foregoing solution, the processing module 12 is specifically configured to process the data according to the retransmission state information when the detection module detects that the soft reset state of the network layer is invalid and receives the retransmission state information sent by the data link layer.
In the above scheme, the processing module 12 is specifically configured to, when the detection module detects that the retransmission state information is used to indicate retransmission data and retransmission enabling carried by the retransmission state information is valid, return to an address of an entry FIFO buffer corresponding to the last sent data, so that the network layer resends the data to the data link layer.
In the above scheme, the processing module 12 is specifically configured to release the entry FIFO buffer corresponding to the last sent data when the retransmission state information is used to indicate retransmission data and the retransmission enable carried by the retransmission state information is invalid.
In the foregoing solution, the processing module 12 is specifically configured to release the entry FIFO buffer corresponding to the last sent data when the retransmission state information is used to indicate that data is not retransmitted and the retransmission state information sent by the data link layer is not received within a preset time.
In practical applications, the soft reset module 10, the detection module 11, and the Processing module 12 may be implemented by a Central Processing Unit (CPU), a microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like, which are located on a network side device.
An embodiment of the present invention further provides a data processing apparatus, where a hardware composition structure of the data processing apparatus, as shown in fig. 6, includes: a processor 701 and a memory 702 for storing computer programs capable of running on the processor 701,
wherein, when the processor 701 is configured to run the computer program, it executes:
when the state of the physical layer changes, the network layer is subjected to soft reset;
detecting a soft reset state of the network layer;
and processing data according to the soft reset state of the network layer.
The processor 701 is configured to, when running the computer program, further perform: receiving a soft reset instruction;
and performing soft reset configuration on the network layer based on the soft reset instruction.
The processor is configured to, when executing the computer program, further perform: when the soft reset state of the network layer is detected to be effective, emptying data in an outlet asynchronous FIFO cache;
and opening the data flow path enable so that the network layer sends new data to the data link layer.
The processor 701 is configured to, when running the computer program, further perform: and when detecting that the soft reset state of the network layer is invalid and receiving retransmission state information sent by a data link layer, processing data according to the retransmission state information.
The processor 701 is configured to, when running the computer program, further perform: and when the retransmission state information is detected to be used for indicating retransmission data and the retransmission enable carried by the retransmission state information is valid, returning back to the address of the entry FIFO cache corresponding to the last sent data so that the network layer can resend the data to the data link layer.
The processor 701 is configured to, when running the computer program, further perform: and when the retransmission state information is used for indicating retransmission data and retransmission enabling carried by the retransmission state information is invalid, releasing an inlet FIFO cache corresponding to the finally sent data.
The processor 701 is configured to, when running the computer program, further perform: and when the retransmission state information is used for indicating that the data is not retransmitted and the retransmission state information sent by the data link layer is not received in the preset time, releasing the entry FIFO cache corresponding to the finally sent data.
It will be appreciated that the memory 702 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 702 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 702 in embodiments of the present invention is used to store various types of data to support the operation of the data processing apparatus 700. Examples of such data include: any computer programs for operating on data processing device 700, such as operating system 7021 and application programs 7022. The operating system 7021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application programs 7022 may include various application programs, and a program that implements the method of an embodiment of the present invention is also included in the application programs 7022.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, performs:
when the state of the physical layer changes, the network layer is subjected to soft reset;
detecting a soft reset state of the network layer;
and processing data according to the soft reset state of the network layer.
The computer program, when executed by the processor, further performs: receiving a soft reset instruction; and performing soft reset configuration on the network layer based on the soft reset instruction.
The computer program, when executed by the processor, further performs: when the soft reset state of the network layer is detected to be effective, emptying data in an outlet asynchronous FIFO cache;
and opening the data flow path enable so that the network layer sends new data to the data link layer.
The computer program, when executed by the processor, further performs: and when detecting that the soft reset state of the network layer is invalid and receiving retransmission state information sent by a data link layer, processing data according to the retransmission state information.
The computer program, when executed by the processor, further performs: and when the retransmission state information is detected to be used for indicating retransmission data and the retransmission enable carried by the retransmission state information is valid, returning back to the address of the entry FIFO cache corresponding to the last sent data so that the network layer can resend the data to the data link layer.
The computer program, when executed by the processor, further performs: and when the retransmission state information is used for indicating retransmission data and retransmission enabling carried by the retransmission state information is invalid, releasing an inlet FIFO cache corresponding to the finally sent data.
The computer program, when executed by the processor, further performs: and when the retransmission state information is used for indicating that the data is not retransmitted and the retransmission state information sent by the data link layer is not received in the preset time, releasing the entry FIFO cache corresponding to the finally sent data.
Those skilled in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Random Access Memory (RAM), a Read Only Memory (ROM), a magnetic disk or an optical disk, and various media capable of storing program codes.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a RAM, a ROM, a magnetic or optical disk, or various other media that can store program code.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements, etc. that are within the spirit and principle of the present invention should be included in the present invention.

Claims (16)

1. A method of data processing, the method comprising:
when the state of the physical layer changes, the network layer is subjected to soft reset;
detecting a soft reset state of the network layer;
and processing data according to the soft reset state of the network layer.
2. The method of claim 1, wherein the soft resetting the network layer comprises:
receiving a soft reset instruction;
and performing soft reset configuration on the network layer based on the soft reset instruction.
3. The method of claim 1, wherein processing data according to a soft reset state of the network layer comprises:
when the soft reset state of the network layer is detected to be effective, emptying data in an FIFO buffer of an asynchronous FIFO queue at an outlet;
and opening the data flow path enable so that the network layer sends new data to the data link layer.
4. The method of claim 1, wherein processing data according to a soft reset state of the network layer comprises:
and when detecting that the soft reset state of the network layer is invalid and receiving retransmission state information sent by a data link layer, processing data according to the retransmission state information.
5. The method of claim 4, wherein the processing data according to the retransmission status information comprises:
and when the retransmission state information is detected to be used for indicating retransmission data and the retransmission enable carried by the retransmission state information is valid, returning back to the address of the entry FIFO cache corresponding to the last sent data so that the network layer can resend the data to the data link layer.
6. The method of claim 4, wherein the processing data according to the retransmission status information comprises:
and when the retransmission state information is used for indicating retransmission data and retransmission enabling carried by the retransmission state information is invalid, releasing an inlet FIFO cache corresponding to the finally sent data.
7. The method of claim 4, wherein the processing data according to the retransmission status information comprises:
and when the retransmission state information is used for indicating that the data is not retransmitted and the retransmission state information sent by the data link layer is not received in the preset time, releasing the entry FIFO cache corresponding to the finally sent data.
8. A data processing apparatus, comprising: the device comprises a soft reset module, a detection module and a processing module; wherein the content of the first and second substances,
the soft reset module is used for carrying out soft reset on the network layer when the state of the physical layer changes;
the detection module is used for detecting the soft reset state of the network layer;
and the processing module is used for processing data according to the soft reset state of the network layer.
9. The apparatus according to claim 8, wherein the soft reset module is specifically configured to receive a soft reset instruction;
and performing soft reset configuration on the network layer based on the soft reset instruction.
10. The apparatus according to claim 8, wherein the processing module is specifically configured to empty data in an egress asynchronous FIFO queue FIFO buffer when the detection module detects that the soft reset state of the network layer is valid;
and opening the data flow path enable so that the network layer sends new data to the data link layer.
11. The apparatus according to claim 8, wherein the processing module is specifically configured to process the data according to the retransmission status information when the detection module detects that the soft reset status of the network layer is invalid and receives the retransmission status information sent by the data link layer.
12. The apparatus according to claim 11, wherein the processing module is specifically configured to, when the detection module detects that the retransmission status information is used to indicate retransmission data and retransmission enabling carried by the retransmission status information is valid, return to an address of an entry FIFO buffer corresponding to the last sent data, so that the network layer resends the data to the data link layer.
13. The apparatus according to claim 11, wherein the processing module is specifically configured to release an entry FIFO buffer corresponding to the last transmitted data when the retransmission status information indicates retransmission data and the retransmission enable carried by the retransmission status information is invalid.
14. The apparatus according to claim 11, wherein the processing module is specifically configured to release the entry FIFO buffer corresponding to the last transmitted data when the retransmission status information indicates that no data is retransmitted and the retransmission status information sent by the data link layer is not received within a preset time.
15. A data processing apparatus, comprising: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is adapted to perform the steps of the method of claims 1 to 7 when running the computer program.
16. A computer storage medium on which a computer program is stored, characterized in that the computer program realizes the steps of the method of claims 1 to 7 when executed by a processor.
CN201710948485.0A 2017-10-12 2017-10-12 Data processing method and device and computer storage medium Active CN109660322B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710948485.0A CN109660322B (en) 2017-10-12 2017-10-12 Data processing method and device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710948485.0A CN109660322B (en) 2017-10-12 2017-10-12 Data processing method and device and computer storage medium

Publications (2)

Publication Number Publication Date
CN109660322A CN109660322A (en) 2019-04-19
CN109660322B true CN109660322B (en) 2022-01-11

Family

ID=66109483

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710948485.0A Active CN109660322B (en) 2017-10-12 2017-10-12 Data processing method and device and computer storage medium

Country Status (1)

Country Link
CN (1) CN109660322B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111274064A (en) * 2020-01-15 2020-06-12 武汉兴图新科电子股份有限公司 double-CPU system and cooperative soft reset method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1422882A1 (en) * 2002-11-19 2004-05-26 Research In Motion Limited System and method of unacknowledged network layer service access point indentifier (NSAPI) recovery in sub-network dependent convergence protocol (SNDCP) communication
CN1747476A (en) * 2004-09-06 2006-03-15 乐金电子(天津)电器有限公司 Data process in network layer
CN101374315A (en) * 2007-08-21 2009-02-25 中兴通讯股份有限公司 Method for holding business when wireless network layer user surface processing element being fault

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594634B (en) * 2009-06-24 2011-11-02 上海华为技术有限公司 Data transmission method, related device and system thereof
CN102123090B (en) * 2011-02-23 2012-07-04 中国人民解放军国防科学技术大学 IP (Internet protocol) fragment processing method based on two-level table storage and transport layer information inquiry
CN104883335B (en) * 2014-02-27 2017-12-01 王磊 A kind of devices at full hardware TCP protocol stack realizes system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1422882A1 (en) * 2002-11-19 2004-05-26 Research In Motion Limited System and method of unacknowledged network layer service access point indentifier (NSAPI) recovery in sub-network dependent convergence protocol (SNDCP) communication
CN1747476A (en) * 2004-09-06 2006-03-15 乐金电子(天津)电器有限公司 Data process in network layer
CN101374315A (en) * 2007-08-21 2009-02-25 中兴通讯股份有限公司 Method for holding business when wireless network layer user surface processing element being fault

Also Published As

Publication number Publication date
CN109660322A (en) 2019-04-19

Similar Documents

Publication Publication Date Title
US7571247B2 (en) Efficient send socket call handling by a transport layer
US9614939B2 (en) Network timeouts using intentionally delayed transmissions
US8402190B2 (en) Network adaptor optimization and interrupt reduction
PT2529514T (en) Adaptive contention window in discontinuous wireless communication channels
EP4175232A1 (en) Congestion control method and device
CN110784415A (en) ECN quick response method and device
US20130332638A1 (en) Self clocking interrupt generation in a network interface card
US7177963B2 (en) System and method for low-overhead monitoring of transmit queue empty status
CN109660322B (en) Data processing method and device and computer storage medium
JP4071098B2 (en) Architecture and runtime environment for network filter drivers
CN110022218B (en) Multicast communication method, terminal device and storage medium
US8976803B2 (en) Monitoring resource congestion in a network processor
US8006006B2 (en) System and method for aggregating transmit completion interrupts
TW201014295A (en) Controlling data flow through a data communications link
CN114885018A (en) Message pushing method, device, equipment and storage medium based on double queues
CN112351049B (en) Data transmission method, device, equipment and storage medium
CN111447046B (en) Service data transmission method, device, equipment and storage medium
CN110351223B (en) Timing reminding method, device and computer program medium
CN109062706B (en) Electronic device, method for limiting inter-process communication thereof and storage medium
JP2004343449A (en) Packet communication terminal
CN112988417A (en) Message processing method and device, electronic equipment and computer readable medium
CN114285804B (en) Method, device and medium for controlling data transmission
CN113347116B (en) QoS scheduling delay jitter processing method and device
CN109597576B (en) Method, device, readable storage medium and system for improving response speed of NCQ command
JP4496037B2 (en) Packet communication terminal

Legal Events

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