CN114244758A - Network diagnosis method, storage medium, electronic device and system of android platform - Google Patents

Network diagnosis method, storage medium, electronic device and system of android platform Download PDF

Info

Publication number
CN114244758A
CN114244758A CN202111522692.2A CN202111522692A CN114244758A CN 114244758 A CN114244758 A CN 114244758A CN 202111522692 A CN202111522692 A CN 202111522692A CN 114244758 A CN114244758 A CN 114244758A
Authority
CN
China
Prior art keywords
diagnosis
layer
network
data
domain name
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
CN202111522692.2A
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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN202111522692.2A priority Critical patent/CN114244758A/en
Publication of CN114244758A publication Critical patent/CN114244758A/en
Pending legal-status Critical Current

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/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/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a network diagnosis method, a storage medium, electronic equipment and a system of an android platform, and relates to the field of application development of internet mobile terminals. The method comprises the following steps: when network diagnosis is needed, an independent diagnosis thread is created in the Java layer, a preset diagnosis calling interface is called in the independent diagnosis thread, a domain name needing to be diagnosed is obtained, and the domain name is transmitted to the C + + layer; the C + + layer executes a preset network diagnostic function in the independent diagnostic thread, where the network diagnostic function is configured to: analyzing an incoming domain name to obtain a plurality of IPs corresponding to the domain name, and performing TCP socket connection with the corresponding IPs to realize network diagnosis to obtain diagnosis result data; and the C + + layer informs the Java layer of the callback of the diagnosis result data. The invention not only can realize the network diagnosis function of the mobile terminal, but also has small system overhead and ensured equipment performance, thereby meeting the actual application requirements.

Description

Network diagnosis method, storage medium, electronic device and system of android platform
Technical Field
The invention relates to the field of application development of an internet mobile terminal, in particular to a network diagnosis method, a storage medium, electronic equipment and a system of an android platform.
Background
With the gradual penetration of the mobile internet into various fields of life and work of people, the use of a mobile terminal is more and more popular. However, since the mobile terminal is used in a mobile network, network data requests in applications often fail due to network jitter or network changes. In this regard, we generally need to know by means of network diagnostics whether a problem arises, in particular due to a user's local network, or a corresponding server node.
Currently, the conventional solution is to perform network diagnostics by invoking the system command Ping. However, the method of calling the system command Ping needs to create an independent process for detection, and there are problems that the overhead of the process is high and more system resources are wasted in terms of performance. Moreover, an independent process is created for each diagnosis by calling a system command Ping, and once a plurality of diagnoses are needed, a plurality of processes are created at the same time, which has a great influence on the performance of the equipment; at the same time, there is further performance overhead due to the presence of inter-process communication.
Therefore, how to solve the problems of large system overhead, large equipment performance influence and the like while realizing the network diagnosis of the mobile terminal is a difficult problem that needs to be dealt with by those skilled in the art.
Disclosure of Invention
The invention aims to overcome the defects of the background technology, and provides a network diagnosis method, a storage medium, electronic equipment and a system of an android platform, which can realize the network diagnosis function of a mobile terminal, have low system overhead and ensure equipment performance, and can meet the actual application requirements.
In order to achieve the above object, in a first aspect, an embodiment of the present invention provides a network diagnosis method for an android platform, including the following steps:
when network diagnosis is needed, an independent diagnosis thread is created in the Java layer, a preset diagnosis calling interface is called in the independent diagnosis thread, a domain name needing to be diagnosed is obtained, and the domain name is transmitted to the C + + layer;
the C + + layer executes a preset network diagnostic function in the independent diagnostic thread, where the network diagnostic function is configured to: analyzing an incoming domain name to obtain a plurality of IPs corresponding to the domain name, and performing socket (socket) connection of a Transmission Control Protocol (TCP) with the plurality of corresponding IPs to realize network diagnosis to obtain diagnosis result data;
and the C + + layer informs the Java layer of the callback of the diagnosis result data.
As a preferred embodiment, the preset process of the network diagnosis function includes:
setting an interface function of a C + + layer, wherein the interface function comprises an incoming domain name parameter and a callback object parameter;
setting a domain name resolution IP function to be used for resolving an incoming domain name to obtain a plurality of IP addresses corresponding to the domain name;
setting a data structure for realizing a data packet packing and unpacking function, wherein the data structure is defined according to an ICMP (Internet Control Message Protocol) Protocol standard; simultaneously, the IP header format is set, so that the IP header can be adapted to the network messages of IPv4 and IPv 6;
creating a socket object of a system and setting the socket object into a non-blocking mode;
setting a reading and writing event of the socket, and setting a callback processing function of the corresponding reading and writing event;
and setting a fake data packet header, wherein the fake data packet header is used for enabling the sent data to be in one-to-one correspondence with the received data.
As a preferred embodiment, the setting of the read-write event of the socket and the setting of the callback processing function of the corresponding read-write event specifically include the following operations:
defining a socket connection event and a socket read data event by the signals2 component of the system's boost;
respectively binding the socket connection event and the socket reading data event with a realizing method;
and respectively setting corresponding callback processing functions for the socket connection event and the socket reading data event.
As a preferred embodiment, the C + + layer notifies the Java layer of the callback of the diagnosis result data, specifically including the following operations:
predefining a Java layer receiving interface on a Java layer, wherein the Java layer receiving interface comprises a diagnosed domain name parameter, a diagnosed IP parameter and a diagnosis result data parameter;
and the C + + layer calls a Java layer receiving Interface of the callback object parameter through JNI (Java Native Interface) and notifies the Java layer of the diagnosis result data callback.
As a preferred embodiment, the forged data packet header includes: protocol version number, IP address, data length and ID serial number when data is sent.
As a preferred embodiment, the diagnosis result data is processed data, and the processing procedure includes: sorting all the returned data to obtain the data with the shortest time consumption and the data with the longest time consumption; and the average consumed time is obtained by calculating the average consumed time of all data.
As a preferred embodiment, the method further comprises the following operations: when the network diagnosis needs to be finished, the Java layer realizes the exit of the network diagnosis function by stopping the independent diagnosis thread.
In a second aspect, an embodiment of the present invention provides a network diagnosis system for an android platform, including:
the Java layer processing module is used for controlling a Java layer to create an independent diagnosis thread when network diagnosis is needed, acquiring a domain name needing to be diagnosed by calling a preset diagnosis calling interface in the independent diagnosis thread, and transmitting the domain name into a C + + layer;
a C + + layer processing module, configured to cause the C + + layer to execute a preset network diagnosis function in the independent diagnosis thread, where the network diagnosis function is configured to: analyzing an incoming domain name to obtain a plurality of IPs corresponding to the domain name, and performing TCP socket connection with the corresponding IPs to realize network diagnosis to obtain diagnosis result data;
and the C + + layer reporting module is used for calling back the diagnosis result data to notify the Java layer.
In a third aspect, an embodiment of the present invention further provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method in the first aspect.
In a fourth aspect, an embodiment of the present invention further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program running on the processor, and the processor executes the computer program to implement the method in the first aspect.
The invention has the beneficial effects that:
when the network diagnosis function of the mobile terminal is realized, an independent thread is created by the Java layer, the specific network diagnosis function is realized by the C + + layer, and the diagnosis function of the C + + layer is executed in the independent thread of the Java layer. Because the whole diagnosis call is executed by one thread (created by a Java layer) created in the process of the mobile terminal APP, no new process is required to be created, the thread has lower cost compared with the process, system resources can be saved, the performance of equipment cannot be greatly influenced even if a plurality of network diagnoses are carried out simultaneously, and the actual application requirement is met. In addition, the scheme is specially designed to deliver the specific function of realizing the network diagnosis to the C + + layer for execution (namely, in native SO), SO that the performance can be further improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings corresponding to the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flowchart of a network diagnosis method for an android platform in an embodiment of the present invention;
fig. 2 is a block diagram of a network diagnosis system of an android platform in the embodiment of the present invention.
In the figure: the system comprises a 10-Java layer processing module, a 20-C + + layer processing module and a 30-C + + layer reporting module.
Detailed Description
The method aims at solving the problems that in the prior art, the conventional mode of calling the system command Ping to carry out network diagnosis has high process overhead, wastes more system resources, and has large influence on equipment performance. The invention aims to provide a network diagnosis method, a storage medium, electronic equipment and a system of an android platform, which can realize the network diagnosis function of a mobile terminal, have low system overhead and ensure equipment performance, and meet the actual application requirements.
In order to achieve the technical effects, the main design idea of the invention is as follows:
when network diagnosis is needed, an independent diagnosis thread is created in the Java layer, a preset diagnosis calling interface is called in the independent diagnosis thread, a domain name needing to be diagnosed is obtained, and the domain name is transmitted to the C + + layer;
the C + + layer executes a preset network diagnosis function in the independent diagnosis thread, wherein the network diagnosis function is used for: analyzing an incoming domain name to obtain a plurality of IPs corresponding to the domain name, and performing TCP socket connection with the corresponding IPs to realize network diagnosis to obtain diagnosis result data;
and the C + + layer informs the Java layer of the callback of the diagnosis result data.
In summary, in the present solution, when the network diagnosis function of the mobile terminal is implemented, an independent thread is created by the Java layer, and the specific network diagnosis function is implemented by the C + + layer, and the diagnosis function of the C + + layer is executed in the independent thread of the Java layer. In the scheme, the whole diagnosis call is executed through one thread (created by a Java layer) created in the process of the mobile terminal APP, a new process does not need to be additionally created, the cost of the thread is lower compared with the process, system resources can be saved, the performance of equipment cannot be greatly influenced even if a plurality of network diagnoses are carried out simultaneously, and the actual application requirement is met. In addition, the scheme is specially designed to deliver the specific function of realizing the network diagnosis to the C + + layer for execution (namely, the function is carried out in native SO), SO that the performance can be further improved (as native is developed by using C + +, the performance of the native is better than that of the upper Java language).
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
However, it should be noted that: the examples to be described next are only some specific examples, and are not intended to limit the embodiments of the present invention necessarily to the following specific steps, values, conditions, data, orders, and the like. Those skilled in the art can, upon reading this specification, utilize the concepts of the present invention to construct more embodiments than those specifically described herein.
Example one
Referring to fig. 1, the present embodiment provides a network diagnosis method for an android platform, including the following steps:
step S1, when network diagnosis is needed, the Java layer creates an independent diagnosis thread, acquires a domain name needing to be diagnosed by calling a preset diagnosis calling interface in the independent diagnosis thread, and transmits the domain name into the C + + layer.
It can be understood that, when the network diagnosis function of the mobile terminal is implemented in the embodiment of the present invention, an independent diagnosis thread is created by the Java layer, the thread is used to implement the call of the preset diagnosis call interface of the Java layer, the domain name to be diagnosed can be acquired through the preset diagnosis call interface, and is transmitted to the C + + layer, and then the C + + layer implements the specific network diagnosis. The whole execution process is completed in the created independent diagnosis thread, no additional new process is required to be created, the thread execution mode is adopted, the overhead is low, the system resources can be saved, and the performance of the equipment cannot be greatly influenced even if a plurality of network diagnoses are carried out simultaneously.
As an exemplary, optional implementation manner, in step S1, the preset diagnosis invoking interface may include the following parameters: domain name parameters that need to be diagnosed and result callback parameters. Wherein, the domain name parameters needing to be diagnosed are used for: informing which requested domain name currently needs to be diagnosed. It can be understood that although each request has a domain name and other parameters of the request, the network diagnosis is performed only by checking whether the domain name is on, and therefore, the diagnosis does not need to be performed separately for each request, so that the number of times of diagnosis can be reduced, and the pressure of the server is also reduced. The result callback parameters are used to: and notifying the Java layer of the result callback. By means of the callback notification, the Java layer can obtain the diagnosis result data as early as possible.
For example, in a specific implementation, the predetermined diagnosis call interface may be designed as follows: void Ping (String host, ResultCallback obj); wherein, the host is a domain name parameter needing to be diagnosed; ResultCallback is the result callback parameter.
Step S2, the C + + layer executes a preset network diagnostic function in the independent diagnostic thread, where the network diagnostic function is configured to: analyzing the transmitted domain name to obtain a plurality of IPs corresponding to the domain name, and performing TCP socket connection with the corresponding IPs to realize network diagnosis and obtain diagnosis result data.
In this embodiment, a specific function for implementing network diagnosis is specifically designed to be executed by the C + + layer (i.e., performed in native SO), SO that the performance can be further improved. Because native itself is developed by using C + +, the performance of native is better than that of Java language at an upper layer, and therefore, specific implementation functions are handed to the C + + layer to be executed, and the performance can be further improved.
Specifically, as an optional implementation manner, in step S2, the preset process of the network diagnosis function includes:
1) and setting an interface function of a C + + layer, wherein the interface function comprises the following parameters: incoming domain name parameters and callback object parameters. Wherein the incoming domain name parameters are used to: the domain name string passed in by the Java layer is passed. The callback object parameters are used to: and notifying the Java layer of the result callback through the callback object. For example, in a specific implementation, the interface functions of the C + + layer may be set as follows: void native _ ping (streaming host1, jobect cb); where host1 is the incoming domain name parameter; cb is a callback object parameter. It will be appreciated that the purpose of the interface function provided in the C + + layer is to provide an interface to the Java layer for invocation.
2) And setting a domain name resolution IP function to be used for resolving the transmitted domain name to obtain a plurality of IP addresses corresponding to the domain name.
It can be understood that, in this embodiment, when the Java layer finds a network problem (i.e., when network diagnosis needs to be performed), a corresponding requested domain name is introduced, and then the C + + layer parses the received domain name to obtain a corresponding IP address. Therefore, a domain name resolution IP function needs to be set in the preset process of the network diagnosis function, so that the domain name is resolved by calling the system API function to obtain an IP address. Generally, the same domain name corresponds to a plurality of IP addresses, so each IP address needs to be recorded when performing diagnosis, and since which IP address is not fixed is specifically used in the network request, a diagnosis request needs to be initiated for all analyzed IP addresses when performing network diagnosis by performing socket connection of TCP subsequently, and a diagnosis result of each IP address is recorded and result data is returned to the Java layer.
Illustratively, in practical applications, when a domain name resolution IP function is set, resolution of a domain name may be implemented by calling a system API function getaddrinfo, so as to obtain a plurality of corresponding IP addresses.
3) Setting a data structure for realizing the data packet packing and unpacking function, wherein the data structure is defined according to an ICMP protocol standard; and simultaneously, the IP header format is set, so that the IP header is adapted to 2 network messages of IPv4 and IPv 6.
It can be understood that, after the IP corresponding to the domain name is obtained through resolution, the network diagnosis needs to be implemented subsequently through socket connection of TCP with a plurality of corresponding IPs. After the socket is connected, it needs to send a packet ICMP protocol packet to the IP of the server, and also needs to receive a response packet of the server (in essence, the network diagnosis function is to send an ICMP packet and receive an ICMP packet at the same time, and obtain corresponding diagnosis result data according to the data of the received and sent packets), so when sending a packet and parsing a packet, it needs to use a packet packing and unpacking function, and at the same time, in order to ensure successful sending and receiving of a packet, it needs to set the format of the IP header, so that the IP header can be adapted to 2 networks, i.e. IPv4 and IPv6, existing in the existing network.
Illustratively, as an optional implementation, the name of the data structure may be defined as a Struct icmpPacket, and the structure body may include: a method for generating a transmitted message and a method for analyzing a received message. The specific message containing the fields can inquire each field in the protocol according to the ICMP standard document, and the same is true for protocol analysis, and the content of each field in the protocol message can be analyzed according to the ICMP standard.
Illustratively, as an optional implementation manner, the IP header format provided by this embodiment includes the following two types:
A. and the IP header format for adapting the IPv4 comprises a version number, a unique identification of a protocol, a checksum, a local IP address, a peer IP address and the like. For example, the specific code design can be as follows:
Figure BDA0003408344840000091
Figure BDA0003408344840000101
B. the IP header format for adapting IPv6 includes version number, unique identification of protocol, protocol field, local IP address, peer IP address, etc. For example, the specific code design can be as follows:
Figure BDA0003408344840000102
through the operation, the data packet packing and unpacking function and the IP header format can be set. Subsequently, according to the above setting, the relevant data can be sent to the server through the socket, and the relevant data can be received from the server and analyzed.
4) A socket object of a system is created and set to a non-blocking mode.
It can be understood that, in order to implement socket connection of TCP with a plurality of corresponding IPs, a socket object of a system needs to be created, and after the socket object is created, the socket needs to be set. Since the embodiment obtains the read-write data of the socket through the asynchronous event, the socket object needs to be set to the non-blocking mode. For example, the corresponding setting may be implemented by a set _ socket _ non _ blocking (socket) method.
5) And setting a reading and writing event of the socket, and setting a callback processing function of the corresponding reading and writing event.
It can be understood that after the creation and setting of the socket object are completed, the read-write event of the socket needs to be set. For the socket, since it is asynchronous, a callback processing function of a corresponding read-write event needs to be set for the socket. Because the socket is a bottom layer read-write data function, and after receiving and sending data based on the socket, the corresponding processing is in an upper application layer, the event and the logic for processing the event are decoupled by using the signals2 component of the boost in the embodiment, so that the upper layer processing is more convenient, and the subsequent function expansion is facilitated.
Specifically, the step 5) may include the following operations:
5-1, two events are defined by the signals2 component of the system's boost: a socket connection event for informing the socket of success or failure of the connection; a socket reads data events for the reading of data. It is understood that after a Socket is created, the application layer can be asynchronously notified when the Socket receives data by registering the related asynchronous event, such as Socket _ register (Read | connect). For example, two events defined by the signals2 component of the system's boost in actual application may be as follows:
boost 2 signal, connection conn; // socket connect event
boost 2 signal < void () > read// socket read data event
And 5-2, binding the two events defined above to realize the method. For example, the code that implements the binding may be as follows:
bind (ConnProcess); method for realizing binding connection event
Bind (ReadData); method for realizing binding read event
And 5-3, setting corresponding callback processing functions for the two events defined above.
5-3-1, setting a callback processing function corresponding to the connection event: first, a callback processing function corresponding to a connection event, such as Void ConnectEvent (Type e), is defined and set to: after the socket is established, the socket is connected, and whether the connection is successful or failed is informed; meanwhile, the upper application layer of the socket is notified by calling the bind component object conn, such as conn (e); and the upper application layer will send the network request according to the success event by calling the binding event processing function of the preset conn, such as Void ConnProcess (Type e). In actual operation, the parameter e can be used to determine whether the connection is successful or failed to make a subsequent logical determination, and if the connection is failed, the current flow is terminated, and if the connection is successful, data needs to be sent to the server.
5-3-2, setting a callback processing function corresponding to the reading event: first, a callback processing function corresponding to a read event, such as Void handleRead (), is defined and set to be used for: when the socket has a Read event, notifying an upper application layer of the socket to process data by calling a bind component object Read, such as Read (); and the upper application layer calls a preset binding event processing function of read, such as Void ReadData (), so as to complete the processing of the received data. In actual operation, in a preset binding event processing function of the read, the address of the variable storage socket may be defined and the length of the received data may be stored, and the variable storage socket may be further configured to receive and store the data by calling a recvdrom function of the socket.
For example, the binding event handling function of the preset read can be designed as follows:
Figure BDA0003408344840000121
6) setting a fake data packet header, wherein the fake data packet header is used for: the transmitted data and the received data are made to correspond one-to-one.
It can be understood that, in the android system, when a data packet is received, the system discards a data packet header of the received data and then passes the data packet header to the application layer for security, so that the application layer cannot receive the data packet header of the system. Therefore, in order to perform data processing operations such as data reading, a header of a data packet needs to be forged. Through the forged data packet header, the transmitted data and the received data can be in one-to-one correspondence, so that the normal execution of the flows of data processing operation and the like is ensured. Specifically, in practical applications, the forged data packet header mainly includes: protocol version number, IP address, data length, ID number when data is transmitted, and the like.
Through the above operation, the presetting of the diagnostic function can be completed. When the subsequent C + + layer executes the preset network diagnosis function in the independent thread, the above setting can be used for analyzing the transmitted domain name to obtain a plurality of IPs corresponding to the domain name, and each function of network diagnosis is realized by performing TCP socket connection with the corresponding plurality of IPs, so that corresponding diagnosis result data is obtained.
Further, as a preferred implementation manner, in this embodiment, the diagnosis result data is processed data, and the processing includes: sequencing all returned data in socket connection with a corresponding IP in a time-consuming manner to obtain data with the shortest time consumption and data with the longest time consumption (it can be understood that when socket connection is performed with the corresponding IP, connection is established by sending data to each other, so that the smallest time consumption and the largest time consumption can be obtained by sequencing all the time consumption of the received data returned in socket connection); and the average consumed time is obtained by calculating the average consumed time of all data. Correspondingly, the diagnosis result data in the present embodiment includes: the minimum time consumption, the average time consumption and the maximum time consumption of the IP data corresponding to the current domain name diagnosis and the currently received data returned when the IP is in socket connection.
And step S3, the C + + layer informs the Java layer of the diagnosis result data callback.
It can be understood that, in order to receive the diagnosis result data fed back by the C + + layer, the Java layer needs to define a Java layer receiving interface in advance in the Java layer, so as to provide the interface to the C + + layer for calling, and thus, notify the Java layer of the obtained diagnosis result data callback. For the C + + layer, since an interface function of the C + + layer, such as a voice native _ ping (bridging host1, bridging cb), is set in the previous presetting process of the network diagnostic function, and the interface function includes a callback object parameter (cb), the Java layer receiving interface of the object can be called to inform the Java layer network of the diagnostic result data.
Specifically, as an alternative embodiment, step S3 includes the following operations:
s31, predefining a Java layer receiving interface at the Java layer, wherein the Java layer receiving interface comprises the following parameters: domain name parameters for diagnosis, IP parameters for diagnosis, and data parameters for diagnosis results, etc. For example, the Java layer receive interface may be designed as follows: VoidPingResultCall (Stringhost, Stringip, int min, int max, int mean, int fail); the host is a domain name parameter for diagnosis, the IP is an IP parameter for diagnosis, the min, the max and the mean are diagnosis result data parameters which respectively correspond to the minimum time consumption, the maximum time consumption and the average time consumption, and the fail is the identification frequency of all data packets.
And S32, the C + + layer calls a Java layer receiving interface (how PingResultCall interface) of a callback object (such as a jobct cb object) through JNI and informs the Java layer of the diagnosis result data callback.
And step S4, when the network diagnosis needs to be finished, the Java layer stops the independent diagnosis thread to realize the exit of the network diagnosis function.
It can be understood that, in practical applications, once the application layer has a condition that the current network is not good, diagnosis will frequently occur, and especially in the case of network jitter or network change, the user is likely to turn off the mobile terminal APP at any time, so that the system needs to be able to end the whole diagnosis function immediately. Since the diagnostic function is a relatively time-consuming operation (which is a network operation of one IO) and needs to perform data transmission with the server, the present embodiment also has an advantage of utilizing thread execution in order to enable exit of the diagnostic function with high performance and high efficiency. Because the independent thread is created by the Java layer, and the specific diagnosis function in the C + + layer is executed in the thread, when the program exits (namely the network diagnosis needs to be finished), the Java layer can conveniently stop the execution of the thread, so that the exit of the network diagnosis function is quickly realized, the robustness of the whole program is better, the program cannot be blocked when the application exits, and meanwhile, the C + + layer is informed to exit the diagnosis function without considering the additional addition of other interfaces of the Java layer, so that the method is efficient and convenient.
As can be seen from the operations in the above steps S1 to S4, when the network diagnosis function of the mobile terminal is implemented, an independent thread is created by the Java layer, and the specific network diagnosis function is implemented by the C + + layer, and the diagnosis function of the C + + layer is executed in the independent thread of the Java layer. Because the whole diagnosis call is executed by one thread (created by a Java layer) created in the process of the mobile terminal APP, no new process is required to be created, the thread has lower cost compared with the process, system resources can be saved, the performance of equipment cannot be greatly influenced even if a plurality of network diagnoses are carried out simultaneously, and the actual application requirement is met. In addition, the scheme is specially designed to deliver the specific function of realizing the network diagnosis to the C + + layer for execution (namely, in native SO), SO that the performance can be further improved.
Example two
Based on the same inventive concept, as shown in fig. 2, a second embodiment of the present invention provides a network diagnosis system of an android platform, which includes:
the Java layer processing module 10 is configured to control a Java layer to create an independent diagnosis thread when network diagnosis needs to be performed, acquire a domain name to be diagnosed by calling a preset diagnosis calling interface in the independent diagnosis thread, and transmit the domain name to a C + + layer;
a C + + layer processing module 20, configured to cause the C + + layer to execute a preset network diagnostic function in the independent diagnostic thread, where the network diagnostic function is configured to: analyzing an incoming domain name to obtain a plurality of IPs corresponding to the domain name, and performing TCP socket connection with the corresponding IPs to realize network diagnosis to obtain diagnosis result data;
and the C + + layer reporting module 30 is configured to call back the diagnosis result data to the Java layer.
Various modifications and specific examples in the foregoing method embodiments are also applicable to the system of the present embodiment, and the detailed description of the method is clear to those skilled in the art, so that the detailed description is omitted here for the sake of brevity.
EXAMPLE III
Based on the same inventive concept, a third embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements a network diagnosis method of an android platform, the method including:
when network diagnosis is needed, an independent diagnosis thread is created in the Java layer, a preset diagnosis calling interface is called in the independent diagnosis thread, a domain name needing to be diagnosed is obtained, and the domain name is transmitted to the C + + layer;
the C + + layer executes a preset network diagnosis function in the independent diagnosis thread, wherein the network diagnosis function is used for: analyzing an incoming domain name to obtain a plurality of IPs corresponding to the domain name, and performing TCP socket connection with the corresponding IPs to realize network diagnosis to obtain diagnosis result data;
and the C + + layer informs the Java layer of the callback of the diagnosis result data.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer-readable storage medium may be, for example but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: 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 context of this document, 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.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, 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: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like 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).
Example four
Based on the same inventive concept, a fourth embodiment of the present invention further provides an electronic device, which includes a memory and a processor, wherein the memory stores a computer program running on the processor, and the processor executes the computer program to implement all or part of the method steps in the first embodiment.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like which is the control center for the computer device and which connects the various parts of the overall computer device using various interfaces and lines.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the computer device by running or executing the computer programs and/or modules stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, video data, etc.) created according to the use of the cellular phone, etc. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Generally, the network diagnosis method, the storage medium, the electronic device and the system of the android platform provided by the embodiment of the invention can realize the network diagnosis function of the mobile terminal, have low system overhead and ensure the device performance, and can meet the actual application requirements.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Note that: the above-described embodiments are merely examples and are not intended to be limiting, and those skilled in the art can combine and combine some steps and devices from the above-described separately embodiments to achieve the effects of the present invention according to the concept of the present invention, and such combined and combined embodiments are also included in the present invention, and such combined and combined embodiments are not described herein separately.
Advantages, effects, and the like, which are mentioned in the embodiments of the present invention, are only examples and are not limiting, and they cannot be considered as necessarily possessed by the various embodiments of the present invention. Furthermore, the foregoing specific details disclosed herein are merely for purposes of example and for purposes of clarity of understanding, and are not intended to limit the embodiments of the invention to the particular details which may be employed to practice the embodiments of the invention.
The block diagrams of devices, apparatuses, systems involved in the embodiments of the present invention are only given as illustrative examples, and are not intended to require or imply that the connections, arrangements, configurations, etc. must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by those skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. As used in connection with embodiments of the present invention, the terms "or" and "refer to the term" and/or "and are used interchangeably herein unless the context clearly dictates otherwise. The word "such as" is used in connection with embodiments of the present invention to mean, and is used interchangeably with, the word "such as but not limited to".
The flow charts of steps in the embodiments of the present invention and the above description of the methods are merely illustrative examples and are not intended to require or imply that the steps of the various embodiments must be performed in the order presented. As will be appreciated by those skilled in the art, the order of the steps in the above embodiments may be performed in any order. Words such as "thereafter," "then," "next," etc. are not intended to limit the order of the steps; these words are only used to guide the reader through the description of these methods. Furthermore, any reference to an element in the singular, for example, using the articles "a," "an," or "the" is not to be construed as limiting the element to the singular.
In addition, the steps and devices in the embodiments of the present invention are not limited to be implemented in a certain embodiment, and in fact, some steps and devices in the embodiments of the present invention may be combined according to the concept of the present invention to conceive new embodiments, and these new embodiments are also included in the scope of the present invention.
The respective operations in the embodiments of the present invention may be performed by any appropriate means capable of performing the corresponding functions. The means may comprise various hardware and/or software components and/or modules including, but not limited to, hardware circuitry or a processor.
The method of an embodiment of the invention includes one or more acts for implementing the method described above. The methods and/or acts may be interchanged with one another without departing from the scope of the claims. In other words, unless a specific order of actions is specified, the order and/or use of specific actions may be modified without departing from the scope of the claims.
Various changes, substitutions and alterations to the techniques described herein may be made by those skilled in the art without departing from the techniques of the teachings as defined by the appended claims. Moreover, the scope of the claims of the present disclosure is not limited to the particular aspects of the process, machine, manufacture, composition of matter, means, methods and acts described above. Processes, machines, manufacture, compositions of matter, means, methods, or acts, presently existing or later to be developed that perform substantially the same function or achieve substantially the same result as the corresponding aspects described herein may be utilized. Accordingly, the appended claims are intended to include within their scope such processes, machines, manufacture, compositions of matter, means, methods, or acts.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the invention. Thus, the present invention is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, the description is not intended to limit embodiments of the invention to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof. And those not described in detail in this specification are within the skill of the art.

Claims (10)

1. A network diagnosis method of an android platform is characterized by comprising the following steps:
when network diagnosis is needed, an independent diagnosis thread is created in the Java layer, a preset diagnosis calling interface is called in the independent diagnosis thread, a domain name needing to be diagnosed is obtained, and the domain name is transmitted to the C + + layer;
the C + + layer executes a preset network diagnostic function in the independent diagnostic thread, where the network diagnostic function is configured to: analyzing an incoming domain name to obtain a plurality of IPs corresponding to the domain name, and performing TCP socket connection with the corresponding IPs to realize network diagnosis to obtain diagnosis result data;
and the C + + layer informs the Java layer of the callback of the diagnosis result data.
2. The android platform network diagnosis method of claim 1, wherein the preset process of the network diagnosis function includes:
setting an interface function of a C + + layer, wherein the interface function comprises an incoming domain name parameter and a callback object parameter;
setting a domain name resolution IP function to be used for resolving an incoming domain name to obtain a plurality of IP addresses corresponding to the domain name;
setting a data structure for realizing the data packet packing and unpacking function, wherein the data structure is defined according to an ICMP protocol standard; simultaneously, the IP header format is set, so that the IP header can be adapted to the network messages of IPv4 and IPv 6;
creating a socket object of a system and setting the socket object into a non-blocking mode;
setting a reading and writing event of the socket, and setting a callback processing function of the corresponding reading and writing event;
and setting a fake data packet header, wherein the fake data packet header is used for enabling the sent data to be in one-to-one correspondence with the received data.
3. The android platform network diagnosis method of claim 2, wherein the setting of the read-write event of the socket and the setting of the callback processing function of the corresponding read-write event specifically include the following operations:
defining a socket connection event and a socket read data event by the signals2 component of the system's boost;
respectively binding the socket connection event and the socket reading data event with a realizing method;
and respectively setting corresponding callback processing functions for the socket connection event and the socket reading data event.
4. The android platform network diagnosis method of claim 2, wherein the C + + layer notifies a Java layer of the diagnosis result data callback, specifically including the following operations:
predefining a Java layer receiving interface on a Java layer, wherein the Java layer receiving interface comprises a diagnosed domain name parameter, a diagnosed IP parameter and a diagnosis result data parameter;
and the C + + layer calls a Java layer receiving interface of the callback object parameter through JNI and notifies the Java layer of the callback of the diagnosis result data.
5. The android platform network diagnostic method of claim 2, in which the fake data packet header comprises: protocol version number, IP address, data length and ID serial number when data is sent.
6. The android platform network diagnosis method of claim 1, wherein the diagnosis result data is processed data, and the processing procedure includes:
sequencing all the returned data when socket connection is carried out on the corresponding IP so as to obtain the data with the shortest consumed time and the data with the longest consumed time; and the average consumed time is obtained by calculating the average consumed time of all data.
7. The android platform network diagnostic method of claim 1, further comprising the operations of:
when the network diagnosis needs to be finished, the Java layer realizes the exit of the network diagnosis function by stopping the independent diagnosis thread.
8. A storage medium having a computer program stored thereon, characterized in that: the computer program, when executed by a processor, implements the method of any one of claims 1 to 7.
9. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program that runs on the processor, characterized in that: the processor, when executing the computer program, implements the method of any of claims 1 to 7.
10. A network diagnostic system of an android platform is characterized by comprising:
the Java layer processing module is used for controlling a Java layer to create an independent diagnosis thread when network diagnosis is needed, acquiring a domain name needing to be diagnosed by calling a preset diagnosis calling interface in the independent diagnosis thread, and transmitting the domain name into a C + + layer;
a C + + layer processing module, configured to cause the C + + layer to execute a preset network diagnosis function in the independent diagnosis thread, where the network diagnosis function is configured to: analyzing an incoming domain name to obtain a plurality of IPs corresponding to the domain name, and performing TCP socket connection with the corresponding IPs to realize network diagnosis to obtain diagnosis result data;
and the C + + layer reporting module is used for calling back the diagnosis result data to notify the Java layer.
CN202111522692.2A 2021-12-13 2021-12-13 Network diagnosis method, storage medium, electronic device and system of android platform Pending CN114244758A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111522692.2A CN114244758A (en) 2021-12-13 2021-12-13 Network diagnosis method, storage medium, electronic device and system of android platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111522692.2A CN114244758A (en) 2021-12-13 2021-12-13 Network diagnosis method, storage medium, electronic device and system of android platform

Publications (1)

Publication Number Publication Date
CN114244758A true CN114244758A (en) 2022-03-25

Family

ID=80755477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111522692.2A Pending CN114244758A (en) 2021-12-13 2021-12-13 Network diagnosis method, storage medium, electronic device and system of android platform

Country Status (1)

Country Link
CN (1) CN114244758A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115333977A (en) * 2022-08-11 2022-11-11 南京国电南自电网自动化有限公司 System diagnosis channel realization method and device based on network interface

Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050204180A1 (en) * 2004-03-12 2005-09-15 Autodesk, Inc. Stack-based callbacks for diagnostic data generation
CN102323883A (en) * 2011-09-05 2012-01-18 广东东纳软件科技有限公司 Navigation vehicle information management system based on Android system
US20120030687A1 (en) * 2010-07-28 2012-02-02 International Business Machines Corporation Efficient data transfer on local network connections using a pseudo socket layer
CN102447572A (en) * 2010-10-12 2012-05-09 中国电信股份有限公司 Internet-surfing assistant system and method for assisting client side user in solving encountered faults
CN103001835A (en) * 2012-12-29 2013-03-27 电信科学技术第一研究所 Network bandwidth test method and system based on data transmission
CN103179608A (en) * 2013-03-22 2013-06-26 福建联迪商用设备有限公司 Two-generation/third-generation (2/3G) wireless module diagnosis test method and device
CN103763156A (en) * 2014-01-28 2014-04-30 中国移动(深圳)有限公司 Network speed measurement method and system
CN105553977A (en) * 2015-12-15 2016-05-04 网易(杭州)网络有限公司 Request message processing and transmitting method and device
US20160182977A1 (en) * 2014-12-19 2016-06-23 Telefonaktiebolaget L M Ericsson (Publ) User interaction with advertisements on hybrid terminals
CN107133045A (en) * 2017-05-09 2017-09-05 上海雪鲤鱼计算机科技有限公司 Cross-platform game engine multi-threading correspondence method, device, storage medium and equipment
CN108092837A (en) * 2016-11-21 2018-05-29 腾讯科技(深圳)有限公司 Network communication quality detection method tests the speed server and network tests the speed plug-in unit
CN108199874A (en) * 2017-12-29 2018-06-22 上海司南卫星导航技术股份有限公司 A kind of Network Fault Detection and method, GNSS receiver and the computer-readable medium repaired
US20190361756A1 (en) * 2017-07-14 2019-11-28 Tencent Technology (Shenzhen) Company Limited Application program control method and apparatus, terminal, and storage medium
CN110661669A (en) * 2019-10-11 2020-01-07 云南电网有限责任公司德宏供电局 Network topology automatic discovery method of network equipment based on ICMP, TCP and UDP protocols
CN110999310A (en) * 2017-08-23 2020-04-10 三星电子株式会社 Client device, companion screen device, and operating method thereof
CN111814155A (en) * 2020-08-31 2020-10-23 北京安帝科技有限公司 Vulnerability detection method, platform and device and computer readable medium
CN111881212A (en) * 2020-07-28 2020-11-03 Oppo广东移动通信有限公司 Method, device, equipment and storage medium for executing check point operation
CN111988308A (en) * 2020-08-18 2020-11-24 深圳中兴网信科技有限公司 Video monitoring device, implementation method of video monitoring device and readable storage medium
CN112532470A (en) * 2020-11-05 2021-03-19 苏州浪潮智能科技有限公司 Method and system for actively reporting log information by BMC
CN113273135A (en) * 2019-05-22 2021-08-17 Abb瑞士股份有限公司 Network topology discovery in a substation
CN113596546A (en) * 2021-07-26 2021-11-02 海信电子科技(深圳)有限公司 Multi-stream program playing method and display equipment

Patent Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050204180A1 (en) * 2004-03-12 2005-09-15 Autodesk, Inc. Stack-based callbacks for diagnostic data generation
US20120030687A1 (en) * 2010-07-28 2012-02-02 International Business Machines Corporation Efficient data transfer on local network connections using a pseudo socket layer
CN102447572A (en) * 2010-10-12 2012-05-09 中国电信股份有限公司 Internet-surfing assistant system and method for assisting client side user in solving encountered faults
CN102323883A (en) * 2011-09-05 2012-01-18 广东东纳软件科技有限公司 Navigation vehicle information management system based on Android system
CN103001835A (en) * 2012-12-29 2013-03-27 电信科学技术第一研究所 Network bandwidth test method and system based on data transmission
CN103179608A (en) * 2013-03-22 2013-06-26 福建联迪商用设备有限公司 Two-generation/third-generation (2/3G) wireless module diagnosis test method and device
CN103763156A (en) * 2014-01-28 2014-04-30 中国移动(深圳)有限公司 Network speed measurement method and system
US20160182977A1 (en) * 2014-12-19 2016-06-23 Telefonaktiebolaget L M Ericsson (Publ) User interaction with advertisements on hybrid terminals
CN105553977A (en) * 2015-12-15 2016-05-04 网易(杭州)网络有限公司 Request message processing and transmitting method and device
CN108092837A (en) * 2016-11-21 2018-05-29 腾讯科技(深圳)有限公司 Network communication quality detection method tests the speed server and network tests the speed plug-in unit
CN107133045A (en) * 2017-05-09 2017-09-05 上海雪鲤鱼计算机科技有限公司 Cross-platform game engine multi-threading correspondence method, device, storage medium and equipment
US20190361756A1 (en) * 2017-07-14 2019-11-28 Tencent Technology (Shenzhen) Company Limited Application program control method and apparatus, terminal, and storage medium
CN110999310A (en) * 2017-08-23 2020-04-10 三星电子株式会社 Client device, companion screen device, and operating method thereof
CN108199874A (en) * 2017-12-29 2018-06-22 上海司南卫星导航技术股份有限公司 A kind of Network Fault Detection and method, GNSS receiver and the computer-readable medium repaired
CN113273135A (en) * 2019-05-22 2021-08-17 Abb瑞士股份有限公司 Network topology discovery in a substation
CN110661669A (en) * 2019-10-11 2020-01-07 云南电网有限责任公司德宏供电局 Network topology automatic discovery method of network equipment based on ICMP, TCP and UDP protocols
CN111881212A (en) * 2020-07-28 2020-11-03 Oppo广东移动通信有限公司 Method, device, equipment and storage medium for executing check point operation
CN111988308A (en) * 2020-08-18 2020-11-24 深圳中兴网信科技有限公司 Video monitoring device, implementation method of video monitoring device and readable storage medium
CN111814155A (en) * 2020-08-31 2020-10-23 北京安帝科技有限公司 Vulnerability detection method, platform and device and computer readable medium
CN112532470A (en) * 2020-11-05 2021-03-19 苏州浪潮智能科技有限公司 Method and system for actively reporting log information by BMC
CN113596546A (en) * 2021-07-26 2021-11-02 海信电子科技(深圳)有限公司 Multi-stream program playing method and display equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
YEXUANXIAO: "tcping", Retrieved from the Internet <URL:https://github.com/YexuanXiao/tcping/tcping.cpp> *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115333977A (en) * 2022-08-11 2022-11-11 南京国电南自电网自动化有限公司 System diagnosis channel realization method and device based on network interface
CN115333977B (en) * 2022-08-11 2023-08-15 南京国电南自电网自动化有限公司 Method and device for realizing system diagnosis channel based on network interface

Similar Documents

Publication Publication Date Title
US9015822B2 (en) Automatic invocation of DTN bundle protocol
CN108664395B (en) Application program testing method, device, equipment and storage medium
US9769012B2 (en) Notification normalization
US11907700B2 (en) Upgrading method and system, server, and terminal device
WO2019227427A1 (en) File download method, device and apparatus/terminal/server
CN110324405B (en) Message sending method, device, system and computer readable storage medium
CN113360301B (en) Message transmission system and method
CN109889521B (en) Memory, communication channel multiplexing implementation method, device and equipment
CN112261094A (en) Message processing method and proxy server
CN114124929A (en) Cross-network data processing method and device
WO2022267815A1 (en) Data packet filtering method and apparatus, and electronic device and computer-readable storage medium
CN114244758A (en) Network diagnosis method, storage medium, electronic device and system of android platform
WO2021238259A1 (en) Data transmission method, apparatus and device, and computer-readable storage medium
CN113965628A (en) Message scheduling method, server and storage medium
CN108289165B (en) Method and device for realizing camera control based on mobile phone and terminal equipment
CN114138371B (en) Configuration dynamic loading method and device, computer equipment and storage medium
CN110022332B (en) Hypertext transfer security protocol proxy method, device, equipment and medium
CN112422485A (en) Communication method and device of transmission control protocol
CN111459819B (en) Software testing method and device, electronic equipment and computer readable medium
CN113300936B (en) CDN node, edge node signaling adaptation method, device and storage medium
WO2021128936A1 (en) Message processing method and apparatus
CN112039801B (en) Method, system and proxy server for setting IP information
CN113641518A (en) Service calling method, device and storage medium
CN112632534A (en) Malicious behavior detection method and device
CN114979006B (en) Session Initiation Protocol (SIP) message processing method and system

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