CN111629452A - Data transmission control method and device, storage medium and electronic equipment - Google Patents

Data transmission control method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN111629452A
CN111629452A CN202010256582.5A CN202010256582A CN111629452A CN 111629452 A CN111629452 A CN 111629452A CN 202010256582 A CN202010256582 A CN 202010256582A CN 111629452 A CN111629452 A CN 111629452A
Authority
CN
China
Prior art keywords
communication link
terminal
server
data
communication
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
CN202010256582.5A
Other languages
Chinese (zh)
Inventor
张武锋
杨超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dami Technology Co Ltd
Original Assignee
Beijing Dami Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dami Technology Co Ltd filed Critical Beijing Dami Technology Co Ltd
Priority to CN202010256582.5A priority Critical patent/CN111629452A/en
Publication of CN111629452A publication Critical patent/CN111629452A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • 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/14Multichannel or multilink protocols

Abstract

The embodiment of the application discloses a data transmission control method, a data transmission control device, a storage medium and electronic equipment, wherein the method comprises the following steps: the method comprises the steps of establishing a first communication link with a server, detecting at least one second terminal under a current local area network, establishing a second communication link with the second terminal, informing the server of establishing a third communication link with the second terminal, and receiving downlink data sent by the server based on the first communication link, the second communication link and the third communication link. By adopting the embodiment of the application, the time delay of data receiving can be reduced, and the load of data transmission is reduced.

Description

Data transmission control method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data transmission control method and apparatus, a storage medium, and an electronic device.
Background
With the development of internet technology, a server bearing a service function can provide more and more abundant internet resources to a user's terminal through the internet, such as: online data upload, download, video on demand, and online teaching, among others. In these scenarios, the server often needs to transmit a large amount of data, such as multimedia data, to the terminal of the user.
Currently, in the data transmission process, data is generally transmitted through a communication link between a server and a terminal. However, when the communication condition of the communication link is bad (for example, during a network utilization peak period corresponding to the communication link, the communication is usually in a load state), the terminal receives the data of the server through the communication link, and a problem of high data receiving delay occurs.
Disclosure of Invention
The embodiment of the application provides a data transmission control method, a data transmission control device, a storage medium and electronic equipment, which can reduce the time delay of data receiving and reduce the load of data transmission. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a data transmission control method, which is applied to a first terminal, and the method includes:
establishing a first communication link with a server, and detecting at least one second terminal under the current local area network;
establishing a second communication link with the second terminal, and informing the server of establishing a third communication link with the second terminal;
and receiving downlink data sent by the server based on the first communication link, the second communication link and the third communication link.
In a second aspect, an embodiment of the present application provides a data transmission control method, which is applied to a second terminal, and the method includes:
establishing a second communication link with a first terminal under the current local area network and establishing a third communication link with a server;
receiving second data in downlink data sent by the server, and sending the second data to the first terminal, wherein the downlink data comprises first data sent by the server through a first communication link and the second data, and the first communication link is a communication link between the first terminal and the server.
In a third aspect, an embodiment of the present application provides a data transmission control apparatus, where the apparatus includes:
the second terminal detection module is used for establishing a first communication link with the server and detecting at least one second terminal under the current local area network;
a communication link establishing module, configured to establish a second communication link with the second terminal, and notify the server of establishing a third communication link with the second terminal;
a downlink data receiving module, configured to receive downlink data sent by the server based on the first communication link, the second communication link, and the third communication link.
In a fourth aspect, an embodiment of the present application provides another data transmission control apparatus, where the apparatus includes:
the communication link establishing module is used for establishing a second communication link with a first terminal under the current local area network and establishing a third communication link with the server;
the second data receiving module is configured to receive second data in downlink data sent by the server, and send the second data to the first terminal, where the downlink data includes first data and the second data sent by the server through a first communication link, and the first communication link is a communication link between the first terminal and the server.
In a fifth aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-mentioned method steps.
In a sixth aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
The beneficial effects brought by the technical scheme provided by some embodiments of the application at least comprise:
in one or more embodiments of the present application, after establishing a first communication link with a server, a first terminal detects at least one second terminal under a current local area network, establishes a second communication link with the second terminal, and notifies the server of establishing a third communication link with the second terminal. The first terminal may receive downlink data sent by the server based on the created first communication link, the created second communication link, and the created third communication link in a multi-communication link manner. When the communication condition of the communication link is not good, the problem of high time delay when the data is received based on the communication link between the first terminal and the server is solved, the time delay of data receiving is reduced, and the load of the communication link between the first terminal and the server can be reduced based on a multi-communication link mode.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a data transmission control method according to an embodiment of the present application;
fig. 2 is a schematic view of a scenario of a wireless local area network to which a data transmission control method according to an embodiment of the present application relates;
fig. 3 is a schematic view of a scenario of a communication link involved in a data transmission control method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another data transmission control method according to an embodiment of the present application;
fig. 5 is a schematic flowchart of another data transmission control method according to an embodiment of the present application;
fig. 6 is a schematic view of a scenario architecture of data transmission control provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of a data transmission control device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a second terminal detection module according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of a communication link detection unit according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a communication link establishment module according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of another data transmission control apparatus according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of another data transmission control apparatus according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of another communication link establishment module provided in an embodiment of the present application;
fig. 14 is a schematic structural diagram of another data transmission control apparatus according to an embodiment of the present application;
fig. 15 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 16 is a schematic structural diagram of an 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, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In the description of the present application, it is noted that, unless explicitly stated or limited otherwise, "including" and "having" and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The present application will be described in detail with reference to specific examples.
In one embodiment, as shown in fig. 1, a data transmission control method is specifically proposed, which can be implemented by means of a computer program and can be run on a data transmission control device based on the von neumann architecture. The computer program may be integrated into the application or may run as a separate tool-like application.
Specifically, the data transmission control method includes:
step S101: and establishing a first communication link with the server, and detecting at least one second terminal under the current local area network.
The communication link is usually referred to as a data link or a physical link, wherein the data link includes a service link, a virtual link, a logical link, and the like. Typically, a complete traffic link contains servers, switches, gateway devices, etc. with traffic handling capabilities. In this embodiment, the communication link may be understood as a path through which communication data (data such as instructions, requests, signals, information, and the like) is transmitted at each communication node (such as a switch, a gateway device, and the like). In the embodiment of the present application, the first communication link may be understood as a path for transmitting communication data between the first terminal and the server.
The local area network can be understood as a local area network formed by local areas, and is characterized in that the distribution area range is limited, and the local area network can be large or small, and can be as large as the connection between one building and adjacent buildings, and as small as the connection between offices and families. The local area network has the advantages of higher transmission speed, more stable performance, simple framework and closure compared with other networks (such as a metropolitan area network).
In the embodiment of the present application, the current local area network may be a wireless local area network in which the coherent technology relates to the local area network; a WLAN is a computer network formed by connecting terminals (such as computers, mobile phones, tablets) in buildings or business places as large as several kilometers, and terminals held by family members as small as several tens of kilometers.
In a particular implementation scenario, each computer communicates with a ceiling-mounted device in most cases. The device, which is an access point, a wireless router or a base station, is mainly responsible for relaying data packets between terminals (such as computers, mobile phones and tablets), and also responsible for relaying communication data between terminals (such as computers, mobile phones and tablets) and other electronic devices in the network, such as communication data between the terminals (such as computers, mobile phones and tablets) and a server.
Specifically, the first terminal may establish a first communication link with the server by using a preset communication architecture. The communication architecture refers to a communication structure for performing data communication in a communication link, and defines various aspects of a data network communication system, including interface types of communication, network protocols used, implemented data frames, types of communication wiring, and the like. Common communication architectures may be TCP/IP architectures, Netty architectures, C/S architectures, SOA architectures, and the like. For example, one of the communication architectures may be a Netty framework based on java open source, and cooperate with the WebSocket technology to implement a first communication link in which a first terminal and a server establish a long connection (or a short connection) in a communication network, and implement interaction based on communication data between two ends of the first communication link. The communication link based on long connections and the communication link based on short connections will be explained in detail below, as follows:
and the communication interaction between the first terminal and the service server is based on the established first communication link. The established first communication link may be a communication link of an http long connection or a communication link of an http short connection.
A long connection means that multiple packets can be sent continuously over one connection, and during the connection hold period, if no packet is sent, a link check packet needs to be sent in both directions.
The operation steps of the long connection are as follows: establish a connection-data transfer (maintain a connection).
The short connection means that when both communication parties have data interaction, a connection is established, and after the data transmission is completed, the connection is disconnected, that is, only one service is transmitted in each connection.
The short connection operation steps are as follows: establishing connection-data transmission-closing connection.
Long connections are often used for frequent, point-to-point communications. Each TCP connection needs three-step handshake, which requires time, and if each operation is a short connection, the processing speed is reduced greatly if the operation is repeated, so that each operation is not disconnected after the operation is completed, and the data packet is OK when the next processing is performed, and the TCP connection does not need to be established. For example: the connection of the database uses a long connection, if the communication is frequent with a short connection, the socket error is caused, and the frequent socket creation is also a waste of resources.
Http services like WEB sites generally use short links, because long connections consume certain resources for a server, while frequent connection of thousands or even billions of clients like WEB sites saves some resources by using short links, if long connections are used, and meanwhile thousands of users are used, and if each user occupies one connection, the user can think of a bar. Therefore, the concurrency is high, but each user needs to use the short link without frequent operation.
The long connection can save more TCP establishment and closing operations, reduce waste and save time. In practical application, when the communication data transmitted by the first communication link is real-time online teaching video data with high requirement on communication transmission quality, a communication link based on a long connection can be adopted, for example, the first communication link based on the long connection is adopted between the first terminal and the server
In this case, the long connection is easy for the server to manage, and the existing connections are all useful connections, and no additional control means is required. But if the client requests frequently, time and bandwidth will be wasted on the TCP set up and shut down operations. Therefore, in the embodiment of the present application, the first terminal determines to establish the first communication link based on the long connection according to the environment of the actual communication data transmission.
Specifically, in the process of establishing the first communication link with the server, one establishment method is as follows: the first terminal actively sends a communication link establishment request to the server, wherein the communication link establishment request carries address information (such as a device name, an address, a port number, a device identifier and the like) of the first terminal. After receiving the communication link establishment request, the server establishes and initializes the communication service corresponding to the first communication link, and then sends a verification instruction for establishing the first communication link to the first terminal according to the address information of the first terminal, and after receiving the verification instruction, the first terminal performs identity verification on the verification instruction.
Illustratively, the first terminal determines whether the return value in the verification instruction for establishing the first communication link is matched with a preset return value or not according to the return value by reading and analyzing the return value, where the return value may be understood as a string of codes, a character string, an array, and the like in the embodiment of the present application, and when the return value is matched with the preset return value, the first communication link is established successfully. And when the return value does not match the preset return value, the first communication link is failed to be established.
Another way of establishing may be: the server sends a communication link establishment request to the first terminal, wherein the communication link establishment request carries address information (such as a device name, an address, a port number, a device identifier and the like) of the server. After receiving the communication link establishment request, the first terminal establishes and initializes the communication service corresponding to the first communication link, then sends a verification instruction for establishing the first communication link to the server according to the address information of the server, and after receiving the verification instruction, the server performs identity verification on the verification instruction.
Illustratively, the server reads and analyzes the return value in the verification instruction for establishing the first communication link, and determines whether the return value matches a preset return value according to the return value, where the return value may be understood as a string of codes, a character string, an array, and the like in the embodiment of the present application, and when the return value matches the preset return value, the first communication link is established successfully. And when the return value does not match the preset return value, the first communication link is failed to be established.
In the embodiment of the present application, a first terminal establishes a first communication link with a server, and receives downlink data, such as multimedia data, of the server using the first communication link, and in a specific online education environment, the server having an online education service provides a user of the first terminal with teaching resources (i.e., multimedia data) through the internet. For example, for recorded broadcast class, an online education service provider or an online education platform is required to transmit a large amount of multimedia data to a student terminal, and for live broadcast class, the server is required to be connected with a teacher terminal and/or a student terminal, where the teacher terminal and/or the student terminal is the first terminal in the embodiment of the application, a large amount of multimedia data is generally required to be transmitted to both sides, for example, the server sends teaching video of a teacher to the student terminal, and the server sends teaching video of students to the teacher terminal in real time, and so on. In such an environment, the first communication link needs to have sufficient network bandwidth to transmit multimedia data, and the server also needs sufficient service data processing capability, but in the case of insufficient network bandwidth and/or insufficient server processing capability (e.g. late class is in peak use, network is stuck), the multimedia data transmission may be blocked, such as delay, stuck or even dropped, etc., which is usually difficult to satisfy the current multimedia data transmission requirement based on the first communication link between the first terminal and the server.
The first terminal may receive the downlink data of the server by creating a plurality of communication links with the second terminal under the current local area network by performing the data transmission control method in the embodiment of the present application.
Specifically, after a first communication link between the first terminal and the server is established, the first terminal performs data interaction with the server through the first communication link, and detects at least one second terminal in the current local area network, such as the number of the second terminals, address information of the second terminals, a network state of the second terminals, and the like. The first terminal may specifically send the detection information to at least one second terminal under the current local area network, and the second terminal may send, after receiving the detection information, feedback information including address information (such as an address, a port number, a subnet mask, and the like) of the home terminal to the first terminal based on the detection information.
Step S102: and establishing a second communication link with the second terminal, and informing the server of establishing a third communication link with the second terminal.
The second communication link refers to a communication link between the first terminal and the second terminal. The first terminal and the second terminal are not devices under the same local area network.
Specifically, after the first terminal detects at least one second terminal in the current local area network, at this time, the first terminal has already acquired address information (such as an address, a port number, a subnet mask, and the like) of the second terminal, where the device information may be feedback information sent by the second terminal in the previous step, where the feedback information includes device information of the second terminal, and the first terminal may establish a second communication link between the second terminals corresponding to the address information based on the address information. One way of establishing is: the first terminal actively sends a communication link establishment request to the second terminal, wherein the communication link establishment request carries address information (such as a device name, an address, a port number, a device identifier and the like) of the first terminal. After receiving the communication link establishment request, the second terminal establishes and initializes the communication service corresponding to the first communication link, then sends a verification instruction for establishing the second communication link to the first terminal according to the address information of the first terminal, and after receiving the verification instruction, the first terminal performs identity verification on the verification instruction.
Illustratively, the first terminal determines whether the return value in the verification instruction for establishing the second communication link is matched with a preset return value or not according to the return value by reading and analyzing the return value, where the return value may be understood as a string of codes, a character string, an array, and the like in the embodiment of the present application, and when the return value is matched with the preset return value, the second communication link is established successfully. And when the return value is not matched with the preset return value, the establishment of the second communication link fails.
Another way of establishing may be: the second terminal actively sends a communication link establishment request to the first terminal, wherein the communication link establishment request carries address information (such as a device name, an address, a port number, a device identifier and the like) of the server. After receiving the communication link establishment request, the first terminal establishes a communication service corresponding to the second communication link and initializes the communication service, then sends a verification instruction for establishing the second communication link to the second terminal according to the address information of the second terminal, and after receiving the verification instruction, the second terminal performs identity verification on the verification instruction.
Illustratively, the second terminal reads and analyzes the return value in the verification instruction for establishing the second communication link, and determines whether the return value is matched with a preset return value according to the return value, where the return value may be understood as a string of codes, a character string, an array, and the like in the embodiment of the present application, and when the return value is matched with the preset return value, the second communication link is established successfully. And when the return value is not matched with the preset return value, the establishment of the second communication link fails.
It can be understood that, when the number of the second terminals in the current local area network is multiple, the first terminal may obtain the address information of each second terminal in the process of monitoring the second terminals in the current local area network, and may respectively establish a second communication link with the second terminal indicated by the address information according to each address information, that is, the second communication link is multiple at this time, and in the process of establishing multiple second communication links, the second communication link may be synchronous or asynchronous, which is not specifically limited here.
The first terminal may generally successfully establish the second communication link with each of the second terminals through the above steps, and instruct the server to establish the third communication link with each of the second terminals. Wherein the third communication link may be understood as a communication link between the server and the second terminal.
Specifically, the first terminal indicates the server and each of the second terminals to establish a third communication link, and in one establishing manner, the server actively establishes the third communication link with each of the second terminals, specifically, the first terminal may send the obtained address information of each of the second terminals to the server after detecting at least one second terminal in the current local area network, and at this time, the server may actively indicate the second terminal to send a communication link establishment request to the address information according to the address information, so as to establish the third communication link with the second terminal.
Specifically, the first terminal may send address information of the server to the second terminal after detecting at least one second terminal in the current local area network, and the second terminal may send a communication link establishment request to the server based on the address information of the server to establish a third communication link between the second terminal and the server.
In a specific implementation scenario, as shown in fig. 2, fig. 2 is a schematic view of a wireless lan, a current lan where a first terminal is located is a wireless lan, the wireless lan is formed by devices in a dashed-line frame as shown in fig. 2, under the current lan, an electronic device except the first terminal may be a second terminal, for example, a wireless lan applied in a home environment is taken as an example, an electronic device (tablet, mobile phone, computer, etc.) held by a student is the first terminal, an electronic device (tablet, mobile phone, computer, etc.) held by a parent (father, mother, grandpa, milk, etc. of the student) is the second terminal, the first terminal and the second terminal communicate with a device installed in the home environment, and the device becomes an access point, a wireless router or a base station, and in fig. 2, the wireless router is mainly responsible for relaying the first terminal (e.g., the computer), Mobile phone, tablet) or the second terminal, and is also responsible for relaying communication data between the first terminal (e.g., computer, mobile phone, tablet) and other electronic devices in the network, e.g., relaying communication data between the first terminal (e.g., computer, mobile phone, tablet) and the server.
Further, the first communication link may be based on a wireless router establishing communication with a server through a wired network (e.g., a high-speed optical fiber network), the second communication link may be based on a wireless router establishing communication between the first terminal and the second terminal through a wireless local area network, and the third communication link may be based on a second terminal mobile communication network (e.g., a fifth generation mobile communication system, i.e., a 5G network) establishing communication with the server. It is understood that the first terminal is now operating under the wlan and the second terminal is operating under the wlan as well as the mobile communication network.
Further, as shown in fig. 3, fig. 3 is a schematic view of a scenario of a communication link, a wireless local area network is configured as each device in a dashed line box in fig. 3, the first communication link may be that a first terminal establishes communication with a server based on a mobile communication network (e.g., a fifth generation mobile communication system, i.e., a 5G network), the second communication link may be that a second terminal establishes communication with the server based on a wireless router through the wireless local area network, and the third communication link may be that the second terminal establishes communication with the server based on the mobile communication network (e.g., the fifth generation mobile communication system, i.e., the 5G network). It is understood that the first terminal operates under the wlan and the mobile communication network, and the second terminal operates under the wlan and the mobile communication network.
Further, the first communication link may be a communication link established with the server through a wired network (e.g., a high-speed optical fiber network) based on both a mobile communication network (e.g., a fifth generation mobile communication system, i.e., a 5G network) and a wireless router, and it is understood that the first communication link is a communication link based on a dual network.
In a specific implementation scenario, a current local area network where the first terminal is located is a wireless local area network, where the wireless local area network may be established by the first terminal starting a network hotspot function, that is, the first terminal establishes a first communication link with a server through a mobile communication network (e.g., a fifth generation mobile communication system, i.e., a 5G network), and then starts the network hotspot function, a user of the second terminal manually connects to a network hotspot of the first network, or the first terminal may send detection information to each second terminal, so that the second terminal responds to the detection information to join the wireless local area network of the first terminal, and at this time, the first terminal automatically establishes a second communication connection with each second terminal. Further, the first terminal may broadcast the detection information to the outside after the network hotspot function is turned on, and may receive the detection information after the network hotspot connection function (e.g., WiFi function) of the second terminal is turned on, and automatically join the wireless local area network of the first terminal based on the detection information, at this time, the first terminal automatically establishes the second communication connection with each second terminal. It will be appreciated that the third communication link may be based on the second terminal's mobile communication network (e.g. a fifth generation mobile communication system, i.e. a 5G network) establishing communication with the server. At this time, the first terminal operates under the wlan and the mobile communication network, and the second terminal operates under the wlan and the mobile communication network.
After the first communication link, the second communication link and the third communication link are established, the downlink data of the server can be received based on the multiple communication links.
Step S103: and receiving downlink data sent by the server based on the first communication link, the second communication link and the third communication link.
The downlink data is usually multimedia data, wherein the media refers to a medium for transmitting information and is an intermediary between people for transmitting information and obtaining information. The multimedia data may be regarded as multimedia, and may also be understood as a general term for various media such as characters, figures, images, animation, sound, video, etc. which directly act on human senses, that is, the expression forms and transmission modes of various information carriers. The multimedia data in the embodiment of the present application may be music, pictures, recorded videos, online teaching videos, and the like used by the user for learning in an online education environment.
In practical applications, the downlink data may include first data sent by the server via the first communication link, and second data sent by the server and forwarded to the first terminal via the second terminal.
Specifically, after the first communication link, the second communication link, and the third communication link are established, when the server downloads the downlink data, the server divides the downlink data to be downloaded into the first data and the second data. The server sends first data to the first terminal according to the first communication link. At this time, the first terminal can receive the first data sent by the server through the first communication link. The server issues second data to the second terminal according to the third communication link, and when the second terminal includes N (N is a positive integer), that is, the server and the plurality of second terminals respectively establish the third communication links, at this time, the number of the second data includes N, and each second data may be the same or different, and usually in practical applications, it is preferable that each second data is usually different. The server respectively sends second data through a third communication link between the server and each second terminal, the second terminals receive the second data sent by the server through the third communication links, and then the second data are sent to the first terminals through the second communication links between the second terminals and the first terminals. It is understood that, in the case that there are a plurality of second terminals establishing the third communication link with the server, the first terminal will receive the second data through the second communication link with each of the second terminals. At this time, the first terminal may quickly receive the downlink data sent by the server in a manner that the first terminal transmits the downlink data through multiple communication links based on the first communication link, the second communication link, and the third communication link.
In the embodiment of the application, after establishing a first communication link with a server, a first terminal detects at least one second terminal under a current local area network, establishes a second communication link with the second terminal, and notifies the server of establishing a third communication link with the second terminal. The first terminal may receive downlink data sent by the server based on the created first communication link, the created second communication link, and the created third communication link in a multi-communication link manner. When the communication condition of the communication link is not good, the problem of high time delay when the data is received based on the communication link between the first terminal and the server is solved, the time delay of data receiving is reduced, and the load of the communication link between the first terminal and the server can be reduced based on a multi-communication link mode.
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating another embodiment of a data transmission control method according to the present application. Specifically, the method comprises the following steps:
step S201: a first communication link is established with a server.
Specifically, refer to step S101, which is not described herein again.
Step S202: and determining the communication link state of the first communication link, and sending detection information to at least one second terminal under the current local area network according to the communication link state.
The communication link state includes at least a communication normal state and a communication load state. The communication normal state can be understood as that the current communication state of the first communication link is good, the transmission delay is low, and the transmission of uplink and downlink data between the first terminal and the server can be met; the communication load state may be understood as that the current communication state of the first communication link is not good, the transmission delay of the data communication link is high, the link load is too heavy, and the like.
In a specific implementation scenario, the first terminal has a communication status monitoring mechanism, and can monitor a communication status of the current first communication link; after a first communication link between a first terminal and a server is established, the first terminal may monitor a current first communication link through a communication state monitoring mechanism, specifically, the first terminal may obtain at least one communication parameter of the first communication link, determine communication quality of the first communication link according to the communication parameter, and determine that a first communication link state of the first communication link is a communication load state when the communication quality meets a preset condition.
The preset condition is determined according to communication parameters acquired in an actual application environment, for example, the preset condition may be setting for at least one communication parameter, and the preset condition may be setting a parameter range for each communication parameter in decibels, and when one or more communication parameters fall within respective corresponding parameter ranges, determining a first communication link state of the first communication link as a communication load state; one is to set a parameter threshold, and when one or more communication parameters reach the parameter threshold, determine a first communication link status of the first communication link as a communication load status. Wherein, the communication parameter reaching the parameter threshold may be understood as: when the communication parameter is greater than or equal to the parameter threshold value, determining that the first communication link state of the first communication link is a communication load state; or when the communication parameter is less than or equal to the parameter threshold value, determining that the first communication link state of the first communication link is the communication load state. Specifically, the method is determined according to a communication judgment index represented by a communication parameter, for example, a packet loss rate of communication data, and when the packet loss rate is greater than a packet loss rate threshold, a first communication link state of the first communication link is determined to be a communication load state. As another example, when the delay time is greater than the time threshold, the first communication link state of the first communication link is determined to be the communication load state.
In a possible implementation, the first terminal may calculate a communication quality score according to each of the communication parameters; the method for judging the communication link state of the first communication link based on the communication quality score specifically comprises the following steps:
the first terminal may evaluate the communication quality of the current first communication link, calculate a communication quality score according to each of the communication parameters, so as to determine the communication condition of the uplink or downlink data of the first communication link between the first terminal and the server according to the communication quality score, where the communication parameter may be one or more of communication parameters such as a transmission/reception rate, signal energy, a data packet loss rate in a communication process, and a data retransmission rate in the communication process, and calculate the communication quality score according to each of the communication parameters, so as to measure the current communication quality.
Furthermore, the first terminal is provided with a quality score threshold, and the quality score threshold is usually obtained by collecting a large amount of communication sample data and applying a statistical method in an actual application environment.
1. When the calculated communication quality score is smaller than a quality score threshold, the first terminal may determine that the communication link state of the first communication link is a communication load state;
2. when the calculated communication quality score is smaller than the quality score threshold, the first terminal may determine that the communication link state of the first communication link is a communication normal state.
One of the calculation methods may be setting different or the same weight values for each communication parameter, and performing weighting calculation based on each communication parameter and the weight values to obtain a current communication quality score;
one of the calculation methods may be to set reference parameter characteristics (such as a reference indication value, a reference indication range, a reference indication distance, and the like) for each communication parameter, calculate difference characteristic information (such as a difference communication parameter value) for each network communication parameter in at least one network communication parameter and the parameter characteristics corresponding to the network communication parameter, score according to the difference characteristic information, and set a scoring level, for example, three levels when scoring is performed according to the difference characteristic information: level a > level B > C, which is defined by the data connection class parameters including two communication parameters as an example: and calculating a differential communication value a of the communication parameter A1 and the reference indication value A, and taking the score corresponding to the grade B as the current communication quality score when the differential communication value a reaches the value corresponding to the grade B.
Wherein, the communication parameters include, but are not limited to, at least one of Reference Signal Receiving Power (RSRP) of the uplink/downlink data signals of the current communication antenna, Received Signal Code Power (RSCP), Ratio of received chip Signal strength and Noise strength of the signals received by the antenna (EcIo)/Ratio of modulated Bit Power and Noise spectral density (EcNo)/Signal-to-Noise Ratio (SNR)/Reference Signal Receiving Quality (RSRQ), Bit Error Rate (Bit Error Ratio, BER)/block Error Rate (blocker Rate, BLER)/Packet Error Rate (Packet Error Ratio, PER) of the signals received by the antenna, and the like to realize the evaluation of the communication link status of the current first communication link, of course, the evaluation of the communication link status of the current first communication link may also be performed by measuring other parameters.
It should be noted that, the measured communication parameters of the first communication link may be various types, and may be one or more types of fits mentioned above, which is not specifically limited herein.
In a possible implementation manner, the first terminal may input the acquired various communication parameters into a trained score determination model, and output the communication quality score of the first communication link. The method comprises the steps of obtaining communication sample data in an actual application environment, extracting characteristic information, marking a score corresponding to the communication sample data, wherein the characteristic information comprises at least one communication parameter (RSSI, SNR, RSCP and the like), and creating an information type determination model. The score determination model may be trained by using a large number of communication samples, for example, the score determination model may be implemented based on at least one of a Convolutional Neural Network (CNN) model, a Deep Neural Network (DNN) model, a Recurrent Neural Network (RNN), a model, an embedding (embedding) model, a Gradient Boosting Decision Tree (GBDT) model, and a Logistic Regression (LR) model, and the score determination model may be trained based on sample data labeled with a score, so that the trained score determination model may be obtained.
In the embodiment of the present application, the score determining model may create an initial model by using a hidden markov model (DNN-HMM model) introducing an error back propagation algorithm, after extracting feature information of the communication sample data, input the feature information into the DNN-HMM model, a training process of the DNN-HMM model generally consists of two parts, namely, forward propagation and backward propagation, in the forward propagation process, the feature information corresponding to the first terminal input sample-communication sample data is transmitted from an input layer of the neural network model to an output layer after a transfer function (also referred to as an activation function and a conversion function) operation of hidden neurons (also referred to as nodes), wherein each layer of neuron state affects a next layer of neuron state, an actual output value-abnormal information type is calculated at the output layer, an expected error between the actual output value and an expected output value is calculated, and adjusting parameters of the DNN-HMM model based on the expected error, wherein the parameters comprise a weight value and a threshold value of each layer, and generating a grading determination model after training is completed.
Specifically, the desired error may be a mean square error MSE, which may be obtained by calculating a mean square error MSE between the actual output value and the desired output value, where the mean square error MSE may use the following formula:
Figure BDA0002437568910000151
wherein m is the number of output nodes, p is the number of training samples, is an expected output value, and is an actual output value.
Furthermore, when the first terminal determines that the communication link state of the first communication link is the communication load state, and under the situation that the network bandwidth of the first communication link is insufficient and/or the processing capability of the server is insufficient (for example, the late class is in a peak period of use, and the network may be stuck), at this time, transmitting the uplink and/or downlink data by using the first communication link may block data transmission, for example, delay, stuck, or even drop, and the like are generated, at this time, it is usually difficult to meet the requirement of current data transmission based on the first communication link between the first terminal and the server, and at this time, the first terminal may receive the downlink data of the server by using the second terminal under the current local area network by executing the data transmission control method in the embodiment of the present application. Specifically, the detection information may be sent to at least one second terminal in the current local area network according to the communication load status.
Step S203: and receiving a control instruction sent by the server through the first communication link, and sending detection information to at least one second terminal under the current local area network.
The instructions are instructions and commands directing the first terminal to operate, and may be understood as codes specifying a certain control to perform a certain operation or function implementation. In this embodiment of the application, the control instruction may be understood as a code that directs the first terminal to execute the function of sending the detection information to the at least one second terminal in the current local area network, and the first terminal generates the detection information and sends the detection information to the at least one second terminal in the current local area network by executing the code.
Specifically, the server side may monitor a communication link state of the first communication link, and the server has a communication state monitoring mechanism and may monitor a communication state of the current first communication link; after a first communication link between a first terminal and a server is established, the server can monitor the current first communication link through a communication state monitoring mechanism, specifically, the server can obtain at least one communication parameter of the first communication link, and calculate a communication quality score according to each communication parameter; the communication link status of the first communication link is evaluated based on the communication quality score. When the communication link state is the normal communication state, link control is not needed to be performed on uplink and downlink data between the server and the first terminal, and it can be understood that in the normal communication state, the current communication state of the first communication link is excellent, the transmission delay is low, and the transmission of the uplink and downlink data between the first terminal and the server can be satisfied; when the communication link state is a communication load state, the server may monitor that the network bandwidth of the first communication link is insufficient and/or the processing capability of the server is insufficient (for example, the network peak period is used in late class, and the network may be stuck), at this time, the data transmission is blocked by using the first communication link to transmit uplink and/or downlink data, for example, delay, stuck, even drop, and the like are generated, at this time, the server may send a control instruction to the first terminal by using the first communication link, generally based on that the first communication link between the first terminal and the server is difficult to meet the requirement of current data transmission; and the first terminal receives the control instruction, sends a code of the information detection function to at least one second terminal under the current local area network, and generates detection information and sends the detection information to at least one second terminal under the current local area network by executing the code. Such as detecting the number of second terminals, address information of the second terminals, network status of the second terminals, etc. The first terminal may specifically send the detection information to at least one second terminal under the current local area network, and the second terminal may send, after receiving the detection information, feedback information including address information (such as an address, a port number, a subnet mask, and the like) of the home terminal to the first terminal based on the detection information.
In a possible implementation scenario, the server side does not monitor the communication link status of the first communication link, and may determine the communication link status of the first communication link by sending a detection instruction to the first terminal. Specifically, after receiving the detection instruction sent by the server through the first link, the first terminal determines the communication link state of the first communication link, where the step 202 may be referred to for determining the communication link state of the first communication link, and details are not repeated here. After the first terminal determines the communication link status of the first communication link, the first terminal feeds back the communication link status to the server through the first communication link. If the first terminal determines that the communication link status of the first communication link is the communication load status, the first terminal may feed back the communication load status to the server through the first communication link. It should be noted that, after the server receives the communication load status fed back by the first terminal, it is determined that the communication quality of the first communication link is not good at this time, and a control instruction may be generated and sent to the first terminal by using the first communication link. The first terminal receives the control instruction sent by the server through the first communication link at the moment and sends detection information to at least one second terminal under the current local area network
Step S204: and receiving feedback information sent by the second terminal according to the detection information.
The feedback information may be understood as address information for feeding back the second terminal, such as an IP address, a MAC address, a port number, a subnet mask, a device identification, etc.
Specifically, the first terminal may specifically send the detection information to at least one second terminal in the current local area network, and the second terminal may send, after receiving the detection information, feedback information including address information (such as an address, a port number, a subnet mask, and the like) of the home terminal to the first terminal based on the detection information. And at the moment, the first terminal receives feedback information sent by each second terminal according to the detection information.
Step S205: and acquiring address information of the second terminal from feedback information sent by the second terminal, and sending a first link establishment request to the second terminal according to the address information, wherein the first link establishment request is used for establishing a second communication link with the second terminal.
Specifically, after a first terminal detects at least one second terminal in a current local area network in a manner of sending detection information, the first terminal receives feedback information sent by the second terminal according to the detection information, then the first terminal performs signal analysis processing on the feedback information sent by each second terminal, extracts address information of the second terminal in the feedback information, so that address information (such as an address, a port number, a subnet mask and the like) of the second terminal can be obtained, and then the first terminal can establish a second communication link between the second terminals corresponding to the address information based on the address information. Specifically, a first terminal actively sends a communication link establishment request to a second terminal, where the communication link establishment request carries address information (device name, address, port number, device identifier, and the like) of the first terminal. After receiving the communication link establishment request, the second terminal establishes and initializes the communication service corresponding to the first communication link, then sends a verification instruction for establishing the second communication link to the first terminal according to the address information of the first terminal, and after receiving the verification instruction, the first terminal performs identity verification on the verification instruction.
Illustratively, the first terminal determines whether the return value in the verification instruction for establishing the second communication link is matched with a preset return value or not according to the return value by reading and analyzing the return value, where the return value may be understood as a string of codes, a character string, an array, and the like in the embodiment of the present application, and when the return value is matched with the preset return value, the second communication link is established successfully. And when the return value is not matched with the preset return value, the establishment of the second communication link fails.
Step S206: based on the feedback information, sending notification information to the server, where the notification information is used to request the server to establish the third communication link with the second terminal.
Specifically, the first terminal may generally successfully establish the second communication link with each second terminal through the above steps, and the first terminal notifies the server of establishing the third communication link with each second terminal.
Specifically, the first terminal may generate notification information including at least one piece of second terminal feedback information based on the feedback information, for example, the feedback information may be address information of the second terminal, and the notification information may be understood as an information set including at least one piece of second terminal address information, where the information set is the notification information. In particular, the first terminal may send the notification information to the server, and the server may generally establish a third communication link with the second terminal according to at least one address information of the second terminal in the notification information.
Specifically, the server may actively establish a third communication link with each second terminal, specifically, after the first terminal has detected at least one second terminal in the current local area network, based on the obtained feedback information of each second terminal, generate notification information, and send the notification information to the server, at this time, the server may actively send a communication link establishment request to the second terminal indicated by the address information according to the address information in the notification information, so as to establish the third communication link with the second terminal.
It should be noted that, the step of the first terminal obtaining the address information of the second terminal in executing the feedback information sent by the second terminal and the step of sending the notification information to the server based on the feedback information are not in sequence.
Step S207: and receiving downlink data sent by the server based on the first communication link, the second communication link and the third communication link.
Specifically, refer to step S103, which is not described herein again.
Step S208: sending uplink data to the server based on the first communication link, the second communication link with the second terminal, and a third communication link between the server and the second terminal.
The uplink data is usually multimedia data, wherein the medium refers to a medium for transmitting information and is an intermediary between people for transmitting information and obtaining information. The multimedia data may be regarded as multimedia, and may also be understood as a general term for various media such as characters, figures, images, animation, sound, video, etc. which directly act on human senses, that is, the expression forms and transmission modes of various information carriers. The multimedia data in the embodiment of the present application may be music, pictures, recorded videos, online teaching videos, and the like uploaded to a server in an online education environment.
The third data is sent to the server based on the first communication link, and the fourth data is sent over the second communication link with each of the second terminals, the fourth data being sent by the second terminals to the server based on the third communication link.
In practical applications, the uplink data may include third data sent by the first terminal to the server via the first communication link, and fourth data sent by the first terminal and forwarded to the server via the second terminal.
Specifically, after the first communication link, the second communication link, and the third communication link are established, when the first terminal sends uplink data to the server, the uplink data to be sent is divided into third data and fourth data. The first terminal sends third data to the server according to the first communication link. At this time, the server may receive the third data sent by the first terminal through the first communication link. The first terminal sends fourth data to the second terminal according to the second communication link, so that the second terminal sends the fourth data to the server through the third communication link; when the number of the second terminals includes N (N is a positive integer), that is, the first terminal establishes the second communication links with the plurality of second terminals, and the server establishes the third communication links with each of the second terminals, respectively, at this time, the number of the fourth data includes N, and each of the fourth data may be the same or different, and usually in practical applications, it is preferable that each of the fourth data is usually different. The first terminal respectively sends fourth data through a second communication link between the first terminal and each second terminal, each second terminal receives the fourth data sent by the first terminal through the second communication link, and each second terminal respectively sends the received fourth data to the server through a third communication link between the second terminal and the server. It can be understood that, in the case that there are a plurality of second terminals establishing the second communication links with the first terminal, the first terminal sends the fourth data through the second communication link with each second terminal, and forwards the second terminal to the server based on the third communication link. At this time, the first terminal may transmit uplink data through multiple communication links based on the first communication link, the second communication links between the first terminal and each of the second terminals, and the third communication link between the server and each of the second terminals, so that the server may quickly receive the uplink data sent by the first terminal.
In a specific embodiment, before the first terminal sends the uplink data to the server by performing the method in step 208, the first terminal may obtain communication transmission quality of a third communication link between the second terminals and the server, and further, the first terminal may send a communication detection instruction for the third communication link to each second terminal, and each second terminal receives and responds to the communication detection instruction. It can be understood that the second terminal has a communication status monitoring mechanism, which can monitor the communication status of the current third communication link; after the second terminal establishes a third communication link with the server, the second terminal may monitor the current third communication link through a communication state monitoring mechanism, specifically, the second terminal may obtain at least one communication parameter of the third communication link, and calculate a communication quality score according to each communication parameter; the communication quality score is then transmitted to the first terminal. On the first terminal side: the first terminal may receive the communication quality score of each second terminal, and the first terminal may determine, by combining each communication quality score and the communication quality score of the first communication link, a ratio of the third data and the fourth data to the uplink data, divide the uplink data according to the ratio, and determine respective corresponding data amounts of the third data and the fourth data included in the uplink data.
In the embodiment of the application, after establishing a first communication link with a server, a first terminal detects at least one second terminal under a current local area network, establishes a second communication link with the second terminal, and notifies the server of establishing a third communication link with the second terminal. The first terminal may receive downlink data sent by the server based on the created first communication link, the created second communication link, and the created third communication link in a multi-communication link manner. When the communication condition of the communication link is not good, the problem of high time delay when the data is received based on the communication link between the first terminal and the server is solved, the time delay of data receiving is reduced, and the load of the communication link between the first terminal and the server can be reduced based on a multi-communication link mode; meanwhile, the first terminal can also send uplink data to the server based on the created first communication link, the created second communication link and the created third communication link, and can quickly transmit the data to the server, so that the real-time performance and reliability of data transmission are guaranteed.
In one embodiment, as shown in fig. 5, another data transmission control method is specifically proposed, which can be implemented by means of a computer program and can be run on a data transmission control device based on the von neumann architecture. The computer program may be integrated into the application or may run as a separate tool-like application. In order to better explain the data transmission control method, the data transmission control device is taken as the second terminal for explaining the details.
Specifically, the data transmission control method includes:
step S301: receiving detection information sent by a first terminal under the current local area network, and responding to the detection information to send feedback information to the first terminal.
The signal is a physical quantity representing information, for example, the electrical signal may represent different information through changes of amplitude, frequency and phase, generally the electrical signal includes an analog signal and a digital signal, and in this embodiment, the detection information and the feedback information may be one of the electrical signals. The detection information is used for the second terminal to send feedback information to the first terminal.
The feedback information may be understood as a signal for feeding back address information of the second terminal, such as an IP address, a MAC address, a port number, a subnet mask, a device identification, and the like.
According to some embodiments, after a first communication link between a first terminal and a server is established, a data interaction is performed between the first terminal and the server through the first communication link, so that the communication quality of the first communication link can be detected in real time, and in a case where the first communication quality is poor, for example, when the communication link state of the first communication link is determined to be a communication load state, and at this time, the network bandwidth of the first communication link is insufficient and/or the processing capability of the server is insufficient (for example, a late morning is a peak-to-peak period of use, and the network may be stuck), at this time, transmitting uplink and/or downlink data through the first communication link may block data transmission, for example, delay, stuck or even dropped, and the like are generated, and at this time, it is generally based on that the first communication link between the first terminal and the server is difficult to meet the requirement of current data transmission; at this time, the first terminal detects at least one second terminal in the current local area network, such as detecting the number of the second terminals, address information of the second terminals, network status of the second terminals, and the like. The first terminal may specifically send detection information to at least one second terminal in the current local area network; at this time, the second terminal may receive the detection information sent by the first terminal in the current local area network, and then, after receiving the detection information, the second terminal responds to the detection information and sends feedback information including address information (such as an address, a port number, a subnet mask, and the like) of the home terminal to the first terminal based on the detection information.
Step S302: and establishing a second communication link with the first terminal under the current local area network, and establishing a third communication link with the server.
Specifically, the feedback information generally includes address information of the second terminal, such as an IP address, a MAC address, a port number, a subnet mask, a device identifier, and the like.
In a specific implementation manner, the second terminal receives, in the current local area network, a first link establishment request sent by the first terminal according to the address information in the feedback information, where one manner is: the first communication link establishment request carries address information (device name, address, port number, device identifier, etc.) of the first terminal. After receiving the communication link establishment request, the second terminal establishes and initializes the communication service corresponding to the first communication link, then sends a verification instruction for establishing the second communication link to the first terminal according to the address information of the first terminal, and after receiving the verification instruction, the first terminal performs identity verification on the verification instruction.
Illustratively, the first terminal determines whether the return value in the verification instruction for establishing the second communication link is matched with a preset return value or not according to the return value by reading and analyzing the return value, where the return value may be understood as a string of codes, a character string, an array, and the like in the embodiment of the present application, and when the return value is matched with the preset return value, the second communication link is established successfully. And when the return value is not matched with the preset return value, the establishment of the second communication link fails.
In a specific implementation manner, the second terminal receives, in the current local area network, a first link establishment request sent by the first terminal according to the address information in the feedback information, where one manner is: the second terminal stores the address information of the first terminal in advance, or acquires the address information of the first terminal in advance, for example, acquires the address information from a router in the current local area network. At this time, the first link establishment request includes an authentication value for link establishment, the second terminal determines whether the authentication value matches a preset authentication value according to the authentication value by reading and analyzing the authentication value in the first link establishment request, the authentication value may be understood as a string of codes, a character string, an array, and the like in the embodiment of the present application, and when the authentication value matches the preset authentication value, the second communication link is established successfully. And when the authentication value is not matched with the preset authentication value, the establishment of the second communication link fails.
According to some embodiments, the second terminal may receive a second link establishment request sent by the server, and establish a third communication link with the server, specifically, the first terminal may send feedback information sent by the second terminal to the server, and the server may send the second link establishment request to the second terminal indicated by the address information according to the address information in the feedback information. And the second terminal responds to the second link establishment request after receiving the second link establishment request so as to establish a third communication link with the second terminal.
According to some embodiments, the second terminal may actively send a third link establishment request to the server, the third link establishment request being used for the server to establish a third communication link with the second terminal. Specifically, the first terminal may send the address information of the server to the second terminal after detecting that the second terminal is in the current local area network, and the second terminal may actively send a third link establishment request to the server based on the address information of the server. So that the server responds after receiving the third link establishment request, thereby establishing a third communication link between the second terminal and the server.
Step S303: receiving second data in downlink data sent by the server, and sending the second data to the first terminal, wherein the downlink data comprises first data sent by the server through a first communication link and the second data, and the first communication link is a communication link between the first terminal and the server.
According to some embodiments, the downlink data may include first data transmitted by the server via the first communication link, and second data transmitted by the server and forwarded to the first terminal via the second terminal. Specifically, after the first communication link, the second communication link, and the third communication link are established, when the server downloads the downlink data, the server divides the downlink data to be downloaded into the first data and the second data. The server sends first data to the first terminal according to the first communication link. And the second terminal receives second data sent by the server through the third communication link, and at the moment, the second terminal serves as a relay and sends the second data to the first terminal through the second communication link. Therefore, the first terminal can quickly receive the downlink data sent by the server through a mode of transmitting the downlink data through multiple communication links based on the first communication link, the second communication link and the third communication link.
Step S304: and receiving fourth data in uplink data sent by the first terminal, and sending the fourth data to the server through the second communication link, wherein the uplink data comprises third data and the fourth data sent by the first terminal through the first communication link.
The uplink data is usually multimedia data, wherein the medium refers to a medium for transmitting information and is an intermediary between people for transmitting information and obtaining information. The multimedia data may be regarded as multimedia, and may also be understood as a general term for various media such as characters, figures, images, animation, sound, video, etc. which directly act on human senses, that is, the expression forms and transmission modes of various information carriers. The multimedia data in the embodiment of the present application may be music, pictures, recorded videos, online teaching videos, and the like uploaded to a server in an online education environment.
According to some embodiments, the uplink data may include the first terminal sending third data to the server via the first communication link, and fourth data sent by the first terminal forwarded to the server via the second terminal. When the first terminal sends the uplink data to the server, the uplink data to be sent is divided into third data and fourth data. The first terminal sends the third data to the server through the first communication link. And the second terminal receives fourth data sent by the first terminal through the second communication link, and at the moment, the second terminal serves as a relay and sends the fourth data to the server through the third communication link. Therefore, the first terminal can quickly enable the server to receive the uplink data in a mode of transmitting the uplink data through multiple communication links based on the first communication link, the second communication link and the third communication link.
In the embodiment of the application, a second terminal receives detection information sent by a first terminal under a current local area network, responds to the detection information to send feedback information to the first terminal, establishes a second communication link between the second terminal and the first terminal under the current local area network, establishes a third communication link between the third terminal and a server, receives second data in downlink data sent by the server, sends the second data to the first terminal, receives fourth data in uplink data sent by the first terminal, and sends the fourth data to the server through the second communication link. When the communication condition of the communication link is not good, the first terminal is assisted to receive or send data in the communication link, specifically, second data in received downlink data is forwarded to the first terminal, fourth data in received uplink data is forwarded to the server, and the problem that time delay is high when the first terminal receives data based on the communication link between the first terminal and the server can be solved, so that the time delay of data receiving is reduced by the first terminal, and meanwhile, the load of the communication link between the first terminal and the server can be reduced based on a multi-communication-link mode; and the fourth data of the data can be quickly forwarded to the server in the uplink of the first terminal, and the second data in the downlink data can be forwarded to the first terminal, so that the real-time performance and the reliability of data transmission are guaranteed.
Fig. 6 is a schematic structural diagram of a data transmission control system according to an embodiment of the present application. As shown in fig. 6, the data transmission control system may include: a first terminal 100, a server 110 and a second cluster of terminals. The second terminal cluster may include a plurality of second terminals, as shown in fig. 1, specifically including a second terminal 1, a second terminal 2, …, and a second terminal n, where n is an integer greater than 0; for convenience of understanding, the embodiment of the present invention is described by taking the first terminal 100, the server 110 and the second terminal 1 in fig. 1 as an example.
The first terminal 100 may be an electronic device having a network function, including but not limited to: wearable devices, handheld devices, personal computers, tablet computers, in-vehicle devices, smart phones, computing devices or other processing devices connected to a wireless modem, and the like. The terminal devices in different networks may be called different names, for example: user equipment, access terminal, subscriber unit, subscriber station, mobile station, remote terminal, mobile device, user terminal, wireless communication device, user agent or user equipment, cellular telephone, cordless telephone, Personal Digital Assistant (PDA), terminal equipment in a 5G network or future evolution network, and the like.
Each second terminal in the second terminal cluster may be an electronic device with a network function, and the electronic device includes but is not limited to: wearable devices, handheld devices, personal computers, tablet computers, in-vehicle devices, smart phones, computing devices or other processing devices connected to a wireless modem, and the like. The terminal devices in different networks may be called different names, for example: user equipment, access terminal, subscriber unit, subscriber station, mobile station, remote terminal, mobile device, user terminal, wireless communication device, user agent or user equipment, cellular telephone, cordless telephone, Personal Digital Assistant (PDA), terminal equipment in a 5G network or future evolution network, and the like.
The server 110 may be a separate server device, such as: the server equipment of a rack type, a blade type, a tower type or a cabinet type can also adopt hardware equipment with stronger computing power such as a workstation, a large computer and the like, and also can adopt a server cluster consisting of a plurality of servers, wherein each server in the server cluster can be formed in a symmetrical mode, wherein each server has equivalent function and equivalent status in a service link, each server can independently provide services to the outside, and the independent service provision can be understood as the assistance without other servers.
The first terminal 100, the server 110 and each second terminal in the second terminal cluster may communicate via a network, which may be a wireless network including but not limited to a cellular network, a wireless local area network, an infrared network or a bluetooth network, or a wired network including but not limited to an ethernet, a Universal Serial Bus (USB) or a controller area network.
The first terminal 100 establishes a first communication link with the server 110, and the first terminal 100 determines a communication link status of the first communication link.
The communication link state includes at least a communication normal state and a communication load state. The communication normal state may be understood as that the current communication state of the first communication link is good, the transmission delay is low, and the transmission of uplink and downlink data between the first terminal 100 and the server 110 may be satisfied; the communication load state may be understood as that the current communication state of the first communication link is not good, the transmission delay of the data communication link is high, the link load is too heavy, and the like.
Further, when the first terminal 100 determines that the communication link status of the first communication link is a communication load status, and when the network bandwidth of the first communication link is insufficient and/or the processing capability of the server 110 is insufficient (for example, when the user is in a peak time of use at a late school, the network may be stuck), at this time, transmitting uplink and/or downlink data by using the first communication link may block data transmission, for example, delay, stuck, even dropped, and the like may occur, and at this time, it is usually difficult for the first communication link between the first terminal 100 and the server 110 to meet the requirement of current data transmission, and at this time, the first terminal 100 may send detection information to at least one second terminal under the current local area network.
In one possible embodiment, the first terminal 100 establishes the first communication link with the server 110. The server 110 may monitor a communication link state of the first communication link, where the server 110 has a communication state monitoring mechanism and may monitor a communication state of the current first communication link, specifically, the server 110 may obtain at least one communication parameter of the first communication link and calculate a communication quality score according to each communication parameter; the communication link status of the first communication link is evaluated based on the communication quality score. When the communication link state is a communication load state, the server 110 may monitor that the network bandwidth of the first communication link is insufficient and/or the processing capability of the server is insufficient (for example, the network is in a peak period of use when a user is in a late class, and the network may be stuck), at this time, the data transmission is blocked by using the first communication link to transmit uplink and/or downlink data, for example, delay, stuck, or even dropped, and at this time, the server 110 may send a control instruction to the first terminal 100 by using the first communication link, generally based on that the first communication link between the first terminal 100 and the server 110 is difficult to meet the requirement of the current data transmission; the first terminal 100 receives the control instruction and sends detection information to at least one second terminal in the current local area network.
The second terminal 1 will be described as an example. The second terminal 1 receives the detection information sent by the first terminal 100 at this time, and correspondingly sends feedback information containing the local address information (such as address, port number, subnet mask, etc.) to the first terminal 100 for the detection information.
The first terminal 100 may receive the feedback information of the second terminal 1 at this time, and the first terminal 100 may obtain the address information of the second terminal 1 from the feedback information and send the first link establishment request to the second terminal 1 according to the address information.
The second terminal 1 receives the first link establishment request sent by the first terminal 100, and establishes a second communication link with the first terminal 100 in response to the first link establishment request.
Meanwhile, the first terminal 100 may generate notification information including at least one second terminal feedback information based on the feedback information after receiving the second terminal 1 feedback information, for example, the feedback information may be address information of the second terminal, and the notification information may be understood as an information set including at least one second terminal address information, which is the notification information. The notification information is then sent to the server 110 over the first communication link. The server 110 receives the feedback information through the first communication link, and acquires the address information of the second terminal 1 according to the feedback information. And sending a second link establishment request to the second terminal 1 indicated by the address information. The second terminal 1 receives the second link establishment request sent by the server 110, and responds to the second link establishment request to establish a third communication link with the server 110.
It should be noted that, when the second terminal under the local area network includes a plurality of terminals, each of the second terminals (e.g., the second terminal 2, the second terminal 3.. the second terminal n) is also applicable to the above method for establishing the second communication link with the first terminal 100 and the third communication link with the server 110.
The server 110 may transmit the downlink data to the first terminal 100 based on the first communication link, the second communication link, and the third communication link.
Further, in practical applications, the downlink data may include first data sent by the server 110 through the first communication link, and second data sent by the server 110 and forwarded to the first terminal 100 through the second terminal 1.
Specifically, the server 110 sends first data to the first terminal 100 based on the first communication link, the server 110 sends second data to each second terminal (second terminal 1, second terminal 2.. second terminal n) in the second terminal cluster through each third communication link, and each second terminal (second terminal 1, second terminal 2.. second terminal n) in the second terminal cluster forwards the second data to the first terminal 100 through the second communication link.
The first terminal 100 may transmit uplink data to the server 110 based on the first communication link, the second communication links with the second terminals, and the third communication link between the server and each of the second terminals.
Further, in practical applications, the uplink data may include the third data sent by the first terminal 100 to the server 110 via the first communication link, and the fourth data sent by the first terminal 100 and forwarded to the server via the second terminal (e.g. the second terminal 1, the second terminal 2.. the second terminal n).
Specifically, the first terminal 100 sends third data to the server 110 based on the first communication link, the first terminal 100 sends fourth data to each second terminal (second terminal 1, second terminal 2.. second terminal n) in the second terminal cluster through each second communication link, and each second terminal (second terminal 1, second terminal 2.. second terminal n) in the second terminal cluster forwards the fourth data to the server 110 through the third communication link.
In the embodiment of the application, after establishing a first communication link with a server, a first terminal detects at least one second terminal under a current local area network, establishes a second communication link with the second terminal, and notifies the server of establishing a third communication link with the second terminal. The first terminal may receive downlink data sent by the server based on the created first communication link, the created second communication link, and the created third communication link in a multi-communication link manner. When the communication condition of the communication link is not good, the problem of high time delay when the data is received based on the communication link between the first terminal and the server is solved, the time delay of data receiving is reduced, and the load of the communication link between the first terminal and the server can be reduced based on a multi-communication link mode; meanwhile, the first terminal can also send uplink data to the server based on the created first communication link, the created second communication link and the created third communication link, and can quickly transmit the data to the server, so that the real-time performance and reliability of data transmission are guaranteed.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Please refer to fig. 7, which shows a schematic structural diagram of a data transmission control apparatus according to an exemplary embodiment of the present application. The data transmission control means may be implemented as all or part of the apparatus by software, hardware or a combination of both. The device 1 comprises a second terminal detection module 11, a communication link establishment module 12 and a downlink data receiving module 13.
The second terminal detection module 11 is configured to establish a first communication link with a server, and detect at least one second terminal in a current local area network;
a communication link establishing module 12, configured to establish a second communication link with the second terminal, and notify the server of establishing a third communication link with the second terminal;
a downlink data receiving module 13, configured to receive downlink data sent by the server based on the first communication link, the second communication link, and the third communication link.
Optionally, the downlink data includes first data and second data, and the downlink data receiving module 13 is specifically configured to:
and receiving the first data sent by the server based on the first communication link and receiving the second data sent by the second terminal through the second communication link, wherein the second data is sent to the second terminal by the server based on the third communication link.
Optionally, as shown in fig. 8, the second terminal detecting module 11 includes:
a control instruction receiving unit 111, configured to receive a control instruction sent by the server through the first communication link, and send detection information to at least one second terminal in the current local area network;
a feedback information receiving unit 112, configured to receive feedback information sent by the second terminal according to the detection information.
Optionally, as shown in fig. 8, the second terminal detecting module 11 includes:
a communication link detection unit 113, configured to determine a communication link state of the first communication link, and send detection information to at least one second terminal in the current local area network according to the communication link state;
the feedback information receiving unit 112 is further configured to receive feedback information sent by the second terminal according to the detection information.
Optionally, as shown in fig. 9, the communication link detecting unit 113 includes:
a communication quality determining subunit 1131, configured to obtain at least one communication parameter of the first communication link, and determine a communication quality according to the communication parameter;
a communication load status subunit 1132, configured to determine, when the communication quality meets a preset condition, that a communication link status of the first communication link is a communication load status;
a detection information sending subunit 1133, configured to send detection information to at least one second terminal in the current local area network according to the communication load state.
Optionally, as shown in fig. 10, the communication link establishing module 12 includes:
a link establishment request sending unit 121, configured to obtain address information of the second terminal from the feedback information sent by the second terminal, and send a first link establishment request to the second terminal according to the address information, where the first link establishment request is used to establish a second communication link with the second terminal.
A notification information sending unit 122, configured to send, based on the feedback information, notification information to the server, where the notification information is used to request the server to establish the third communication link with the second terminal.
Optionally, the communication link detecting unit 113 is specifically configured to:
receiving a detection instruction sent by the server through the first link, and determining the communication link state of the first communication link; feeding back the communication link status to the server over the first communication link.
Optionally, as shown in fig. 11, the apparatus 1 includes:
an uplink data sending module 14, configured to send uplink data to the server based on the first communication link, the second communication link with the second terminal, and a third communication link between the server and the second terminal.
Optionally, the uplink data includes third data and fourth data, and the uplink data sending module 14 is specifically configured to:
sending the third data to the server based on the first communication link, and sending the fourth data over the second communication link with the second terminal, the fourth data being sent by the second terminal to the server based on the third communication link.
It should be noted that, when the data transmission control apparatus provided in the foregoing embodiment executes the data transmission control method, only the division of the functional modules is illustrated, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the above described functions. In addition, the data transmission control device and the data transmission control method provided by the above embodiments belong to the same concept, and details of implementation processes thereof are referred to in the method embodiments and are not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In this embodiment, after establishing a first communication link with a server, a first terminal detects at least one second terminal in a current local area network, establishes a second communication link with the second terminal, and notifies the server of establishing a third communication link with the second terminal. The first terminal may receive downlink data sent by the server based on the created first communication link, the created second communication link, and the created third communication link in a multi-communication link manner. When the communication condition of the communication link is not good, the problem of high time delay when the data is received based on the communication link between the first terminal and the server is solved, the time delay of data receiving is reduced, and the load of the communication link between the first terminal and the server can be reduced based on a multi-communication link mode; meanwhile, the first terminal can also send uplink data to the server based on the created first communication link, the created second communication link and the created third communication link, and can quickly transmit the data to the server, so that the real-time performance and reliability of data transmission are guaranteed.
Please refer to fig. 12, which shows a schematic structural diagram of a data transmission control apparatus according to an exemplary embodiment of the present application. The data transmission control means may be implemented as all or part of the apparatus by software, hardware or a combination of both. The apparatus 2 comprises a communication link establishing module 21 and a second data receiving module 22.
A communication link establishing module 21, configured to establish a second communication link with a first terminal in a current local area network, and establish a third communication link with a server;
the second data receiving module 22 is configured to receive second data in downlink data sent by the server, and send the second data to the first terminal, where the downlink data includes first data and the second data sent by the server through a first communication link, and the first communication link is a communication link between the first terminal and the server.
Optionally, as shown in fig. 14, the apparatus 2 includes:
the detection information receiving module 23 is configured to receive detection information sent by a first terminal in a current local area network, and send feedback information to the first terminal in response to the detection information.
Optionally, the feedback information includes address information of the second terminal, and the detection information receiving module 13 is specifically configured to:
and receiving a first link establishment request sent by the first terminal according to the address information under the current local area network, and establishing the second communication link with the first terminal.
Optionally, as shown in fig. 13, the communication link establishing module 21 includes:
a second request sending unit 211, configured to receive a second link establishment request sent by a server, and establish a third communication link with the server;
a third request sending unit 212, configured to send a third link establishment request to the server, where the third link establishment request is used to request the server to establish the third communication link with the second terminal.
Optionally, as shown in fig. 14, the apparatus 2 includes:
and an uplink data sending module 24, configured to receive fourth data in the uplink data sent by the first terminal, and send the fourth data to the server through the second communication link, where the uplink data includes third data and the fourth data sent by the first terminal through the first communication link.
It should be noted that, when the data transmission control apparatus provided in the foregoing embodiment executes the data transmission control method, only the division of the functional modules is illustrated, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the above described functions. In addition, the data transmission control device and the data transmission control method provided by the above embodiments belong to the same concept, and details of implementation processes thereof are referred to in the method embodiments and are not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In this embodiment, a second terminal receives detection information sent by a first terminal in a current local area network, sends feedback information to the first terminal in response to the detection information, establishes a second communication link with the first terminal in the current local area network, establishes a third communication link with a server, receives second data in downlink data sent by the server, sends the second data to the first terminal, receives fourth data in the uplink data sent by the first terminal, and sends the fourth data to the server through the second communication link. When the communication condition of the communication link is not good, the first terminal is assisted to receive or send data in the communication link, specifically, second data in received downlink data is forwarded to the first terminal, fourth data in received uplink data is forwarded to the server, and the problem that time delay is high when the first terminal receives data based on the communication link between the first terminal and the server can be solved, so that the time delay of data receiving is reduced by the first terminal, and meanwhile, the load of the communication link between the first terminal and the server can be reduced based on a multi-communication-link mode; and the fourth data of the data can be quickly forwarded to the server in the uplink of the first terminal, and the second data in the downlink data can be forwarded to the first terminal, so that the real-time performance and the reliability of data transmission are guaranteed.
An embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the data transmission control method according to the embodiments shown in fig. 1 to 6, and a specific execution process may refer to specific descriptions of the embodiments shown in fig. 1 to 6, which is not described herein again.
The present application further provides a computer program product, where at least one instruction is stored in the computer program product, and the at least one instruction is loaded by the processor and executes the data transmission control method according to the embodiment shown in fig. 1 to 6, where a specific execution process may refer to specific descriptions of the embodiment shown in fig. 1 to 6, and is not described herein again.
Fig. 15 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 15, the electronic device 1000 may include: at least one processor 1001, at least one network interface 1004, a user interface 1003, memory 1005, at least one communication bus 1002.
Wherein a communication bus 1002 is used to enable connective communication between these components.
The user interface 1003 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Processor 1001 may include one or more processing cores, among other things. The processor 1001 connects various parts throughout the server 1000 using various interfaces and lines, and performs various functions of the server 1000 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1005, and calling data stored in the memory 1005. Alternatively, the processor 1001 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 1001 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 1001, but may be implemented by a single chip.
The Memory 1005 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer-readable medium. The memory 1005 may be used to store an instruction, a program, code, a set of codes, or a set of instructions. The memory 1005 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 15, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a data transmission control application program.
In the electronic device 1000 shown in fig. 15, the user interface 1003 is mainly used as an interface for providing input for a user, and acquiring data input by the user; and the processor 1001 may be configured to invoke the data transfer control application stored in the memory 1005 and specifically perform the following operations:
establishing a first communication link with a server, and detecting at least one second terminal under the current local area network;
establishing a second communication link with the second terminal, and informing the server of establishing a third communication link with the second terminal;
and receiving downlink data sent by the server based on the first communication link, the second communication link and the third communication link.
In an embodiment, the downlink data includes first data and second data, and when the processor 1001 executes the receiving of the downlink data sent by the server based on the first communication link, the second communication link, and the third communication link, the following operations are specifically executed:
and receiving the first data sent by the server based on the first communication link and receiving the second data sent by the second terminal through the second communication link, wherein the second data is sent to the second terminal by the server based on the third communication link.
In an embodiment, when the processor 1001 performs the detecting of the at least one second terminal in the current local area network, the following operation is specifically performed:
receiving a control instruction sent by the server through the first communication link, and sending detection information to at least one second terminal under the current local area network;
and receiving feedback information sent by the second terminal according to the detection information.
In an embodiment, when the processor 1001 performs the detecting of the at least one second terminal in the current local area network, the following operation is specifically performed:
determining the communication link state of the first communication link, and sending detection information to at least one second terminal under the current local area network according to the communication link state;
and receiving feedback information sent by the second terminal according to the detection information.
In an embodiment, when the determining of the communication link state of the first communication link and the sending of the detection information to the at least one second terminal in the current local area network according to the communication link state are performed, the processor 1001 specifically performs the following operations:
acquiring at least one communication parameter of the first communication link, and determining communication quality according to the communication parameter;
when the communication quality meets a preset condition, determining that the communication link state of the first communication link is a communication load state;
and sending the detection information to at least one second terminal under the current local area network according to the communication load state.
In an embodiment, when the notifying that the third communication link is established between the server and the second terminal is executed, the processor 1001 specifically performs the following operations:
based on the feedback information, sending notification information to the server, where the notification information is used to request the server to establish the third communication link with the second terminal.
In an embodiment, when the processor 1001 performs the establishing of the second communication link with the second terminal, specifically, the following operations are performed:
and acquiring address information of the second terminal from feedback information sent by the second terminal, and sending a first link establishment request to the second terminal according to the address information, wherein the first link establishment request is used for establishing a second communication link with the second terminal.
In an embodiment, when performing the determining of the communication link status of the first communication link, the processor 1001 specifically performs the following operations:
receiving a detection instruction sent by the server through the first communication link, and determining the communication link state of the first communication link based on the detection instruction;
feeding back the communication link status to the server over the first communication link.
In an embodiment, when executing the data transmission control method, the processor 1001 specifically performs the following operations:
sending uplink data to the server based on the first communication link, the second communication link with the second terminal, and a third communication link between the server and the second terminal.
In one embodiment, the uplink data includes third data and fourth data, and when the processor 1001 executes the sending of the uplink data to the server based on the first communication link, the second communication link with the second terminal, and the third communication link between the server and the second terminal, specifically:
sending the third data to the server based on the first communication link, and sending the fourth data over the second communication link with the second terminal, the fourth data being sent by the second terminal to the server based on the third communication link.
In this embodiment, after establishing a first communication link with a server, a first terminal detects at least one second terminal in a current local area network, establishes a second communication link with the second terminal, and notifies the server of establishing a third communication link with the second terminal. The first terminal may receive downlink data sent by the server based on the created first communication link, the created second communication link, and the created third communication link in a multi-communication link manner. When the communication condition of the communication link is not good, the problem of high time delay when the data is received based on the communication link between the first terminal and the server is solved, the time delay of data receiving is reduced, and the load of the communication link between the first terminal and the server can be reduced based on a multi-communication link mode; meanwhile, the first terminal can also send uplink data to the server based on the created first communication link, the created second communication link and the created third communication link, and can quickly transmit the data to the server, so that the real-time performance and reliability of data transmission are guaranteed.
Referring to fig. 16, a schematic structural diagram of another electronic device is provided in the embodiment of the present application. As shown in fig. 16, the electronic device 2000 may include: at least one processor 2001, at least one network interface 2004, a user interface 2003, memory 2005, at least one communication bus 2002.
The communication bus 2002 is used to implement connection communication between these components.
The user interface 2003 may include a Display screen (Display), and the optional user interface 2003 may also include a standard wired interface or a wireless interface.
The network interface 2004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Processor 2001 may include one or more processing cores, among other things. The processor 2001 connects the various parts within the overall server 2000 using various interfaces and lines, and performs various functions of the server 2000 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 2005 and calling data stored in the memory 2005. Optionally, the processor 2001 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 2001 may integrate one or a combination of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 2001, but may be implemented by a single chip.
The Memory 2005 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 2005 includes a non-transitory computer-readable medium. The memory 2005 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 1005 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 2005 may optionally also be at least one memory device located remotely from the aforementioned processor 2001. As shown in fig. 16, the memory 2005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a data transmission control application program.
In the electronic device 2000 shown in fig. 16, the user interface 2003 is mainly used as an interface for providing input for a user, and acquiring data input by the user; and the processor 2001 may be configured to invoke the data transfer control application stored in the memory 2005 and specifically perform the following operations:
establishing a second communication link with a first terminal under the current local area network and establishing a third communication link with a server;
receiving second data in downlink data sent by the server, and sending the second data to the first terminal, wherein the downlink data comprises first data sent by the server through a first communication link and the second data, and the first communication link is a communication link between the first terminal and the server.
In one embodiment, the processor 2001 further performs the following operation before performing the establishing of the second communication link with the first terminal under the current local area network:
receiving detection information sent by a first terminal under the current local area network, and responding to the detection information to send feedback information to the first terminal.
In an embodiment, when the processor 2001 executes that the feedback information includes address information of the second terminal, and the second communication link with the first terminal under the current local area network is established, the following operations are specifically performed:
and receiving a first link establishment request sent by the first terminal according to the address information under the current local area network, and establishing the second communication link with the first terminal.
In one embodiment, the processor 2001 specifically performs the following operations when performing the establishing of the third communication link with the server:
receiving a second link establishment request sent by a server, and establishing the third communication link with the server; or the like, or, alternatively,
and sending a third link establishment request to the server, wherein the third link establishment request is used for the server to establish the third communication link with the second terminal.
In one embodiment, the processor 2001 specifically performs the following operations when executing the data transmission control method:
and receiving fourth data in uplink data sent by the first terminal, and sending the fourth data to the server through the second communication link, wherein the uplink data comprises third data and the fourth data sent by the first terminal through the first communication link.
In the embodiment of the application, a second terminal receives detection information sent by a first terminal under a current local area network, responds to the detection information to send feedback information to the first terminal, establishes a second communication link between the second terminal and the first terminal under the current local area network, establishes a third communication link between the third terminal and a server, receives second data in downlink data sent by the server, sends the second data to the first terminal, receives and receives fourth data in uplink data sent by the first terminal, and sends the fourth data to the server through the second communication link. When the communication condition of the communication link is not good, the first terminal is assisted to receive or send data in the communication link, specifically, second data in received downlink data is forwarded to the first terminal, fourth data in received uplink data is forwarded to the server, and the problem that time delay is high when the first terminal receives data based on the communication link between the first terminal and the server can be solved, so that the time delay of data receiving is reduced by the first terminal, and meanwhile, the load of the communication link between the first terminal and the server can be reduced based on a multi-communication-link mode; and the fourth data of the data can be quickly forwarded to the server in the uplink of the first terminal, and the second data in the downlink data can be forwarded to the first terminal, so that the real-time performance and the reliability of data transmission are guaranteed.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory or a random access memory.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (17)

1. A data transmission control method, characterized in that the method comprises:
establishing a first communication link with a server, and detecting at least one second terminal under the current local area network;
establishing a second communication link with the second terminal, and informing the server of establishing a third communication link with the second terminal;
and receiving downlink data sent by the server based on the first communication link, the second communication link and the third communication link.
2. The method of claim 1, wherein the downlink data comprises first data and second data, and the receiving the downlink data sent by the server based on the first communication link, the second communication link, and the third communication link comprises:
and receiving the first data sent by the server based on the first communication link and receiving the second data sent by the second terminal through the second communication link, wherein the second data is sent to the second terminal by the server based on the third communication link.
3. The method of claim 1, wherein the detecting at least one second terminal under the current local area network comprises:
receiving a control instruction sent by the server through the first communication link, and sending detection information to at least one second terminal under the current local area network;
and receiving feedback information sent by the second terminal according to the detection information.
4. The method of claim 1, wherein the detecting at least one second terminal under the current local area network comprises:
determining the communication link state of the first communication link, and sending detection information to at least one second terminal under the current local area network according to the communication link state;
and receiving feedback information sent by the second terminal according to the detection information.
5. The method of claim 4, wherein the determining the communication link status of the first communication link and sending detection information to at least one second terminal in the current local area network according to the communication link status comprises:
acquiring at least one communication parameter of the first communication link, and determining communication quality according to the communication parameter;
when the communication quality meets a preset condition, determining that the communication link state of the first communication link is a communication load state;
and sending the detection information to at least one second terminal under the current local area network according to the communication load state.
6. The method according to claim 3 or 4, wherein said notifying the establishment of the third communication link between the server and the second terminal comprises:
based on the feedback information, sending notification information to the server, where the notification information is used to request the server to establish the third communication link with the second terminal.
7. The method according to claim 3 or 4, wherein the establishing the second communication link with the second terminal comprises:
and acquiring address information of the second terminal from feedback information sent by the second terminal, and sending a first link establishment request to the second terminal according to the address information, wherein the first link establishment request is used for establishing a second communication link with the second terminal.
8. The method of claim 4, wherein the determining the communication link status of the first communication link comprises:
receiving a detection instruction sent by the server through the first communication link, and determining the communication link state of the first communication link based on the detection instruction;
feeding back the communication link status to the server over the first communication link.
9. The method of claim 1, further comprising:
sending uplink data to the server based on the first communication link, the second communication link with the second terminal, and a third communication link between the server and the second terminal.
10. The method of claim 9, wherein the uplink data comprises third data and fourth data, and wherein the sending uplink data to the server based on the first communication link, the second communication link with the second terminal, and a third communication link between the server and the second terminal comprises:
sending the third data to the server based on the first communication link, and sending the fourth data over the second communication link with the second terminal, the fourth data being sent by the second terminal to the server based on the third communication link.
11. A data transmission control method, characterized in that the method comprises:
establishing a second communication link with a first terminal under the current local area network and establishing a third communication link with a server;
receiving second data in downlink data sent by the server, and sending the second data to the first terminal, wherein the downlink data comprises first data sent by the server through a first communication link and the second data, and the first communication link is a communication link between the first terminal and the server.
12. The method of claim 11, wherein before establishing the second communication link with the first terminal under the current lan, further comprising:
receiving detection information sent by a first terminal under the current local area network, and responding to the detection information to send feedback information to the first terminal.
13. The method of claim 12, wherein the feedback information comprises address information of the second terminal; and
the establishing of the second communication link with the first terminal under the current local area network comprises the following steps: and receiving a first link establishment request sent by the first terminal according to the address information under the current local area network, and establishing the second communication link with the first terminal.
14. The method of claim 11, wherein establishing the third communication link with the server comprises:
receiving a second link establishment request sent by a server, and establishing the third communication link with the server; or the like, or, alternatively,
and sending a third link establishment request to the server, wherein the third link establishment request is used for requesting the server to establish the third communication link with the second terminal.
15. The method of claim 11, further comprising:
and receiving fourth data in uplink data sent by the first terminal, and sending the fourth data to the server through the second communication link, wherein the uplink data comprises third data and the fourth data sent by the first terminal through the first communication link.
16. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to perform the method steps according to any of claims 1 to 10, 11 to 15.
17. An electronic device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1-10, 11-15.
CN202010256582.5A 2020-04-02 2020-04-02 Data transmission control method and device, storage medium and electronic equipment Pending CN111629452A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010256582.5A CN111629452A (en) 2020-04-02 2020-04-02 Data transmission control method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010256582.5A CN111629452A (en) 2020-04-02 2020-04-02 Data transmission control method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN111629452A true CN111629452A (en) 2020-09-04

Family

ID=72272494

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010256582.5A Pending CN111629452A (en) 2020-04-02 2020-04-02 Data transmission control method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111629452A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112543451A (en) * 2020-11-23 2021-03-23 广州技象科技有限公司 Data jump transmission link management method and device based on signal test
CN113765886A (en) * 2021-08-04 2021-12-07 深圳Tcl新技术有限公司 Multimedia playing method, device, storage medium and electronic equipment
CN114039811A (en) * 2021-10-18 2022-02-11 南京邮电大学 Fast communication method in local area network
CN114363706A (en) * 2022-01-28 2022-04-15 北京百度网讯科技有限公司 Video data processing method, device, apparatus and storage medium
CN114449492A (en) * 2020-11-04 2022-05-06 荣耀终端有限公司 Data transmission method and terminal equipment
CN117042078A (en) * 2023-10-08 2023-11-10 国网信息通信产业集团有限公司 Communication link configuration method and system based on wireless routing strategy
WO2023231923A1 (en) * 2022-05-31 2023-12-07 华为技术有限公司 Compensation communication method and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103209462A (en) * 2013-03-12 2013-07-17 深圳创维数字技术股份有限公司 Mobile communication method, mobile communication server and mobile communication system
WO2014014855A1 (en) * 2012-07-17 2014-01-23 Microsoft Corporation Image identification and organisation according to a layout without user|intervention
CN103685176A (en) * 2012-09-11 2014-03-26 联想(北京)有限公司 Terminal equipment, equipment management server and connection establishment method
US20140115101A1 (en) * 2011-03-08 2014-04-24 Gambro Lundia Ab Method, control module, apparatus and system for transferring data
CN108093459A (en) * 2017-12-29 2018-05-29 上海京颐科技股份有限公司 The data transmission method and device of medical terminal, storage medium, terminal
CN108462729A (en) * 2017-02-17 2018-08-28 北京三星通信技术研究有限公司 Realize method and apparatus, terminal device and the server of terminal device interaction
CN109039928A (en) * 2017-06-09 2018-12-18 华为技术有限公司 Transmission method, device and the Wireless Fidelity router of data
EP3528219A1 (en) * 2018-02-14 2019-08-21 Arb Labs Inc. Systems, methods and devices for monitoring betting activities
CN110545539A (en) * 2019-08-31 2019-12-06 深圳市赛宇景观设计工程有限公司 Self-adaptive link establishment method and system based on big data

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140115101A1 (en) * 2011-03-08 2014-04-24 Gambro Lundia Ab Method, control module, apparatus and system for transferring data
WO2014014855A1 (en) * 2012-07-17 2014-01-23 Microsoft Corporation Image identification and organisation according to a layout without user|intervention
CN103685176A (en) * 2012-09-11 2014-03-26 联想(北京)有限公司 Terminal equipment, equipment management server and connection establishment method
CN103209462A (en) * 2013-03-12 2013-07-17 深圳创维数字技术股份有限公司 Mobile communication method, mobile communication server and mobile communication system
CN108462729A (en) * 2017-02-17 2018-08-28 北京三星通信技术研究有限公司 Realize method and apparatus, terminal device and the server of terminal device interaction
CN109039928A (en) * 2017-06-09 2018-12-18 华为技术有限公司 Transmission method, device and the Wireless Fidelity router of data
CN108093459A (en) * 2017-12-29 2018-05-29 上海京颐科技股份有限公司 The data transmission method and device of medical terminal, storage medium, terminal
EP3528219A1 (en) * 2018-02-14 2019-08-21 Arb Labs Inc. Systems, methods and devices for monitoring betting activities
CN110545539A (en) * 2019-08-31 2019-12-06 深圳市赛宇景观设计工程有限公司 Self-adaptive link establishment method and system based on big data

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114449492A (en) * 2020-11-04 2022-05-06 荣耀终端有限公司 Data transmission method and terminal equipment
CN114449492B (en) * 2020-11-04 2023-01-06 荣耀终端有限公司 Data transmission method and terminal equipment
CN112543451A (en) * 2020-11-23 2021-03-23 广州技象科技有限公司 Data jump transmission link management method and device based on signal test
CN113765886A (en) * 2021-08-04 2021-12-07 深圳Tcl新技术有限公司 Multimedia playing method, device, storage medium and electronic equipment
CN114039811A (en) * 2021-10-18 2022-02-11 南京邮电大学 Fast communication method in local area network
CN114363706A (en) * 2022-01-28 2022-04-15 北京百度网讯科技有限公司 Video data processing method, device, apparatus and storage medium
WO2023231923A1 (en) * 2022-05-31 2023-12-07 华为技术有限公司 Compensation communication method and system
CN117042078A (en) * 2023-10-08 2023-11-10 国网信息通信产业集团有限公司 Communication link configuration method and system based on wireless routing strategy
CN117042078B (en) * 2023-10-08 2024-01-09 国网信息通信产业集团有限公司 Communication link configuration method and system based on wireless routing strategy

Similar Documents

Publication Publication Date Title
CN111629452A (en) Data transmission control method and device, storage medium and electronic equipment
CN111629024A (en) Data transmission control method and device, storage medium and electronic equipment
US10392823B2 (en) Synthetic client
CN110417915B (en) Push message transmission method and device, storage medium and electronic equipment
CN109819476B (en) Network optimization method, terminal and storage medium
RU2533291C2 (en) Method, apparatus and system for executing multimedia service in wireless local area network
US9319852B2 (en) Interoperability and communications system dynamic media proxy based on capability negotiation
CN106210598B (en) Video call method, device and system
US20160043924A1 (en) System and method for monitoring user activity on a plurality of networked computing devices
CN108391298A (en) A kind of system and electronic equipment of network automatic switchover
JP2015534677A (en) Instant messaging method, terminal, server and system
CN103391240B (en) Instant messaging achieving method and device
US20220171011A1 (en) Positioning method and device, server, storage medium and terminal
CN105122879A (en) Observation assisted bandwidth management
US11665531B2 (en) End to end troubleshooting of mobility services
EP3997853A1 (en) Reinforcement learning in real-time communications
WO2016192578A1 (en) Wireless communication method and device
CN103763206A (en) Network scheduling method and gateway
CN113179509B (en) Ad hoc network method and device based on WiFi, storage medium and wireless node
CN112351070A (en) File transmission method and device, storage medium and electronic equipment
CN103002031B (en) A kind of method and system controlling to access wireless routing device
CN106161044B (en) A kind of information transferring method and device
US9509586B2 (en) Synthetic client
CN109413385A (en) A kind of video location monitoring method, system and Cloud Server
CN115842734B (en) Network management method, controller and SDN network

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200904