CN109067571B - Electronic device, network configuration method thereof and storage medium - Google Patents

Electronic device, network configuration method thereof and storage medium Download PDF

Info

Publication number
CN109067571B
CN109067571B CN201810820767.7A CN201810820767A CN109067571B CN 109067571 B CN109067571 B CN 109067571B CN 201810820767 A CN201810820767 A CN 201810820767A CN 109067571 B CN109067571 B CN 109067571B
Authority
CN
China
Prior art keywords
server
electronic device
network
communication delay
network link
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810820767.7A
Other languages
Chinese (zh)
Other versions
CN109067571A (en
Inventor
候祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810820767.7A priority Critical patent/CN109067571B/en
Publication of CN109067571A publication Critical patent/CN109067571A/en
Application granted granted Critical
Publication of CN109067571B publication Critical patent/CN109067571B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity

Abstract

The application discloses a network configuration method of an electronic device, which comprises the following steps: after monitoring a network communication request sent by an application program to a corresponding server, executing a connectivity test with a preset server to obtain a communication delay value of the electronic device and the preset server; judging whether the communication delay value is larger than a set value or not; and if so, the first network link is combined with the second network link to carry out data transmission with the server. The application also discloses an electronic device and a storage medium. By means of the mode, the data transmission can be carried out by using the two network links simultaneously, and the accuracy of triggering simultaneous transmission can be guaranteed.

Description

Electronic device, network configuration method thereof and storage medium
Technical Field
The present invention relates to the field of electronic device technologies, and in particular, to an electronic device, a network configuration method thereof, and a storage medium.
Background
At present, with the continuous development of science and technology, electronic devices such as smart phones and the like are gradually becoming necessities of daily life of people.
In order to meet the internet access requirement of a user, the electronic device can access the network through WIFI or data traffic. When the WIFI is used alone for network access, sometimes the WIFI signal strength is weak, so that the time delay is large when the WIFI is used for network access. When data traffic is used alone for network access, high cost is often generated, and economic loss is caused to users.
Disclosure of Invention
The embodiment of the application adopts a technical scheme that: provided is a network configuration method of an electronic device, the method including: after monitoring a network communication request sent by an application program to a corresponding server, executing a connectivity test with a preset server to obtain a communication delay value of the electronic device and the preset server; judging whether the communication delay value is larger than a set value or not; and if so, the first network link is combined with the second network link to carry out data transmission with the server.
Another technical scheme adopted by the embodiment of the application is as follows: the electronic device comprises a monitoring and testing module, a delay module and a processing module, wherein the monitoring and testing module is used for executing a connectivity test with a preset server to acquire a communication delay value of the electronic device and the preset server after monitoring a network communication request sent by an application program to a corresponding server; the judging module is used for judging whether the communication delay value is larger than a set value or not; and the execution module is used for carrying out data transmission with the server by using the first network link and combining the second network link when the communication delay value is greater than the set value.
The embodiment of the application adopts another technical scheme that: there is provided an electronic device comprising a processor and a memory electrically connected to the processor, the memory for storing a computer program, the processor being adapted to execute the computer program to implement the method as described above.
The embodiment of the application adopts another technical scheme that: there is provided a computer readable storage medium storing a computer program executable to implement the above-described method.
According to the method and the device, after the network communication request sent by the application program to the corresponding server is monitored, the connectivity test with the preset server is executed to obtain the communication delay value of the electronic device and the preset server; judging whether the communication delay value is larger than a set value or not; if the data transmission with the server is carried out by combining the first network link and the second network link, the data transmission can be carried out by using the two network links simultaneously, and the accuracy of triggering the simultaneous transmission can be ensured.
Drawings
Fig. 1 is a schematic flowchart of a network configuration method of an electronic device according to a first embodiment of the present application;
fig. 2 is a schematic view of a topology of a WIFI network link and a mobile internet network link;
FIG. 3 is a schematic flow chart illustrating a process for testing connectivity between an electronic device and a predetermined server according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of the testing principle of FIG. 3;
FIG. 5 is a schematic flow chart illustrating another exemplary method for testing connectivity between an electronic device and a predetermined server according to the present disclosure;
fig. 6 is a flowchart illustrating a network configuration method of an electronic device according to a second embodiment of the present application;
fig. 7 is a flowchart illustrating a network configuration method of an electronic device according to a third embodiment of the present application;
FIG. 8 is a block diagram of an electronic device according to an embodiment of the present application;
fig. 9 is a schematic diagram of a hardware structure 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. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures. 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.
The terms "first", "second", etc. in this application are used to distinguish between different objects and not to describe a particular order. Furthermore, the terms "include" and "have," as well as 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.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Electronic devices can typically access the network through WIFI or data traffic (mobile internet, e.g. 2G, 3G, 4G, 5G networks). When the WIFI is used alone for network access, sometimes the WIFI signal strength is weak, so that the time delay is large when the WIFI is used for network access. When data traffic is used alone for network access, high cost is often generated, and economic loss is caused to users.
In order to solve the above problem, SLA (Smart Link aggregation) is adopted, so that the electronic device can use two or more network interfaces to surf the internet at the same time. For example, a WIFI interface (WIFI network link) and a data traffic interface (mobile internet network link) are used for network access on an electronic device through link aggregation, and traffic distribution in multiple paths of internet access is controlled and managed through a certain algorithm, so that users can surf the internet smoothly.
It can be understood that the electronic device may support wired network connection, and the network interface may also be an ethernet network interface, and may implement internet access by using a WIFI interface, a data traffic interface, and an ethernet network interface while performing link aggregation.
When an application supporting the SLA function is running, it is determined whether to open the SLA function according to a situation where the application accesses a corresponding server (corresponding to the application, provided by a service provider of the application). For example, whether the current WIFI meets the internet surfing requirement is judged according to the time delay of the application program when the application program is connected with the WIFI to access the corresponding server, if the time delay exceeds a certain value, the possibility that internet surfing is not smooth enough is considered, at the moment, an SLA function is triggered to be opened, data flow is opened, and the proportion of the WIFI and various data volumes of the data flow is distributed according to a certain algorithm.
The above method for triggering the SLA function has a problem, when access to a certain server is prohibited in a certain WIFI, the SLA function may be triggered without being reasonably controlled, for example, in order to prohibit an employee from chatting with the QQ during work to ensure work efficiency, a public WIFI hotspot of a certain company is set as a server that prohibits access to vacation (a service provider of the QQ), when a user uses an application program (such as a browser) supporting the SLA function, the user cannot access the vacation server but can access other servers, if the user only accesses the vacation server currently, and if no response is obtained, a condition for triggering the SLA function is met, but at this time, a network is very good, and it is not caused by weak WIFI signals, and traffic is consumed instead by opening the SLA function. Or, when there is WIFI that can access the internet but the network delay exceeds a certain value, it is effective, and a problem may also occur, for example, the current WIFI network is poor, and a condition of opening the SLA function is reached, but since only the Tencent server is accessed, it is determined that the internet cannot be accessed because the Tencent server cannot be accessed, and the SLA function is triggered, which results in unnecessary traffic waste and poor experience.
In order to solve the problem, in the embodiment of the present application, when an application program requests communication with a corresponding server, a connectivity test is performed between a system bottom configuration of an electronic device and a predetermined server, and a current network environment of the electronic device is determined according to a network delay obtained by the test to determine whether to trigger an SLA function. See in particular the description of the examples below.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a network configuration method of an electronic device according to a first embodiment of the present application.
In this embodiment, the network configuration method of the electronic device may include the steps of:
step 101: it is determined whether the electronic device is only using the first network link for network connection.
The first network link may be a WIFI (Wireless Fidelity) network link.
In step 101, if the determination result is yes, step 102 is executed.
In step 101, if the determination result is no, the step 101 is executed to continue the determination.
Step 102: and judging whether a network communication request sent by the application program to the corresponding server is monitored.
Each application program needing to be networked has a corresponding server provided by a service provider to ensure the normal use of the application program. For example, for an arcade video, there is a corresponding server to store video resources, web resources, etc.
Whenever an application wants to access a network, the application sends a communication request to the corresponding server, monitoring for such an action of issuing a communication request.
In step 102, if yes, step 103 is performed.
If not, the process returns to step 101 to continue the determination in step 102.
Step 103: and judging whether the intelligent link aggregation functions of the first network link, the second network link and the application program are all started.
Alternatively, the second network link may be a mobile internet network link. The mobile internet refers to a network using data traffic, such as 2G, 3G, 4G, and 5G.
Referring to fig. 2, fig. 2 is a schematic diagram of a topology of a WIFI network link and a mobile internet network link.
The WIFI interface refers to a software module and a hardware module which are used for realizing a WIFI function in the electronic device. The data traffic interface refers to a software module and a hardware module in the electronic device for implementing the data traffic function. The Access Point (AP) refers to a wireless hotspot, that is, a relay device of which the WIFI interface accesses the internet. A Base Station (BS) is a relay device for accessing a data traffic interface to the internet.
The first network link is a network link from the WIFI interface to the wireless AP to the internet.
The second network link is a network link from the data traffic interface to the base station to the internet.
Judging whether the WIFI network link is turned on refers to judging whether the electronic device has turned on the WIFI function, that is, whether the WIFI interface of the electronic device is turned on.
Judging whether the mobile internet network link is opened refers to judging whether the electronic device has opened a function of data traffic, that is, whether a data traffic interface of the electronic device is opened.
Judging whether the application program starts the intelligent link aggregation function means whether the application program supports the intelligent link aggregation function. Or, the method refers to whether an application supports an intelligent link aggregation function, and whether the function is started, that is, whether to trigger aggregation of two network links by judging in a subsequent process is allowed.
The user may configure each application in advance, and the intelligent aggregation function of each application may be configured in two states, for example, "yes" or "no". If the state of a certain application program is configured to be 'yes', the application program is indicated to start the intelligent link aggregation function. If the state of a certain application program is configured to be 'no', the application program does not start the intelligent link aggregation function.
When the application program starts the intelligent link aggregation function and both the first network link and the second network link are started, step 104 is executed.
And if the intelligent link aggregation function, the first network link and the second network link are not all started, returning to the step 101 to continue judging.
Step 104: and carrying out connectivity test with a preset server to acquire a communication delay value of the electronic device and the preset server.
The predetermined server may be a server for which it has been determined that the connection is stable at present, and the communication delay value between the electronic device and the predetermined server is not excessively high due to a failure of the server. The predetermined server may be a server of a large internet enterprise, or a server set by a manufacturer of the electronic device.
As shown in fig. 2, the network link from the wireless AP to the internet to the predetermined server is clear and the wireless AP does not intercept or otherwise restrict the predetermined server. When the electronic device performs a connectivity test with a predetermined server, the test result mainly reflects the connectivity between the WIFI interface and the wireless AP. The test result reflects the influence of the WIFI signal strength of the wireless AP.
Referring to fig. 3 and fig. 4 in further combination, fig. 3 is a schematic flowchart illustrating a process of testing connectivity between an electronic device and a predetermined server according to an embodiment of the present disclosure, and fig. 4 is a schematic diagram illustrating a testing principle in fig. 3.
Step 104 may specifically include the following steps:
step 1041: and sending the test message to a preset server, and recording the sending time point of the test message in the test message.
The electronic device sends a section of test message to a preset server and records the sending time point of the test message in the test message.
Step 1042: and receiving a test message returned by a preset server, calculating a difference value between the receiving time point and the sending time point according to the receiving time point of the test message and the sending time point recorded in the test message, and taking the difference value as a communication delay value.
The electronic device receives a test message returned by a preset server, analyzes a sending time point from the test message, and then calculates a difference value between the receiving time point and the sending time point of the test message, wherein the difference value is a communication delay value.
Step 105: and judging whether the communication delay value is larger than a set value or not.
If the determination result in step 105 is yes, step 106 is executed.
In step 105, if the determination result is negative, step 107 is executed.
The server refers to a server corresponding to the application program, and please refer to the above description.
Step 106: data transmission with the server is performed using the first network link in conjunction with the second network link.
When the detected communication delay value is larger than a set value, the electronic device simultaneously uses the WIFI network link and the mobile internet network link to perform data transmission with the server. The WIFI network link shares one part of transmission flow, and the mobile internet network link shares the other part of transmission flow, so that the flow is saved, the bandwidth of data transmission can be ensured, and the network transmission speed is ensured.
Step 107: a first network link is used for data transmission with the server.
When the detected communication delay value is smaller than or equal to the set value, only the WIFI network link is used for data transmission with the server, the mobile internet network link is avoided, and unnecessary flow consumption is avoided.
In this embodiment, whether to trigger aggregation of network links is determined by testing a communication delay value between the network node and a predetermined server, so that accuracy of triggering link aggregation can be improved, and false triggering of link aggregation can be avoided.
Referring to fig. 5, fig. 5 is a schematic flowchart illustrating another method for testing connectivity between an electronic device and a predetermined server according to an embodiment of the present disclosure.
The specific process of step 104 may also be:
step 104 a: and sending a test message to a preset server, and recording the number of first data packets in the test message when the test message is sent.
When data is sent, the data is sent in a data packet mode, if the test message is divided according to the data packet mode, the test message can comprise a plurality of data packets, the number of the data packets contained in the test message can be determined, and when the test message is sent, the first data packet number at the moment is recorded in the test message.
Step 104 b: and receiving a test message returned by the preset server, recording the quantity of second data packets of the test message when the test message is received, and analyzing the quantity of the first data packets from the test message.
In the method, because data packet loss occurs in the transmission process, the number of the second data packets of the received test message is less than the number of the first data packets during transmission.
Step 104 c: and calculating the packet loss rate according to the second data packet quantity and the first data packet quantity.
Wherein, the packet loss ratio is (the first packet number-the second packet number)/the first packet number.
After that, whether to trigger the aggregation of the network links may be determined according to the size of the packet loss rate. And when the packet loss rate is greater than the set packet loss rate, simultaneously using the WIFI network link and the mobile internet network link to perform data transmission with the server. And when the packet loss rate is less than or equal to the set packet loss rate, only using the WIFI network link to perform data transmission with the server.
It should be understood that the network connectivity parameters of the connectivity test may be other parameters capable of reflecting the network connectivity, and the embodiments of the present application are not necessarily listed.
In other embodiments, the electronic device may also perform connectivity tests with a plurality of predetermined servers at different addresses, and then decide whether to trigger aggregation of network links according to the test results. See in particular the description below.
Referring to fig. 6, fig. 6 is a flowchart illustrating a network configuration method of an electronic device according to a second embodiment of the present application.
In this embodiment, the network configuration method of the electronic device may include the steps of:
step 201: it is determined whether the electronic device is only using the first network link for network connection.
The first network link may be a WIFI (Wireless Fidelity) network link.
In step 201, if the determination result is yes, step 202 is executed.
In step 201, if the determination result is no, the step 201 is executed to continue the determination.
Step 202: and judging whether a network communication request sent by the application program to the corresponding server is monitored.
In step 202, if yes, go to step 203.
If not, the process returns to step 201 to continue the determination in step 202.
Step 203: and judging whether the intelligent link aggregation functions of the first network link, the second network link and the application program are all started.
Alternatively, the second network link may be a mobile internet network link. The mobile internet refers to a network using data traffic, such as 2G, 3G, 4G, and 5G.
When the application program starts the intelligent link aggregation function and both the first network link and the second network link are started, step 204 is executed.
If the intelligent link aggregation function, the first network link and the second network link are not all started, the step 201 is returned to continue to judge.
Step 204: and performing connectivity test with a plurality of predetermined servers with different network addresses to acquire average communication delay values of the electronic device and the plurality of predetermined servers.
Wherein the predetermined number of servers is plural. The electronic device and a plurality of preset servers with different network addresses respectively carry out connectivity tests to obtain a plurality of communication delay values, and then the plurality of communication delay values are averaged to obtain an average communication delay value.
Step 205: and judging whether the average communication delay value is larger than a set value or not.
If the determination result in step 205 is yes, step 206 is executed.
In step 205, if the determination result is negative, step 207 is executed.
Step 206: data transmission with the server is performed using the first network link in conjunction with the second network link.
Step 207: a first network link is used for data transmission with the server.
For example, when the electronic device is connected to a network by using a WIFI network link, a mobile internet network link is also opened, and when a communication request is sent to the flight message server by the QQ program, the electronic device performs a connectivity test with three predetermined servers, namely an internet surfing server (www.163.com), a new wave network server (www.sina.com.cn) and a phoenix network server (www.ifeng.com), in a background. For example, if the electronic device measures a communication delay value of 56ms with the network address www.163.com, a communication delay value of 60ms with www.sina.com.cn, and a communication delay value of 66ms with www.ifeng.com, the average communication delay value is (56+60+ 66)/3-60.67 ms.
If the setting value is 100ms, the network link aggregation will not be triggered, that is, the WIFI network link is used for data transmission with the server.
For example, if the electronic device measures a communication delay value of 98ms with the network address www.163.com, a communication delay value of 110ms with www.sina.com.cn, and a communication delay value of 101ms with www.ifeng.com, the average communication delay value is (98+110+ 101)/3-103 ms.
If the set value is 100ms, network link aggregation is triggered, namely, a WIFI network link is used in combination with a mobile internet network link for data transmission with the flight server.
In this embodiment, connectivity with the plurality of predetermined servers is tested in the background, and then average connectivity with the plurality of predetermined servers is taken into consideration comprehensively as a criterion for determining whether to trigger network link aggregation, so that accuracy of triggering network link aggregation is improved, unnecessary data traffic waste is avoided, and cost of using the electronic device by a user is saved.
Referring to fig. 7, fig. 7 is a flowchart illustrating a network configuration method of an electronic device according to a third embodiment of the present application.
In this embodiment, the network configuration method of the electronic device may include the steps of:
step 301: it is determined whether the electronic device is only using the first network link for network connection.
The first network link may be a WIFI (Wireless Fidelity) network link.
In step 301, if the determination result is yes, step 302 is executed.
In step 301, if the determination result is no, the step 301 is executed to continue the determination.
Step 302: and judging whether a network communication request sent by the application program to the corresponding server is monitored.
In step 302, if yes, go to step 303.
If not, in step 302, the process returns to step 302 to continue the determination.
Step 303: and judging whether the intelligent link aggregation functions of the first network link, the second network link and the application program are all started.
Alternatively, the second network link may be a mobile internet network link. The mobile internet refers to a network using data traffic, such as 2G, 3G, 4G, and 5G.
When the application program starts the intelligent link aggregation function and both the first network link and the second network link are started, step 304 is executed.
If the intelligent link aggregation function, the first network link and the second network link are not all started, the step 301 is returned to.
Step 304: and performing connectivity test with a plurality of predetermined servers with different network addresses to acquire communication delay values of the electronic device and the predetermined servers.
Wherein the predetermined number of servers is plural. The electronic device and a plurality of preset servers with different network addresses respectively carry out connectivity test to obtain a plurality of communication delay values
Step 305: and judging whether the communication delay values with the preset servers are all larger than a set value.
If the determination result in step 305 is yes, step 306 is executed.
In step 305, if the determination result is negative, step 307 is executed.
Step 306: data transmission with the server is performed using the first network link in conjunction with the second network link.
Step 307: a first network link is used for data transmission with the server.
For example, when the electronic device is connected to a network by using a WIFI network link, a mobile internet network link is also opened, and when a communication request is sent to the flight message server by the QQ program, the electronic device performs a connectivity test with three predetermined servers, namely an internet surfing server (www.163.com), a new wave network server (www.sina.com.cn) and a phoenix network server (www.ifeng.com), in a background. For example, the electronic device measures a communication delay value of 56ms with the network address www.163.com, a communication delay value of 60ms with www.sina.com.cn, and a communication delay value of 110ms with www.ifeng.com.
If the set value is 100ms, the communication delay value of the electronic device and the phoenix network server is larger than the set value, and the other two are smaller than the preset value, the network link aggregation will not be triggered, namely, the WIFI network link is used for data transmission with the server.
For example, the electronic device measures 102ms for communication delay with network address www.163.com, 110ms for communication delay with www.sina.com.cn, and 101ms for communication delay with www.ifeng.com.
If the set value is 100ms, the communication delay of the electronic device and the three predetermined servers is greater than the set value, network link aggregation is triggered, that is, a WIFI network link is used in combination with a mobile internet network link for data transmission with the flight server.
In this embodiment, the connectivity with the plurality of predetermined servers is tested in the background, and then the connectivity with the plurality of predetermined servers is taken into consideration comprehensively as a criterion for determining whether to trigger the network link aggregation, and the network link aggregation is triggered only when the communication delay values of the plurality of predetermined servers are all higher than a set value, so that the accuracy of triggering the network link aggregation can be improved, unnecessary data traffic waste is avoided, and the cost of using the electronic device by a user is saved.
Referring to fig. 8, fig. 8 is a block diagram of an electronic device according to an embodiment of the disclosure. In this embodiment, the electronic device 80 may include the following modules:
and a monitoring and testing module 81, configured to, after monitoring a network communication request sent by the application to the corresponding server, perform a connectivity test with the predetermined server to obtain a communication delay value between the electronic device 80 and the predetermined server.
The determining module 82 is configured to determine whether the communication delay value is greater than a set value.
And an executing module 83, configured to perform data transmission with the server using the first network link in combination with the second network link when the determining module 82 determines that the communication delay value is greater than the set value.
Referring to fig. 9, fig. 9 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application. In this embodiment, the electronic device 90 may include: a processor 91 and a memory 92. The memory 92 is electrically connected to the processor 91.
The memory 92 is used for storing a computer program, which the processor 91 is used for calling from the memory 92 and then executing to implement the method of any of the above embodiments.
Embodiments of the present application also provide a computer-readable storage medium for storing a computer program, which can be executed by a processor to implement the method provided in the above embodiments. It is understood that the method executed by the computer program stored in the readable storage medium in this embodiment is similar to the method provided in the foregoing embodiments, and the principle and steps thereof are the same, and are not described herein again.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, which can store program codes.
The electronic device in any of the above embodiments of the present application may be a smart phone, a wearable smart device, a tablet computer, a palm-top computer, a digital PDA, or other electronic devices.
According to the method and the device, after the network communication request sent by the application program to the corresponding server is monitored, the connectivity test with the preset server is executed to obtain the communication delay value of the electronic device and the preset server; judging whether the communication delay value is larger than a set value or not; if the data transmission with the server is carried out by combining the first network link and the second network link, the data transmission can be carried out by using the two network links simultaneously, and the accuracy of triggering the simultaneous transmission can be ensured.
The above description is only for the purpose of illustrating embodiments of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application or are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A method for network configuration of an electronic device, the method comprising:
after monitoring a network communication request sent by an application program to a server provided by a service provider of the application program, executing a connectivity test with a preset server to acquire a communication delay value of the electronic device and the preset server; wherein the predetermined server is currently in a connection-stable state;
judging whether the communication delay value is larger than a set value or not;
and if so, using the first network link to combine with the second network link to perform data transmission with the server.
2. The method of claim 1, wherein the first network link is a WIFI network link and the second network link is a mobile internet network link.
3. The method of claim 1, wherein the performing a connectivity test with a predetermined server to obtain a communication delay value of the electronic device with the predetermined server comprises:
sending a test message to the preset server, and recording the sending time point of the test message in the test message;
and receiving the test message returned by the preset server, calculating a difference value between the receiving time point and the sending time point according to the receiving time point of the test message and the sending time point recorded in the test message, and taking the difference value as the communication delay value.
4. The method of claim 1, wherein the network communication request is initiated by an application program, and wherein the step of performing a connectivity test with a predetermined server to obtain a communication delay value of the electronic device with the predetermined server is preceded by the method further comprising:
judging whether the application program starts an intelligent link aggregation function, whether the first network link is started and whether the second network link is started;
when the application program starts an intelligent link aggregation function and the first network link and the second network link are both started, executing a connectivity test with a preset server to acquire a communication delay value of the electronic device and the preset server.
5. The method of claim 1, wherein the predetermined server is plural in number, and wherein the performing the connectivity test with the predetermined server to obtain the communication delay value of the electronic device with the predetermined server comprises:
performing connectivity tests with a plurality of predetermined servers of different network addresses to obtain average communication delay values of the electronic device and the plurality of predetermined servers;
the judging whether the communication delay value is larger than a set value comprises the following steps:
and judging whether the average communication delay value is larger than a set value or not.
6. The method of claim 1, wherein the predetermined server is plural in number, and wherein the performing the connectivity test with the predetermined server to obtain the communication delay value of the electronic device with the predetermined server comprises:
performing connectivity tests with a plurality of predetermined servers of different network addresses to obtain communication delay values of the electronic device and the respective predetermined servers;
the judging whether the communication delay value is larger than a set value comprises the following steps:
and judging whether the communication delay values of the plurality of preset servers are all larger than a set value.
7. The method of claim 1, wherein after the step of determining whether the communication delay value is greater than a set value, the method further comprises:
and if not, using a first network link to transmit data with the server.
8. An electronic device, comprising
The monitoring and testing module is used for executing a connectivity test with a preset server to acquire a communication delay value of the electronic device and the preset server after monitoring a network communication request sent by an application program to a server provided by a service provider of the application program; wherein the predetermined server is currently in a connection-stable state;
the judging module is used for judging whether the communication delay value is larger than a set value or not;
and the execution module is used for carrying out data transmission with the server by combining the first network link and the second network link when the judgment module judges that the communication delay value is greater than the set value.
9. An electronic device, comprising a processor and a memory electrically connected to the processor, the memory being configured to store a computer program, the processor being configured to execute the computer program to implement the method of any one of claims 1-7.
10. A storage medium for storing a computer program executable to implement the method of any one of claims 1 to 7.
CN201810820767.7A 2018-07-24 2018-07-24 Electronic device, network configuration method thereof and storage medium Active CN109067571B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810820767.7A CN109067571B (en) 2018-07-24 2018-07-24 Electronic device, network configuration method thereof and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810820767.7A CN109067571B (en) 2018-07-24 2018-07-24 Electronic device, network configuration method thereof and storage medium

Publications (2)

Publication Number Publication Date
CN109067571A CN109067571A (en) 2018-12-21
CN109067571B true CN109067571B (en) 2021-10-15

Family

ID=64836245

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810820767.7A Active CN109067571B (en) 2018-07-24 2018-07-24 Electronic device, network configuration method thereof and storage medium

Country Status (1)

Country Link
CN (1) CN109067571B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109587719A (en) * 2018-12-25 2019-04-05 Oppo广东移动通信有限公司 Data transmission method and relevant apparatus
CN109640178B (en) * 2018-12-29 2021-10-01 Oppo广东移动通信有限公司 Network shunting method and related equipment
CN109640379B (en) * 2019-01-11 2020-09-18 Oppo广东移动通信有限公司 Link aggregation implementation method and related product
CN112105058B (en) * 2019-02-12 2023-07-04 Oppo广东移动通信有限公司 Link connection method and related device
CN112751689B (en) * 2019-10-30 2023-12-05 北京京东振世信息技术有限公司 Network connectivity detection method, monitoring server and monitoring proxy device
WO2021128251A1 (en) * 2019-12-27 2021-07-01 拉克诺德(深圳)科技有限公司 Multi-channel-based terminal data wireless transmission method and apparatus, device, and medium
CN111148137B (en) * 2019-12-30 2023-06-27 宇龙计算机通信科技(深圳)有限公司 Data transmission method and device, storage medium and terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104349415A (en) * 2013-08-01 2015-02-11 中国移动通信集团公司 Data packet sending method and apparatus
CN104735728A (en) * 2015-04-10 2015-06-24 宇龙计算机通信科技(深圳)有限公司 Service data flow transmission method and system
CN106790532A (en) * 2016-12-21 2017-05-31 清华大学深圳研究生院 A kind of online live method for uploading and system based on edge network polymerization
CN107251467A (en) * 2015-02-12 2017-10-13 诺基亚技术有限公司 The polymerization of cellular network and WLAN
CN107852635A (en) * 2015-08-07 2018-03-27 英特尔公司 The separation based on multi-user for more RAT polymerizations

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9474067B2 (en) * 2013-03-26 2016-10-18 Qualcomm Incorporated WLAN uplink scheduler for LTE-WLAN aggregation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104349415A (en) * 2013-08-01 2015-02-11 中国移动通信集团公司 Data packet sending method and apparatus
CN107251467A (en) * 2015-02-12 2017-10-13 诺基亚技术有限公司 The polymerization of cellular network and WLAN
CN104735728A (en) * 2015-04-10 2015-06-24 宇龙计算机通信科技(深圳)有限公司 Service data flow transmission method and system
CN107852635A (en) * 2015-08-07 2018-03-27 英特尔公司 The separation based on multi-user for more RAT polymerizations
CN106790532A (en) * 2016-12-21 2017-05-31 清华大学深圳研究生院 A kind of online live method for uploading and system based on edge network polymerization

Also Published As

Publication number Publication date
CN109067571A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
CN109067571B (en) Electronic device, network configuration method thereof and storage medium
US10904118B2 (en) Background task execution over a network
JP5449542B2 (en) Access control method, apparatus and system
CN103379586B (en) A kind of method and website, access point finding access point
US9237460B2 (en) Traffic control method and device
CN101873616B (en) Mobile terminal self-check method and system and mobile terminal
Abdelrahman et al. Signalling storms in 3G mobile networks
CN105099989A (en) Service request processing and service processing result acquiring method, device and system
EP2560455B1 (en) Systems and methods for multiple radio access bearer traffic throttling
WO2008113986A2 (en) Data transmission scheduler
WO2014063487A1 (en) Traffic control method and device
US20230089325A1 (en) Business request processing method and system, electronic device, and computer storage medium
CN112383948B (en) Data transmission method, device, storage medium and electronic equipment
CN108965066B (en) Method and device for detecting transmission path
WO2011131087A1 (en) Log management method and system, main control board and local single board
US10575239B2 (en) Data network management
US9924016B2 (en) Content download method, related device, and system
CN115379404A (en) Data processing method and device, terminal equipment and computer storage medium
CN112187588A (en) WIFI network connectivity detection method and device for terminal equipment, medium and terminal
CN109429375B (en) Method and device for sending information
CN112492703B (en) Network connection management method, device, equipment and storage medium
CN111262864B (en) Method, device and system for sending live broadcast state data and storage medium
CN112188545B (en) Access control method, device, storage medium and base station
GB2545928B (en) Data network management
CN116261193A (en) Cell switching method, user equipment and computer readable storage medium

Legal Events

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