CN110768903A - Method, device, terminal and storage medium for optimizing network connection - Google Patents

Method, device, terminal and storage medium for optimizing network connection Download PDF

Info

Publication number
CN110768903A
CN110768903A CN201911030763.XA CN201911030763A CN110768903A CN 110768903 A CN110768903 A CN 110768903A CN 201911030763 A CN201911030763 A CN 201911030763A CN 110768903 A CN110768903 A CN 110768903A
Authority
CN
China
Prior art keywords
network
application
routing
routing rule
applications
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
CN201911030763.XA
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 ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201911030763.XA priority Critical patent/CN110768903A/en
Publication of CN110768903A publication Critical patent/CN110768903A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/302Route determination based on requested QoS
    • H04L45/306Route determination based on the nature of the carried application
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/70Routing based on monitoring results
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/04Communication route or path selection, e.g. power-based or shortest path routing based on wireless node resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • H04W40/246Connectivity information discovery

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the disclosure provides a method, a device, a terminal and a storage medium for optimizing network connection. The method for optimizing network connection comprises the following steps: creating a routing rule and marking the routing rule, wherein the routing rule comprises the steps of enabling the mark to correspond to a routing interface of a corresponding network and connecting the corresponding network of which the network performance meets a preset condition under the condition that more than one network exists; monitoring network performance parameters applied in the first network and the second network; creating a mapping table, wherein the mapping table corresponds the applied user ID with a route, and the route corresponds to a routing rule through the mark; and based on the routing rule, matching and connecting the preset application with a network meeting a preset condition in the first network and the second network by using the mark. According to the method and the device, network delay of the application in the corresponding network is monitored, intelligent switching is carried out on network connection of some applications, the network connection quality of specific applications is improved, and user experience is further improved.

Description

Method, device, terminal and storage medium for optimizing network connection
Technical Field
Embodiments of the present disclosure relate to the field of computer technologies, and in particular, to a method, an apparatus, a terminal, and a storage medium for optimizing network connectivity.
Background
Currently, in some terminals (e.g., Android devices) supporting WLAN (wireless local area network) and data networks, there is usually only one default gateway for system connection network operation, which requires the terminal device to select an optimal network in the case of coexistence of multiple networks. At present, an algorithm for network priority ranking is defaulted on Android equipment, for example, the priority of a WLAN network is higher than that of a data network, and as long as the WLAN network is connected, a WLAN channel is adopted in the default condition no matter whether the network quality is good or bad. This has a significant impact on application software (e.g., online games, online video, etc.) that has low latency requirements in WLAN weak situations.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In order to solve the above problems, the present disclosure provides a method, an apparatus, a terminal, and a storage medium for optimizing network connection, so as to implement intelligent switching of a network, thereby improving user experience.
According to an embodiment of the present disclosure, there is provided a method of optimizing network connections, including: creating a routing rule and marking the routing rule, wherein the routing rule comprises the steps of enabling the mark to correspond to a routing interface of a corresponding network and connecting the corresponding network with the network performance meeting preset conditions under the condition that more than one network exists; monitoring network performance parameters of the application in the first network and the second network; creating a mapping table, wherein the mapping table corresponds the applied user ID with a route, and the route corresponds to a corresponding routing rule through the mark; and based on the routing rule, matching and connecting a preset application in the applications with a network meeting a preset condition in the first network and the second network by using the mark.
According to another embodiment of the present disclosure, there is provided an apparatus for optimizing network connection, including: a rule creating module configured to create a routing rule and mark the routing rule, the routing rule including making the mark correspond to a routing interface of a corresponding network, and connecting the corresponding network whose network performance satisfies a preset condition in the case where there is more than one network; a network monitoring module configured to monitor network performance parameters of the application in a first network and a second network; a mapping creation module configured to create a mapping table that corresponds user IDs of applications to routes, wherein the routes correspond to respective routing rules through the tags; and the network control module is configured to match and connect a preset application in the applications with a network meeting a preset condition in the first network and the second network by using the mark based on the routing rule.
According to another embodiment of the present disclosure, there is provided a terminal including: at least one memory and at least one processor; wherein the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the method for optimizing the network connection.
According to another embodiment of the present disclosure, there is provided a computer storage medium storing program code for executing the above-described method of optimizing a network connection.
According to the method and the device, network delay of the application in the corresponding network is monitored, intelligent switching is carried out on network connection of some applications, the network connection quality of specific applications is improved, and user experience is further improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 shows a schematic flow diagram of a method of optimizing network connections of an embodiment of the present disclosure.
Fig. 2 illustrates an example of portions of a routing rule of an embodiment of the present disclosure.
Fig. 3 shows a schematic diagram of a mapping table of an embodiment of the present disclosure.
Fig. 4 shows a schematic diagram of a correspondence between a mapping table and a routing rule of the present disclosure.
Fig. 5 shows a schematic diagram of an apparatus of an embodiment of the present disclosure.
FIG. 6 illustrates a schematic structural diagram of an electronic device 600 suitable for use in implementing embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
Systems and applications can successfully use the network because the correct routes are used when establishing network channels (sockets), which include the correct data input, output ports, global Internet Protocol (IP) address information, and address resolution server (DNS) information. The routing is controlled by the routing policy of the system, so that the whole network connection process actually adopts the correct routing policy to configure the receiving and output ports of the data packet.
First, network level management is briefly described. The network is divided into from the bottom layer to the upper layer: network card equipment, a Transmission Control Protocol (TCP)/IP layer, a network management process (netd), frame layer connection management and an application layer. Each network device establishes a logical link, allocates to a corresponding IP address, gateway, DNS information and the like, and then configures corresponding routing information through connectivity, in the process, the communication among processes is informed to netd, the netd can generate a corresponding routing rule through an IP rule tool, and an IP table tool is used for generating a data packet import/export and firewall rule. The process informs the TCP/IP layer to generate specific routing table information and firewall rules through standard system calls, and the specific rules inform each data packet to enter and be forwarded and discarded through which network card device. For example, the routing rule in the routing table may specify which data packets are sent through which network channel, and after the application generates the data packets, the corresponding routing rule in the routing table is found, and the data packets are sent according to the path specified in the routing rule in the routing table.
Typically, at least a WLAN network and a mobile data network are present on a terminal (e.g., a smartphone). It should be understood that the terminal in the present disclosure may include, but is not limited to, mobile terminal devices such as a mobile phone, a smart phone, a notebook computer, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, a vehicle-mounted terminal device, a vehicle-mounted display terminal, a vehicle-mounted electronic rearview mirror, etc., and fixed terminal devices such as a digital TV, a desktop computer, etc. Currently, a terminal device usually defaults to a WLAN as a priority connection network. At this time, if the quality of the WLAN network is poor, and the user wants to switch to the data network, the WLAN network is usually manually turned off, and then the terminal device connects to the data network. However, the user experience in this way is not sufficiently friendly. For this reason, a method capable of intelligently switching network connections is urgently needed.
As shown in fig. 1, embodiments of the present disclosure provide a method of optimizing network connections. The method comprises a step S101 of creating a routing rule and marking the routing rule. In some embodiments, the routing rule is normally present in the routing table, and thus, modification of the routing rule involves modification of the routing table. In some embodiments, the routing rule includes corresponding the label to a routing interface of the respective network. The tag of the present disclosure is a tag that tags network IDs, and each network may correspond to one tag. For example, as shown in fig. 2, the first tag 001 may correspond to an a network and the second tag 010 may correspond to a B network. That is, the encapsulated data with the corresponding tag may be transmitted through the interface of the corresponding network. It should be appreciated that the above-described labeling approach is merely exemplary, and that any other suitable labeling approach may be employed.
In addition, the routing rule also includes the corresponding network whose performance meets the preset condition when more than one network exists. In some embodiments, the preset condition may include network delay, packet loss rate, and the like, and may be set as needed.
In some embodiments, the method of the present disclosure further includes step S102 of monitoring a network performance parameter (e.g., network delay) of the application in the network. In the case of including a WLAN network and a data network, they are explained as an example. For example, the WLAN network may be a first network and the data network may be a second network, or vice versa. It should be understood that this is merely an exemplary illustration and that sometimes a data network may include multiple networks, e.g., connected and mobile, etc. Network performance parameters, such as packet loss rate and delay, of the respective applications in the first network and the second network are monitored. Therefore, an interface can be newly added in the network to establish the monitoring mechanism and monitor the network performance parameters in real time. For example, network delay may be monitored by counting the transmission and return times of TCP/IP layer packets.
In some embodiments, the method of the present disclosure further includes step S103 of creating a mapping table. In this disclosure, a mapping table is a data encapsulation structure, and may include a plurality of blocks, each of which may be used to carry corresponding data. For example, as illustrated in FIG. 3, an exemplary data encapsulation structure, i.e., mapping table, is shown. In the mapping table, application ID data may be included, and corresponding indicia may be included, e.g., 001 corresponding to the a network as described above. Thus, the mapping table enables the application to be in one-to-one correspondence with the corresponding routes corresponding to the labels, establishing a mapping relationship. Each application has a unique identity, i.e., a user ID, at runtime. By establishing a mapping relation between the user ID of the application and the network mark and having a corresponding relation between the mark and the network in the routing table, the data of the application corresponding to the application ID can be transmitted through the network corresponding to the corresponding mark by modifying the mark (tag) in the mapping table. That is, the data transmitted by the application is indirectly associated with the network being transmitted by the tag.
In addition, the mapping table of the present disclosure can be managed by adding, deleting, changing, querying, and the like. For example, when a network change is monitored and a network needs to be switched based on a routing rule, a flag (tag) in the mapping table is changed to a corresponding flag meeting the routing rule, and the switching of the network for which the application sends data is realized by changing the flag in the mapping table.
As schematically shown in fig. 4, in the left part of fig. 4, a part of the mapping table is shown, and the user IDs of the first to third applications and the first to third marks establish a one-to-one mapping relationship. In the right part of fig. 4, routing rules in the routing table are schematically shown, which describe the networks or network routing interfaces to which the first to third labels (e.g. network ID labels) correspond. Through the marking function, the first application, the second application, the third application and the network from A to C can respectively correspond to the network from A to C, and therefore corresponding network routing can be established during subsequent network connection.
The method of the present disclosure further includes step S104, setting a preset application in the applications to connect with a network satisfying a preset condition in the first network (e.g., a WLAN network) and the second network (e.g., a data network) based on the routing rule. It should be understood that not all applications need to have a network switch, i.e., a switch to a better quality network. For example, as background applications, users generally do not care about the network connection situation and have little influence on the users, and for the background applications, the previous connection can be kept without switching the network connection. In addition, for some foreground applications which are not sensitive to the network, network switching may not be needed, because some applications are basically unaware of the network quality, and even weak networks can normally operate. On the contrary, for some applications sensitive to the network, it is common to perform network switching, such as online games and online videos. Therefore, the network can be switched only by the preset part of applications, and the preset conditions are met by connecting the preset part of applications with the network, so that the high requirement of the network quality is met.
In some embodiments, the preset condition of the network may include network delay, packet loss rate, and the like, and may be set as needed. For example, for some applications, network latency is an important indicator. Generally, the smaller the network delay, the higher the network quality, and the smoother the network connection.
In some embodiments, the correspondence between the label and the network is established in the routing table, and then the performance parameter of the network is monitored, and the correspondence between the application ID corresponding to the application ID and the label is utilized, so that the correspondence between the data of the application corresponding to the application ID and the network is established, thereby enabling intelligent switching of the network without additional operation of a user. For example, referring to fig. 4, if the current first application uses an a network, after the a network is found to be degraded and the B network is stronger during the monitoring of the network, based on the routing rule, the data transmission of the first application should be changed to the B network that satisfies a preset condition (e.g., smaller delay), at this time, the flag in the mapping table is changed from the first flag to the second flag, so that the data sent by the first application will be sent through the B network corresponding to the second flag.
In some embodiments, the preset application comprises an application in the foreground. Further, in some embodiments, the preset applications include applications that are in the foreground and sensitive to network delays.
In some embodiments, monitoring the network performance parameters of the application in the first network and the second network comprises monitoring network delays of the application in the first network and the second network. Wherein monitoring network latency of the application in the first network and the second network comprises creating an interface in a network management process (netd) to obtain send and return times of data packets of the application.
In some embodiments, matching a preset application in the applications with a network satisfying a preset condition in the first network and the second network using a flag based on the routing rule includes: and matching the data sent by the preset application with the routing interface of the corresponding network by utilizing the corresponding relation between the mark in the routing rule and the routing interface of the corresponding network and the corresponding relation between the user ID of the preset application in the mapping table and the route. As shown in fig. 4, by identifying the label in the routing rule and the label in the mapping table, the correspondence between the application and the network is established, so that after determining which network to switch to based on the routing table rule, the label (tag) can be used to realize which network the data of the application is transmitted through.
In some embodiments, embodiments of the present disclosure also provide an apparatus 500 for optimizing network connections, comprising: a rule creating module 501 configured to create a routing rule and mark the routing rule, where the routing rule includes making a mark correspond to a routing interface of a corresponding network, and connecting the corresponding network whose network performance satisfies a preset condition if more than one network exists; a network monitoring module 502 configured to monitor network performance parameters applied in the first network and the second network; a mapping creation module 503 configured to create a mapping table that corresponds the user ID of the application to a route, wherein the route pass flag corresponds to a corresponding routing rule; and a network control module 504 configured to match and connect a preset application in the applications with a network satisfying a preset condition in the first network and the second network by using the label based on the routing rule.
In some embodiments, the preset application comprises an application in the foreground. In some embodiments, the preset applications include applications that are in the foreground and sensitive to network delays. In some embodiments, the apparatus further comprises: an interface creation module configured to create an interface in the respective network connections to monitor network performance parameters of the application in the first network and the second network. In some embodiments, the apparatus further comprises: a foreground and background application identification or management module configured to identify which applications are foreground applications. In some embodiments, the foreground and background application identification or management module may determine whether the application is sensitive to network latency. The module may check the network status of the monitoring side (e.g., good, normal, bad, no network, etc.) in a callback manner, and call the connectivity part switching interface to notify the netd to manage when the network is bad.
In some embodiments, the present disclosure enables optimization of network connectivity for a particular application by creating routing rules and mapping tables and marking the routing rules such that a correspondence between the application and the network is established. In addition, by monitoring the network delay of the network and distinguishing foreground and background applications, the intelligent switching of the network can be carried out only on the applications which are in the foreground and/or sensitive to the network. The method and the system can keep the existing gateway setting and adopt different routing strategies for different applications. The present disclosure enables communication using better quality networks in the case of poorer default networks. In addition, the method and the device can detect the network quality in real time under the condition that multiple networks coexist, ensure the requirements of specific applications (such as games and videos) on a low-delay network, automatically and rapidly switch to a high-quality network under a weak network environment, and ensure the smoothness of the network.
Referring now to FIG. 6, a block diagram of an electronic device 600 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText transfer protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
In accordance with one or more embodiments of the present disclosure, there is provided a method of optimizing network connections, comprising: creating a routing rule and marking the routing rule, wherein the routing rule comprises the steps of enabling the mark to correspond to a routing interface of a corresponding network and connecting the corresponding network with the network performance meeting preset conditions under the condition that more than one network exists; monitoring network performance parameters of the application in the first network and the second network; creating a mapping table, wherein the mapping table corresponds the applied user ID with a route, and the route corresponds to a corresponding routing rule through the mark; and based on the routing rule, matching and connecting a preset application in the applications with a network meeting a preset condition in the first network and the second network by using the mark.
According to one or more embodiments of the present disclosure, the preset application includes an application in the foreground.
According to one or more embodiments of the present disclosure, the preset applications include applications that are in the foreground and sensitive to network delay.
In accordance with one or more embodiments of the present disclosure, monitoring network performance parameters of the application in the first network and the second network includes monitoring network delays of the application in the first network and the second network.
According to one or more embodiments of the present disclosure, based on the routing rule, matching and connecting the preset application in the applications with the network satisfying the preset condition in the first network and the second network by using the flag includes: and matching the data sent by the preset application with the routing interface of the corresponding network by using the corresponding relation between the mark in the routing rule and the routing interface of the corresponding network and the corresponding relation between the user ID of the preset application in the mapping table and the routing.
According to one or more embodiments of the present disclosure, there is provided an apparatus for optimizing network connection, including: a rule creating module configured to create a routing rule and mark the routing rule, the routing rule including making the mark correspond to a routing interface of a corresponding network, and connecting the corresponding network whose network performance satisfies a preset condition in the case where there is more than one network; a network monitoring module configured to monitor network performance parameters of the application in a first network and a second network; a mapping creation module configured to create a mapping table that corresponds user IDs of applications to routes, wherein the routes correspond to respective routing rules through the tags; and the network control module is configured to match and connect a preset application in the applications with a network meeting a preset condition in the first network and the second network by using the mark based on the routing rule.
According to one or more embodiments of the present disclosure, the preset application includes an application in the foreground.
According to one or more embodiments of the present disclosure, further comprising: an interface creation module configured to create an interface in the respective network connection to monitor network performance parameters of the application in the first network and the second network.
According to one or more embodiments of the present disclosure, further comprising: a foreground and background application identification module configured to identify which applications are foreground applications.
According to one or more embodiments of the present disclosure, there is provided a terminal including: at least one memory and at least one processor; wherein the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the method for optimizing the network connection.
According to one or more embodiments of the present disclosure, there is provided a computer storage medium storing program code for executing the above-described method of optimizing network connection.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (11)

1. A method for optimizing network connectivity, comprising:
creating a routing rule and marking the routing rule, wherein the routing rule comprises the steps of enabling the mark to correspond to a routing interface of a corresponding network and connecting the corresponding network with the network performance meeting preset conditions under the condition that more than one network exists;
monitoring network performance parameters of the application in the first network and the second network;
creating a mapping table, wherein the mapping table corresponds the applied user ID with a route, and the route corresponds to a corresponding routing rule through the mark; and
and based on the routing rule, matching and connecting a preset application in the applications with a network meeting a preset condition in the first network and the second network by using the mark.
2. The method of claim 1, wherein the pre-set application comprises an application in the foreground.
3. The method of claim 1, wherein the preset applications comprise applications that are in foreground and sensitive to network delay.
4. The method of claim 1, wherein monitoring network performance parameters of the application in the first network and the second network comprises monitoring network latency of the application in the first network and the second network.
5. The method of claim 1, wherein based on the routing rule, using the flag to match the preset application in the applications with the network of the first network and the second network that satisfies the preset condition comprises:
and matching the data sent by the preset application with the routing interface of the corresponding network by using the corresponding relation between the mark in the routing rule and the routing interface of the corresponding network and the corresponding relation between the user ID of the preset application in the mapping table and the routing.
6. An apparatus for optimizing network connectivity, comprising:
a rule creation module configured to create a routing rule and label the routing rule, the routing rule including corresponding the label to a routing interface of a respective network;
a network monitoring module configured to monitor network performance parameters of the application in a first network and a second network;
a mapping creation module configured to create a mapping table that corresponds user IDs of applications to routes, wherein the routes correspond to respective routing rules through the tags; and
and the network control module is configured to perform matching connection on a preset application in the applications and a network meeting a preset condition in the first network and the second network by using the mark based on the routing rule.
7. The apparatus of claim 6, wherein the preset application comprises an application in the foreground.
8. The apparatus of claim 6, further comprising: an interface creation module configured to create an interface in the respective network connection to monitor network performance parameters of the application in the first network and the second network.
9. The apparatus of claim 7, further comprising: a foreground and background application identification module configured to identify which applications are foreground applications.
10. A terminal, characterized in that the terminal comprises:
at least one memory and at least one processor;
wherein the memory is configured to store program code and the processor is configured to invoke the program code stored by the memory to perform the method of any of claims 1 to 5.
11. A computer storage medium characterized in that the computer storage medium stores program code for executing the method of any one of claims 1 to 5.
CN201911030763.XA 2019-10-28 2019-10-28 Method, device, terminal and storage medium for optimizing network connection Pending CN110768903A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911030763.XA CN110768903A (en) 2019-10-28 2019-10-28 Method, device, terminal and storage medium for optimizing network connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911030763.XA CN110768903A (en) 2019-10-28 2019-10-28 Method, device, terminal and storage medium for optimizing network connection

Publications (1)

Publication Number Publication Date
CN110768903A true CN110768903A (en) 2020-02-07

Family

ID=69334189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911030763.XA Pending CN110768903A (en) 2019-10-28 2019-10-28 Method, device, terminal and storage medium for optimizing network connection

Country Status (1)

Country Link
CN (1) CN110768903A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111356196A (en) * 2020-02-27 2020-06-30 中国联合网络通信集团有限公司 Switching method of network interface
CN112333028A (en) * 2020-11-20 2021-02-05 南京创维信息技术研究院有限公司 Dynamic processing method, device, terminal and medium for multi-network coexistence
CN113923156A (en) * 2021-09-29 2022-01-11 湖北美和易思教育科技有限公司 Intelligent gateway management method and system based on multi-path network

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281190A (en) * 2011-07-01 2011-12-14 杭州斯凯网络科技有限公司 Networking method for load balancing apparatus, server and client access method
CN103368840A (en) * 2012-03-31 2013-10-23 丛林网络公司 Reduced traffic loss for border gateway protocol session in multi-homed network connection
CN104067255A (en) * 2011-09-01 2014-09-24 谷歌公司 Establishing network connections
CN106102143A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of application processing method and device
CN106464736A (en) * 2014-10-30 2017-02-22 环球互连及数据中心公司 Interconnection platform for real-time configuration and management of a cloud-based services exchange
CN106953752A (en) * 2017-03-14 2017-07-14 上海联彤网络通讯技术有限公司 Realize multi-network coexisted and simultaneously accessed system and method
CN107360021A (en) * 2017-06-16 2017-11-17 上海庆科信息技术有限公司 A kind of LAN distribution method and device
US20180212874A1 (en) * 2013-10-07 2018-07-26 Level 3 Communications, Llc Redirecting network traffic based on content
CN108449771A (en) * 2018-06-29 2018-08-24 Oppo(重庆)智能科技有限公司 Method for switching network, device, terminal and storage medium
CN109474528A (en) * 2018-09-28 2019-03-15 Oppo广东移动通信有限公司 Communication connecting method, device, terminal device and computer-readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281190A (en) * 2011-07-01 2011-12-14 杭州斯凯网络科技有限公司 Networking method for load balancing apparatus, server and client access method
CN104067255A (en) * 2011-09-01 2014-09-24 谷歌公司 Establishing network connections
CN103368840A (en) * 2012-03-31 2013-10-23 丛林网络公司 Reduced traffic loss for border gateway protocol session in multi-homed network connection
US20180212874A1 (en) * 2013-10-07 2018-07-26 Level 3 Communications, Llc Redirecting network traffic based on content
CN106464736A (en) * 2014-10-30 2017-02-22 环球互连及数据中心公司 Interconnection platform for real-time configuration and management of a cloud-based services exchange
CN106102143A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of application processing method and device
CN106953752A (en) * 2017-03-14 2017-07-14 上海联彤网络通讯技术有限公司 Realize multi-network coexisted and simultaneously accessed system and method
CN107360021A (en) * 2017-06-16 2017-11-17 上海庆科信息技术有限公司 A kind of LAN distribution method and device
CN108449771A (en) * 2018-06-29 2018-08-24 Oppo(重庆)智能科技有限公司 Method for switching network, device, terminal and storage medium
CN109474528A (en) * 2018-09-28 2019-03-15 Oppo广东移动通信有限公司 Communication connecting method, device, terminal device and computer-readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111356196A (en) * 2020-02-27 2020-06-30 中国联合网络通信集团有限公司 Switching method of network interface
CN112333028A (en) * 2020-11-20 2021-02-05 南京创维信息技术研究院有限公司 Dynamic processing method, device, terminal and medium for multi-network coexistence
CN113923156A (en) * 2021-09-29 2022-01-11 湖北美和易思教育科技有限公司 Intelligent gateway management method and system based on multi-path network
CN113923156B (en) * 2021-09-29 2023-04-11 武汉美和易思数字科技有限公司 Intelligent gateway management method and system based on multi-path network

Similar Documents

Publication Publication Date Title
CN109845303B (en) Management method and management unit for network slices
CN110876174B (en) Network slice selection method, equipment and system
CN112152926B (en) Method and device for managing network slices of application
CN110768903A (en) Method, device, terminal and storage medium for optimizing network connection
CN112039796B (en) Data packet transmission method and device, storage medium and electronic equipment
KR102654119B1 (en) Apparatus and method for providing service at a local area data network
CN110177047B (en) Message sending method, device, electronic equipment and computer readable storage medium
CN114302426B (en) Method, device, medium and electronic equipment for controlling service quality in heterogeneous network
CN110996372B (en) Message routing method, device and system and electronic equipment
CA2931906C (en) Systems and methods for determining a destination location in a network system
CN112866410A (en) Forwarding control method, forwarding control device, forwarding control medium and electronic equipment of data message
CN114666864A (en) Multi-network communication method, terminal device, storage medium, and program product
CN112152879B (en) Network quality determination method, device, electronic equipment and readable storage medium
CN113162836A (en) Virtual local area network communication method and device, cloud server, medium and electronic equipment
CN110856213B (en) Method and device for switching data transmission modes, storage medium and electronic equipment
CN112714146B (en) Resource scheduling method, device, equipment and computer readable storage medium
US20220417813A1 (en) Methods and apparatus for application service relocation for multimedia edge services
CN112804162B (en) Scheduling method, scheduling device, terminal equipment and storage medium
CN114189893A (en) O-RAN capability opening method, communication system, device and storage medium
CN114374614A (en) Network topology configuration method and device
CN114979128A (en) Cross-region communication method and device and electronic equipment
CN111182062A (en) Service multi-live calling method and system and electronic equipment
CN107211479B (en) Method and device for selecting access network
CN113518314B (en) Quick connection method for low-power-consumption Bluetooth and low-power-consumption Bluetooth communication system
KR20130082889A (en) Content sharing server and method for performing content shaing process betweens a plurality of diveces

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

Application publication date: 20200207

RJ01 Rejection of invention patent application after publication