CN109587012B - Network type identification method and device - Google Patents

Network type identification method and device Download PDF

Info

Publication number
CN109587012B
CN109587012B CN201910027861.1A CN201910027861A CN109587012B CN 109587012 B CN109587012 B CN 109587012B CN 201910027861 A CN201910027861 A CN 201910027861A CN 109587012 B CN109587012 B CN 109587012B
Authority
CN
China
Prior art keywords
connection
network
type
network connection
time
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
CN201910027861.1A
Other languages
Chinese (zh)
Other versions
CN109587012A (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.)
Xiamen Meitu Technology Co Ltd
Original Assignee
Xiamen Meitu 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 Xiamen Meitu Technology Co Ltd filed Critical Xiamen Meitu Technology Co Ltd
Priority to CN201910027861.1A priority Critical patent/CN109587012B/en
Publication of CN109587012A publication Critical patent/CN109587012A/en
Application granted granted Critical
Publication of CN109587012B publication Critical patent/CN109587012B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0823Network architectures or network communication protocols for network security for authentication of entities using certificates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

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

Abstract

According to the network type identification method and device, the execution condition of each step during network connection is judged by acquiring the time consumed by each preset step during network connection. And judging the type of the network connection according to the execution condition, wherein the type comprises a full connection type and a connection multiplexing type. Further, when a new network connection is initiated, data is preferably sent over the connection multiplex type network channel. The technical scheme disclosed by the application provides a method for judging the network connection type, and a network channel with the optimal connection multiplexing type is used for sending data, so that the network communication efficiency is improved.

Description

Network type identification method and device
Technical Field
The present application relates to the field of communications, and in particular, to a network type identification method and apparatus.
Background
Currently, application software generally initiates network requests for data transmission according to Http, Http or Http2 protocol. The step request of a complete network communication comprises domain name resolution, connection creation, data transceiving. If the above steps are performed in sequence for each network connection, a large amount of time is consumed for domain name resolution and connection creation, and the efficiency of network communication is reduced. In the prior art, time consumption in the network connection process is reduced by a connection multiplexing mode, wherein when the connection multiplexing represents network connection, all steps of completely establishing connection are not required to be taken. The current network class library has no corresponding interface support, and judges that one network request is the connection multiplexing, so that the process of network connection cannot be optimized.
Disclosure of Invention
In order to overcome the above-mentioned deficiencies in the prior art, the present application aims to provide a network type identification method applied to a network device, and the method comprises the following steps:
acquiring time consumed by each preset step during network connection;
judging the execution conditions of the preset steps according to the consumed time, wherein the execution conditions comprise executed and non-executed;
judging the type of the network connection according to the execution condition, wherein the type comprises a full connection type and a connection multiplexing type, and the full connection type represents that each preset step is executed when the network connection is established; and when the connection multiplexing type indicates that network connection is established, executing part of the preset steps.
Optionally, each step in the network connection includes domain name resolution and connection creation; the step of determining the type of the network connection according to the consumed time includes:
and if the time for domain name resolution and the time for creating the connection are both 0, the network connection is in a connection multiplexing type.
Optionally, each step in the network connection includes domain name resolution, connection creation, and communication security check; the step of determining the type of the network connection according to the consumed time includes:
and if the time of the domain name resolution step, the time of creating the connection and the time of communication safety check are all 0, the network connection is in a connection multiplexing type.
Optionally, the method further comprises the step of:
acquiring a detailed address of the network connection;
and judging whether the communication safety check is included during network connection according to the detailed address.
Optionally, the method further comprises:
and if a new network request is initiated, preferentially sending data through the network connection of the connection multiplexing type.
Optionally, the network device initiates a network connection through an OkHttp web library.
Another objective of the present application is to provide a network type identification apparatus, which is applied to a network device, and the network type identification apparatus includes a time obtaining module, an execution status module, and a determining module;
the time acquisition module is used for acquiring time consumed by each preset step during network connection;
the execution condition module is used for judging the execution conditions of the preset steps according to the consumed time, wherein the execution conditions comprise executed conditions and non-executed conditions;
the judging module is used for judging the type of the network connection according to the execution condition, wherein the type comprises a full connection type and a connection multiplexing type, and the full connection type represents that each preset step is executed when the network connection is established; and when the connection multiplexing type indicates that network connection is established, executing part of the preset steps.
Optionally, each step in the network connection includes domain name resolution and connection creation; the judging module judges the type of the network connection through the following steps:
and if the time for domain name resolution and the time for creating the connection are both 0, the network connection is in a connection multiplexing type.
Optionally, each step in the network connection includes domain name resolution, connection creation, and communication security check; the judging module further judges the type of the network connection by:
and if the time of the domain name resolution step, the time of creating the connection and the time of communication safety check are all 0, the network connection is in a connection multiplexing type.
Optionally, the network type identification apparatus further includes a selection module;
the selection module is used for preferentially sending data through the network connection of the connection multiplexing type if a new network request is initiated.
Compared with the prior art, the method has the following beneficial effects:
according to the network type identification method and device, the execution condition of each step during network connection is judged by acquiring the time consumed by each preset step during network connection. And judging the type of the network connection according to the execution condition, wherein the type comprises a full connection type and a connection multiplexing type. Further, when a new network connection is initiated, data is preferably sent over the connection multiplex type network channel. The technical scheme disclosed by the application provides a method for judging the network connection type, and a network channel with the optimal connection multiplexing type is used for sending data, so that the network communication efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a hardware structure diagram of a network device according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating steps of a network type identification method according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating steps of a network connection provided by an embodiment of the present application;
fig. 4 is one of the structural diagrams of a network type identification apparatus according to an embodiment of the present application;
fig. 5 is a second block diagram of a network type identification apparatus according to an embodiment of the present application.
Icon: 100-a network device; 140-a communication unit; 130-a processor; 110-network type identification means; 120-a memory; 1101-a time acquisition module; 1102-an execution case module; 1103-judging module; 1104-select module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. 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.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present application, it is further noted that, unless expressly stated or limited otherwise, the terms "disposed," "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art.
Some existing network libraries do not provide interfaces or methods for judging whether the network connection is a full connection type or a connection multiplexing type, so that the type of the network connection cannot be judged.
In view of this, the present embodiment provides a scheme for determining a network request through time consumed by each preset step during network connection, and the scheme provided in the present embodiment is described in detail below.
First, referring to fig. 1, the present embodiment provides a network device 100, where the network device 100 includes a network type identification apparatus 110, a memory 120, a processor 130, and a communication unit 140. The elements of the memory 120, the processor 130 and the communication unit 140 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.
The network device 100 may communicate with other network devices 100 over a network to enable data communication or interaction between the network devices 100. The network may be, but is not limited to, a wired network or a wireless network.
The network device 100 may be, but is not limited to, a smart phone, a Personal Computer (PC), a tablet PC, a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), and the like. The operating system of the network device 100 may be, but is not limited to, an Android system, an ios (internet operating system) system, a Windows phone system, a Windows system, and the like.
The Memory 120 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 120 is used for storing a program, and the processor 130 executes the program after receiving the execution instruction. The communication unit 140 is configured to establish a communication connection between the network devices 100 through the network, and to transceive data through the network.
The processor 130 may be an integrated circuit chip having signal processing capabilities. The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Referring to fig. 2, the present embodiment provides a flowchart of steps of a network type identification method applied to the network device 100 shown in fig. 1, and the method includes the steps that will be described in detail below.
And step S100, acquiring time consumed by each preset step during network connection.
Optionally, please refer to the step diagram of network connection shown in fig. 3. For the HTTP (hyper text transfer Protocol) Protocol, the step of initiating a complete network connection by the network device includes:
step S502, the domain name of the network address is analyzed, and the IP address corresponding to the domain name is obtained.
Step S503, according to the TCP protocol, creates a network connection by resolving the IP address obtained by the domain name.
For HTTPS (HTTPS), the step of a complete network connection further includes:
step S504, certificate verification is carried out according to the hypertext transfer security protocol, and a secret key used for encrypting the communication data is obtained.
The network device 100 obtains the start time and the end time of each preset step; the starting time comprises domain name resolution starting time, creation connection starting time and communication safety check starting time; the end time comprises domain name resolution end time, creation connection end time and communication safety check end time. The network device 100 obtains the time consumed by each preset step through the start time and the end time.
And step S200, judging the execution conditions of the preset steps according to the consumed time, wherein the execution conditions comprise executed conditions and non-executed conditions.
Optionally, the network device 100 determines the execution condition of each preset step according to the time consumed by each preset step. If the time consumed by a single step is 0, the step is not executed; if the time consumed by a single step is not 0, this indicates that the step has been performed once.
Step S300, judging the type of the network connection according to the execution condition, wherein the type comprises a full connection type and a connection multiplexing type, and the preset steps are executed when the full connection type indicates that the network connection is established; and when the connection multiplexing type indicates that network connection is established, executing part of the preset steps.
Optionally, the network device 100 determines the type of the network connection according to the execution condition of each step, where if a part of the steps of the network connection are executed, the network connection is represented as a connection multiplexing type, and if all the steps of the network connection are executed, the network connection is represented as a full connection type.
For example, in one possible example, the network device 100 initiates the network connection through an OkHttp web library, which is the most popular web request library of the current Android, and the OkHttp web library does not provide an interface or a method for determining whether the network connection is a full connection type or a connection multiplexing type. The network device 100 acquires time consumed by each preset step when connecting a network through a new HubbleHttpListener inherited from an EventListener, wherein a plurality of class attributes are preset in the HubbleHttpListener and used for recording start time and end time of each preset step when connecting the network. For example, the start time and the end time of domain name resolution are recorded by long integer variables dnssstar and dnsenend, the start time and the end time of establishing a connection are recorded by long integer variables connectStart and connectStart, and the start time and the end time of communication security check are recorded by long integer variables secureStart and secureEnd. When the network device 100 is connected to the network, when the preset steps are performed, the method in the HubbleHttpListener is called back, and then the start time and the end time of each step are obtained. The network device 100 obtains the execution conditions of each preset step when the network connection is obtained according to the start piece and the end time, and further, determines the type of the network connection according to the execution conditions. The network device 100 obtains a complete network address of a network connection, and determines whether the network connection includes a step of communication security check according to the network address, where the step of communication security check needs to be performed with a network address beginning with "https".
Optionally, if each step in the network connection is performed once every time of network connection, the efficiency of network connection is greatly reduced. The network device includes a network pool for uniformly managing device network connections, and the network device 100 preferentially selects a connection multiplexing type network connection from the network pool to send data when initiating a new network request. Referring to the step diagram of network connection shown in fig. 3, when data is sent through a connection multiplexing type network, the steps of domain name resolution, connection creation, and communication security check do not need to be performed again, thereby improving the efficiency of network connection.
The embodiment also provides a network type identification apparatus 110, where the network type identification apparatus 110 includes at least one software functional module that can be stored in the memory 120 in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the network device 100. The processor 130 is used for executing executable modules stored in the memory 120, such as software functional modules and computer programs included in the network type identification device 110.
Referring to one of the schematic structural diagrams of the network type identification apparatus 110 shown in fig. 4, the network type identification apparatus 110 may include a time obtaining module 1101, an execution status module 1102, and a determining module 1103, which are functionally divided.
The time obtaining module 1101 is configured to obtain time consumed by each preset step in network connection.
In the present embodiment, the time acquisition module 1101 is configured to execute step S100 in fig. 2, and reference may be made to the detailed description of step S100 for a detailed description of the time acquisition module 1101.
The execution module 1102 is configured to determine, according to the elapsed time, execution statuses of the preset steps, where the execution statuses include executed and unexecuted.
In this embodiment, the execution condition module 1102 is configured to execute step S200 in fig. 2, and reference may be made to the detailed description of step S200 for a detailed description of the execution condition module 1102.
The determining module 1103 is configured to determine a type of the network connection according to the execution condition, where the type includes a full connection type and a connection multiplexing type, where the full connection type indicates that each preset step is executed when a network connection is established; and when the connection multiplexing type indicates that network connection is established, executing part of the preset steps.
In this embodiment, the determining module 1103 is configured to perform step S300 in fig. 2, and reference may be made to the detailed description of step S300 for a detailed description of the determining module 1103.
Optionally, each step in the network connection includes domain name resolution and connection creation; the determining module 1103 determines the type of the network connection by:
and if the time for domain name resolution and the time for creating the connection are both 0, the network connection is in a connection multiplexing type.
Optionally, each step in the network connection includes domain name resolution, connection creation, and communication security check; the determining module 1103 further determines the type of the network connection by:
and if the time of the domain name resolution step, the time of creating the connection and the time of communication safety check are all 0, the network connection is in a connection multiplexing type.
Optionally, referring to fig. 5, a second structure of the network type identification apparatus 110 is shown, in which the network type identification apparatus 110 further includes a selection module 1104;
the selecting module 1104 is configured to preferentially send data through the network connection of the connection multiplexing type if a new network request is initiated.
In summary, the network type identification method and apparatus provided by the present application determine the execution condition of each step during network connection by obtaining the time consumed by each preset step during network connection. And judging the type of the network connection according to the execution condition, wherein the type comprises a full connection type and a connection multiplexing type. Further, when a new network connection is initiated, data is preferably sent over the connection multiplex type network channel. The technical scheme disclosed by the application provides a method for judging the network connection type, and a network channel with the optimal connection multiplexing type is used for sending data, so that the network communication efficiency is improved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. 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.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only for various embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present application, and all such changes or substitutions are included in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A network type identification method applied to a network device, the method comprising:
acquiring time consumed by each preset step during network connection, wherein the step of acquiring the time consumed by each preset step during network connection comprises the following steps:
acquiring the starting time of the step and the ending time of the step;
obtaining the time consumed by the step according to the starting time and the ending time;
judging the execution conditions of the preset steps according to the consumed time, wherein the execution conditions comprise executed conditions and non-executed conditions, and the step of judging the execution conditions of the preset steps according to the consumed time comprises the following steps:
if the time consumed by the step is 0, the step is not executed;
if the time consumed by the step is not 0, the step is executed;
judging the type of the network connection according to the execution condition of each step, wherein the type comprises a full connection type and a connection multiplexing type, and each preset step is executed when the full connection type indicates that the network connection is established; and when the connection multiplexing type indicates that network connection is established, executing part of the preset steps.
2. The method according to claim 1, wherein the steps of network connection include domain name resolution and connection creation; the step of judging the type of the network connection according to the execution condition of each step comprises the following steps:
and if the domain name resolution and the created connection are not executed, the network connection is the connection multiplexing type.
3. The method according to claim 1, wherein the steps of network connection include domain name resolution, connection creation, and communication security check; the step of judging the type of the network connection according to the execution condition of each step comprises the following steps:
and if the domain name resolution step, the creation connection and the communication safety check are not executed, the network connection is of the connection multiplexing type.
4. The network type identification method according to claim 3, wherein said method further comprises the steps of:
acquiring a detailed address of the network connection;
and judging whether the communication safety check is included during network connection according to the detailed address.
5. The network type identification method of claim 1, wherein the method further comprises the steps of:
and if a new network request is initiated, preferentially sending data through the network connection of the connection multiplexing type.
6. The network type identification method of claim 1, wherein the network device initiates the network connection through an OkHttp web library.
7. The network type identification device is applied to network equipment and comprises a time acquisition module, an execution condition module and a judgment module;
the time obtaining module is configured to obtain time consumed by each preset step during network connection, where a manner of obtaining the time consumed by each preset step during network connection by the time obtaining module includes:
acquiring the starting time of the step and the ending time of the step;
obtaining the time consumed by the step according to the starting time and the ending time;
the execution condition module is configured to determine, according to the consumed time, execution conditions of the preset steps, where the execution conditions include executed and unexecuted, and the step of determining, according to the consumed time, the execution conditions of the preset steps by the execution condition module includes:
if the time consumed by the step is 0, the step is not executed;
if the time consumed by the step is not 0, the step is executed;
the judging module is used for judging the type of the network connection according to the execution condition, wherein the type comprises a full connection type and a connection multiplexing type, and the full connection type represents that each preset step is executed when the network connection is established; and when the connection multiplexing type indicates that network connection is established, executing part of the preset steps.
8. The device of claim 7, wherein the steps of network connection comprise domain name resolution and connection creation; the judging module judges the type of the network connection through the following steps:
and if the domain name resolution and the created connection are not executed, the network connection is the connection multiplexing type.
9. The device according to claim 7, wherein the network connection comprises domain name resolution, connection creation and communication security check; the judging module further judges the type of the network connection by:
and if the domain name resolution step, the creation connection and the communication safety check are not executed, the network connection is of the connection multiplexing type.
10. The device of claim 7, further comprising a selection module;
the selection module is used for preferentially sending data through the network connection of the connection multiplexing type if a new network request is initiated.
CN201910027861.1A 2019-01-11 2019-01-11 Network type identification method and device Active CN109587012B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910027861.1A CN109587012B (en) 2019-01-11 2019-01-11 Network type identification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910027861.1A CN109587012B (en) 2019-01-11 2019-01-11 Network type identification method and device

Publications (2)

Publication Number Publication Date
CN109587012A CN109587012A (en) 2019-04-05
CN109587012B true CN109587012B (en) 2020-07-03

Family

ID=65916630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910027861.1A Active CN109587012B (en) 2019-01-11 2019-01-11 Network type identification method and device

Country Status (1)

Country Link
CN (1) CN109587012B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101990256A (en) * 2010-08-27 2011-03-23 中兴通讯股份有限公司 Long-connection management device and method for managing link resources of long-connection communication
CN102045325A (en) * 2009-10-13 2011-05-04 北京搜狗科技发展有限公司 Input method and system based on network communication
CN103685603A (en) * 2013-12-19 2014-03-26 北京奇虎科技有限公司 Domain name system analyzing method and device
CN104581753A (en) * 2013-10-09 2015-04-29 中国移动通信集团设计院有限公司 A method, device and terminal for calculating a webpage loading time delay
CN105338013A (en) * 2014-06-26 2016-02-17 优视科技有限公司 Network loading method and apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030014450A1 (en) * 2001-06-29 2003-01-16 International Business Machines Corporation Auto-correcting URL-parser

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102045325A (en) * 2009-10-13 2011-05-04 北京搜狗科技发展有限公司 Input method and system based on network communication
CN101990256A (en) * 2010-08-27 2011-03-23 中兴通讯股份有限公司 Long-connection management device and method for managing link resources of long-connection communication
CN104581753A (en) * 2013-10-09 2015-04-29 中国移动通信集团设计院有限公司 A method, device and terminal for calculating a webpage loading time delay
CN103685603A (en) * 2013-12-19 2014-03-26 北京奇虎科技有限公司 Domain name system analyzing method and device
CN105338013A (en) * 2014-06-26 2016-02-17 优视科技有限公司 Network loading method and apparatus

Also Published As

Publication number Publication date
CN109587012A (en) 2019-04-05

Similar Documents

Publication Publication Date Title
EP3333744B1 (en) Authorization code flow for in-browser applications
JP6708784B2 (en) Authentication method, device and authentication client
US9077544B2 (en) Automatic provisioning of authentication credentials
EP2023262A2 (en) Authentication system and authentication method
CN109639749B (en) Cloud desktop access method, device, equipment and storage medium
US11733986B2 (en) System for managing multiple clouds and method thereof
CN104468592A (en) Login method and system
CN111258602A (en) Information updating method and device
US20150067772A1 (en) Apparatus, method and computer-readable storage medium for providing notification of login from new device
WO2018103217A1 (en) Method for upgrading application, and server and user equipment
JP2016061915A (en) Information processing device, information processing system, information processing method and program
CN109218338B (en) Information processing system, method and device
CN109587012B (en) Network type identification method and device
CN111314355B (en) Authentication method, device, equipment and medium of VPN (virtual private network) server
CN110177360B (en) Method and device for binding with wearable device
CN106878252B (en) Method for establishing password-free login relationship, method for clearing account and device thereof
CN112437071A (en) Method, system, device and storage medium for device control
CN111262830A (en) Security authentication method, device, system, electronic equipment and storage medium
US11494745B1 (en) Saver button
CN108471635B (en) Method and apparatus for connecting wireless access points
JP6079267B2 (en) Relay server, relay program, and relay method
CN112464203A (en) Data format detection method based on intelligent password key application interface and electronic equipment
JP2020149552A (en) Information processing device, proxy log-in system, proxy log-in method, and proxy log-in program
CN107528819B (en) Account number binding method and device
CN111786936A (en) Method and device for authentication

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