CN112383472A - Network transmission method, device, storage medium and electronic equipment - Google Patents

Network transmission method, device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112383472A
CN112383472A CN202011270036.3A CN202011270036A CN112383472A CN 112383472 A CN112383472 A CN 112383472A CN 202011270036 A CN202011270036 A CN 202011270036A CN 112383472 A CN112383472 A CN 112383472A
Authority
CN
China
Prior art keywords
link
access point
transmitted
data
network 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.)
Pending
Application number
CN202011270036.3A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202011270036.3A priority Critical patent/CN112383472A/en
Publication of CN112383472A publication Critical patent/CN112383472A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a network transmission method, a network transmission device, a storage medium and electronic equipment, wherein in the embodiment of the application, a data packet to be transmitted is obtained; when the data package to be transmitted is a data package of a preset application, copying the data package to be transmitted to obtain at least two data packages to be transmitted; the at least two data packets to be transmitted are sent through the at least two links, even if the data packets are lost due to signal interference, the other path of data packets can reach the receiving end, and the reliability of link transmission is improved.

Description

Network transmission method, device, storage medium and electronic equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a network transmission method, an apparatus, a storage medium, and an electronic device.
Background
In the four-layer protocol of the internet protocol family, an application layer of a data sending end transmits a data stream to be sent to a transmission layer, the transmission layer divides the data stream into data packets and sends the data packets to an IP layer, and the IP layer sends the data packets to a receiving end through a network. In the network transmission process, the reliability of the link is low due to signal interference and the like, and further, a packet loss phenomenon occurs.
Disclosure of Invention
The embodiment of the application provides a network transmission method, a network transmission device, a storage medium and electronic equipment, which can improve the reliability of link transmission.
In a first aspect, an embodiment of the present application provides a network transmission method, including:
acquiring a data packet to be transmitted;
when the data package to be transmitted is a data package of a preset application, copying the data package to be transmitted to obtain at least two data packages to be transmitted;
and sending the at least two data packets to be transmitted through at least two links.
In a second aspect, an embodiment of the present application further provides a network transmission apparatus, including:
the data acquisition module is used for acquiring a data packet to be transmitted;
the data replication module is used for replicating the data package to be transmitted to obtain at least two data packages to be transmitted when the data package to be transmitted is a data package of a preset application;
and the data transmission module is used for sending the at least two data packets to be transmitted through at least two links.
In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the network transmission method provided in any embodiment of the present application.
In a fourth aspect, an embodiment of the present application further provides an electronic device, which includes a processor and a memory, where the memory has a computer program, and the processor is configured to execute the network transmission method provided in any embodiment of the present application by calling the computer program.
According to the technical scheme provided by the embodiment of the application, if the data packet to be transmitted is the data packet of the preset application, the data packet to be transmitted is copied to obtain at least two identical data packets to be transmitted, and the two data packets to be transmitted are transmitted through the two links, so that the data packets are lost even if signal interference exists, and meanwhile, the other data packet can arrive, and the reliability of link transmission is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a first flowchart of a network transmission method according to an embodiment of the present application.
Fig. 2 is a schematic view of an application scenario of the network transmission method according to the embodiment of the present application.
Fig. 3 is a second flowchart of a network transmission method according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a network transmission device according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a first electronic device according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of a second electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present application.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
An execution main body of the network transmission method may be the network transmission device provided in the embodiment of the present application, or an electronic device integrated with the network transmission device, where the network transmission device may be implemented in a hardware or software manner. The electronic device may be a smart phone, a tablet computer, a palm computer, a notebook computer, or a desktop computer.
Referring to fig. 1, fig. 1 is a first flowchart of a network transmission method according to an embodiment of the present disclosure. The specific process of the network transmission method provided by the embodiment of the application can be as follows:
in 101, a data package to be transmitted is obtained.
In 102, when the data package to be transmitted is a data package of a preset application, the data package to be transmitted is copied to obtain at least two data packages to be transmitted.
In the embodiment of the application, any application can be set as a preset application as required, for example, in order to ensure smooth running of a game application, the game application can be set as the preset application. Or, in order to avoid the problem of frame loss of the live broadcast application, the live video application can be set as a preset application.
In addition, the link in this application may be a link between the electronic device and the network access device, the network access device may be a router, or may also be a device such as a CPE (Customer Premise Equipment) that can provide a network access service, and the electronic device is connected to the wide area network through a local area network service provided by the network access device, where the electronic device and the network access device may be in a wireless connection, such as a WIFI connection, or a wired connection.
The network architecture of TCP/IP comprises an application layer, a transmission layer, a network layer and a network card layer from top to bottom. The data stream sent by the upper layer application is split into a plurality of data packets for transmission at the transmission layer. For the transmission layer, when a data packet to be transmitted is obtained, whether the data packet to be transmitted is a preset application data packet is judged, if so, the data packet to be transmitted is copied, and at least two identical data packets to be transmitted are obtained.
In 103, the at least two data packets to be transmitted are sent over at least two links.
Next, the data packet to be transmitted needs to be transmitted using at least two links between the electronic identification and the network access device.
The electronic device in the embodiment of the application supports a multi-path communication protocol. In some embodiments, the multipath transmission communication connection may be triggered when the preset application starts and switches to foreground operation. The MultiPath Transmission communication connection is a connection established based on a MultiPath communication Protocol, and the MultiPath communication Protocol may be MPTCP (MultiPath Transmission Control Protocol) or mpdpg (MultiPath User data Protocol). For example, the predetermined application is a game application, and the multipath communication connection is an MPUDP connection.
In some embodiments, before obtaining the data packet to be transmitted, the method further includes: and triggering a multi-path communication connection when the preset application is switched to the foreground operation, wherein the multi-path communication connection comprises at least two links. And monitoring foreground application, and triggering multipath communication connection if the game application is switched to the foreground operation.
For example, when the preset application is switched to foreground operation, a first access point corresponding to a current first link is determined; communicating with the first access point to determine a second access point capable of supporting multi-path communications; establishing a second link with the second access point and triggering a multi-path communication connection based on the first link and the second link.
When detecting that the preset application is switched to the foreground operation, for example, the preset application is started or the preset application is switched from the background operation to the foreground operation, the electronic device may be considered that the preset application is switched to the foreground operation, and if the electronic device has triggered the multipath communication connection with the network access device, the electronic device executes 102. If only one link exists between the current network access device and the network access device, the established link is marked as a first link, a first access point corresponding to the first link is determined, and if the first link is WIFI connection between the electronic device and the router, the first access point is a WIFI hotspot provided by the router.
An electronic device communicates with the first access point to determine a second access point that can support multi-path communication. The first access point and the second access point may be the same network access device, or different network access devices.
For example, please refer to fig. 2, fig. 2 is a schematic view of an application scenario of the network transmission method according to the embodiment of the present application. The electronic device has two ports, WLAN (Wireless Local Area Network) 1 and WLAN2, which have different MAC (Media Access Control Address) addresses. The network access equipment is a double-WIFI router which is provided with two hotspots, one is a 2.4G hotspot, the other is a 5G hotspot, no interference exists between different frequency bands, data can be transmitted and received in parallel and independently, and the router can be generally used in local area networks with smaller application ranges such as families. In this scenario, two transmission links are established between the electronic device and two access points of the router, when the electronic device sends a preset application data packet, the electronic device copies the data packet to be transmitted once to obtain two identical data packets to be transmitted, and the two data packets to be transmitted are allocated to the links corresponding to the two network ports in a one-to-one correspondence manner for transmission. And after receiving the two paths of data packets, the router performs deduplication processing on the data packets and sends the data packets to a server corresponding to the preset application. If a certain data packet to be transmitted is lost on one of the links, the router can still receive the data packet transmitted by the other link, so that the reliability of link transmission is improved.
The method comprises the steps that when the electronic equipment detects that a preset application is switched to foreground operation, a first access point corresponding to a current first link is determined; the method includes communicating with the first access point, confirming whether the first access point supports a multi-path communication protocol, and if the first access point supports the multi-path communication protocol, transmitting information of another access point supporting the multi-path communication protocol to the electronic device. For example, the network access device is a dual-WIFI router, the dual-WIFI router has two access points, the first access point is a 2.4G hotspot, the second access point is a 5G hotspot, and the router supports dual-WIFI connection, so that both access points support a multi-path communication protocol. The electronic equipment establishes WIFI connection with a 2.4G hotspot (a first access point), if a user opens a game application to run in a foreground, the electronic equipment communicates with the first access point to confirm whether the first access point supports a multi-path communication protocol, and after receiving the information, the first access point can reply a response message supporting the multi-path communication protocol and simultaneously send the information of a second access point to the electronic equipment. And after the electronic equipment acquires the information of the second access point, establishing a second link with the second access point, and triggering the multi-path communication connection by the electronic equipment based on the first link and the second link. Namely, the electronic device triggers the MPUDP connection with the router through two access points of the double WIFI routers.
In one embodiment, an information interworking protocol may be agreed between the electronic device and the router, and the electronic device communicates with the access point of the router according to a message format supported by the information interworking protocol to determine whether the electronic device supports the multipath communication protocol.
The information intercommunication protocol is used for information intercommunication between the electronic equipment and the network access equipment. Because the communication between the electronic device and the network access device is a local area network communication, the information interworking protocol may be designed based on a C/S (server/client) architecture, where the electronic device is a client and the router is a server. In addition, because the data transmitted between the two devices is generally signaling data, and the requirement on the reliability of data transmission is high, the TCP socket mode can be adopted for communication. The information intercommunication protocol specifies a specific port number of the router to establish TCP connection, and after the TCP connection is successfully established, information intercommunication is carried out according to a preset message format.
For example, communicating with the first access point to determine a second access point capable of supporting multi-path communication includes: establishing a TCP connection with the first access point; based on the TCP connection, sending confirmation information to the first access point through an information intercommunication protocol between the electronic equipment and the network access equipment; when a response message replied by the first access point based on the confirmation message is received, determining a second access point capable of supporting multi-path communication according to the response message; and sending the confirmation information according to the message format agreed by the information intercommunication protocol. And the first access point also sends the response message according to the message format agreed by the information intercommunication protocol.
The application scenario is a scenario in which the first access point and the second access point belong to the same network access device. In other embodiments, the first access point and the second access point may also belong to different network access devices. For example, in a local area network with a large application range such as an enterprise, a plurality of routers may be provided, and these routers are finally connected to the same gateway device and connected to the wide area network through the gateway device. Wherein each router connected to the gateway device can detect signals of access points of other routers in its vicinity and store other access point information supporting the multi-path communication protocol locally. And after receiving a capability confirmation request sent by the electronic equipment, sending the stored access point information supporting the multipath communication protocol to the electronic equipment. The electronic equipment establishes a second link with the second access point according to the received second access point information, and triggers the multi-path communication connection based on the first link and the second link.
Wherein after the step of establishing a second link with the second access point, the method further comprises: judging whether the gateways of the first link and the second link are the same; if yes, triggering multi-path communication connection based on the first link and the second link; and if not, releasing the second link.
In this embodiment, since redundant transmission of the data packet of the predetermined application needs to be performed between the electronic device and the network access device, the data packet needs to be deduplicated before being sent to the server of the predetermined application, and therefore at least the gateways corresponding to the two access points need to be the same, for example, they can be connected to the wide area network through the same gateway device. In this scenario, multiple identical packets may be deduplicated at the gateway device, and finally only one packet is sent to the server. For the electronic equipment, after a second link is established with a second access point, whether the gateways of the first link and the second link are the same or not is judged; if the first link and the second link are the same, triggering the multi-path communication connection based on the first link and the second link; otherwise, the second link is released.
In some embodiments, after the step of communicating with the first access point to determine a second access point capable of supporting multi-path communication, the method further comprises: judging whether the stored access point information contains the second access point information or not; and if so, establishing a second link with the second access point.
In this embodiment, it is determined that the second access point information returned by the first access point belongs to the access point information already stored by the electronic device, and if yes, it may be determined that the electronic device has ever connected to the second access point, at this time, a second link may be established with the second access point, and if the second access point information does not exist in the stored access point information, connection with the second access point is no longer established.
In some embodiments, the step of establishing a second link with the second access point and triggering a multipath communication connection based on the first link and the second link may comprise: if a plurality of second access points capable of supporting multi-path communication exist, establishing at least one second link with at least one second access point; triggering the multi-path communication connection based on the first link and the at least one second link.
In this embodiment, if the electronic device determines that there are a plurality of second access points supporting multipath communication after communicating with the first access point, at least one second link may be established with at least one of the second access points. For example, if the multipath communication protocol specifies a number of links of 2, a second link may be established with one of the second links.
It is understood that, in the above embodiment, if the electronic device has triggered the multipath communication connection when the electronic device detects that the preset application is switched to the foreground operation, 103 may be directly executed.
In some embodiments, after the step of sending the at least two data packets to be transmitted through the at least two links, the method further comprises: and when receiving two paths of parallel transmission data packets sent by the first access point and the second access point, carrying out duplicate removal processing on the two paths of data packets and then sending the two paths of data packets to the preset application.
In this embodiment, a data packet sent by the electronic device to the access point is sent in a multilink redundancy manner, the access point also sends the data packet to the electronic device in the same manner after receiving a data packet of a preset application sent by the server, and when the electronic device receives two paths of data packets transmitted in parallel, the electronic device performs deduplication processing on the two paths of data packets and sends the two paths of data packets to an upper layer application.
In particular implementation, the present application is not limited by the execution sequence of the described steps, and some steps may be performed in other sequences or simultaneously without conflict.
In some embodiments, after the step of triggering a multipath communication connection based on the first link and the second link, the method further comprises: and if the preset application is detected to exit the foreground operation and is not switched to the foreground operation again within the preset duration of exiting the foreground operation, releasing the multipath communication connection.
In this embodiment, the electronic device detects that the preset application exits from the foreground operation, and if the preset application is closed or the preset application is switched to the background operation and is not switched to the foreground operation again for a while, the multipath communication connection is released. Of course, it can be understood that, before the preset application is switched to the foreground operation, if the electronic device itself is already in the multipath communication connection, the multipath communication connection is continuously maintained even if the preset application exits from the foreground operation.
In the above embodiments, for convenience of explaining the present solution, in some examples, two links are provided between the electronic device and the network access device, the data packet of the preset application is copied once, and the dual-forwarding is performed between the electronic device and the network access device.
As can be seen from the above, in the network transmission method provided in the embodiment of the present application, if the data packet to be transmitted is a data packet of a preset application, the data packet to be transmitted is copied to obtain at least two identical data packets to be transmitted, and the two data packets to be transmitted are transmitted through two links, even if there is signal interference to cause data packet loss, another data packet can arrive at the same time, so that reliability of link transmission is improved.
The method according to the preceding embodiment is illustrated in further detail below by way of example.
Referring to fig. 3, fig. 3 is a second flow chart of a network transmission method according to an embodiment of the invention. The method comprises the following steps:
in 201, when the preset application is switched to foreground operation, a first access point corresponding to a current first link is determined.
When the electronic device detects that the preset application is switched to the foreground operation, for example, the preset application is started or the preset application is switched from the background operation to the foreground operation, the preset application can be considered to be switched to the foreground operation, if only one link exists between the current electronic device and the network access device, the established link is recorded as a first link, and a first access point corresponding to the first link is determined.
At 202, communication is conducted with the first access point to determine a second access point capable of supporting multi-path communication.
At 203, a second link is established with the second access point.
An electronic device communicates with the first access point to determine a second access point that can support multi-path communication. The first access point and the second access point may be the same network access device, or different network access devices.
Taking the first access point and the second access point belonging to the same network access device as an example, the electronic device sends a confirmation request to the first access point and receives second access point information returned by the first access point, wherein if the first access point supports a multipath communication protocol, information of another access point supporting the multipath communication protocol may be sent to the electronic device. For example, the network access device is a dual-WIFI router, the dual-WIFI router has two access points, the first access point is a 2.4G hotspot, the second access point is a 5G hotspot, and the router supports dual-WIFI connection, so that both access points support a multi-path communication protocol. The electronic equipment establishes WIFI connection with a 2.4G hotspot (a first access point), if a user opens a game application to run in a foreground, the electronic equipment communicates with the first access point to confirm whether the first access point supports a multi-path communication protocol, and after receiving the information, the first access point can reply a response message supporting the multi-path communication protocol and simultaneously send the information of a second access point to the electronic equipment. And after the electronic equipment acquires the information of the second access point, establishing a second link with the second access point.
At 204, it is determined whether the gateways of the first link and the second link are the same.
If yes, go to 205; if not, 208 is performed.
In 205, a multipath communication connection is triggered based on the first link and the second link.
Since redundant transmission of data packets of a predetermined application is required between the electronic device and the network access device, deduplication processing is required before sending the data packets to a server of the predetermined application, and therefore at least gateways corresponding to the two access points are required to be the same, for example, they may be connected to a wide area network through the same gateway device. In this scenario, multiple identical packets may be deduplicated at the gateway device, and finally only one packet is sent to the server. For the electronic equipment, after a second link is established with a second access point, whether the gateways of the first link and the second link are the same or not is judged; if the first link and the second link are the same, triggering the multi-path communication connection based on the first link and the second link; otherwise, the second link is released.
In 206, the at least two data packets to be transmitted are allocated to the at least two links in a one-to-one correspondence for transmission.
After triggering the multi-path communication connection, namely after the electronic device triggers the MPUDP connection between the electronic device and the router through the two access points of the double WIFI routers, the electronic device copies the data packet to be transmitted once when sending the data packet of the preset application to obtain two identical data packets to be transmitted, and the two data packets to be transmitted are distributed to the links corresponding to the two network ports one to one for transmission. After receiving the two paths of data packets, the router or other gateway devices perform deduplication processing on the data packets, and then send the data packets to a server corresponding to a preset application. The router or other gateway devices may determine whether the data packets received by the two links are the same data packet based on data such as a port, an Internet Protocol (IP) address, an IP id (IP identification, IP header identifier), and a CHECKSUM. If a certain data packet to be transmitted is lost on one of the links, the router can still receive the data packet transmitted by the other link, so that the reliability of link transmission is improved.
In 207, when two paths of parallel transmission data packets sent by the first access point and the second access point are received, the two paths of data packets are subjected to deduplication processing and then sent to the preset application.
The data packet sent to the access point by the electronic equipment is sent in a multilink redundancy mode, the access point also sends the data packet to the electronic equipment in the same mode after receiving the data packet of the preset application sent by the server, and when the electronic equipment receives the two paths of data packets which are transmitted in parallel, the two paths of data packets are subjected to deduplication processing and then sent to an upper layer application.
In 208, the second link is released.
As can be seen from the above, in the network transmission method provided in the embodiment of the present invention, if the data packet to be transmitted is a data packet of a preset application, the data packet to be transmitted is copied to obtain at least two identical data packets to be transmitted, and the two data packets to be transmitted are transmitted through two links, even if there is signal interference to cause data packet loss, another data packet can arrive at the same time, so that reliability of link transmission is improved.
In one embodiment, a network transmission device is also provided. Referring to fig. 4, fig. 4 is a schematic structural diagram of a network transmission device 300 according to an embodiment of the present disclosure. The network transmission apparatus 300 is applied to an electronic device, and the network transmission apparatus 300 includes a data obtaining module 301, a data copying module 302, and a data transmission module 303, as follows:
a data obtaining module 301, configured to obtain a data packet to be transmitted;
the data replication module 302 is configured to, when a data packet to be transmitted is a data packet of a preset application, replicate the data packet to be transmitted to obtain at least two data packets to be transmitted;
a data transmission module 303, configured to send the at least two data packets to be transmitted through at least two links.
In some embodiments, the data transmission module 303 is further configured to: and distributing the at least two data packets to be transmitted to the at least two links in a one-to-one correspondence manner for transmission.
In some embodiments, the network transmission device 300 further comprises: and the network connection module is used for triggering multipath communication connection when the preset application is switched to foreground operation, wherein the multipath communication connection comprises at least two links.
In some embodiments, the network connection module is further to: when the preset application is switched to foreground operation, determining a first access point corresponding to a current first link; communicating with the first access point to determine a second access point capable of supporting multi-path communications; establishing a second link with the second access point and triggering a multi-path communication connection based on the first link and the second link.
In some embodiments, the network connection module is further to: judging whether the stored access point information contains the second access point information or not; and if so, establishing a second link with the second access point.
In some embodiments, the network connection module is further to: judging whether the stored access point information contains the second access point information or not; and if so, establishing a second link with the second access point.
In some embodiments, if there are a plurality of second access points capable of supporting multipath communication, establishing at least one second link with at least one of the second access points; triggering the multi-path communication connection based on the first link and the at least one second link.
In some embodiments, the network connection module is further to: judging whether the gateways of the first link and the second link are the same; if yes, triggering multi-path communication connection based on the first link and the second link; and if not, releasing the second link.
In some embodiments, the data transmission module 303 is further configured to: and when receiving two paths of parallel transmission data packets sent by the first access point and the second access point, carrying out duplicate removal processing on the two paths of data packets and then sending the two paths of data packets to the preset application.
In some embodiments, the network connection module is further to: and if the preset application is detected to exit the foreground operation and is not switched to the foreground operation again within the preset duration of exiting the foreground operation, releasing the multipath communication connection.
It should be noted that the network transmission device provided in the embodiment of the present application and the network transmission method in the foregoing embodiments belong to the same concept, and any method provided in the network transmission method embodiment can be implemented by the network transmission device, and the specific implementation process thereof is described in detail in the network transmission method embodiment, and is not described herein again.
As can be seen from the above, in the network transmission device provided in this embodiment of the present application, the network transmission device 300 includes the data acquisition module 301, the data replication module 302, and the data transmission module 303, if the data packet to be transmitted, which is acquired by the data acquisition module 301, is a data packet of a preset application, the data replication module 302 performs replication processing on the data packet to be transmitted, so as to obtain at least two identical data packets to be transmitted, and the data transmission module 303 transmits the two data packets to be transmitted through two links, so that even if there is signal interference to cause a data packet loss, another data packet can arrive at the same time, and reliability of link transmission is improved.
The embodiment of the application also provides the electronic equipment. The electronic device can be a smart phone, a tablet computer and the like. Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device 400 comprises a processor 401 and a memory 402. The processor 401 is electrically connected to the memory 402.
The processor 401 is a control center of the electronic device 400, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or calling a computer program stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device.
Memory 402 may be used to store computer programs and data. The memory 402 stores computer programs containing instructions executable in the processor. The computer program may constitute various functional modules. The processor 401 executes various functional applications and data processing by calling a computer program stored in the memory 402.
In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to one or more processes of the computer program into the memory 402 according to the following steps, and the processor 401 runs the computer program stored in the memory 402, so as to implement various functions:
acquiring a data packet to be transmitted;
when the data package to be transmitted is a data package of a preset application, copying the data package to be transmitted to obtain at least two data packages to be transmitted;
and sending the at least two data packets to be transmitted through at least two links.
In some embodiments, please refer to fig. 6, and fig. 6 is a second structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device 400 further comprises: radio frequency circuit 403, display 404, control circuit 405, input unit 406, audio circuit 407, sensor 408, and power supply 409. The processor 401 is electrically connected to the radio frequency circuit 403, the display 404, the control circuit 405, the input unit 406, the audio circuit 407, the sensor 408, and the power source 409.
The radio frequency circuit 403 is used for transceiving radio frequency signals to communicate with a network device or other electronic devices through wireless communication.
The display screen 404 may be used to display information entered by or provided to the user as well as various graphical user interfaces of the electronic device, which may be comprised of images, text, icons, video, and any combination thereof.
The control circuit 405 is electrically connected to the display screen 404, and is configured to control the display screen 404 to display information.
The input unit 406 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. The input unit 406 may include a fingerprint recognition module.
The audio circuit 407 may provide an audio interface between the user and the electronic device through a speaker, microphone. Wherein the audio circuit 407 comprises a microphone. The microphone is electrically connected to the processor 401. The microphone is used for receiving voice information input by a user.
The sensor 408 is used to collect external environmental information. The sensors 408 may include one or more of ambient light sensors, acceleration sensors, gyroscopes, etc.
The power supply 409 is used to power the various components of the electronic device 400. In some embodiments, the power source 409 may be logically connected to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are implemented through the power management system.
Although not shown in the drawings, the electronic device 400 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to one or more processes of the computer program into the memory 402 according to the following steps, and the processor 401 runs the computer program stored in the memory 402, so as to implement various functions:
acquiring a data packet to be transmitted;
when the data package to be transmitted is a data package of a preset application, copying the data package to be transmitted to obtain at least two data packages to be transmitted;
and sending the at least two data packets to be transmitted through at least two links.
Therefore, the embodiment of the application provides an electronic device, when a data packet to be transmitted is a data packet of a preset application, the electronic device copies the data packet to be transmitted to obtain at least two identical data packets to be transmitted, and transmits the two data packets to be transmitted through two links, even if signal interference causes data packet loss, another data packet can arrive at the same time, and reliability of link transmission is improved.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program runs on a computer, the computer executes the network transmission method according to any of the above embodiments.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the apparatus and the module described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the embodiments of the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may be stored in a computer readable storage medium.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. The procedures or functions described in accordance with the embodiments of the present application are generated in whole or in part when the computer program is loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The technical solutions provided by the embodiments of the present application are introduced in detail, and the principles and implementations of the embodiments of the present application are explained by applying specific examples in the embodiments of the present application, and the descriptions of the embodiments are only used to help understanding the method and core ideas of the embodiments of the present application; meanwhile, for a person skilled in the art, according to the idea of the embodiment of the present application, there may be a change in the specific implementation and application scope, and in summary, the content of the present specification should not be construed as a limitation to the embodiment of the present application.

Claims (13)

1. A network transmission method, comprising:
acquiring a data packet to be transmitted;
when the data package to be transmitted is a data package of a preset application, copying the data package to be transmitted to obtain at least two data packages to be transmitted;
and sending the at least two data packets to be transmitted through at least two links.
2. The network transmission method of claim 1, wherein the sending the at least two data packets to be transmitted over at least two links comprises:
and distributing the at least two data packets to be transmitted to the at least two links in a one-to-one correspondence manner for transmission.
3. The network transmission method according to claim 1, wherein before obtaining the data packet to be transmitted, the method further comprises:
and triggering a multi-path communication connection when the preset application is switched to the foreground operation, wherein the multi-path communication connection comprises at least two links.
4. The network transmission method according to claim 3, wherein the triggering the multipath communication connection when the preset application switches to foreground operation comprises:
when the preset application is switched to foreground operation, determining a first access point corresponding to a current first link;
communicating with the first access point to determine a second access point capable of supporting multi-path communications;
establishing a second link with the second access point and triggering a multi-path communication connection based on the first link and the second link.
5. The network transmission method of claim 4, wherein after communicating with the first access point to determine a second access point capable of supporting multi-path communication, further comprising:
judging whether the second access point information exists in the stored access point information or not;
and if so, establishing a second link with the second access point.
6. The network transmission method of claim 4, wherein the establishing a second link with the second access point and triggering a multipath communication connection based on the first link and the second link comprises:
if a plurality of second access points capable of supporting multi-path communication exist, establishing at least one second link with at least one second access point;
triggering the multi-path communication connection based on the first link and the at least one second link.
7. The network transmission method of claim 4, wherein after establishing the second link with the second access point, further comprising:
judging whether the gateways of the first link and the second link are the same;
if yes, triggering multi-path communication connection based on the first link and the second link;
and if not, releasing the second link.
8. The network transmission method of claim 4, wherein after sending the at least two data packets to be transmitted over the at least two links, the method further comprises:
and when receiving two paths of parallel transmission data packets sent by the first access point and the second access point, carrying out duplicate removal processing on the two paths of data packets and then sending the two paths of data packets to the preset application.
9. The network transmission method of claim 4, wherein after triggering the multi-path communication connection based on the first link and the second link, further comprising:
and if the preset application is detected to exit the foreground operation and is not switched to the foreground operation again within the preset duration of exiting the foreground operation, releasing the multipath communication connection.
10. A network transmission method as claimed in any one of claims 3 to 9, wherein the predetermined application is a gaming application and the multi-path communication connection is a multi-path user datagram protocol connection.
11. A network transmission apparatus, comprising:
the data acquisition module is used for acquiring a data packet to be transmitted;
the data replication module is used for replicating the data package to be transmitted to obtain at least two data packages to be transmitted when the data package to be transmitted is a data package of a preset application;
and the data transmission module is used for sending the at least two data packets to be transmitted through at least two links.
12. A computer-readable storage medium, on which a computer program is stored, which, when run on a computer, causes the computer to carry out the network transmission method according to any one of claims 1 to 10.
13. An electronic device comprising a processor and a memory, said memory storing a computer program, wherein said processor is adapted to perform the network transmission method of any of claims 1 to 10 by invoking said computer program.
CN202011270036.3A 2020-11-13 2020-11-13 Network transmission method, device, storage medium and electronic equipment Pending CN112383472A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011270036.3A CN112383472A (en) 2020-11-13 2020-11-13 Network transmission method, device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011270036.3A CN112383472A (en) 2020-11-13 2020-11-13 Network transmission method, device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN112383472A true CN112383472A (en) 2021-02-19

Family

ID=74582290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011270036.3A Pending CN112383472A (en) 2020-11-13 2020-11-13 Network transmission method, device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112383472A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113923468A (en) * 2021-10-14 2022-01-11 广州博冠信息科技有限公司 Live broadcast control method and device, storage medium and electronic equipment
CN113992639A (en) * 2021-09-29 2022-01-28 阿里巴巴达摩院(杭州)科技有限公司 Audio and video processing method and equipment
CN115002238A (en) * 2022-05-09 2022-09-02 阿里云计算有限公司 Traffic transmission method, device, equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108964849A (en) * 2018-07-03 2018-12-07 深圳睿云网络人工智能技术有限公司 Data transmission method, electronic equipment and storage medium
US20190342201A1 (en) * 2017-03-20 2019-11-07 Citrix Systems, Inc. Auto tuning of hybrid wan links by adaptive duplication of packets on alternate links
EP3593513A1 (en) * 2017-03-24 2020-01-15 MediaTek Inc. User equipment and methods for pdcp duplication in 5g ran
CN110831059A (en) * 2018-08-10 2020-02-21 展讯通信(上海)有限公司 Method and device for uploading data by user terminal, storage equipment and user terminal
CN110913434A (en) * 2019-11-19 2020-03-24 RealMe重庆移动通信有限公司 Data transmission method, terminal and storage medium
CN110943935A (en) * 2018-09-25 2020-03-31 华为技术有限公司 Method, device and system for realizing data transmission
CN109951260B (en) * 2018-02-12 2020-04-03 华为技术有限公司 Data packet sending method and related equipment
CN111031574A (en) * 2017-03-23 2020-04-17 Oppo广东移动通信有限公司 Data transmission method, terminal equipment and network equipment
CN111278053A (en) * 2017-06-16 2020-06-12 Oppo广东移动通信有限公司 Method for transmitting data, terminal equipment and network equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190342201A1 (en) * 2017-03-20 2019-11-07 Citrix Systems, Inc. Auto tuning of hybrid wan links by adaptive duplication of packets on alternate links
CN111031574A (en) * 2017-03-23 2020-04-17 Oppo广东移动通信有限公司 Data transmission method, terminal equipment and network equipment
EP3593513A1 (en) * 2017-03-24 2020-01-15 MediaTek Inc. User equipment and methods for pdcp duplication in 5g ran
CN111278053A (en) * 2017-06-16 2020-06-12 Oppo广东移动通信有限公司 Method for transmitting data, terminal equipment and network equipment
CN109951260B (en) * 2018-02-12 2020-04-03 华为技术有限公司 Data packet sending method and related equipment
CN108964849A (en) * 2018-07-03 2018-12-07 深圳睿云网络人工智能技术有限公司 Data transmission method, electronic equipment and storage medium
CN110831059A (en) * 2018-08-10 2020-02-21 展讯通信(上海)有限公司 Method and device for uploading data by user terminal, storage equipment and user terminal
CN110943935A (en) * 2018-09-25 2020-03-31 华为技术有限公司 Method, device and system for realizing data transmission
CN110913434A (en) * 2019-11-19 2020-03-24 RealMe重庆移动通信有限公司 Data transmission method, terminal and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113992639A (en) * 2021-09-29 2022-01-28 阿里巴巴达摩院(杭州)科技有限公司 Audio and video processing method and equipment
CN113992639B (en) * 2021-09-29 2024-04-05 杭州阿里云飞天信息技术有限公司 Audio and video processing method and equipment
CN113923468A (en) * 2021-10-14 2022-01-11 广州博冠信息科技有限公司 Live broadcast control method and device, storage medium and electronic equipment
CN113923468B (en) * 2021-10-14 2024-04-26 广州博冠信息科技有限公司 Live broadcast control method and device, storage medium and electronic equipment
CN115002238A (en) * 2022-05-09 2022-09-02 阿里云计算有限公司 Traffic transmission method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112383472A (en) Network transmission method, device, storage medium and electronic equipment
CN106789526B (en) method and device for connecting multiple system networks
CN109088799B (en) Client access method, device, terminal and storage medium
JP7239693B2 (en) Bearer control method, terminal and network side equipment
US20100290391A1 (en) Apparatus and method for accessing multiple wireless networks
CN112291366B (en) Data transmission method and device, storage medium and electronic equipment
CN108173691B (en) Cross-device aggregation method and device
CN109862127B (en) Message transmission method and related device
CN110868278B (en) Method for dual-computer redundancy of communication front-end processor of rail transit comprehensive monitoring system
CN106603345B (en) Monitor method, apparatus and terminal that application program uses flow
EP2218214B1 (en) Network location service
CN114745255A (en) Hardware chip, DPU, server, communication method and related device
CN112398689A (en) Network recovery method and device, storage medium and electronic equipment
CN106716975A (en) A transmission link resume method, device and system
TW201911942A (en) Data transmission, data retransmission, data processing method and device
CN109951560B (en) Method, terminal and storage medium for improving concurrency and application speed of application service
US20210243764A1 (en) Resource Allocation Method, Terminal Device, and Network-Side Device
WO2023116311A1 (en) Data interaction method and apparatus, and device and storage medium
CN110830598B (en) Method and network equipment for establishing and transmitting interface address and alias in BGP (Border gateway protocol) session
CN107547341B (en) Access method and device of virtual extensible local area network VXLAN
CN112333690B (en) Data transmission method, device, storage medium, terminal and network access point equipment
CN115333991A (en) Cross-device link aggregation method, device, system and computer-readable storage medium
CN115514698A (en) Protocol calculation method, switch, cross-device link aggregation system and storage medium
CN110198269B (en) Route synchronization system, method and related device for distributed cluster
CN109039680B (en) Method and system for switching main Broadband Network Gateway (BNG) and standby BNG and BNG

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