CN115037786B - Method for improving data transmission efficiency and related equipment - Google Patents

Method for improving data transmission efficiency and related equipment Download PDF

Info

Publication number
CN115037786B
CN115037786B CN202210947856.4A CN202210947856A CN115037786B CN 115037786 B CN115037786 B CN 115037786B CN 202210947856 A CN202210947856 A CN 202210947856A CN 115037786 B CN115037786 B CN 115037786B
Authority
CN
China
Prior art keywords
data
communication link
network communication
sending end
transmission
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
CN202210947856.4A
Other languages
Chinese (zh)
Other versions
CN115037786A (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.)
Emposat Co Ltd
Original Assignee
Emposat 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 Emposat Co Ltd filed Critical Emposat Co Ltd
Priority to CN202210947856.4A priority Critical patent/CN115037786B/en
Publication of CN115037786A publication Critical patent/CN115037786A/en
Application granted granted Critical
Publication of CN115037786B publication Critical patent/CN115037786B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • H04L67/145Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • 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
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

The invention discloses a method for improving data transmission efficiency and related equipment, relates to the field of data transmission, and mainly solves the problem that automatic continuous transmission is difficult to realize after reconnection if a network link is interrupted in the existing data transmission process. The method comprises the following steps: under the condition that a sending end transmits data, detecting the connection state of a network communication link; and controlling the action of continuously transmitting data by the transmitting end when the disconnection of the network communication link is detected, so that the data packet generated by the transmitting end can be automatically transmitted to the receiving end by the transmitting end when the reconnection of the network communication link is detected, wherein the action of continuously transmitting data is used for keeping the transmission state of the transmitting end in an open state when the disconnection of the network communication link is detected. The invention is used for improving the process of data transmission efficiency.

Description

Method for improving data transmission efficiency and related equipment
Technical Field
The present invention relates to the field of data transmission, and in particular, to a method and related device for improving data transmission efficiency.
Background
With the rapid development of information science and technology, under the requirements of the existing equipment joint control and intelligent factories, information interaction among plc, upper computers, sensors and other intelligent equipment becomes particularly important. However, due to the complexity of the whole network of the industrial control system, the network communication within a certain time period and a certain local area is often interrupted, and if the network communication is not processed properly, the data is lost.
Disclosure of Invention
In view of the above problems, the present invention provides a method and related device for improving data transmission efficiency, and mainly aims to solve the problem that automatic retransmission is difficult even after reconnection if a network link is interrupted in the existing data transmission process.
To solve at least one of the above technical problems, in a first aspect, the present invention provides a method for improving data transmission efficiency, including:
under the condition that a sending end transmits data, detecting the connection state of a network communication link;
and controlling the sending end to keep the action of continuously transmitting data when the disconnection of the network communication link is detected, so that the data packet generated at the sending end can be automatically transmitted to the receiving end by the sending end when the reconnection of the network communication link is detected, wherein the action of continuously transmitting data is used for keeping the transmission state of the sending end in an open state when the disconnection of the network communication link is detected.
Optionally, the method further includes:
and under the condition that the network communication link is reconnected, controlling the sending end to reset the PHY chip register so as to continue transmitting data.
Optionally, the method further includes:
acquiring a required rate of a data transmission scene;
and adjusting the maximum transmission byte number of the data transmitted by the transmitting end based on the required rate of the transmission data scene, wherein the required rate of the transmission data scene is in direct proportion to the maximum transmission byte number of the data transmitted by the transmitting end.
Optionally, the adjusting the maximum number of bytes of data transmitted by the transmitting end based on the required rate of the data transmission scenario includes:
and adjusting the size of a data area of the sending end based on the required rate of the transmission data scene so as to adjust the maximum transmission byte number of the transmission data of the sending end.
Alternatively to this, the first and second parts may,
the receiving end is configured to trigger an action of processing data by the receiving end when receiving the data transmitted by the transmitting end.
Optionally, the method further includes:
starting to store the data generated by the transmitting end when the disconnection of the network communication link is detected;
under the condition that the network communication link is detected to be reconnected, analyzing the stored data to obtain a first data abstract, wherein the first data abstract comprises data jumping time and data information in a preset time range before and after the data jumping time;
and controlling the sending end to send the first data abstract to the receiving end.
Optionally, the method further includes:
under the condition that the network communication link is detected to be disconnected, starting to perform interval recording on the data generated by the transmitting end to generate a plurality of data recording intervals, wherein the data recording intervals are divided according to a preset data value span and are generated according to the time sequence of data generation, and the latter data recording interval is generated when newly generated data exceeds the data value range of the former data recording interval;
under the condition that the network communication link is detected to be reconnected, arranging the data identification corresponding to each stored data recording interval according to the time sequence to generate a second data summary;
and controlling the sending end to send the second data abstract to the receiving end.
In a second aspect, an embodiment of the present invention further provides an apparatus for improving data transmission efficiency, including:
the device comprises a detection unit, a sending unit and a receiving unit, wherein the detection unit is used for detecting the connection state of a network communication link under the condition that a sending end transmits data;
and a control unit, configured to control, when the disconnection of the network communication link is detected, an action of the sending end to keep continuously transmitting data, so that a data packet generated at the sending end can be automatically transmitted to the receiving end by the sending end, starting at a time when the reconnection of the network communication link is detected, where the action of continuously transmitting data is used to maintain a transmission state of the sending end in an on state when the disconnection of the network communication link is detected.
In order to achieve the above object, according to a third aspect of the present invention, there is provided a computer-readable storage medium including a stored program, wherein the steps of the method for improving data transmission efficiency described above are implemented when the program is executed by a processor.
To achieve the above object, according to a fourth aspect of the present invention, there is provided an electronic device comprising at least one processor, and at least one memory connected to the processor; the processor is used for calling the program instructions in the memory and executing the steps of the method for improving the data transmission efficiency.
By means of the technical scheme, the method for improving the data transmission efficiency and the related equipment provided by the invention have the advantages that for the problem that automatic continuous transmission is difficult to realize after reconnection if a network link is interrupted in the existing data transmission process, the connection state of a network communication link is detected under the condition that a sending end transmits data; and under the condition that the network communication link is disconnected, controlling the action of keeping continuously transmitting data of the sending end, so that the data packet generated at the sending end can be automatically transmitted to the receiving end by the sending end from the moment when the network communication link is detected to be reconnected, wherein under the condition that the network communication link is disconnected, the action of continuously transmitting data is used for keeping the transmission state of the sending end in an open state. In the above-mentioned solution, an object of the present invention is to provide a method for implementing network interruption continuous transmission, which can detect a communication state of a network in real time when data is transmitted, and control the sender to keep continuously transmitting data and continuously obtain a normal state of the network even when the network is abnormal (communication link is disconnected), and after the network is recovered, continuously transmit data in order, efficiently and reliably, thereby implementing continuous transmission and implementing a hot plug function of a network interface. According to the scheme, during the disconnection of the network communication link, the receiving end does not count and retransmit data which is not received even if the data is lost, so that the real-time property of the transmitted data is ensured while the workload is reduced.
Accordingly, the device, the apparatus and the computer-readable storage medium for improving data transmission efficiency provided by the embodiments of the present invention also have the above technical effects.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a schematic flowchart illustrating a method for improving data transmission efficiency according to an embodiment of the present invention;
fig. 2 is a block diagram illustrating a schematic composition of an apparatus for improving data transmission efficiency according to an embodiment of the present invention;
fig. 3 is a block diagram illustrating a composition of an electronic device for improving data transmission efficiency according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
In order to solve the problem that automatic continuous transmission is difficult to be performed after reconnection if a network link is interrupted in the existing data transmission process, an embodiment of the present invention provides a method for improving data transmission efficiency, as shown in fig. 1, where the method includes:
s101, detecting the connection state of a network communication link under the condition that a sending end transmits data;
illustratively, the method detects the state of the network interface in real time while transmitting data, that is, the connection state of the network communication link, and if the connection state of the network communication link is connection, the data is normally transmitted. Thereby facilitating the provision of prerequisites for the execution of subsequent methods.
And S102, under the condition that the network communication link is detected to be disconnected, controlling the sending end to keep the action of continuously transmitting data, so that the data packet generated at the sending end can be automatically transmitted to the receiving end by the sending end at the moment that the network communication link is detected to be reconnected, wherein under the condition that the network communication link is disconnected, the action of continuously transmitting data is used for keeping the transmission state of the sending end in an open state.
Illustratively, if the connection state of the network communication link is disconnected after being connected, the sending end is controlled to keep the action of continuously transmitting data, and because the sending end keeps the action of continuously transmitting data, the function of automatically continuously transmitting data can be realized under the condition that the reconnection of the network communication link is detected during the period, so that the receiving end continuously receives the data.
By means of the technical scheme, the method for improving the data transmission efficiency provided by the invention has the advantages that the connection state of the network communication link is detected under the condition that the data is transmitted by the transmitting end, and the problem that the data is difficult to automatically continue to be transmitted after the reconnection is carried out if the network link is interrupted in the existing data transmission process is solved; and controlling the sending end to keep the action of continuously transmitting data when the disconnection of the network communication link is detected, so that the data packet generated at the sending end can be automatically transmitted to the receiving end by the sending end when the reconnection of the network communication link is detected, wherein the action of continuously transmitting data is used for keeping the transmission state of the sending end in an open state when the disconnection of the network communication link is detected. In the foregoing solution, an object of the present invention is to provide a method for implementing a disconnected network continuous transmission, which can detect a communication state of a network in real time when data is transmitted, and even when the network is abnormal (a communication link is disconnected), control the sender to keep continuously transmitting data, and continuously obtain a normal state of the network, and after the network is recovered, continuously transmit data in order, efficiently, and reliably, so as to implement a continuous transmission, thereby implementing a hot plug function of a network interface. According to the scheme, when the network communication link is disconnected, the statistical retransmission is not carried out even if the data which are not received by the receiving end are lost, so that the real-time property of the transmitted data is ensured while the workload is reduced.
In one embodiment, the method further comprises:
and controlling the transmitting end to reset the PHY chip register to continue transmitting data under the condition that the network communication link is reconnected.
Illustratively, before transmitting data each time, the chip acquires a state value from the PHY chip register, where the state value indicates whether the network communication link is connected, when the network communication link is disconnected, the state value is 0, when the network communication link is connected, the state value is 1, that is, when the state value is changed from 0 to 1 for the first time, it is proved that the network communication link is reconnected, at this time, the PHY chip control register needs to be reset once again, and data at the address of the PHY chip control register is manually written into 0 to be rewritten.
In one embodiment, the method further comprises:
acquiring a required rate of a transmission data scene;
and adjusting the maximum transmission byte number of the data transmitted by the transmitting end based on the required rate of the transmission data scene, wherein the required rate of the transmission data scene is in direct proportion to the maximum transmission byte number of the data transmitted by the transmitting end.
Illustratively, the demand rates for different transmission data scenarios are different, for example: the demand rate for transmitting data scenes such as live broadcast is high, and the demand rate for watching data scenes such as text webpages is low. The method supports different network transmission rates, can switch different rates or process data according to related protocols, adjusts the maximum transmission byte number of the data transmitted by the transmitting end based on the required rate of the transmission data scene, and ensures that the maximum transmission byte number of the transmission data of the transmitting end corresponding to the higher required rate of the transmission data scene is larger, thereby ensuring that the byte number of the transmission data of the transmitting end can fully meet the required rate of the transmission data scene.
In an embodiment, the adjusting the maximum number of bytes transmitted by the transmitting end based on the required rate of the scene of the transmitted data includes:
and adjusting the size of the data area of the sending end based on the required rate of the transmission data scene so as to adjust the maximum transmission byte number of the transmission data of the sending end.
For example, in the prior art, the chip can only send 1500 bytes, packets are grabbed on the network, the size of one packet is 1500 bytes, and if data larger than 1500 bytes is directly sent, the chip will report an error. The method adjusts the size of the sending end data area after determining the required rate, and can send more bytes each time by the sending end data area, thereby achieving the effect of increasing the transmission rate, for example: the data area of the sending end is adjusted from 1500 to 3000 bytes, so that the sending end can not report errors when sending 3000 bytes, the result of packet capturing on the network is that the sending end is divided into two packets, and the receiving end still receives 1 packet with 3000 bytes at a time. Therefore, the Transmission rate is increased, the system is operated in real time, the response speed is higher, and the data Transmission rate is high by increasing the Maximum Transmission Unit (MTU).
In one embodiment of the method of manufacturing the optical fiber,
the receiving end is configured to trigger an action of processing data by the receiving end when receiving the data transmitted by the transmitting end.
Illustratively, the embedded algorithm is implemented mainly based on the operating system, and the maximum transmission byte of the transmission data is reconfigured after the network service is started. Two receiving and sending tasks are established, the sending task is normally executed all the time, and the receiving end triggers the receiving task through semaphore after receiving data, namely, the receiving end actually receives the data and triggers the processing action again. Compared with the control of the passing interval time in the prior art, the thread can be run for one time at intervals even if data is not received, and the thread and task amount are saved.
In one embodiment, the method further comprises:
starting to store the data generated by the transmitting end when the disconnection of the network communication link is detected;
under the condition that the network communication link is detected to be reconnected, analyzing the stored data to obtain a first data summary, wherein the first data summary comprises data jumping time and data information in a preset time range before and after the data jumping time;
and controlling the sending end to send the first data abstract to the receiving end.
Illustratively, the method starts to store data generated by the sending end when a network communication link is disconnected, so as to ensure that data is not lost during the disconnection of the network communication link, and determines whether data jump occurs during the disconnection of the network communication link and data information within a preset time range before and after the data jump time by analyzing the stored data, and sends the information to the receiving end when the network communication link is reconnected, so that the receiving end can determine key data information during the disconnection of the network communication link.
In one embodiment, the method further comprises:
when the network communication link is detected to be disconnected, starting to perform interval recording on the data generated by the transmitting end to generate a plurality of data recording intervals, wherein the data recording intervals are divided according to a preset data value span and are generated according to the time sequence of data generation, and the latter data recording interval is generated when newly generated data exceeds the data value range of the former data recording interval;
under the condition that the network communication link is detected to be reconnected, arranging the data identification corresponding to each stored data recording interval according to the time sequence to generate a second data summary;
and controlling the sending end to send the second data abstract to the receiving end.
Illustratively, the second data summary only records the data identifier corresponding to each data recording interval generated according to the time sequence, so that the time dimension of the data intervals with different data lengths is compressed into the unit time dimension, and the data size of the second data summary is reduced under the condition of ensuring that the data change expressed by the data information generated by the sending end during the disconnection of the network communication link is restored to the maximum extent, thereby improving the sending efficiency and the playing function of the second data summary. And the receiving end can timely find the problem of the object to be detected during the disconnection of the network communication link based on the second data abstract, and the omission of key technical problems and the loss of key data are avoided.
Further, as an implementation of the method shown in fig. 1, an embodiment of the present invention further provides a device for improving data transmission efficiency, which is used to implement the method shown in fig. 1. The embodiment of the apparatus corresponds to the embodiment of the method, and for convenience of reading, details in the embodiment of the apparatus are not repeated one by one, but it should be clear that the apparatus in the embodiment can correspondingly implement all the contents in the embodiment of the method. As shown in fig. 2, the apparatus includes: a detection unit 21 and a control unit 22, wherein
A detection unit 21 that detects a connection state of a network communication link in a case where a transmitting end transmits data;
a control unit 22, configured to, in a case that disconnection of the network communication link is detected, control an operation of the sender to keep continuously transmitting data so that a data packet generated at the sender can be automatically transmitted to the receiver by the sender starting at a time when reconnection of the network communication link is detected, where in a case that disconnection of the network communication link is detected, the operation of continuously transmitting data is used to maintain an on state of the transmission state of the sender
Exemplarily, the unit is further configured to:
and controlling the transmitting end to reset the PHY chip register to continue transmitting data under the condition that the network communication link is reconnected.
Exemplarily, the above unit is further configured to:
acquiring a required rate of a transmission data scene;
and adjusting the maximum transmission byte number of the data transmitted by the transmitting end based on the required rate of the transmission data scene, wherein the required rate of the transmission data scene is in direct proportion to the maximum transmission byte number of the data transmitted by the transmitting end.
Illustratively, the adjusting the maximum number of bytes transmitted by the transmitting end based on the required rate of the scene of the transmitted data includes:
and adjusting the size of a data area of the sending end based on the required rate of the transmission data scene so as to adjust the maximum transmission byte number of the transmission data of the sending end.
In an exemplary manner, the first and second electrodes are,
the receiving end is configured to trigger an action of the receiving end for processing data when the receiving end receives the data transmitted by the transmitting end.
Exemplarily, the unit is further configured to:
starting to store the data generated by the transmitting end when the disconnection of the network communication link is detected;
under the condition that the network communication link is detected to be reconnected, analyzing the stored data to obtain a first data abstract, wherein the first data abstract comprises data jumping time and data information in a preset time range before and after the data jumping time;
and controlling the sending end to send the first data abstract to the receiving end.
Exemplarily, the above unit is further configured to:
under the condition that the network communication link is detected to be disconnected, starting to perform interval recording on the data generated by the transmitting end to generate a plurality of data recording intervals, wherein the data recording intervals are divided according to a preset data value span and are generated according to the time sequence of data generation, and the latter data recording interval is generated when newly generated data exceeds the data value range of the former data recording interval;
under the condition that the network communication link is detected to be reconnected, arranging the data identification corresponding to each stored data recording interval according to the time sequence to generate a second data summary;
and controlling the sending end to send the second data abstract to the receiving end.
By means of the technical scheme, the device for improving the data transmission efficiency provided by the invention has the advantages that the connection state of the network communication link is detected under the condition that the sending end transmits data, and the problem that the data transmission is difficult to automatically continue even after the network link is reconnected if the network link is interrupted in the existing data transmission process is solved; and controlling the sending end to keep the action of continuously transmitting data when the disconnection of the network communication link is detected, so that the data packet generated at the sending end can be automatically transmitted to the receiving end by the sending end when the reconnection of the network communication link is detected, wherein the action of continuously transmitting data is used for keeping the transmission state of the sending end in an open state when the disconnection of the network communication link is detected. In the above-mentioned solution, an object of the present invention is to provide a method for implementing network interruption continuous transmission, which can detect a communication state of a network in real time when data is transmitted, and control the sender to keep continuously transmitting data and continuously obtain a normal state of the network even when the network is abnormal (communication link is disconnected), and after the network is recovered, continuously transmit data in order, efficiently and reliably, thereby implementing continuous transmission and implementing a hot plug function of a network interface. According to the scheme, during the disconnection of the network communication link, the receiving end does not count and retransmit data which is not received even if the data is lost, so that the real-time property of the transmitted data is ensured while the workload is reduced.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, the method for improving the data transmission efficiency is realized by adjusting the kernel parameters, and the problem that automatic continuous transmission is difficult to realize after reconnection if a network link is interrupted in the existing data transmission process can be solved.
An embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium includes a stored program, and the program, when executed by a processor, implements the method for improving data transmission efficiency.
An embodiment of the present invention provides a processor, where the processor is configured to execute a program, where the method for improving data transmission efficiency is performed when the program is executed.
The embodiment of the invention provides electronic equipment, which comprises at least one processor and at least one memory connected with the processor; the processor is used for calling the program instructions in the memory and executing the method for improving the data transmission efficiency
An embodiment of the present invention provides an electronic device 30, as shown in fig. 3, the electronic device includes at least one processor 301, at least one memory 302 connected to the processor, and a bus 303; wherein, the processor 301 and the memory 302 complete the communication with each other through the bus 303; the processor 301 is configured to call program instructions in the memory to perform the above-described method for improving data transmission efficiency.
The intelligent electronic device herein may be a PC, PAD, mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a flow management electronic device:
under the condition that a sending end transmits data, detecting the connection state of a network communication link;
and controlling the sending end to keep the action of continuously transmitting data when the disconnection of the network communication link is detected, so that the data packet generated at the sending end can be automatically transmitted to the receiving end by the sending end when the reconnection of the network communication link is detected, wherein the action of continuously transmitting data is used for keeping the transmission state of the sending end in an open state when the disconnection of the network communication link is detected.
Further, the method further comprises:
and under the condition that the network communication link is reconnected, controlling the sending end to reset the PHY chip register so as to continue transmitting data.
Further, the method further comprises:
acquiring a required rate of a transmission data scene;
and adjusting the maximum transmission byte number of the data transmitted by the transmitting end based on the required rate of the transmission data scene, wherein the required rate of the transmission data scene is in direct proportion to the maximum transmission byte number of the data transmitted by the transmitting end.
Further, the adjusting the maximum number of bytes transmitted by the transmitting end based on the required rate of the scene of the transmitted data includes:
and adjusting the size of the data area of the sending end based on the required rate of the transmission data scene so as to adjust the maximum transmission byte number of the transmission data of the sending end.
In a further aspect of the present invention,
the receiving end is configured to trigger an action of the receiving end for processing data when the receiving end receives the data transmitted by the transmitting end.
Further, the method further comprises:
starting to store the data generated by the transmitting end when the disconnection of the network communication link is detected;
under the condition that the network communication link is detected to be reconnected, analyzing the stored data to obtain a first data summary, wherein the first data summary comprises data jumping time and data information in a preset time range before and after the data jumping time;
and controlling the sending end to send the first data abstract to the receiving end.
Further, the method further comprises:
when the network communication link is detected to be disconnected, starting to perform interval recording on the data generated by the transmitting end to generate a plurality of data recording intervals, wherein the data recording intervals are divided according to a preset data value span and are generated according to the time sequence of data generation, and the latter data recording interval is generated when newly generated data exceeds the data value range of the former data recording interval;
under the condition that the network communication link is detected to be reconnected, arranging the data identification corresponding to each stored data recording interval according to the time sequence to generate a second data summary;
and controlling the sending end to send the second data abstract to the receiving end.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, electronic devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor or other programmable flow management electronic device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable flow management electronic device, create means for implementing the functions specified in the flow diagram flow or flows and/or block diagram block or blocks.
In a typical configuration, an electronic device includes one or more processors (CPUs), memory, and a bus. The electronic device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), including at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer-readable storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage electronic devices, or any other non-transmission medium that can be used to store information that can be accessed by computing electronic devices. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or electronic device that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or electronic device. Without further limitation, the element defined by the phrases "comprising one of 8230 \8230;" does not exclude the presence of additional like elements in the process, method, article, or electronic device in which the element is comprised.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable computer-readable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for increasing data transmission efficiency, comprising:
under the condition that a sending end transmits data, detecting the connection state of a network communication link;
and under the condition that the network communication link is disconnected, controlling the action of keeping continuously transmitting data of the sending end, so that the data packet generated at the sending end can be automatically transmitted to the receiving end by the sending end from the moment when the network communication link is detected to be reconnected, wherein under the condition that the network communication link is disconnected, the action of continuously transmitting data is used for keeping the transmission state of the sending end in an open state.
2. The method of claim 1, further comprising:
and controlling the transmitting end to reset the PHY chip register to continue transmitting data under the condition that the network communication link is reconnected.
3. The method of claim 1, further comprising:
acquiring a required rate of a transmission data scene;
and adjusting the maximum transmission byte number of the data transmitted by the transmitting end based on the required rate of the transmission data scene, wherein the required rate of the transmission data scene is in direct proportion to the maximum transmission byte number of the data transmitted by the transmitting end.
4. The method of claim 3, wherein the adjusting the maximum number of bytes transmitted by the transmitting end based on the required rate of the scene of the transmitted data comprises:
and adjusting the size of a data area of a sending end based on the required rate of the transmission data scene so as to adjust the maximum transmission byte number of the transmission data of the sending end.
5. The method of claim 1,
the receiving end is configured to trigger the action of processing the data of the receiving end under the condition of receiving the data transmitted by the transmitting end.
6. The method of claim 1, further comprising:
starting to store the data generated by the sending end under the condition that the network communication link is detected to be disconnected;
under the condition that the network communication link is detected to be reconnected, analyzing the stored data to obtain a first data summary, wherein the first data summary comprises a data jumping time and data information within a preset time range before and after the data jumping time;
and controlling the sending end to send the first data summary to the receiving end.
7. The method of claim 1, further comprising:
under the condition that the network communication link is detected to be disconnected, starting to perform interval recording on the data generated by the sending end to generate a plurality of data recording intervals, wherein the data recording intervals are divided according to a preset data value span and are generated according to the time sequence of data generation, and the latter data recording interval is generated when newly generated data exceeds the data value range of the former data recording interval;
under the condition that the network communication link is detected to be reconnected, arranging the data identifications corresponding to each stored data recording interval according to the time sequence to generate a second data summary;
and controlling the sending end to send the second data abstract to the receiving end.
8. An apparatus for improving data transmission efficiency,
the detection unit is used for detecting the connection state of the network communication link under the condition that the sending end transmits data;
and a control unit, configured to control, when the disconnection of the network communication link is detected, an action of the sending end to keep continuously transmitting data, so that a data packet generated at the sending end can be automatically transmitted to a receiving end by the sending end, starting at a time when the reconnection of the network communication link is detected, where the action of continuously transmitting data is used to maintain a transmission state of the sending end in an on state when the disconnection of the network communication link is detected.
9. A computer-readable storage medium, comprising a stored program, wherein the program when executed by a processor implements the steps of the method of improving data transmission efficiency of any one of claims 1 to 7.
10. An electronic device, comprising at least one processor, and at least one memory coupled to the processor; wherein the processor is configured to call program instructions in the memory to perform the steps of the method for improving data transmission efficiency according to any one of claims 1 to 7.
CN202210947856.4A 2022-08-09 2022-08-09 Method for improving data transmission efficiency and related equipment Active CN115037786B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210947856.4A CN115037786B (en) 2022-08-09 2022-08-09 Method for improving data transmission efficiency and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210947856.4A CN115037786B (en) 2022-08-09 2022-08-09 Method for improving data transmission efficiency and related equipment

Publications (2)

Publication Number Publication Date
CN115037786A CN115037786A (en) 2022-09-09
CN115037786B true CN115037786B (en) 2022-11-01

Family

ID=83130820

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210947856.4A Active CN115037786B (en) 2022-08-09 2022-08-09 Method for improving data transmission efficiency and related equipment

Country Status (1)

Country Link
CN (1) CN115037786B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116485306A (en) * 2023-04-13 2023-07-25 上海昱耀信息科技有限公司 Order ex-warehouse short message processing method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1278348A1 (en) * 2001-07-17 2003-01-22 Alcatel Long-lived TCP connection using ICMP messages in wireless mobile communications
CN103139307A (en) * 2013-02-27 2013-06-05 广东欧珀移动通信有限公司 Recovery method for network resource downloading after interruption and downloading system
CN107294830A (en) * 2017-06-19 2017-10-24 四川速宝网络科技有限公司 A kind of data transmission method and system
JP2019176366A (en) * 2018-03-29 2019-10-10 株式会社Pfu Information processing device, information processing method, and program
CN110365802A (en) * 2019-08-26 2019-10-22 北京奇艺世纪科技有限公司 A kind of method for message transmission, message forwarding device and storage medium
CN111107123A (en) * 2018-10-29 2020-05-05 杭州海康威视数字技术股份有限公司 Method and device for continuous transmission in broken network
CN111988411A (en) * 2020-08-22 2020-11-24 上海萱闱医疗科技有限公司 Method and device for automatically resuming client data after network break and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1278348A1 (en) * 2001-07-17 2003-01-22 Alcatel Long-lived TCP connection using ICMP messages in wireless mobile communications
CN103139307A (en) * 2013-02-27 2013-06-05 广东欧珀移动通信有限公司 Recovery method for network resource downloading after interruption and downloading system
CN107294830A (en) * 2017-06-19 2017-10-24 四川速宝网络科技有限公司 A kind of data transmission method and system
JP2019176366A (en) * 2018-03-29 2019-10-10 株式会社Pfu Information processing device, information processing method, and program
CN111107123A (en) * 2018-10-29 2020-05-05 杭州海康威视数字技术股份有限公司 Method and device for continuous transmission in broken network
CN110365802A (en) * 2019-08-26 2019-10-22 北京奇艺世纪科技有限公司 A kind of method for message transmission, message forwarding device and storage medium
CN111988411A (en) * 2020-08-22 2020-11-24 上海萱闱医疗科技有限公司 Method and device for automatically resuming client data after network break and computer readable storage medium

Also Published As

Publication number Publication date
CN115037786A (en) 2022-09-09

Similar Documents

Publication Publication Date Title
CN110943998B (en) Signal transmission method, device, equipment and medium
CN115037786B (en) Method for improving data transmission efficiency and related equipment
CN110808873B (en) Method and device for detecting link failure
CN115174490B (en) Data transmission method and network application terminal
CN103945282A (en) File reading method and device
CN110912985B (en) Network link scheduling method and related equipment
CN104883279A (en) Heartbeat message processing method, heartbeat message processing device and heartbeat message processing system
CN102882708A (en) Operation and maintenance auditing method, device and system
CN108551571B (en) Monitoring video distribution method, device and system and distribution server
CN106708761A (en) Service message processing method and device
CN110224872B (en) Communication method, device and storage medium
CN110572315A (en) Information interaction method and device, robot and storage medium
CN110784369A (en) Method for detecting long connection, server, terminal and storage medium
CN112968817B (en) Packet loss data statistical method and terminal in digital information transmission
CN115033927A (en) Method, device, equipment and medium for detecting data integrity
CN101989218A (en) Data storage control system and method
CN112491810B (en) Data connection method and mobile terminal
CN102523280A (en) Detection method of transmission control abnormal disconnection, apparatus thereof, server and system
CN114244758A (en) Network diagnosis method, storage medium, electronic device and system of android platform
CN111669389A (en) Data transmission method and device of industrial control system and related equipment
CN113938414B (en) Network storm processing method, system, equipment and computer storage medium
CN112749398B (en) Data transmission channel control method and system
CN115510427B (en) Cross-platform process running credible monitoring method and system
TWI732725B (en) Debugging method for narrowband internet of things terminal and electronic device using the same
CN110290198B (en) GOOSE message sending method and device

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