CN114362893A - Data transmitting method, data receiving method, terminal and computer storage medium - Google Patents

Data transmitting method, data receiving method, terminal and computer storage medium Download PDF

Info

Publication number
CN114362893A
CN114362893A CN202011048753.1A CN202011048753A CN114362893A CN 114362893 A CN114362893 A CN 114362893A CN 202011048753 A CN202011048753 A CN 202011048753A CN 114362893 A CN114362893 A CN 114362893A
Authority
CN
China
Prior art keywords
data packet
network
server
terminal
original
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011048753.1A
Other languages
Chinese (zh)
Inventor
宋欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN202011048753.1A priority Critical patent/CN114362893A/en
Priority to PCT/CN2021/108634 priority patent/WO2022068342A1/en
Publication of CN114362893A publication Critical patent/CN114362893A/en
Pending legal-status Critical Current

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/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
    • 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/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • 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/141Setup of application sessions
    • 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/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/12Wireless traffic scheduling

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a data sending method, a data receiving method, a terminal and a computer storage medium, wherein a terminal copies an original data packet to obtain a standby data packet, the terminal sends the original data packet to a server through at least one second-system network when sending the standby data packet to the server through a first-system network, the server receives the standby data packet sent by the terminal through at least one second-system network when receiving the original data packet sent by the terminal through the first-system network, the server analyzes the original data packet and the standby data packet to obtain a complete data packet, and the terminal still keeps network connection through the second-system network and sends data to the server even if the first-system network connected with the terminal fails to cause the interruption of the network connection of the terminal in some implementation processes, and then the connection stability of the terminal and the server is improved, the reliability of the network is improved, and the stability of data transmission is improved.

Description

Data transmitting method, data receiving method, terminal and computer storage medium
Technical Field
The embodiments of the present invention relate to, but are not limited to, the field of communications technologies, and in particular, but not limited to, a data transmission method, a data reception method, a terminal, and a computer storage medium.
Background
With the development and application of communication technology, the requirements of high speed, low time delay, high reliability, large capacity and other access characteristics are put forward for the network; in the using process, the requirements on the performance, reliability and stability of the network are higher and higher; meanwhile, in some scenarios, the reliability of the network is higher, and a situation that communication interruption cannot occur is required, for example, when the situation is influenced by an emergency such as network deployment of a wireless operator, network optimization, and the like, there is a possibility that data loss is caused by network interruption, and the reliability of the network is influenced.
Disclosure of Invention
The data sending method, the data receiving method, the terminal and the computer storage medium mainly solve the technical problem that data are lost due to network interruption when the terminal carries out network communication.
In order to solve the above technical problem, an embodiment of the present invention provides a data sending method, including:
copying an original data packet to obtain a standby data packet;
when the original data packet is sent to the server through the network of the first standard,
and sending the standby data packet to the server through at least one second standard network.
The embodiment of the invention also provides a data receiving method, which comprises the following steps:
when receiving an original data packet sent by a terminal through a first standard network, receiving a standby data packet sent by the terminal through at least one second standard network;
and analyzing the original data packet and the standby data packet to obtain a complete data packet.
The embodiment of the invention also provides a terminal, which comprises a first processor, a first memory and a first communication bus;
the first communication bus is used for realizing connection communication between the first processor and the first memory;
the first processor is configured to execute one or more computer programs stored in the first memory to implement the steps of the data transmission method as described above.
Embodiments of the present invention also provide a computer storage medium, where one or more programs are stored, and the one or more programs may be executed by one or more processors to implement the data transmission method and/or the data reception method described above.
According to the data transmission method, the data reception method, the terminal and the computer storage medium provided by the embodiment of the invention, the original data packet is copied by the terminal to obtain the standby data packet, when the original data packet is transmitted to the server by the first-system network by the terminal, the standby data packet is transmitted to the server by the at least one second-system network, when the original data packet transmitted by the terminal by the first-system network is received by the server, the standby data packet transmitted by the terminal by the at least one second-system network is received by the terminal, the server analyzes the original data packet and the standby data packet to obtain the complete data packet, even if the first-system network connected with the terminal fails in some implementation processes, the terminal still maintains network connection by the second-system network and transmits data to the server, and then the connection stability of the terminal and the server is improved, the reliability of the network is improved, and the stability of data transmission is improved.
Additional features and corresponding advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
Fig. 1 is a schematic diagram of a basic flow of a data transmission method according to a first embodiment of the present invention;
fig. 2 is a schematic basic flow chart of a data receiving method according to a first embodiment of the present invention;
fig. 3 is a schematic basic flow chart of a data transmission method according to a second embodiment of the present invention;
fig. 4 is a schematic diagram of communication between a terminal and a server according to a third embodiment of the present invention;
fig. 5 is a schematic diagram illustrating the location of software components in the TCPIP protocol stack according to a third embodiment of the present invention;
fig. 6 is an internal structural diagram of the binding Agent and combination Agent provided in the third embodiment of the present invention;
fig. 7 is a schematic basic flow chart of a data transmission method according to a third embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal according to a fourth embodiment of the present invention;
fig. 9 is a schematic structural diagram of a server according to a fourth embodiment of the present invention;
fig. 10 is a schematic structural diagram of a data transmission system according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention are described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The first embodiment is as follows:
in order to solve the problem of data loss caused by network interruption when a terminal performs network communication in the related art, please refer to fig. 1, where fig. 1 shows a basic flow diagram of a data transmission method, where the data transmission method includes, but is not limited to:
s101, copying an original data packet to obtain a standby data packet;
s102, when the original data packet is sent to a server through a first standard network, the standby data packet is sent to the server through at least one second standard network.
In some embodiments, a terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and a CPE (Customer Premise Equipment).
It should be understood that the terminal can be simultaneously connected to at least two standard networks, where the two standard networks include: a wireless system network and a wired system network, wherein the wireless system network includes but is not limited to: one of a global system for mobile communication (gsm) wireless system network, a code division multiple access (cdma) wireless system network, a wideband cdma wireless system network, a long term evolution (long term evolution) wireless system network, a new air interface (nr) wireless system network, and a wireless local area network. In some embodiments, the terminal may access multiple wireless standard networks, where a main communication network is used as a first standard network, and other connected networks are used as second standard networks, and the wired standard networks include but are not limited to: an ethernet-based network.
It should be understood that the first standard network and the second standard network are different wireless standard networks; for example, in some examples, the first standard network is a long term evolution LTE wireless standard network, and the second standard network is a new air interface NR wireless standard network; the embodiment is not used for limiting the first standard network to be a long term evolution LTE wireless standard network and is also not used for limiting the second standard network to be a new air interface NR wireless standard network. That is, the first standard network may be a long term evolution LTE wireless standard network or a new air interface NR wireless standard network, and the second standard network may also be a long term evolution LTE wireless standard network or a new air interface NR wireless standard network.
In some embodiments, the original data packet is copied to obtain a spare data packet; the number of the standby data packets obtained by copying is equal to the number of the connected second system networks; for example, in some examples, the number of the second-standard networks connected at the same time is N, and correspondingly, N spare data packets may be copied; preferably, the network is connected to a second-system network, and the original data is copied to obtain a spare data packet.
In some embodiments, when the original data packet is sent to a server through a network of a first standard, before sending the standby data packet to the server through a network of at least one second standard, the method further includes: establishing a first socket1 with a server side based on the first standard network; establishing a second socket2 with the server based on the second system network, further sending an original data packet to the server by establishing a first socket1 based on the first system network, and sending a standby data packet to the server by establishing a second socket2 based on the second system network; it should be understood that when there are a plurality of second-system networks, a plurality of different second socket sockets 2 are correspondingly established.
In some embodiments, the original data packet and the spare data packet have the same sequence number, thereby identifying the transmitted data packet number; when an original data packet is sent to a server through a first standard network, a standby data packet with the same serial number as the original data packet is sent to the server through at least one second standard network; it should be understood that the same sequence number may be a sequence number added when an original packet is copied, or may be the same sequence number added when the original packet and a spare packet are transmitted through the first socket1 and the second socket2, thereby identifying the transmitted original packet and the sent spare packet, and the original packet and the spare packet with the same sequence number correspond to each other. It should be understood that, when a terminal sends a plurality of different original data packets to a server through a first standard network, the terminal sends a plurality of standby data packets corresponding to the original data packets to the server through a second standard network, and the original data packets and the corresponding standby data packets have the same serial numbers; for example, the terminal sends the original data packet 1 and the original data packet 2 … as the original data packet N through the network of the first standard, and the terminal sends the spare data packet 1 and the spare data packet 2 … as the spare data packet N through the network of the second standard, at this time, the original data packet 1 corresponds to the spare data packet 1, and the other data packets are the same. Optionally, in some examples, data may be sent only through the second-standard network with redundant network resources, and then when the original data packet fails to be sent, the server may receive a standby data packet that is the same as the original data packet, so that the reliability and stability of the network communication data are increased on the premise of not sacrificing the network communication bandwidth and rate.
According to the data transmission method provided by the embodiment of the invention, the standby data packet is obtained by copying the original data packet; when the original data packet is sent to a server through a first standard network, the standby data packet is sent to the server through at least one second standard network; even if the first system network is in failure and causes connection interruption, the second system network still keeps network connection and sends data to the server, so that the reliability of the network is improved, the stability of data transmission is improved, and the problem of data loss caused by network interruption during network communication is avoided.
The present embodiment further provides a data receiving method, please refer to fig. 2, and fig. 2 is a schematic diagram illustrating a basic flow of the data receiving method, where the data receiving method includes, but is not limited to:
s201, when an original data packet sent by a terminal through a first standard network is received, a standby data packet sent by the terminal through at least one second standard network is received;
s202, analyzing the original data packet and the standby data packet to obtain a complete data packet.
In some embodiments, a server receives a standby data packet sent by a terminal through at least one second-standard network when the terminal sends an original data packet through a first-standard network; for example, in some examples, when the server side listens to the first socket1 to receive the original data packet, the server side listens to the second socket2 to receive the standby data packet, and stores the received original data packet and the standby data packet; it should be understood that, when the terminal performs communication through multiple networks of the second system and correspondingly establishes multiple different second socket sockets 2, the server side listens for multiple second socket sockets 2 to receive the standby data packets.
In some embodiments, before parsing the original packet and the spare packet to obtain a complete packet, the parsing comprises: storing the original data packet into a first buffer area; storing the standby data packet into a second buffer area, and further distinguishing an original data packet from the standby data packet; it should be understood that the original data packet and the spare data packet may also be stored in a buffer, and the original data packet and the spare data packet may be identified by adding a distinguishing identifier, so as to distinguish the original data packet from the spare data packet.
In some embodiments, the parsing the original packet and the spare packet to obtain a complete packet includes: analyzing whether the original data packet in the first buffer area is complete or not; when the original data packet is incomplete, analyzing a standby data packet with the same sequence number as the original data packet in the second buffer area to obtain a complete data packet; for example, in some examples, original packet 1, original packet 3 …, original packet N, spare packet 1, spare packet 2, spare packet 3 …, spare packet N, are present in the first buffer; firstly, analyzing each original data packet in a first buffer area, and copying a standby data packet 1 in a second buffer area to obtain a complete data packet when the original data packet 1 in the first buffer area is analyzed to be wrong; when analyzing each data packet in the first buffer area, finding that there is no original data packet 2 and there is a situation of serial number interruption, copying missing serial number data standby data packet 2 from the data in the second buffer area, thereby forming complete merged data.
It should be understood that, when the original packet and the spare packet are in the same buffer, the parsing the original packet and the spare packet to obtain a complete packet includes: and analyzing whether the original data packet in the buffer area is complete or not, and analyzing the standby data packet with the same serial number as the original data packet in the buffer area when the original data packet is incomplete so as to obtain a complete data packet. For example, in some examples, there is original packet 1, original packet 3 … original packet N, spare packet 1, spare packet 2, spare packet 3 … spare packet N in the buffer; when the original data packet 1 in the analysis buffer area is wrong, copying the standby data packet 1 in the buffer area to obtain a complete data packet; when analyzing each data packet in the buffer, finding that there is no original data packet 2, and the original data packet has a situation of serial number interruption, copying the missing serial number data standby data packet 2 from the buffer data, thereby forming complete merged data.
In the data receiving method provided by the embodiment of the invention, when an original data packet sent by a receiving terminal through a first standard network is received, a standby data packet sent by the receiving terminal through at least one second standard network is received, and then the original data packet and the standby data packet are analyzed to obtain a complete data packet; even if the first system network connected with the terminal breaks down to cause the interruption of the network connection of the terminal, the terminal still keeps the network connection through the second system network and sends data to the server, so that the connection stability of the terminal and the server is improved, the reliability of the network is improved, the stability of data transmission is improved, and the problem of data loss caused by the interruption of the network during network communication is avoided.
Example two:
for better illustration, the present embodiment provides a specific data transmission method, please refer to fig. 3, which includes but is not limited to:
s301, copying an original data packet by the terminal to obtain a standby data packet;
in some embodiments, the terminal is connected to a first system network and a second system network at the same time, where the first system network and the second system network are different wireless system networks, and the number of the backup data packets obtained by copying is equal to the number of the second system networks connected to the first system network, so that when the terminal is connected to one second system network, 1 backup data packet obtained by copying is obtained, and when the terminal is connected to each of the N second system networks, N backup data packets obtained by copying is obtained.
S302, when the terminal sends the original data packet to the server through the first standard network, the terminal sends the standby data packet to the server through at least one second standard network.
In some embodiments, a first socket1 is established with a server side based on the first standard network; establishing a second socket2 with the server based on the second system network, further sending an original data packet to the server by establishing a first socket1 based on the first system network, and sending a standby data packet to the server by establishing a second socket2 based on the second system network; it should be understood that when there are a plurality of second-system networks, a plurality of different second socket sockets 2 are correspondingly established.
In some embodiments, the original data packet and the spare data packet have the same sequence number, thereby identifying the transmitted data packet number; it should be understood that the same sequence number may be a sequence number added when an original packet is copied, or may be the same sequence number added when the original packet and a spare packet are transmitted through the first socket1 and the second socket2, thereby identifying the transmitted original packet and the sent spare packet, and the original packet and the spare packet with the same sequence number correspond to each other. It should be understood that, when a terminal sends a plurality of different original data packets to a server through a first standard network, the terminal sends a plurality of standby data packets corresponding to the original data packets to the server through a second standard network, and the original data packets and the corresponding standby data packets have the same serial numbers; for example, the terminal sends the original data packet 1 and the original data packet 2 … as the original data packet N through the network of the first standard, and the terminal sends the spare data packet 1 and the spare data packet 2 … as the spare data packet N through the network of the second standard, at this time, the original data packet 1 corresponds to the spare data packet 1, and the other data packets are the same.
S303, when receiving an original data packet sent by a terminal through a first standard network, a server receives a standby data packet sent by the terminal through at least one second standard network;
in some embodiments, when a terminal sends an original data packet through a first standard network, a server receives a standby data packet sent by the terminal through at least one second standard network; for example, in some examples, when the server side listens to the first socket1 to receive the original data packet, the server side listens to the second socket2 to receive the standby data packet, and stores the received original data packet and the received standby data packet in the first buffer and the second buffer, respectively. It should be understood that, when the terminal performs communication through multiple networks of the second system and correspondingly establishes multiple different second socket sockets 2, the server side listens for multiple second socket sockets 2 to receive the standby data packets.
S304, the server analyzes the original data packet and the standby data packet to obtain a complete data packet;
in some embodiments, parsing the original data packet in the first buffer is complete; when the original data packet is incomplete, analyzing a standby data packet with the same sequence number as the original data packet in the second buffer area to obtain a complete data packet; for example, in some examples, original packet 1, original packet 3 …, original packet N, spare packet 1, spare packet 2, spare packet 3 …, spare packet N, are present in the first buffer; when the original data packet 1 in the first buffer area is analyzed to be wrong, the standby data packet 1 in the second buffer area is copied to obtain a complete data packet; when analyzing each data packet in the first buffer area, finding that there is no original data packet 2 and there is a situation of serial number interruption, copying missing serial number data standby data packet 2 from the data in the second buffer area, thereby forming complete merged data.
The data transmission method provided by the invention obtains the standby data packet by copying the original data packet through the terminal, the standby data packet is sent to the server through at least one second standard network when the terminal sends the original data packet to the server through the first standard network, the server receives the standby data packet sent by the terminal through at least one second standard network when receiving the original data packet sent by the terminal through the first standard network, the server analyzes the original data packet and the standby data packet to obtain the complete data packet, even if the first standard network connected with the terminal fails to cause the interruption of the network connection of the terminal, the terminal still keeps the network connection through the second standard network and sends data to the server, thereby improving the connection stability of the terminal and the server, improving the reliability of the network and improving the stability of data transmission, the problem of data loss caused by network interruption during network communication is avoided.
Example three:
for better understanding of the present invention, the present embodiment proposes a more specific example to illustrate the present invention;
in the related art, when the CPE has a multi-WAN (Wide Area Network) port characteristic, an application scenario of the multi-WAN port is based on a Network priority policy, a Network anomaly detection, and an automatic Network switching mechanism. For example, the 5G CPE supports 5G NR wireless communication, simultaneously supports a broadband mode, and when the 5G NR wireless coverage and the wired Ethernet WAN port exist, the priority strategy of the default WAN port is to preferentially use the wired Ethernet, and when the wired Ethernet is abnormal, the abnormality is automatically detected and the 5G NR wireless network is switched to. For an application scenario using TCP IP, such as an industrial automation control scenario, a control instruction may be interrupted, because a certain time is required for anomaly detection of a network, and a WAN port switching after an anomaly is detected is based on a hard switching mechanism, and an idle period without a network inevitably occurs. This idle period, in addition to possibly causing data loss, may also cause the TCP Connection of the application to be interrupted, requiring the application to reestablish the TCP Connection. For industrial automation scenarios, this interruption and data loss is unacceptable;
in order to solve the problems of network interruption and data loss of the terminal, in the embodiment, a layer of software component of a multi-WAN agent is added to a TCPIP protocol stack, and a data transmission method executed by the software component completes detection and management of a multi-WAN network card, copying of application data at a CPE side, and binding of multiple WANs; meanwhile, the Server side compares and combines the application data through the data transmission method to complete redundant data receiving and sending based on redundant WAN resources, and further, the reliability and stability of communication data are improved on the premise of not sacrificing communication bandwidth and speed. The method solves the problems of small probability data interruption, TCP Connection interruption and reconnection caused by network link instability. The user application layer can achieve the user experience of continuous connection.
In some examples, a software component of a "multi-WAN agent" is correspondingly a ba (binding agent) software component on the CPE side to perform a data transmission method, and a ca (combination agent) component on the Server side to perform a data reception method; for example, there are two communication entities, namely, a Hybrid CPE and a Hybrid Server, wherein the Hybrid CPE integrates a binding Agent software component, and the Hybrid Server integrates a combination Agent software component. The binding Agent software component comprises three modules of 'data receiving and backup', 'main path sending' and 'auxiliary path sending'. The Hybrid Server software component comprises three modules of 'data receiving and merging', 'primary receiving' and 'secondary receiving', wherein, the communication schematic diagram of the Hybrid CPE and the Hybrid Server is shown in FIG. 4, it should be understood that, the binding Agent and the combination Agent are collectively called 'multi-WAN Agent', and the position of the software component in the TCPIP protocol stack is shown in FIG. 5; the internal structure of the binding Agent and combination Agent is shown in FIG. 6. In some examples, the Hybrid CPE and the Hybrid Server perform a data transmission method, as shown in fig. 7, which includes but is not limited to:
s701, connecting the CPE to networks of different systems;
in some embodiments, the CPE has a plurality of network cards, wherein the CPE performs registration of the wireless cellular network after being powered on, the registration process may be registered to an LTE standard or an NR standard as a first standard network, the wireless network card corresponds to the WAN1 unit, and the CPE starts the wired network card, corresponds to the WAN2 unit, and is connected to the ethernet network as a second standard network.
S702, starting a Binding Agent (BA) unit at the CPE side; the Combination Agent (CA) unit is started on the Server side.
In some examples, the BA unit includes a data receiving and backup module, a primary transmission module, and a secondary transmission module to thereby be able to perform the steps of the data transmission method. Correspondingly, the CA unit includes a data receiving and merging module, a main receiving module and a sub receiving module, and is further capable of executing the steps of the data transmission method.
S703, a data receiving and backup module of the BA unit receives an original data packet from a CPE application layer and performs copy operation on the original data packet;
in some examples, the original data packet is copied to obtain a backup data packet, and then the original data packet is sent to the primary route sending module, and the backup data packet is sent to the secondary route sending module.
S704, establishing a socket;
in some examples, the master transmitting module of the BA unit creates a socket1 based on the WAN1 network card and the connected first-format network and transmits the original data packet through the socket 1. And a secondary path sending module of the BA unit creates a socket2 based on the WAN2 network card and the connected second-system network and sends out the copied data packet through the socket 2. When the transport layer data is transmitted, socket1 and/or socket2 will have the same sequence number, which identifies the original data packet and the spare data packet.
S705, a CA unit receives data;
in some examples, the master receive module of the CA unit listens to socket1 and receives the original data packet from the BA unit master transmit module and transmits the original data to the data receive and merge module of the CA unit. The auxiliary receiving module of the CA unit monitors the socket2 and receives the standby data packet from the auxiliary transmitting module of the BA unit, and transmits the standby data packet to the data receiving and merging module of the CA unit.
S706, analyzing the original data packet and the standby data packet by the CA unit to obtain a complete data packet;
in some examples, the data receiving and merging module of the CA unit compares the original data packet and the spare data packet according to the packet sequence numbers, and performs the merging process. For example, data received by the master (source is socket1) may be stored in buffer1, data received by the slave (source is socket2) may be stored in buffer2, the buffer data may be analyzed to obtain the transport layer sequence numbers of socket1 and socket2, the buffer data of socket1 may be preferentially used when merging the data, and when the original packet is found to have sequence number interruption, the missing sequence number data may be copied from the buffer data of socket2, thereby forming complete merged data.
S707, the CA unit analyzes effective application data;
in some examples, the data receiving and merging module of the CA unit sends the merged data packet to the application layer of the Server, and the Server application layer parses out valid application data.
In the data transmission method provided by this embodiment, the CPE is connected to networks of different systems, and a Binding Agent (BA) unit is started at the CPE side; a Combination Agent (CA) unit is started on a Server side, a data receiving and backup module of the BA unit receives an original data packet from a CPE application layer, the original data packet is copied to establish a socket, the CA unit receives data, the CA unit analyzes the original data packet and a standby data packet to obtain a complete data packet, and the CA unit analyzes effective application data. And data redundancy operation is completed through data copying of the BA unit, and then redundant data sorting work is completed through data comparison and combination of the CA unit. Through the transmission of redundant data on a redundant network card resource WAN2 unit, the high-reliability transmission between a CPE application layer and a Server application layer is ensured, and the problem of short-time link interruption caused by WAN1 or WAN2 wireless link abnormity is solved.
Example four
The present embodiment further provides a terminal, as shown in fig. 8, which includes a first processor 801, a first memory 802, and a first communication bus 803, where:
the first communication bus 803 is used to realize connection communication between the first processor 801 and the first memory 802;
the first processor 801 is configured to execute one or more computer programs stored in the first memory 802 to implement at least one step of the data transmission method in the first embodiment, the second embodiment, and the third embodiment.
The present embodiment further provides a server, as shown in fig. 9, which includes a second processor 901, a second memory 902, and a second communication bus 903, where:
the second communication bus 903 is used for realizing connection communication between the second processor 901 and the second memory 902;
the second processor 901 is configured to execute one or more computer programs stored in the memory 902 to implement at least one step of the data receiving methods in the first embodiment and the second embodiment and the third embodiment.
The present embodiment further provides a data transmission system, as shown in fig. 10, which includes a third processor 1001, a third memory 1002, and a third communication bus 1003, wherein:
the third communication bus 1003 is used for realizing connection communication between the third processor 1001 and the third memory 1002;
the third processor 1001 is configured to execute one or more computer programs stored in the memory 1002 to implement at least one step of the data transmission method in the first embodiment, the second embodiment, and the third embodiment.
The present embodiments also provide a computer storage medium including volatile or non-volatile, removable or non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, computer program modules or other data. Storage media includes, but is not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash Memory or other Memory technology, CD-ROM (Compact disk Read-Only Memory), Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer.
The computer storage medium in this embodiment may be used to store one or more computer programs, and the stored one or more computer programs may be executed by a processor to implement at least one step of the data transmission method and/or the data reception method and/or the data transmission method in the first embodiment and the second embodiment and the third embodiment.
It will be apparent to those skilled in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software (which may be implemented in computer program code executable by a computing device), firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit.
In addition, communication media typically embodies computer readable instructions, data structures, computer program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to one of ordinary skill in the art. Thus, the present invention is not limited to any specific combination of hardware and software.
The foregoing is a more detailed description of embodiments of the present invention, and the present invention is not to be considered limited to such descriptions. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (10)

1. A method of data transmission, comprising:
copying an original data packet to obtain a standby data packet;
when the original data packet is sent to the server through the network of the first standard,
and sending the standby data packet to the server through at least one second standard network.
2. The data transmission method according to claim 1, wherein the first-standard network and the second-standard network are different-standard networks.
3. The data transmission method according to any one of claims 1-2, wherein when the original data packet is transmitted to the server through the network of the first standard, before the standby data packet is transmitted to the server through the network of at least one second standard, further comprising:
establishing a first socket based on the first standard network;
and establishing a second socket based on the second standard network.
4. The data transmitting method of claim 1, wherein the original data packet and the spare data packet have a same sequence number.
5. The data transmission method of claim 4, wherein when the original data packet is transmitted to a server through a network of a first standard, transmitting the standby data packet to the server through at least one network of a second standard comprises:
and when the original data packet is sent to a server through a first standard network, sending the standby data packet with the same serial number as the original data packet to the server through at least one second standard network.
6. A data receiving method, comprising:
when receiving an original data packet sent by a terminal through a first standard network, receiving a standby data packet sent by the terminal through at least one second standard network;
and analyzing the original data packet and the standby data packet to obtain a complete data packet.
7. The data receiving method as claimed in claim 5, wherein said parsing said original data packet and said spare data packet to obtain a complete data packet comprises:
storing the original data packet into a first buffer area;
and storing the standby data packet into a second buffer area.
8. The data receiving method of claim 6, wherein the parsing the original data packet and the spare data packet to obtain a complete data packet comprises:
analyzing whether the original data packet in the first buffer area is complete or not;
and when the original data packet is incomplete, analyzing the standby data packet with the same sequence number as the original data packet in the second buffer area to obtain a complete data packet.
9. A terminal comprising a first processor, a first memory, and a first communication bus;
the first communication bus is used for realizing connection communication between the first processor and the first memory;
the first processor is configured to execute one or more computer programs stored in the first memory to implement the steps of the data transmission method according to any one of claims 1 to 5.
10. A computer storage medium, characterized in that the computer storage medium stores one or more computer programs executable by one or more processors to implement the steps of the data transmission method according to any one of claims 1 to 5 and/or the steps of the data reception method according to any one of claims 6 to 8.
CN202011048753.1A 2020-09-29 2020-09-29 Data transmitting method, data receiving method, terminal and computer storage medium Pending CN114362893A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011048753.1A CN114362893A (en) 2020-09-29 2020-09-29 Data transmitting method, data receiving method, terminal and computer storage medium
PCT/CN2021/108634 WO2022068342A1 (en) 2020-09-29 2021-07-27 Data sending method, data receiving method, terminal, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011048753.1A CN114362893A (en) 2020-09-29 2020-09-29 Data transmitting method, data receiving method, terminal and computer storage medium

Publications (1)

Publication Number Publication Date
CN114362893A true CN114362893A (en) 2022-04-15

Family

ID=80949629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011048753.1A Pending CN114362893A (en) 2020-09-29 2020-09-29 Data transmitting method, data receiving method, terminal and computer storage medium

Country Status (2)

Country Link
CN (1) CN114362893A (en)
WO (1) WO2022068342A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114710810B (en) * 2022-05-31 2023-04-25 新华三技术有限公司 Data transmission method, device and system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109150388B (en) * 2017-06-16 2022-06-21 北京三星通信技术研究有限公司 System supporting PDCP (packet data convergence protocol) repeating function, data transmission method and network equipment
KR102598001B1 (en) * 2018-06-18 2023-11-06 삼성전자 주식회사 A method and apparatus for efficient packet duplication transmission in a mobile communication system
US11082892B2 (en) * 2018-10-30 2021-08-03 Apple Inc. Methods for transmitting and receiving data in 5G NR device based on data/service tagging from application processor
CN111385071B (en) * 2018-12-28 2023-10-20 大唐移动通信设备有限公司 Data transmission method, device and computer storage medium
CN111757348B (en) * 2019-03-29 2023-06-27 华为技术有限公司 Communication method and device
CN113194512A (en) * 2019-09-27 2021-07-30 荣耀终端有限公司 Data transmission method and electronic equipment
CN112584452A (en) * 2019-09-30 2021-03-30 中兴通讯股份有限公司 Uplink communication control method and device for 5G NSA and terminal

Also Published As

Publication number Publication date
WO2022068342A1 (en) 2022-04-07

Similar Documents

Publication Publication Date Title
US10938710B2 (en) Protection switching method and system, and network device
CN109391560B (en) Network congestion notification method, proxy node and computer equipment
US9219640B2 (en) Performing failover in a redundancy group
US11146090B2 (en) Battery management system, and method and apparatus for transmitting information
CN107465613B (en) Link aggregation interface communication state switching method and device
CN109495916B (en) Communication method and device
CN112398689A (en) Network recovery method and device, storage medium and electronic equipment
CN111988222A (en) Data transmission method and device, electronic equipment and computer readable storage medium
CN110177010A (en) A kind of link switch-over method and device
CN113507431B (en) Message management method, device, equipment and machine-readable storage medium
CN114362893A (en) Data transmitting method, data receiving method, terminal and computer storage medium
EP4152722A1 (en) Ethernet storage system, and information notifying method therefor and related apparatus thereof
CN112217718A (en) Service processing method, device, equipment and storage medium
CN110661599B (en) HA implementation method, device and storage medium between main node and standby node
CN109428814B (en) Multicast traffic transmission method, related equipment and computer readable storage medium
CN112543113A (en) Method, device, equipment and medium for flexible Ethernet to respond to link failure
US20220217093A1 (en) Sequence Number Synchronization Method and Apparatus
CN102821415B (en) Fault detecting and processing method and fault detecting and processing device
US11436172B2 (en) Data frame interface network device
CN110677283B (en) Method for fast switching network dual redundancy
CN115022120A (en) MLAG message suppression method, device and medium in VXLAN network
CN111224803B (en) Multi-master detection method in stacking system and stacking system
CN116325895A (en) Data transmission method and related equipment
CN114158067B (en) Method and device for data transmission in private network
CN113556373B (en) Proxy service method, device and system

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