CN110912771B - Test method and device for acceleration node, electronic equipment and computer readable medium - Google Patents

Test method and device for acceleration node, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN110912771B
CN110912771B CN201911146236.5A CN201911146236A CN110912771B CN 110912771 B CN110912771 B CN 110912771B CN 201911146236 A CN201911146236 A CN 201911146236A CN 110912771 B CN110912771 B CN 110912771B
Authority
CN
China
Prior art keywords
node
acceleration
nodes
network protocol
speed measurement
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
CN201911146236.5A
Other languages
Chinese (zh)
Other versions
CN110912771A (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201911146236.5A priority Critical patent/CN110912771B/en
Publication of CN110912771A publication Critical patent/CN110912771A/en
Application granted granted Critical
Publication of CN110912771B publication Critical patent/CN110912771B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/35Network arrangements, protocols or services for addressing or naming involving non-standard use of addresses for implementing network functionalities, e.g. coding subscription information within the address or functional addressing, i.e. assigning an address to a function
    • 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/01Protocols
    • H04L67/131Protocols for games, networked simulations or virtual reality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/604Address structures or formats

Landscapes

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

Abstract

The disclosure relates to a test method and device for an acceleration node, electronic equipment and a computer readable medium, and belongs to the technical field of computers. The method comprises the following steps: at a server side, acquiring network protocol addresses of a plurality of acceleration nodes, and dividing the network protocol addresses into a plurality of acceleration node sets; determining any accelerating node in each accelerating node set as a corresponding speed measuring node; and responding to an acceleration node acquisition request sent by the client, and sending acceleration node information to the client. Receiving acceleration node information at a client; determining the network protocol address of the node to be tested according to the network protocol addresses of the plurality of nodes to be tested; carrying out speed measurement according to the network protocol address of the node to be measured to obtain a speed measurement result of the node to be measured; and determining the speed measurement result of the speed measurement node according to the speed measurement result of the node to be measured, and determining the speed measurement result of the acceleration node according to the speed measurement result of the speed measurement node. The speed measurement speed of the acceleration nodes can be improved by enabling the acceleration nodes to use the same speed measurement address.

Description

Test method and device for acceleration node, electronic equipment and computer readable medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a test method for an acceleration node, a test apparatus for an acceleration node, an electronic device, and a computer-readable medium.
Background
In the process of accelerating the game by using the accelerator, a plurality of accelerating nodes need to be tested in speed, so that an optimal accelerating node is selected to accelerate the game to the maximum extent. However, a game often corresponds to hundreds or even thousands of accelerating nodes, and speed measurement is performed on all accelerating nodes, so that time of a user is inevitably wasted, and user experience is greatly influenced.
In the existing accelerator market, a method for solving the speed measurement of the acceleration nodes is not found, and some accelerators only avoid the problem from a display aspect, for example, one node is displayed after being measured, but the total time consumption is not reduced, and the commonly used method is to measure the speed of the current acceleration nodes one by one.
Therefore, a method for testing an acceleration node is needed to solve the problem of how to increase the speed measurement speed of the acceleration node.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The present disclosure is directed to providing a method for testing an acceleration node, a device for testing an acceleration node, an electronic device, and a computer readable medium, so as to overcome the problems of too long speed measurement time caused by the limitation of the conventional method for testing an acceleration node.
According to a first aspect of the present disclosure, there is provided a test method of an acceleration node, including:
acquiring network protocol addresses of a plurality of acceleration nodes, and dividing the acceleration nodes into a plurality of acceleration node sets according to the network protocol addresses of the acceleration nodes;
determining any one acceleration node in each acceleration node set as a speed measurement node corresponding to the acceleration node in the acceleration node set, wherein the speed measurement node is used for replacing all acceleration nodes in the acceleration node set to measure speed;
responding to a request for obtaining an acceleration node sent by a client, and sending acceleration node information to the client so that the client obtains a speed measurement result of the acceleration node, wherein the acceleration node information comprises a network protocol address of the acceleration node and a network protocol address of a corresponding speed measurement node.
In an exemplary embodiment of the present disclosure, the dividing the acceleration nodes into a plurality of sets of acceleration nodes according to the network protocol addresses of the acceleration nodes includes:
determining a subnet mask corresponding to the network protocol address, and obtaining a network identification code corresponding to the acceleration node according to the network protocol address of the acceleration node and the subnet mask;
and dividing the acceleration nodes into a plurality of acceleration node sets according to the network identification codes corresponding to the acceleration nodes.
In an exemplary embodiment of the present disclosure, the obtaining the network identifier corresponding to the acceleration node according to the network protocol address of the acceleration node and the subnet mask includes:
respectively converting the network protocol address of the acceleration node and the subnet mask into binary formats to obtain a binary code of the network protocol address of the acceleration node and a binary code of the subnet mask;
and respectively carrying out AND operation on the binary codes of the network protocol addresses of the accelerating nodes and the binary codes of the subnet masks to obtain the network identification codes in the binary format corresponding to the accelerating nodes.
In an exemplary embodiment of the present disclosure, the dividing the acceleration nodes into a plurality of sets of acceleration nodes according to the network identification code corresponding to the acceleration node includes:
comparing every two network identification codes corresponding to the acceleration nodes, and judging whether the network identification codes are completely the same;
and if the network identification codes corresponding to the acceleration nodes are completely the same, putting the acceleration nodes into the same acceleration node set.
According to a second aspect of the present disclosure, there is provided a test method of an acceleration node, including:
receiving acceleration node information, wherein the acceleration node information comprises network protocol addresses of a plurality of acceleration nodes and network protocol addresses of a plurality of speed measurement nodes corresponding to the acceleration nodes respectively;
determining a network protocol address of a node to be tested according to the network protocol addresses of the plurality of nodes to be tested, wherein the number of the network protocol addresses of the nodes to be tested is less than that of the network protocol addresses of the nodes to be tested;
carrying out speed measurement according to the network protocol address of the node to be measured to obtain a speed measurement result of the node to be measured;
and determining the speed measurement result of the speed measurement node according to the speed measurement result of the node to be measured, and determining the speed measurement result of the acceleration node according to the speed measurement result of the speed measurement node.
In an exemplary embodiment of the present disclosure, the determining, according to the network protocol addresses of the multiple speed measurement nodes, a network protocol address of a node to be speed measured includes:
judging whether speed measuring nodes with the same network protocol address exist in the speed measuring nodes or not, and putting the speed measuring nodes with the same network protocol address into the same speed measuring node set;
and taking the network protocol address of the speed measuring node in each speed measuring node set as the network protocol address of the node to be measured.
In an exemplary embodiment of the present disclosure, the performing speed measurement according to the network protocol address of the node to be speed measured to obtain a speed measurement result of the node to be speed measured includes:
sending a data packet to the network protocol address of the node to be measured to obtain a network delay value corresponding to the network protocol address of the node to be measured;
and taking the network delay value corresponding to the network protocol address of the node to be tested as the speed test result of the node to be tested.
According to a third aspect of the present disclosure, there is provided a test apparatus for accelerating a node, comprising:
the node set determining module is used for acquiring network protocol addresses of a plurality of accelerating nodes and dividing the accelerating nodes into a plurality of accelerating node sets according to the network protocol addresses of the accelerating nodes;
the speed measurement node determination module is used for determining any one acceleration node in each acceleration node set as a speed measurement node corresponding to the acceleration node in the acceleration node set, and the speed measurement node is used for replacing all acceleration nodes in the acceleration node set to measure speed;
the node information sending module is used for responding to a request for obtaining the acceleration node sent by the client and sending acceleration node information to the client, wherein the acceleration node information comprises a network protocol address of the acceleration node and a network protocol address of a corresponding speed measurement node.
According to a fourth aspect of the present disclosure, there is provided a test apparatus for accelerating a node, comprising:
the node information receiving module is used for receiving acceleration node information, and the acceleration node information comprises network protocol addresses of a plurality of acceleration nodes and network protocol addresses of a plurality of speed measurement nodes corresponding to the acceleration nodes respectively;
the node to be tested determining module is used for determining the network protocol address of the node to be tested according to the network protocol addresses of the plurality of speed testing nodes, wherein the number of the network protocol addresses of the node to be tested is smaller than that of the network protocol addresses of the speed testing nodes;
the node to be tested speed measurement module is used for measuring speed according to the network protocol address of the node to be tested to obtain a speed measurement result of the node to be tested;
and the speed measurement result determining module is used for determining the speed measurement result of the speed measurement node according to the speed measurement result of the node to be measured and determining the speed measurement result of the acceleration node according to the speed measurement result of the speed measurement node.
According to a fifth aspect of the present disclosure, there is provided an electronic device comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the method of testing an acceleration node of any one of the above via execution of the executable instructions.
According to a sixth aspect of the present disclosure, there is provided a computer readable medium, on which a computer program is stored, which computer program, when executed by a processor, implements the method of testing an acceleration node of any one of the above.
The exemplary embodiments of the present disclosure may have the following advantageous effects:
in the test method for the acceleration node according to the exemplary embodiment of the present disclosure, the acceleration node is divided into a plurality of acceleration node sets according to the network protocol address, and the acceleration node in the same set performs speed measurement using the same speed measurement address, so that on one hand, time consumed for speed measurement of the acceleration node can be reduced, thereby reducing speed measurement waiting time of a user, and improving acceleration experience of the user using an accelerator; on the other hand, because the times of testing are greatly reduced, the pressure of the server is reduced, and the traffic transmission between the server and the client and the computing resources of the server and the client are saved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
FIG. 1 is a flow chart illustrating a method for testing an acceleration node on a server side according to an exemplary embodiment of the present disclosure;
FIG. 2 illustrates a flowchart of an example embodiment of the present disclosure for dividing acceleration nodes into multiple sets of acceleration nodes;
FIG. 3 illustrates a flow diagram for obtaining an acceleration node network identification code according to an example embodiment of the present disclosure;
FIG. 4 illustrates a flow diagram of partitioning a set of acceleration nodes according to network identification codes in an example embodiment of the present disclosure;
FIG. 5 is a flow chart illustrating a method for testing an acceleration node of a client according to an exemplary embodiment of the present disclosure;
fig. 6 shows a flowchart for determining a network protocol address of a node to be measured in an exemplary embodiment of the present disclosure;
fig. 7 is a schematic flow chart illustrating obtaining a speed measurement result of a node to be measured according to an exemplary embodiment of the present disclosure;
FIG. 8 shows a block diagram of a test apparatus for an acceleration node on a server side in an example embodiment of the present disclosure;
FIG. 9 shows a block diagram of a test apparatus of an acceleration node of an example embodiment client of the present disclosure;
FIG. 10 illustrates a schematic structural diagram of a computer system suitable for use in implementing an electronic device of an embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The present exemplary embodiment first provides a method for testing an acceleration node on a server side. Referring to fig. 1, the method for testing the acceleration node may include the following steps:
and S110, acquiring network protocol addresses of a plurality of acceleration nodes, and dividing the acceleration nodes into a plurality of acceleration node sets according to the network protocol addresses of the acceleration nodes.
The acceleration node is also called as a node server, and when a user accesses a target game server, data accessed by the acceleration node is forwarded once through the nearest node server, so that the acceleration effect is achieved, and the access speed is increased.
The network protocol address, i.e. the IP address, is a unified address format provided by the IP protocol, and it allocates a logical address to each network and each host on the internet, so as to mask the difference of physical addresses.
In this example embodiment, the acceleration nodes are divided into multiple acceleration node sets according to the network protocol addresses of the acceleration nodes, and the acceleration nodes in the same network segment may be placed into the same acceleration node set according to the IP addresses of the acceleration nodes.
And S120, determining any acceleration node in each acceleration node set as a speed measurement node corresponding to the acceleration node in the acceleration node set, wherein the speed measurement node is used for replacing all the acceleration nodes in the acceleration node set to measure the speed.
The actual speed measurement data analysis of the acceleration nodes can be carried out to obtain: and if the IP of the two accelerating nodes are in the same network segment, the speed measurement results of the accelerator client to the two accelerating nodes are basically the same. Therefore, some acceleration nodes in the same acceleration node set, that is, the acceleration nodes with the IPs in the same network segment, can configure one speed measurement IP, and when measuring the speed at the client, the speed measurement results of all the acceleration nodes in the same network segment can be obtained only by measuring the speed of the IP.
When the accelerator server configures the IP needing speed measurement for all the accelerating nodes, the IP configuration needing speed measurement for the accelerating nodes in the same network segment is the same, so that any one accelerating node in the network segment can be selected as the speed measuring node of the network segment to replace all the accelerating nodes in the accelerating node set to measure speed, namely, each accelerating node in the same accelerating node set corresponds to the same speed measuring node, and the network protocol address of the speed measuring node is used as the speed measuring address.
Step S130, responding to a request for obtaining the acceleration node sent by the client, and sending acceleration node information to the client so that the client can obtain a speed measurement result of the acceleration node, wherein the acceleration node information comprises a network protocol address of the acceleration node and a network protocol address of a corresponding speed measurement node.
Before acceleration, the client sends an http request to the server to request to acquire configuration information related to an acceleration node of the accelerated game. And after receiving the request for acquiring the acceleration node sent by the client, the server side sends the configured related node information to the client in a certain information format. For example, the node information may be sent to the client through a json format (JavaScript Object notification, JS Object profile, a lightweight data exchange format), in this scheme, a tachymeter IP (keyword ping _ IP) is mainly concerned, the content of the node information may include an IP address of the accelerating node, a name of the accelerating node, and a corresponding tachymeter IP, and the format of the node information may be similar to that of:
Figure BDA0002282277630000071
the above steps of the present exemplary embodiment will be described in more detail with reference to fig. 2 to 4.
In step S110, as shown in fig. 2, dividing the acceleration nodes into a plurality of acceleration node sets according to the network protocol addresses of the acceleration nodes, which may specifically include the following steps:
and S210, determining a subnet mask corresponding to the network protocol address, and obtaining a network identification code corresponding to the acceleration node according to the network protocol address and the subnet mask of the acceleration node.
A subnet mask may be used to mask a portion of the IP address to distinguish between the network identity and the host identity, and the subnet mask must be set according to certain rules. As with the binary IP address, the binary format of the subnet mask consists of 1 and 0, and 1 and 0 are consecutive, respectively, with a length of 32 bits, and a network bit on the left, represented by the binary digit "1", the number of 1's being equal to the length of the network bit; to the right is the host bit, represented by the binary digit "0", the number of 0's being equal to the length of the host bit.
For example, a common class of subnet masks is set to 255.255.255.0 in decimal format, which is converted to binary format, 11111111.11111111.11111111.00000000. Wherein, the left 24 bits 11111111.11111111.11111111 are network bits, and the right 8 bits 00000000 are host bits. And calculating the network identification code corresponding to the acceleration node through the IP address of the acceleration node and the corresponding subnet mask.
And S220, dividing the acceleration nodes into a plurality of acceleration node sets according to the network identification codes corresponding to the acceleration nodes.
Because the network identifiers of the acceleration nodes in the same network segment must be the same, the acceleration nodes can be divided into a plurality of acceleration node sets according to the network identifiers obtained by the calculation of the IP addresses of the acceleration nodes and the corresponding subnet masks, that is, the acceleration nodes in the same network segment are put into the same acceleration node set.
In step S210, as shown in fig. 3, obtaining the network identification code corresponding to the acceleration node according to the network protocol address and the subnet mask of the acceleration node may specifically include the following steps:
and S310, respectively converting the network protocol address and the subnet mask of the accelerating node into binary formats to obtain the binary code of the network protocol address and the binary code of the subnet mask of the accelerating node.
Before calculating the network identification code corresponding to the acceleration node, firstly, the IP address of the acceleration node and the corresponding subnet mask are converted into binary formats, and therefore operation is carried out according to the binary formats.
And S320, respectively carrying out AND operation on the binary codes of the network protocol addresses of the accelerating nodes and the binary codes of the subnet masks to obtain the network identification codes in the binary format corresponding to the accelerating nodes.
The same network segment refers to the IP address and the subnet mask phase which are combined to obtain the same network identification code. The algorithms of the network identification codes of various IP addresses are different and need to be judged according to the number of bits of the subnet mask.
The specific and operation method comprises the following steps: 0 and 1 are 0, 0 and 0 are 0, and 1 are 1. And respectively performing AND operation on the IP address and each binary number of the subnet mask to obtain the network identification code in the binary format corresponding to the acceleration node.
In step S220, as shown in fig. 4, the accelerating nodes are divided into a plurality of accelerating node sets according to the network identification codes corresponding to the accelerating nodes, and the method specifically includes the following steps:
and S410, comparing every two network identification codes corresponding to the acceleration nodes, and judging whether the network identification codes are completely the same.
After the network identification codes in the binary format corresponding to the acceleration nodes are obtained, the network identification codes of the acceleration nodes are compared pairwise, and whether the network identification codes are completely the same or not is judged.
And S420, if the network identification codes corresponding to the acceleration nodes are completely the same, putting the acceleration nodes into the same acceleration node set.
If the network identification codes corresponding to the two accelerating nodes are completely the same, the IP addresses of the two accelerating nodes are in the same network segment, and the two accelerating nodes can be put into the same accelerating node set to set the same speed measuring IP. For a plurality of accelerating nodes in the same network segment, the IP of one accelerating node can be arbitrarily selected as the common speed measuring IP.
The steps in fig. 2 to fig. 4 illustrate that whether two acceleration nodes belong to the same network segment can be determined by the IP address AND the subnet mask of the acceleration node, AND a specific method can be summarized as that the IP address AND the subnet mask of the acceleration node are respectively converted into binary formats, then the IP address of each acceleration node AND the corresponding subnet mask thereof are respectively subjected to binary AND (AND) calculation (1 is obtained if all 1 s, 0 is obtained if not all 1 s), if the obtained network identifiers are the same, the two acceleration nodes belong to the same network segment, AND can be placed into the same acceleration node set. Specific calculation examples are as follows:
the IP addresses of the two acceleration nodes are respectively: 188.188.0.111, 188.188.5.18. The subnet mask is set to 255.255.255.0.
The IP address and the subnet mask are respectively converted into corresponding binary forms, namely:
188.188.0.111 to 10111100.10111100.00000000.01101111
188.188.0.18 to 10111100.10111100.00000000.00010010
255.255.255.0 to 11111111.11111111.11111111.00000000
And the two IP addresses are respectively and-operated with the subnet mask to obtain the corresponding network identification codes:
10111100.10111100.00000000.00000000
10111100.10111100.00000000.00000000
because the network identification codes corresponding to the two accelerating nodes are the same, the IP addresses of the two accelerating nodes are in the same network segment and can be placed in the same accelerating node set. The corresponding velocimetry IP can be selected from 188.188.0.111 and 188.188.5.18.
After the server configures the information of the required acceleration node and the speed measurement node corresponding to the acceleration node, the speed measurement can be performed on the node at the accelerator client. The embodiment of the example also provides a test method for the acceleration node of the client. Referring to fig. 5, the method for testing the acceleration node may include the following steps:
step S510, acceleration node information is received, wherein the acceleration node information comprises network protocol addresses of a plurality of acceleration nodes and network protocol addresses of a plurality of speed measurement nodes corresponding to the acceleration nodes respectively.
Before acceleration, the accelerator client acquires acceleration node information, that is, the data sent in step S103, which includes information such as a network protocol address, a velocimetry IP, and a name of the acceleration node, from the server.
Step 520, determining the network protocol addresses of the nodes to be tested the speed according to the network protocol addresses of the plurality of speed testing nodes, wherein the number of the network protocol addresses of the nodes to be tested the speed is smaller than the number of the network protocol addresses of the speed testing nodes.
When the accelerator client side carries out speed measurement on the accelerated node every time, the actual speed measurement IP is not the IP of the node, but the speed measurement IP configured for each node. Because the nodes in each acceleration node set correspond to the same speed measurement node, only one speed measurement node needs to be arbitrarily selected as the node to be measured in each set, and the speed measurement is performed on the node to be measured.
Step S530, speed measurement is carried out according to the network protocol address of the node to be measured, and a speed measurement result of the node to be measured is obtained.
After obtaining one node to be tested from each set according to the steps, the plurality of nodes to be tested only need to be tested. Thus, the number of IP for each speed measurement is greatly reduced.
And S540, determining a speed measurement result of the speed measurement node according to the speed measurement result of the node to be measured, and determining a speed measurement result of the acceleration node according to the speed measurement result of the speed measurement node.
And taking the speed measurement result of each node to be measured obtained in the step as the speed measurement result of each speed measurement IP in the set, and respectively taking the speed measurement results as the speed measurement results of the corresponding acceleration nodes according to the speed measurement IP corresponding to each acceleration node.
In step S520, as shown in fig. 6, determining the network protocol address of the node to be speed-measured according to the network protocol addresses of the multiple speed-measuring nodes may specifically include the following steps:
step S610, judging whether speed measuring nodes with the same network protocol address exist in the speed measuring nodes, and putting the speed measuring nodes with the same network protocol address into the same speed measuring node set.
And determining the number of nodes which actually need to measure the speed, namely the number of nodes to be measured the speed according to the speed measuring node corresponding to each acceleration node. Specifically, whether speed measuring nodes with the same network protocol address exist in the speed measuring nodes or not is judged, the speed measuring nodes with the same network protocol address are placed into the same speed measuring node set, the speed measuring address in each speed measuring node set is subjected to duplicate removal, a subset of the speed measuring nodes is obtained finally, and the nodes in the subset are the nodes to be measured. Because the subset is not more than the whole set of acceleration nodes, the number of nodes needing speed measurement can be greatly reduced.
And S620, taking the network protocol address of the speed measuring node in each speed measuring node set as the network protocol address of the node to be measured.
And performing duplicate removal processing on the speed measuring address in each speed measuring node set to finally obtain a subset of the speed measuring nodes, wherein the network protocol address corresponding to each speed measuring node in the subset of the speed measuring nodes is the network protocol address of the node to be measured.
In step S530, as shown in fig. 7, performing speed measurement according to the network protocol address of the node to be speed measured to obtain a speed measurement result of the node to be speed measured, which may specifically include the following steps:
step S710, sending a data packet to the network protocol address of the node to be tested to obtain a network delay value corresponding to the network protocol address of the node to be tested.
In this exemplary embodiment, the specific speed measurement operation may be performed by sending an icmp (Internet Control Message Protocol) data packet, a tcp (Transmission Control Protocol) data packet, or a udp (User data Protocol) data packet. The value of the velocity measurement can be measured in network delay of one packet, and is generally measured in milliseconds.
And S720, taking the network delay value corresponding to the network protocol address of the node to be tested as the speed test result of the node to be tested.
And taking the network delay value of each node to be tested as the speed measurement result of the node to be tested according to the network delay value of each node to be tested obtained by the calculation in the step.
The speed measurement result of each acceleration node, that is, the network delay value corresponding to each acceleration node, can be obtained through fig. 5 to 7. And sequencing according to the network delay values from small to large, wherein the acceleration node corresponding to the minimum delay is the acceleration node with the optimal speed. And if a plurality of acceleration nodes corresponding to the minimum delay exist, arbitrarily determining one of the acceleration nodes as the optimal acceleration node.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Furthermore, the disclosure also provides a testing device for the acceleration node of the server side. Referring to fig. 8, the test apparatus for the acceleration node may include a node set determination module 810, a speed measurement node determination module 820, and a node information transmission module 830. Wherein:
the node set determining module 810 may be configured to obtain network protocol addresses of a plurality of acceleration nodes, and divide the acceleration nodes into a plurality of acceleration node sets according to the network protocol addresses of the acceleration nodes;
the speed measurement node determining module 820 may be configured to determine any acceleration node in each acceleration node set as a speed measurement node corresponding to an acceleration node in the acceleration node set, where the speed measurement node is used to replace all acceleration nodes in the acceleration node set to measure speed;
the node information sending module 830 may be configured to send acceleration node information to the client in response to a request for obtaining an acceleration node sent by the client, where the acceleration node information includes a network protocol address of the acceleration node and a network protocol address of a corresponding speed measurement node.
In some exemplary embodiments of the present disclosure, the node set determining module 810 may include an identification code determining unit and a node set dividing unit. Wherein:
the identification code determining unit can be used for determining a subnet mask corresponding to the network protocol address and obtaining a network identification code corresponding to the acceleration node according to the network protocol address and the subnet mask of the acceleration node;
the node set dividing unit may be configured to divide the acceleration node into a plurality of acceleration node sets according to the network identification code corresponding to the acceleration node.
In some exemplary embodiments of the present disclosure, the identification code determination unit may include a binary format conversion unit and a binary encoding operation unit. Wherein:
the binary format conversion unit may be configured to convert the network protocol address and the subnet mask of the acceleration node into binary formats, respectively, to obtain a binary code of the network protocol address and a binary code of the subnet mask of the acceleration node;
the binary code operation unit may be configured to perform and operation on binary codes of network protocol addresses of the multiple acceleration nodes and binary codes of the subnet mask respectively to obtain the network identification codes in the binary format corresponding to the multiple acceleration nodes.
In some exemplary embodiments of the present disclosure, the node set partitioning unit may include an identification code comparing unit and a node set partitioning unit. Wherein:
the identification code comparison unit can be used for comparing every two network identification codes corresponding to the acceleration nodes and judging whether the network identification codes are completely the same or not;
the node set dividing unit may be configured to put the acceleration nodes into the same acceleration node set if the network identification codes corresponding to the acceleration nodes are completely the same.
Furthermore, the disclosure also provides a testing device for the acceleration node of the client. Referring to fig. 9, the apparatus for testing an acceleration node may include a node information receiving module 910, a node under test determining module 920, a node under test speed measuring module 930, and a speed measurement result determining module 940.
Wherein:
the node information receiving module 910 may be configured to receive acceleration node information, where the acceleration node information includes network protocol addresses of multiple acceleration nodes and network protocol addresses of multiple speed measurement nodes corresponding to the acceleration nodes, respectively;
the node to be measured determining module 920 may be configured to determine a network protocol address of a node to be measured according to network protocol addresses of a plurality of speed measurement nodes, where the number of the network protocol addresses of the node to be measured is smaller than the number of the network protocol addresses of the speed measurement nodes;
the node to be measured speed measurement module 930 may be configured to measure speed according to a network protocol address of the node to be measured, so as to obtain a speed measurement result of the node to be measured;
the speed measurement result determining module 940 may be configured to determine a speed measurement result of the speed measurement node according to the speed measurement result of the node to be measured, and determine the speed measurement result of the acceleration node according to the speed measurement result of the speed measurement node.
In some exemplary embodiments of the present disclosure, the node to be tested determining module 920 may include a speed measurement node set dividing unit and an address to be measured. Wherein:
the speed measurement node set dividing unit can be used for judging whether speed measurement nodes with the same network protocol address exist in the speed measurement nodes or not, and putting the speed measurement nodes with the same network protocol address into the same speed measurement node set;
the to-be-speed-measurement address determining unit may be configured to use a network protocol address of a speed measurement node in each speed measurement node set as a network protocol address of the to-be-speed-measurement node.
In some exemplary embodiments of the present disclosure, the speed measurement module 930 for a node to be measured may include a network delay value calculation unit and a speed measurement result determination unit. Wherein:
the network delay value calculation unit can be used for sending a data packet to the network protocol address of the node to be measured to obtain a network delay value corresponding to the network protocol address of the node to be measured;
the speed measurement result determining unit may be configured to use a network delay value corresponding to the network protocol address of the node to be speed measured as the speed measurement result of the node to be speed measured.
The details of each module/unit in the test apparatus for acceleration nodes have been described in detail in the corresponding method embodiment section, and are not described herein again.
FIG. 10 illustrates a schematic structural diagram of a computer system suitable for use with the electronic device to implement an embodiment of the invention.
It should be noted that the computer system 1000 of the electronic device shown in fig. 10 is only an example, and should not bring any limitation to the functions and the scope of the application of the embodiment of the present invention.
As shown in fig. 10, the computer system 1000 includes a Central Processing Unit (CPU)1001 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)1002 or a program loaded from a storage section 1008 into a Random Access Memory (RAM) 1003. In the RAM 1003, various programs and data necessary for system operation are also stored. The CPU1001, ROM 1002, and RAM 1003 are connected to each other via a bus 1004. An input/output (I/O) interface 1005 is also connected to bus 1004.
The following components are connected to the I/O interface 1005: an input section 1006 including a keyboard, a mouse, and the like; an output section 1007 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 1008 including a hard disk and the like; and a communication section 1009 including a network interface card such as a LAN card, a modem, or the like. The communication section 1009 performs communication processing via a network such as the internet. The driver 1010 is also connected to the I/O interface 1005 as necessary. A removable medium 1011 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1010 as necessary, so that a computer program read out therefrom is mounted into the storage section 1008 as necessary.
In particular, according to an embodiment of the present invention, the processes described below with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the invention include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication part 1009 and/or installed from the removable medium 1011. When the computer program is executed by a Central Processing Unit (CPU)1001, various functions defined in the system of the present application are executed.
It should be noted that the computer readable media shown in the present disclosure may be computer readable signal media or computer readable storage media or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer-readable signal medium may 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.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams 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.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by an electronic device, cause the electronic device to implement the method as described in the embodiments below.
It should be noted that although in the above detailed description several modules of the device for action execution are mentioned, this division is not mandatory. Indeed, the features and functionality of two or more of the modules described above may be embodied in one module, in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module described above may be further divided into embodiments by a plurality of modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for testing an acceleration node is characterized by comprising the following steps:
acquiring network protocol addresses of a plurality of acceleration nodes, and putting the acceleration nodes in the same network segment into the same acceleration node set according to the network protocol addresses of the acceleration nodes;
determining any one acceleration node in each acceleration node set as a speed measurement node corresponding to the acceleration node in the acceleration node set, wherein the speed measurement node is used for replacing all acceleration nodes in the acceleration node set to measure speed;
responding to a request for obtaining an acceleration node sent by a client, and sending acceleration node information to the client so that the client obtains a speed measurement result of the acceleration node, wherein the acceleration node information comprises a network protocol address of the acceleration node and a network protocol address of a corresponding speed measurement node.
2. The method for testing an acceleration node according to claim 1, wherein the dividing the acceleration node into a plurality of sets of acceleration nodes according to the network protocol address of the acceleration node comprises:
determining a subnet mask corresponding to the network protocol address, and obtaining a network identification code corresponding to the acceleration node according to the network protocol address of the acceleration node and the subnet mask;
and dividing the acceleration nodes into a plurality of acceleration node sets according to the network identification codes corresponding to the acceleration nodes.
3. The method for testing an acceleration node according to claim 2, wherein the obtaining of the network identification code corresponding to the acceleration node according to the network protocol address of the acceleration node and the subnet mask comprises:
respectively converting the network protocol address of the acceleration node and the subnet mask into binary formats to obtain a binary code of the network protocol address of the acceleration node and a binary code of the subnet mask;
and respectively carrying out AND operation on the binary codes of the network protocol addresses of the accelerating nodes and the binary codes of the subnet masks to obtain the network identification codes in the binary format corresponding to the accelerating nodes.
4. The method for testing the acceleration nodes according to claim 2, wherein the dividing the acceleration nodes into a plurality of sets of acceleration nodes according to the network identification codes corresponding to the acceleration nodes comprises:
comparing every two network identification codes corresponding to the acceleration nodes, and judging whether the network identification codes are completely the same;
and if the network identification codes corresponding to the acceleration nodes are completely the same, putting the acceleration nodes into the same acceleration node set.
5. A method for testing an acceleration node is characterized by comprising the following steps:
receiving acceleration node information, wherein the acceleration node information comprises network protocol addresses of a plurality of acceleration nodes and network protocol addresses of a plurality of speed measurement nodes corresponding to the acceleration nodes respectively;
putting the speed measuring nodes with the same network protocol address into the same speed measuring node set, and randomly selecting one speed measuring node from each speed measuring node set as a node to be measured;
taking the network protocol address of the speed measuring node in each speed measuring node set as the network protocol address of the node to be measured, wherein the number of the network protocol addresses of the node to be measured is less than that of the network protocol addresses of the speed measuring node;
carrying out speed measurement according to the network protocol address of the node to be measured to obtain a speed measurement result of the node to be measured;
and determining the speed measurement result of the speed measurement node according to the speed measurement result of the node to be measured, and determining the speed measurement result of the acceleration node according to the speed measurement result of the speed measurement node.
6. The method for testing an acceleration node according to claim 5, wherein the performing speed measurement according to the network protocol address of the node to be speed-measured to obtain the speed measurement result of the node to be speed-measured comprises:
sending a data packet to the network protocol address of the node to be measured to obtain a network delay value corresponding to the network protocol address of the node to be measured;
and taking the network delay value corresponding to the network protocol address of the node to be tested as the speed test result of the node to be tested.
7. An apparatus for testing an acceleration node, comprising:
the node set determining module is used for acquiring network protocol addresses of a plurality of accelerating nodes and putting the accelerating nodes in the same network segment into the same accelerating node set according to the network protocol addresses of the accelerating nodes;
the speed measurement node determination module is used for determining any one acceleration node in each acceleration node set as a speed measurement node corresponding to the acceleration node in the acceleration node set, and the speed measurement node is used for replacing all acceleration nodes in the acceleration node set to measure speed;
the node information sending module is used for responding to a request for obtaining the acceleration node sent by the client and sending acceleration node information to the client, wherein the acceleration node information comprises a network protocol address of the acceleration node and a network protocol address of a corresponding speed measurement node.
8. An apparatus for testing an acceleration node, comprising:
the node information receiving module is used for receiving acceleration node information, and the acceleration node information comprises network protocol addresses of a plurality of acceleration nodes and network protocol addresses of a plurality of speed measurement nodes corresponding to the acceleration nodes respectively;
the to-be-tested node determining module is used for putting the speed measuring nodes with the same network protocol address into the same speed measuring node set and randomly selecting one speed measuring node from each speed measuring node set as a to-be-measured node;
the to-be-tested address determining module is used for taking the network protocol address of the speed measuring node in each speed measuring node set as the network protocol address of the to-be-measured node, wherein the number of the network protocol addresses of the to-be-measured node is smaller than that of the network protocol addresses of the speed measuring nodes;
the node to be tested speed measurement module is used for measuring speed according to the network protocol address of the node to be tested to obtain a speed measurement result of the node to be tested;
and the speed measurement result determining module is used for determining the speed measurement result of the speed measurement node according to the speed measurement result of the node to be measured and determining the speed measurement result of the acceleration node according to the speed measurement result of the speed measurement node.
9. An electronic device, comprising:
a processor; and
memory for storing one or more programs which, when executed by the processor, cause the processor to implement a method of testing an acceleration node according to any of claims 1 to 6.
10. A computer-readable medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out a method of testing an acceleration node according to any one of claims 1 to 6.
CN201911146236.5A 2019-11-21 2019-11-21 Test method and device for acceleration node, electronic equipment and computer readable medium Active CN110912771B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911146236.5A CN110912771B (en) 2019-11-21 2019-11-21 Test method and device for acceleration node, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911146236.5A CN110912771B (en) 2019-11-21 2019-11-21 Test method and device for acceleration node, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN110912771A CN110912771A (en) 2020-03-24
CN110912771B true CN110912771B (en) 2021-07-23

Family

ID=69818542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911146236.5A Active CN110912771B (en) 2019-11-21 2019-11-21 Test method and device for acceleration node, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN110912771B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111934947B (en) * 2020-07-17 2023-03-24 中国联合网络通信集团有限公司 Speed measurement method, speed measurement scheduling server, terminal equipment and readable storage medium
CN112600725B (en) * 2020-11-20 2022-04-08 四川迅游网络科技股份有限公司 ICMP message acceleration method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103117907A (en) * 2013-03-11 2013-05-22 星云融创(北京)信息技术有限公司 Network speed test method and system and method and system for selecting accelerating server
CN106130816A (en) * 2016-06-24 2016-11-16 腾讯科技(深圳)有限公司 A kind of content distributing network monitoring method, monitoring server and system
CN108261763A (en) * 2018-02-08 2018-07-10 四川速宝网络科技有限公司 The acceleration system of game running environment
CN109218133A (en) * 2018-09-27 2019-01-15 深圳市网心科技有限公司 Network speed testing system, method, apparatus and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190286972A1 (en) * 2018-03-14 2019-09-19 Microsoft Technology Licensing, Llc Hardware accelerated neural network subgraphs

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103117907A (en) * 2013-03-11 2013-05-22 星云融创(北京)信息技术有限公司 Network speed test method and system and method and system for selecting accelerating server
CN106130816A (en) * 2016-06-24 2016-11-16 腾讯科技(深圳)有限公司 A kind of content distributing network monitoring method, monitoring server and system
CN108261763A (en) * 2018-02-08 2018-07-10 四川速宝网络科技有限公司 The acceleration system of game running environment
CN109218133A (en) * 2018-09-27 2019-01-15 深圳市网心科技有限公司 Network speed testing system, method, apparatus and computer readable storage medium

Also Published As

Publication number Publication date
CN110912771A (en) 2020-03-24

Similar Documents

Publication Publication Date Title
US10680896B2 (en) Virtualized network function monitoring
CN108900388B (en) Method, apparatus, and medium for monitoring network quality
CN109885452B (en) Performance monitoring method and device and terminal equipment
WO2021259013A1 (en) Data processing method and apparatus, electronic device, and computer-readable medium
US9161064B2 (en) Auto-scaling management of web content
JP6692000B2 (en) Risk identification method, risk identification device, cloud risk identification device and system
CN110912771B (en) Test method and device for acceleration node, electronic equipment and computer readable medium
CN112954045B (en) Data transmission method, device, medium and electronic equipment in node
CN110650042A (en) Electric power communication network health degree evaluation method and terminal equipment
CN110719215A (en) Flow information acquisition method and device of virtual network
CN113760674A (en) Information generation method and device, electronic equipment and computer readable medium
CN115277261B (en) Abnormal machine intelligent identification method, device and equipment based on industrial control network virus
US9565060B2 (en) Managing a network connection for use by a plurality of application program processes
CN110443647B (en) Information delivery method and device
CN117176802B (en) Full-link monitoring method and device for service request, electronic equipment and medium
CN113067802B (en) User identification method, device, equipment and computer readable storage medium
CN112084102A (en) Interface pressure testing method and device
CN106716974A (en) Access distribution method, device and system
CN112152879A (en) Network quality determination method and device, electronic equipment and readable storage medium
CN110932879B (en) Network performance test method, data processing device and storage medium
CN115576791A (en) Dynamic adjustment method and device for pressure measurement thread, electronic equipment and storage medium
CN114565105A (en) Data processing method and deep learning model training method and device
CN112260880B (en) Network access relation display method and related equipment
CN114579311A (en) Method, apparatus, device and storage medium for executing distributed computing task
US11048550B2 (en) Methods, devices and computer program products for processing task

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