CN110445666A - A kind of network quality detection method, device and server - Google Patents
A kind of network quality detection method, device and server Download PDFInfo
- Publication number
- CN110445666A CN110445666A CN201810420035.9A CN201810420035A CN110445666A CN 110445666 A CN110445666 A CN 110445666A CN 201810420035 A CN201810420035 A CN 201810420035A CN 110445666 A CN110445666 A CN 110445666A
- Authority
- CN
- China
- Prior art keywords
- resource
- server
- opposite end
- connection
- detection messages
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
Abstract
The application provides a kind of network quality detection method, device and server, this method comprises: the first QP resource and opposite end server using local terminal server establish the first connection;The detection messages for carrying the identification information of the first QP resource are sent by first connection;The response message for being directed to the detection messages is received by first connection;Wherein, the response message is that the opposite end server is sent according to the identification information to the local terminal server;The network quality between the local terminal server and opposite end server is determined according to the response message.By the technical solution of the application, QP resource can be saved, the occupancy to QP resource can be effectively reduced, improves the availability in large-scale cluster.
Description
Technical field
This application involves internet area more particularly to a kind of network quality detection methods, device and server.
Background technique
Traditional TCP (Transmission Control Protocol, transmission control protocol)/IP technology, at data
During reason, need to occupy a large amount of server resources and memory bus bandwidth, data exist by operating system and other software layers
Duplication movement is carried out back and forth between Installed System Memory, processor cache and network controller caching, gives CPU (Central
Processing Unit, central processing unit) and memory cause heavy burden, especially network bandwidth, processor speed and memory
The mismatch of bandwidth more exacerbates network delay effect.
For this purpose, proposing RDMA (Remote Direct Memory Access, remote direct data access) technology, it is
Data can be transmitted directly to another server from the memory of a server, are not necessarily to by a kind of direct memory access technology
The intervention of both sides' operating system, does not have any impact to operating system.RDMA can simply understand are as follows: utilize hardware and network
The network interface card of technology, server 1 can be finally reached high bandwidth, low latency and low-resource and be utilized with the memory of direct read/write server 2
The effect of rate, application program need not participate in data transmission procedure, it is only necessary to which specified memory read/write address is opened and transmits and wait
It is transmitted.
Network quality is the important indicator of RDMA technology, and network quality may include network connectivty, time delay, shake, speed
Rate, bandwidth etc..In order to detect network quality, needs to distribute QP (Queue Pairs, queue to) resource for server, pass through QP
Resource establishes connection, transmits ping message using the connection, determines network in the transmission state of network based on ping message
Quality.But aforesaid way needs to waste QP resource using a large amount of QP resources, may be led to not due to QP inadequate resource
Carry out the detection of network quality.
For example, if server 1 is needed from the memory read data of server 2, and from the memory read data of server 3,
It then needs to distribute QP resource 1 and QP resource 2 for server 1, server 1 establishes connection by QP resource 1 and server 2, services
Device 1 establishes connection by QP resource 2 and server 3.Obviously, it with the increase of number of servers, needs to distribute for server 1
QP resource also dramatically increases.
Summary of the invention
The application provides a kind of network quality detection method, is applied to local terminal server, comprising:
The first connection is established using the first QP resource and opposite end server of local terminal server;
The detection messages for carrying the identification information of the first QP resource are sent by first connection;
The response message for being directed to the detection messages is received by first connection;Wherein, the response message is institute
State what opposite end server was sent according to the identification information to the local terminal server;
The network quality between the local terminal server and opposite end server is determined according to the response message.
The application provides a kind of network quality detection method, is applied to local terminal server, comprising:
UD is established respectively at least two opposite end servers using the first QP resource of local terminal server to connect;
It is connected by the UD to the corresponding opposite end server of the UD connection and sends detection messages;
The opposite end server, which is received, by the UD connection is directed to the response message that the detection messages return;
The network quality between the local terminal server and opposite end server is determined according to the response message.
The application provides a kind of network quality detection device, is applied to local terminal server, comprising: module is established, for benefit
The first connection is established with the first QP resource of local terminal server and opposite end server;
Sending module sends detection messages for connecting by described first to the opposite end server;Wherein, the inspection
Observe and predict the identification information that text carries the first QP resource;Receiving module, for being received by first connection for described
The response message of detection messages;Wherein, the response message is that opposite end server takes according to the identification information to the local terminal
It is engaged in what device was sent;Determining module, for according to the response message determine the local terminal server and the opposite end server it
Between network quality.
The application provides a kind of network quality detection device, is applied to local terminal server, comprising:
Module is established, establishes UD respectively at least two opposite end servers for the first QP resource using local terminal server
Connection;Sending module sends detection messages for connecting by the UD to the corresponding opposite end server of the UD connection;It receives
Module is directed to the response message that the detection messages return for receiving the opposite end server by the UD connection;It determines
Module, for determining the network quality between the local terminal server and opposite end server according to the response message.
The application provides a kind of local terminal server, comprising: processor and machine readable storage medium, it is described machine readable to deposit
Several computer instructions are stored on storage media, the processor is handled as follows when executing the computer instruction: utilizing
The first QP resource and opposite end server of local terminal server establish the first connection;It is sent by first connection and carries described the
The detection messages of the identification information of one QP resource;The response message for being directed to the detection messages is received by first connection;
Wherein, the response message is that the opposite end server is sent according to the identification information to the local terminal server;According to
The response message determines the network quality between the local terminal server and opposite end server.
The application provides a kind of local terminal server, comprising: processor and machine readable storage medium, it is described machine readable to deposit
Several computer instructions are stored on storage media, the processor is handled as follows when executing the computer instruction: utilizing
First QP resource of local terminal server is established UD at least two opposite end servers respectively and is connect;It is connected by the UD to described
The corresponding opposite end server of UD connection sends detection messages;The opposite end server, which is received, by the UD connection is directed to the inspection
Observe and predict the response message of text return;The network between the local terminal server and opposite end server is determined according to the response message
Quality.
Based on the above-mentioned technical proposal, in the embodiment of the present application, in network quality detection process, it can use local terminal service
One QP resource of device is established connection (such as UD is connect) with multiple opposite end servers, rather than utilizes multiple QP of local terminal server
Resource is established RC with multiple opposite end servers and is connect, to avoid carrying out network quality detection, Ke Yijie using a large amount of QP resources
QP resource is saved, the occupancy to QP resource can be effectively reduced, improve the availability in large-scale cluster.Moreover, by
In detection messages carry local terminal server QP resource identification information so that opposite end server can use the identification information to
Local terminal server sends response message, i.e. response message can be sent to correct server, avoid responding by opposite end server
The error of transmission of message.Moreover, local terminal server can determine network quality by message according to response, so as to be network O&M
The ability of quickly investigation network failure is provided with business side;The detection that multiple paths can be carried out with network quality provides more complete
The network quality data in face, and the influence to service traffics is smaller.
Detailed description of the invention
It, below will be to the application in order to clearly illustrate the embodiment of the present application or technical solution in the prior art
Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below
Attached drawing is only some embodiments as described in this application, for those of ordinary skill in the art, can also be according to this Shen
Please these attached drawings of embodiment obtain other attached drawings.
Fig. 1 is the flow chart of the network quality detection method in a kind of embodiment of the application;
Fig. 2A-Fig. 2 D is the application scenarios schematic diagram in a kind of embodiment of the application;
Fig. 3 is the structure chart of the network quality detection device in a kind of embodiment of the application.
Specific embodiment
In term used in this application merely for the sake of for the purpose of describing particular embodiments, rather than limit the application.This Shen
Please it is also intended to the "an" of singular used in claims, " described " and "the" including most forms, unless
Context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to comprising one or more
Associated any or all of project listed may combine.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from
In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on context, in addition, used word " if " can be construed to " ... when " or " when ... "
Or " in response to determination ".
It proposes that a kind of network quality detection method, this method can be applied to local terminal server in the embodiment of the present application, joins
It as shown in Figure 1, is the flow diagram of the network quality detection method, this method may include:
Step 101, the first connection is established using the first QP resource of local terminal server and opposite end server.
Specifically, local terminal server can use the first QP resource and at least two opposite end servers point of local terminal server
The first connection is not established, that is to say, that the same first QP resource can be used in local terminal server and at least two opposite ends service
Device establishes the first connection respectively.For example, establish the first connection using QP resource 1 and opposite end server A, using QP resource 1 with it is right
End server B establishes the first connection, and so on.
In the above-described embodiments, the first QP resource may include: the QP resource for carrying out network quality detection.Example
Such as, the first QP resource that network quality detection can be carried out for the distribution of local terminal server, so that local terminal server can use this
First QP resource and at least two opposite end servers establish the first connection respectively.
In the above-described embodiment, first connection can also include but is not limited to: based on UD (Unreliable
Datagram, corrupt data transmission) connection, this connection can also be referred to as UD connection.
It wherein, is to utilize this when the first QP resource using local terminal server establishes the first connection with opposite end server
2nd QP resource of the first QP resource and opposite end server of holding server establishes the first connection.Moreover, the 2nd QP resource is
The QP resource for being used to carry out network quality detection of opposite end server.
Step 102, the detection messages for carrying the identification information of the first QP resource are sent by the first connection.
In one example, local terminal server can connect to opposite end server by first and send detection messages, the inspection
The identification information (such as QP number) of the first QP resource of local terminal server can be carried by observing and predicting text.In addition, the detection messages are also
The identification information of the 2nd QP resource of opposite end server can be carried.
In one example, which can include but is not limited to ping detection messages.
In one example, the detection messages for carrying the identification information of the first QP resource are sent by the first connection, it can be with
Including but not limited to: local terminal server generates the detection messages for carrying the identification information of the first QP resource, and by the detection messages
Store the transmit queue to the first QP resource;Then, local terminal server can read from the transmit queue of the first QP resource and detect
Message, and the detection messages are sent by first connection.
In one example, the protocol type that detection messages carry can be UD type, and UD type is for servicing opposite end
The processing of device progress corrupt data transmission.That is, after opposite end server receives detection messages, if knowing what detection messages carried
Protocol type is UD type, then carries out the processing of corrupt data transmission.
Step 103, the response message for being directed to the detection messages is received by the first connection;Wherein, which is pair
End server is sent according to the identification information of the first QP resource to local terminal server.
Wherein, after opposite end server receives detection messages, the first QP resource can be got from the detection messages
Identification information, and response message is sent to local terminal server according to the identification information of the first QP resource.
Step 104, message determines the network quality between local terminal server and opposite end server according to response.
Wherein, message determines the network quality between local terminal server and opposite end server according to response, may include but
It is not limited to: obtaining the identification information of the first QP resource from the response message, and deposited the response message according to the identification information
Store up the receiving queue to the first QP resource;Response message is read from the receiving queue of the first QP resource, and message is true according to response
Determine the network quality between local terminal server and opposite end server.
In one example, after establishing the first connection using the first QP resource of local terminal server and opposite end server,
Local terminal server can also receive the detection messages that opposite end server is sent by the first connection, wherein can in the detection messages
To carry the identification information of the 2nd QP resource of opposite end server;Then, local terminal server can be according to the mark of the 2nd QP resource
Know information and sends response message to opposite end server.
Further, the identification information of the first QP resource of local terminal server can also be carried in the detection messages;According to
The identification information of 2nd QP resource to opposite end server send response message, can include but is not limited to: local terminal server according to
The detection messages are stored the receiving queue to the first QP resource by the identification information of the first QP resource;It is then possible to from the first QP
The receiving queue of resource reads the detection messages, and generates the response message for being directed to the detection messages, which can take
Identification information with the 2nd QP resource;Then, which is stored to the transmit queue to the first QP resource;It is then possible to
The response message is read from the transmit queue of the first QP resource, and connects by first to opposite end server and sends the response report
Text.
In one example, local terminal server (can also be used for transmission industry using the 3rd QP resource of local terminal server
Be engaged in message QP resource) with opposite end server establish the second connection, by second connect to opposite end server send service message.
Wherein, different opposite end servers corresponds to the 3rd QP resource of difference of local terminal server;That is, can use a third
QP resource and an opposite end server establish the second connection, and different Q P resource establishes the second connection from different opposite end servers.Example
Such as, the second connection is established using QP resource 2 and opposite end server A, establishes the second connection using QP resource 3 and opposite end server B,
And so on.
In the above-described embodiment, second connection can also include but is not limited to: based on RC (Reliable
Connection, reliable data transmission) connection, this connection can also be referred to as RC connection.
In the above-described embodiment, the protocol type that service message carries can be RC type, and RC type is for making opposite end
The processing of server progress reliable data transmission.That is, if knowing, service message is carried after opposite end server receives service message
Protocol type be RC type, then carry out the processing of reliable data transmission.
In one example, local terminal server sends the detection for carrying the identification information of the first QP resource by the first connection
Message can also include but is not limited to: local terminal server obtains the detection messages for carrying the identification information of the first QP resource;So
Afterwards, it determines the priority of detection messages, and is stored the detection messages to priority query according to the priority of detection messages;So
Afterwards, it is successively read the message in priority query according to the message sequence in priority query, and is reading the detection messages
Afterwards, which is sent by the first connection.
Wherein it is determined that the priority of detection messages, can include but is not limited to: local terminal server determines the first QP resource pair
The priority answered;The corresponding priority of first QP resource is determined as to the priority of detection messages.
In the above-described embodiment, for store the priority queries of detection messages with for the preferential of storage service message
Grade queue can be same or different.That is, same priority query's storage detection messages and business report can be used
Different priority query's storage detection messages and service message also can be used in text.
In one example, above-mentioned execution sequence is intended merely to facilitate description to provide example, in practical applications,
Sequence is executed between can also changing the step, with no restrictions to this execution sequence.Moreover, in other embodiments, and it is different
The fixed sequence for showing and describing according to this specification is come the step of executing correlation method, step included by method can be than this
It is more or less described in specification.In addition, single step described in this specification, it in other embodiments may quilt
Multiple steps are decomposed into be described;Multiple steps described in this specification may also be merged into other embodiments
Single step is described.
Based on the above-mentioned technical proposal, in the embodiment of the present application, in network quality detection process, it can use local terminal service
One QP resource of device is established connection (such as UD is connect) with multiple opposite end servers, rather than utilizes multiple QP of local terminal server
Resource is established RC with multiple opposite end servers and is connect, to avoid carrying out network quality detection, Ke Yijie using a large amount of QP resources
QP resource is saved, the occupancy to QP resource can be effectively reduced, improve the availability in large-scale cluster.Moreover, by
In detection messages carry local terminal server QP resource identification information so that opposite end server can use the identification information to
Local terminal server sends response message, i.e. response message can be sent to correct server, avoid responding by opposite end server
The error of transmission of message.Moreover, local terminal server can determine network quality by message according to response, so as to be network O&M
The ability of quickly investigation network failure is provided with business side;The detection that multiple paths can be carried out with network quality provides more complete
The network quality data in face, and the influence to service traffics is smaller.
Below in conjunction with concrete application scene, the above-mentioned technical proposal of the embodiment of the present application is described in detail.
Referring to fig. 2 shown in A, it is the application scenarios schematic diagram of the embodiment of the present application, is by taking three servers as an example in Fig. 2A
It is illustrated, in practical applications, the quantity of server can also be more, without limitation.
In the present embodiment, server can obtain data from another server using RDMA technology, and RDMA technology is one
Data can be transmitted directly to another server from the memory of a server by kind direct memory access technology, without double
The intervention of square operating system, does not have any impact to operating system, can be bypassed by hardware realization zero-copy and kernel, nothing
The participation for needing CPU is capable of providing high performance data access.
Wherein, the agreement of RDMA technology is supported to can include but is not limited to: IB (InfiniBand, infinite bandwidth), RoCE
(RDMA over Converged Ethernet, RDMA cross fusion Ethernet), iWARP (Internet Wide Area RDMA
Protocol, internet wide area rdma protocol) etc., it is without limitation.In the present embodiment, it is illustrated by taking RoCE as an example, and
The processing mode of other agreements is similar.
RoCE is standard of the RDMA in Ethernet, may include two kinds of transmission modes, and a kind of transmission mode is the transmission side RC
Formula, another transmission mode are UD transmission mode.RC transmission mode is connection-oriented reliable transmission technology, needs to pass through response
Guarantee the reliability of transmission with mechanism such as order-preservings.UD transmission mode is non-connection-oriented data transmission technology, does not need to provide
The mechanism such as response and order-preserving guarantee the reliability of transmission.
If for example, RC transmission mode, after 21 first time of server sends the message for carrying sequence number 1 to server 22,
Second of message to the transmission carrying sequence number 2 of server 22 sends the message for carrying sequence number 3 to server 22 for the third time,
And so on.After 22 first time of server receives the message for carrying sequence number 1, sequence number 3 is carried if receiving for the second time
Message, due to being separated by sequence number 2 between sequence number 3 and sequence number 1, accordingly, it is determined that error of transmission, sends NAK to server 21
(denying) message, request server 21 retransmit the message for carrying sequence number 2, in this manner it is ensured that the reliability of transmission.
Obviously, after 21 first time of server sends the message for carrying sequence number 1 to server 22, second can only be to service
Device 22 sends the message for carrying sequence number 2, cannot send the message for carrying sequence number 3.
If UD transmission mode, after 21 first time of server sends the message for carrying sequence number 1 to server 22, second
The message for carrying sequence number 2 can be sent to server 22, and the message for carrying sequence number 3 can also be sent to server 22, it is right
This is with no restrictions.After 22 first time of server receives the message for carrying sequence number 1, even if receiving carrying sequence number for the second time
3 message, server 22 will not verify sequence number, will not send NAK message, i.e. server 21 not to server 21
Need retransmission mechanism.
In one example, resource is very important resource to QP (Queue Pairs, queue to), is to send and receive
The basic resources of message, QP resource include a transmit queue and a receiving queue, and each QP resource has unique mark
Information (such as QP number), QP resource is distributed and is managed by network interface card hardware.
For example, with reference to shown in Fig. 2 B, some business between server 21 and server 22 can be known as business 1 (with
For a business between server 21 and server 22, in practical application, number of services can be more, and each business is corresponding
One QP resource), some business between server 21 and server 23 can be known as business 2, can by server 22 with
Some business between server 23 is known as business 3.
For this purpose, needing to distribute QP resource 211 for business 1 in server 21, QP resource 212 is distributed for business 2;It is servicing
Device 22, needs to distribute QP resource 221 for business 1, distributes QP resource 222 for business 3;In server 23, need for the distribution of business 2
QP resource 231 distributes QP resource 232 for business 3.
Wherein, QP resource 211 includes transmit queue 2111 and receiving queue 2112, and QP resource 212 includes transmit queue
2121 and receiving queue 2122, QP resource 221 includes transmit queue 2211 and receiving queue 2212, and QP resource 222 includes sending
Queue 2221 and receiving queue 2222, QP resource 231 include transmit queue 2311 and receiving queue 2312, and QP resource 232 includes
Transmit queue 2321 and receiving queue 2322.
In the above-described embodiments, above-mentioned QP resource 211, QP resource 212, QP resource 221, QP resource 222, QP resource
231, QP resource 232 is to be used for transmission the QP resource of service message.
Based on above-mentioned application scenarios, server 21 can use QP resource 211 and the QP resource 221 of server 22 establishes RC
Connection 1;In the establishment process of RC connection 1, the identification information 211 of QP resource 211 is sent to server 22 by server 21, by
Server 22 establishes the corresponding relationship of the identification information 221 of QP resource 221 and the identification information 211 of QP resource 211;Similarly, it takes
The identification information 221 of QP resource 221 is sent to server 21 by business device 22, is believed by the mark that server 21 establishes QP resource 211
The corresponding relationship of breath 211 and the identification information 221 of QP resource 221.Certainly, the above process is the example for establishing RC connection 1, right
The establishment process of this RC connection 1 is with no restrictions.In addition, server 21 can use the QP resource of QP resource 212 Yu server 23
231 establish RC connection 2;Server 22, which can use QP resource 222, to be established RC with the QP resource 232 of server 23 and connect 3;To this
It is no longer repeated for process.
In conclusion server 21 is to establish RC connection using different QP resources, QP resource 211 and server are such as utilized
22 establish RC connection 1, establish RC with server 23 using QP resource 212 and connect 2.
Based on above-mentioned RC connection, then the transmission process of service message may include: for business 1, and server 21 is by business
Message 1 stores the transmit queue 2111 of QP resource 211.It, can be from QP resource if receiving the service request of server 22
Service message 1 is read in 211 transmit queue 2111, and service message 1 is sent to by server 22, business by RC connection 1
Message 1 can carry the identification information 221 of QP resource 221.After server 22 receives service message 1, since service message 1 is taken
Therefore service message 1 can be stored the receiving queue 2212 of QP resource 221 by the identification information 221 with QP resource 221;And
And since the record of server 22 has the identification information 221 of QP resource 221 is corresponding with the identification information 211 of QP resource 211 to close
System, hence, it can be determined that service message 1 derives from QP resource 211.
In one example, the protocol type that above-mentioned service message 1 carries can be RC type, and RC type is for making to service
The processing of the progress reliable data transmission of device 22.Specifically, after server 22 receives service message 1, it can be from service message 1
Parsing protocol type is RC type, and therefore, server 22 carries out the processing of reliable data transmission.For example, server 22 detects
Whether the sequence number carried in service message 1 and the sequence number that the service message that last time receives carries are continuous, if continuously,
ACK (confirmation) message is sent to server 21, to indicate to have correctly received service message;If discontinuous, to server 21
NAK message is sent, request server 21 retransmits service message 1, to guarantee the reliability of transmission.Certainly, the above process is
The example that server 22 carries out reliable data transmission processing is described, it is without limitation.
In above process, identification information 221, the protocol type of QP resource 221 can be carried by having introduced service message 1
For RC type, sequence number, in practical applications, service message 1 can also carry other contents.Moreover, the above process is only logical
An example of 1 transmission services message 1 of RC connection is crossed, it is without limitation.
The process for sending service message to server 21 by RC connection 1 for server 22, with above-mentioned service message
Transmission process is similar, and details are not described herein.Similarly, server 21 can send service message to server 23 by RC connection 2,
Server 23 can send service message to server 21 by RC connection 2, and server 22 can be by RC connection 3 to server
23 send service message, and server 23 can send service message to server 22 by RC connection 3, and service message is transmitted across
Journey repeats no more.
In one example, referring to fig. 2 shown in C, one or more priority query can also be configured for service message,
In Fig. 2 C for for one priority query of each business configuration.For example, server 21 is 1 configuration preference level queue of business
1, and be 2 configuration preference level queue 2 of business.Based on this, then the transmission process of service message may include: for business 1, service
Service message 1 is stored the transmit queue 2111 of QP resource 211 by device 21.If receiving the service request of server 22, from
Service message 1 is read in the transmit queue 2111 of QP resource 211, the priority of service message 1 is determined, according to service message 1
The storage of service message 1 is arrived priority query 1 by priority.For example, priority query 1 includes service message 1,2 and of service message
Service message 3, based on the priority of each service message, sequence is successively service message 2, service message 1 and service message 3, then
Service message 2 is read from priority query 1, and service message 2 is sent to server 22, reads industry from priority query 1
Business message 1, is sent to server 22 for service message 1, and service message 3 is read from priority query 1, service message 3 is sent out
Give server 22.
In one example, network quality is the important indicator of RDMA technology, can measure a series of fingers of network behavior
Mark, be referred to as QoS (Quality of Service, service quality), network quality may include network connectivty, when
Prolong, shake, rate, bandwidth etc..In order to detect network quality, it is complete that RDMA ping (hereinafter referred to as rping) tool can be used
At rping tool can establish connection by QP resource, ping message be transmitted using the connection, based on ping message in net
The transmission state of network determines network quality.
In conventional manner, it in order to realize the detection of network quality, is illustrated in conjunction with Fig. 2 B, server 21 can configure
Two are built for carrying out the QP resource of network quality detection, subsequent title QP resource 213 and QP resource 214, and by QP resource 213
It is vertical to be connect with the RC of server 22, it is established by QP resource 214 and is connect with the RC of server 23.Based on the RC of server 22 company
Connect, server 21 can transmit ping message, based on ping message the transmission state of network come determine server 21 and service
Network quality between device 22;Based on connecting with the RC of server 23, server 21 can transmit ping message, be reported based on ping
Text determines the network quality between server 21 and server 23 in the transmission state of network.
Obviously, in the above method, with the increase of number of servers, need to carry out the QP resource of network quality detection
Quantity can also dramatically increase, and therefore, when using aforesaid way, need to waste QP resource, Ke Nengyou using a large amount of QP resource
Lead to not the detection for carrying out network quality in QP inadequate resource.
Unlike aforesaid way, in the embodiment of the present application, referring to fig. 2 shown in D, in server 21, can only be
Network quality detects business (i.e. rping) and distributes a QP resource 213, rather than distributes at least two QP resources;Similarly, it is taking
Business device 22 only can detect one QP resource 223 of traffic assignments for network quality;It can only be network quality in server 23
Detect one QP resource 233 of traffic assignments.
Wherein, QP resource 213 includes transmit queue 2131 and receiving queue 2132, and QP resource 223 includes transmit queue
2231 and receiving queue 2232, QP resource 233 includes transmit queue 2331 and receiving queue 2332.Moreover, in above-described embodiment
In, it is for carrying out that above-mentioned QP resource 213, QP resource 223, QP resource 233, which are to be used for transmission the QP resource of detection messages,
The QP resource of network quality detection.
Based on above-mentioned application scenarios, server 21 can use QP resource 213 and the QP resource 223 of server 22 establishes UD
Connection 1;In the establishment process of UD connection 1, the identification information 213 of QP resource 213 can be sent to server by server 21
22, in this way, server 22 establishes the corresponding relationship of the identification information 223 of QP resource 223 and the identification information 213 of QP resource 213;
Similarly, the identification information 223 of QP resource 223 can be sent to server 21 by server 22, in this way, server 21 establishes QP money
The corresponding relationship of the identification information 223 of the identification information 213 and QP resource 223 in source 213.Certainly, the above process only establishes UD
One example of connection 1, with no restrictions to the establishment process of this UD connection 1.In addition, server 21 continues to use QP resource 213
UD is established with the QP resource 233 of server 23 and connect 2, and server 22 continues to use the QP resource of QP resource 223 Yu server 23
233 establish UD connection 3.
In conclusion UD connection 1, which connects 2 with UD, to be taken using the same QP resource 213 for server 21
Business device 21, which can use the same QP resource 213 and establish UD respectively with server 22 and server 23, to be connect, in this way, this QP money
Source 213 is corresponding with the QP resource 223 of server 22, moreover, QP resource 213 is corresponding with the QP resource 233 of server 23.Similarly,
Server 22, which can use the same QP resource 223, to be established UD with server 21 and server 23 respectively and connect, and server 23 can
It is connect with establishing UD respectively with server 21 and server 22 using the same QP resource 233.
Based on above-mentioned UD connection, then the transmission process of detection messages (such as ping detection messages) may include:
Server 21 generates detection messages 1, and will test the transmit queue 2131 that message 1 stores QP resource 213.So
Afterwards, server 21 can read detection messages 1 from the transmit queue 2131 of QP resource 213, and will test report by UD connection 1
Text 1 is sent to server 22.Wherein, which can carry the identification information 213 and QP resource 223 of QP resource 213
Identification information 223.
After server 22 receives detection messages 1, since detection messages 1 carry the identification information 223 of QP resource 223, because
This, can will test the receiving queue 2232 that message 1 stores QP resource 223.But due to the QP resource 223 of server 22
The QP resource 213 of corresponding server 21 and the QP resource 233 of server 23, therefore detection report can not be determined based on QP resource 223
Text 1 derives from QP resource 213, is also derived from QP resource 233.For this purpose, detection messages 1 can also carry the mark of QP resource 213
Information 213 is known, so that server 22 determines that detection messages 1 derive from QP resource 213 based on identification information 213.
Due in traditional approach, will not message carry sender QP resource identification information, therefore, the present embodiment
In, the format of detection messages can be improved, the mark of the QP resource of sender is added in the extended field of detection messages
Information is known, such as the identification information 213 of the QP resource 213 of server 21, in this way, server 22 can be from the extension word of detection messages
The identification information 213 of QP resource 213 is read in section.
In one example, the protocol type that above-mentioned detection messages 1 carry can be UD type, and UD type is for making to service
The processing of the progress corrupt data transmission of device 22.Specifically, server 22 after receiving detection messages 1, can be reported from detection
It is UD type that protocol type is parsed in text 1, and therefore, server 22 carries out the processing of corrupt data transmission.For example, server
Whether 22 not need the sequence number carried in analysis detection message 1 continuous, do not need to send to server 21 yet ACK message or
NAK message, therefore, server 22 do not need 21 transmission message of request server, are not necessary to guaranty that the reliability of transmission.
Wherein, server 22 from parsed in detection messages 1 protocol type be UD type after, can be from detection messages 1
Extended field in read QP resource 213 identification information 213, it is without limitation.
The above process has introduced the identification information that detection messages 1 carry the identification information 213 of QP resource 213, QP resource 223
223, protocol type is UD type, and in practical application, detection messages 1 can also carry other contents.The above process simply by
The example of detection messages 1 is transmitted in UD connection 1, without limitation.
After server 22 will test the receiving queue 2232 that message 1 stores QP resource 223, server 22 can be from QP
Detection messages 1 are read in the receiving queue 2232 of resource 223, and generate the response message 1 for being directed to detection messages 1, and will response
Message 1 stores the transmit queue 2231 of QP resource 223.Wherein, due to QP resource that server 22 is carried based on detection messages 1
213 identification information 213 determines detection messages 1 from QP resource 213, and therefore, response message 1 carries the mark of QP resource 213
Know information 213.
Further, server 22 is after the transmit queue 2231 that response message 1 is stored to QP resource 223, service
Device 22 can read response message 1 from the transmit queue 2231 of QP resource 223, due to carrying QP resource 213 in response message 1
Identification information 213, and the corresponding UD connection 1 of QP resource 213, therefore, server 22 can be by UD connections 1 by response message 1
It is sent to server 21.
After server 21 receives response message 1 by UD connection 1, since response message 1 carries the mark of QP resource 213
Information 213, therefore the identification information 213 of QP resource 213 can be obtained from response message 1, and will ring according to identification information 213
Message 1 is answered to store the receiving queue 2132 of QP resource 213.
Then, server 21 can also read response message 1 from the receiving queue 2132 of QP resource 213, and according to sound
Message 1 is answered to determine the network quality between server 21 and server 22, for example, network connectivty, time delay, shake, rate, band
Width etc., with no restrictions to the method for determination of this network quality.
In the above process, the network quality between the determining server 21 of server 21 and server 22 has been discussed in detail,
For the network quality determination process of other links, similar with the above process, details are not described herein.
In the above-described embodiments, server 21 is after the transmit queue 2131 of QP resource 213 reading detection messages 1, In
It will test before message 1 is sent to server 22 by UD connection 1, server 21 can also determine the priority of detection messages 1,
And the storage of message 1 will test to priority query according to the priority of detection messages 1;Then, server 21 is according to priority team
Message sequence in column is successively read each message in priority query, and after reading detection messages 1, is connected by UD
1 sends detection messages 1.
In one example, for storing the priority query of detection messages and the priority team for being used for storage service message
Column can be same or different.That is, same priority query's storage detection messages and service message can be used,
Different priority query's storage detection messages and service message can be used.
For example, if being used to store the priority query of detection messages and the priority query's phase for being used for storage service message
Together, then it is illustrated by taking Fig. 2 C as an example, server 21 can will test packet storage when sending detection messages to server 22
To priority query 1, server 21 can will test packet storage to priority team when sending detection messages to server 23
Column 2.Based on this, server 21 determines the excellent of detection messages 1 after the transmit queue 2131 of QP resource 213 reading detection messages 1
First grade will test the storage of message 1 to priority query 1 according to the priority of detection messages 1.For example, priority query 1 includes industry
Message 1, service message 2 and the detection messages 1 of being engaged in are sequentially successively service message 2, service message 1 based on the priority of each message
With detection messages 1, then service message 2 is read from priority query 1, service message 2 is sent to server 22, from priority
Service message 1 is read in queue 1, service message 1 is sent to server 22, and detection messages 1 are read from priority query 1,
It will test message 1 and be sent to server 22.
In another example if being used to store the priority query of detection messages and being used for the priority query of storage service message not
Together, then server 21 may be configured to storage detection messages priority query 3.Therefore, server 21 is from QP resource 213
After transmit queue 2131 reads detection messages 1, determines the priority of detection messages 1, will test according to the priority of detection messages 1
Priority query 3 is arrived in the storage of message 1.If priority query 3 includes detection messages 1 and detection messages 2, based on each detection messages
Priority is sequentially detection messages 2 and detection messages 1, then reads detection messages 2 from priority query 3, will test message 2
It is sent to server 22, detection messages 1 are read from priority query 3, message 1 is will test and is sent to server 22.
Wherein, it is stored by will test message and service message to different priority queries, it can be with separate detection message
And service message keeps respective independence so that detection messages and service message are not interfere with each other.
In the above-described embodiments, server 21 determines the priority of detection messages 1, can include but is not limited to: server
21 determine the corresponding priority of QP resource 213, and the corresponding priority of QP resource 213 is determined as to the transmission of the QP resource 213
The priority of the detection messages 1 stored in queue 2131.
Wherein, server 21 can be the corresponding priority of QP resource distribution, with no restrictions to this configuration process, and record
The corresponding relationship of QP resource and priority is based on this, and the corresponding priority of QP resource can be determined as QP money by server 21
The priority of the detection messages stored in the transmit queue in source.
Based on the above-mentioned technical proposal, in the embodiment of the present application, in network quality detection process, it can use server 21
A QP resource establish UD with multiple opposite end servers and connect, rather than utilize multiple QP resources of server 21 with it is multiple right
End server establishes RC connection, to avoid carrying out network quality detection using a large amount of QP resources, QP resource can be saved, big
The occupancy to QP resource can be effectively reduced under the scene of scale cluster, improve the availability in large-scale cluster.Moreover,
By carrying the identification information of the QP resource of server 21 in detection messages, so that opposite end server can use mark letter
It ceases to server 21 and sends response message, is i.e. response message can be sent to correct server 21, avoided by opposite end server
The error of transmission of response message.Moreover, server 21 can determine network quality by message according to response, so as to be network fortune
Peacekeeping business side provides the ability of quickly investigation network failure;The detection that multiple paths can be carried out with network quality, provides more
Comprehensive network quality data, and the influence to service traffics is smaller.
Furthermore, it is possible to the priority query of detection messages flexibly be specified, if specifying the priority for storing detection messages
Queue is different from for the priority query of storage service message, then can be with prioritised transmission detection messages, and can reduce detection
Influence of the message to service message, improves the accuracy of detection.Moreover, for due to UD transmit caused by unreliable transmission belt come
Packet loss, be mapped directly into Network Packet Loss failure;The influence that delay increases is provided by setting baseline and calculating difference
Evaluation to network quality variation tendency.
Based on similarly applying conceiving with the above method, the embodiment of the present application also provides a kind of network quality detection method,
It can be applied to local terminal server, this method may include: the first QP resource and at least two opposite ends using local terminal server
Server establishes UD connection respectively;It is connected by UD to the corresponding opposite end server of the UD connection and sends detection messages;By this
UD connection receives opposite end server and is directed to the response message that the detection messages return;Local terminal server is determined according to the response message
With the network quality between the server of opposite end.
Wherein, the treatment process of above steps, may refer to above-described embodiment, and details are not described herein.
Based on similarly applying conceiving with the above method, the embodiment of the present application also provides a kind of network quality detection device,
Applied to local terminal server, as shown in figure 3, being the structure chart of described device, described device includes:
Module 301 is established, establishes the first connection with opposite end server for the first QP resource using local terminal server;Hair
Module 302 is sent, sends detection messages for connecting by described first to the opposite end server;Wherein, the detection messages
Carry the identification information of the first QP resource;Receiving module 303 is directed to the detection for receiving by first connection
The response message of message;Wherein, the response message is opposite end server according to the identification information to the local terminal server
It sends;Determining module 304, for being determined between the local terminal server and the opposite end server according to the response message
Network quality.
The module 301 of establishing is specifically used for: being serviced using the first QP resource of local terminal server and at least two opposite ends
Device establishes the first connection respectively;First connection includes: the connection based on UD;The first QP resource includes: for carrying out
The QP resource of network quality detection;The protocol type that the detection messages carry is UD type;The UD type is for making opposite end
The processing of server progress corrupt data transmission.
It is described to establish module 301, it is also used to establish using the 3rd QP resource and opposite end server of the local terminal server
Second connection;The sending module 302 is also used to connect by described second to opposite end server transmission service message,
The protocol type that the service message carries is RC type, and the RC type is for making opposite end server carry out reliable data transmission
Processing;Wherein, different opposite end servers corresponds to the 3rd different QP resources of the local terminal server;Second connection
It include: the connection based on RC.
The sending module 302 is specifically used when connecting by described first and send detection messages to the opposite end server
In: obtain the detection messages for carrying the identification information of the first QP resource;Determine the priority of the detection messages;According to institute
The priority for stating detection messages stores the detection messages to priority query;It is suitable according to the message in the priority query
Sequence is successively read the message in the priority query;After reading the detection messages, sent by first connection
The detection messages;Wherein, for storing the priority query of the detection messages and the priority for being used for storage service message
Queue is same or different.
Based on similarly applying conceiving with the above method, the embodiment of the present application provides a kind of local terminal server, including processing
Device and machine readable storage medium are stored with several computer instructions on the machine readable storage medium, and the processor is held
It is handled as follows when the row computer instruction: establishing first using the first QP resource and opposite end server of local terminal server
Connection;The detection messages for carrying the identification information of the first QP resource are sent by first connection;Pass through described first
Connection receives the response message for being directed to the detection messages;The response message is that the opposite end server is believed according to the mark
It ceases to local terminal server transmission;It is determined between the local terminal server and opposite end server according to the response message
Network quality.
Based on similarly applying conceiving with the above method, the embodiment of the present application also provides a kind of machine readable storage medium,
Several computer instructions are stored on the machine readable storage medium, the computer instruction is performed to be located as follows
Reason: the first connection is established using the first QP resource and opposite end server of local terminal server;It is sent and is taken by first connection
The detection messages of identification information with the first QP resource;The sound for being directed to the detection messages is received by first connection
Answer message;Wherein, the response message is that the opposite end server is sent according to the identification information to the local terminal server
's;The network quality between the local terminal server and opposite end server is determined according to the response message.
Based on similarly applying conceiving with the above method, the embodiment of the present application also provides a kind of network quality detection device,
Applied to local terminal server, described device includes: to establish module, for the first QP resource and at least two using local terminal server
A opposite end server establishes UD connection respectively;Sending module, for connecting opposite end corresponding to the UD connection by the UD
Server sends detection messages;Receiving module is directed to the detection for receiving the opposite end server by the UD connection
The response message that message returns;Determining module, for according to the response message determine local terminal server and opposite end server it
Between network quality.
Based on similarly applying conceiving with the above method, the embodiment of the present application provides a kind of local terminal server, including processing
Device and machine readable storage medium are stored with several computer instructions on the machine readable storage medium, and the processor is held
It is handled as follows when the row computer instruction: utilizing the first QP resource and at least two opposite end servers of local terminal server
UD connection is established respectively;It is connected by the UD to the corresponding opposite end server of the UD connection and sends detection messages;Pass through institute
It states UD connection and receives the response message that the opposite end server is directed to detection messages return;It is determined according to the response message
Network quality between the local terminal server and opposite end server.
Based on similarly applying conceiving with the above method, the embodiment of the present application also provides a kind of machine readable storage medium,
Several computer instructions are stored on the machine readable storage medium, the computer instruction is performed to be located as follows
Reason: UD is established respectively at least two opposite end servers using the first QP resource of local terminal server and is connect;Connected by the UD
It connects to the corresponding opposite end server of the UD connection and sends detection messages;The opposite end server needle is received by the UD connection
The response message that the detection messages are returned;According to the response message determine the local terminal server and opposite end server it
Between network quality.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can
To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment
The combination of any several equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit can be realized in the same or multiple software and or hardware when application.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, it wherein includes computer usable program code that the embodiment of the present application, which can be used in one or more,
The computer implemented in computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of program product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It is generally understood that being realized by computer program instructions each in flowchart and/or the block diagram
The combination of process and/or box in process and/or box and flowchart and/or the block diagram.It can provide these computer journeys
Sequence instruct to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices processor with
A machine is generated, so that the instruction generation executed by computer or the processor of other programmable data processing devices is used for
Realize the dress for the function of specifying in one or more flows of the flowchart and/or one or more blocks of the block diagram
It sets.
Moreover, these computer program instructions also can store be able to guide computer or other programmable datas processing set
In standby computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates
Manufacture including command device, the command device are realized in one process of flow chart or multiple processes and/or block diagram one
The function of being specified in a box or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing devices, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer
Or the instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram
The step of function of being specified in one box or multiple boxes.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art
For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal
Replacement, improvement etc., should be included within the scope of the claims of this application.
Claims (20)
1. a kind of network quality detection method, which is characterized in that be applied to local terminal server, comprising:
The first connection is established using the first QP resource and opposite end server of local terminal server;
The detection messages for carrying the identification information of the first QP resource are sent by first connection;
The response message for being directed to the detection messages is received by first connection;Wherein, the response message is described right
End server is sent according to the identification information to the local terminal server;
The network quality between the local terminal server and opposite end server is determined according to the response message.
2. the method according to claim 1, wherein
The first QP resource using local terminal server and opposite end server establish the first connection, comprising:
The first connection is established respectively using the first QP resource and at least two opposite end servers of local terminal server.
3. method according to claim 1 or 2, which is characterized in that
First connection includes: the connection based on corrupt data transmission UD;
The first QP resource includes: the QP resource for carrying out network quality detection.
4. the method according to claim 1, wherein described sent by first connection carries described first
The detection messages of the identification information of QP resource, comprising:
Generate the detection messages for carrying the identification information of the first QP resource;
By the transmit queue of detection messages storage to the first QP resource;
Detection messages are read from the transmit queue, and the detection messages are sent by first connection.
5. method according to claim 1 or 4, which is characterized in that the protocol type that the detection messages carry is UD class
Type, the processing that the UD type is used to that opposite end server to be made to carry out corrupt data transmission.
6. the method according to claim 1, wherein described determine the local terminal service according to the response message
Network quality between device and opposite end server, comprising:
The identification information of the first QP resource is obtained from the response message;
According to the identification information by the response message store to the first QP resource receiving queue;
Read the response message from the receiving queue, and according to the response message determine the local terminal server with it is described
Network quality between the server of opposite end.
7. the method according to claim 1, wherein described utilize the first QP resource of local terminal server and opposite end
Server is established after the first connection, the method also includes:
Receive the detection messages that the opposite end server is sent by first connection, wherein institute is carried in the detection messages
State the identification information of the 2nd QP resource of opposite end server;
Response message is sent to the opposite end server according to the identification information of the 2nd QP resource.
8. the method according to the description of claim 7 is characterized in that
The identification information of the first QP resource of the local terminal server is also carried in the detection messages;
Response message is sent to the opposite end server according to the identification information of the 2nd QP resource, comprising:
According to the identification information of the first QP resource will test packet storage to the first QP resource receiving queue;
The detection messages are read from the receiving queue of the first QP resource, and generate the response message for being directed to the detection messages,
The response message carries the identification information of the 2nd QP resource;
By the transmit queue of response message storage to the first QP resource;The response report is read from the transmit queue of the first QP resource
Text, and connect by described first to the opposite end server and send the response message.
9. the method according to claim 1, wherein the method also includes:
The second connection is established using the 3rd QP resource and opposite end server of the local terminal server;
It connects by described second to the opposite end server and sends service message, the protocol type that the service message carries is
RC type, the processing that the RC type is used to that opposite end server to be made to carry out reliable data transmission;
Wherein, different opposite end servers corresponds to the 3rd different QP resources of the local terminal server;
Second connection includes: the connection based on reliable data transmission RC.
10. the method according to claim 1, wherein described sent by first connection carries described the
The detection messages of the identification information of one QP resource, comprising:
Obtain the detection messages for carrying the identification information of the first QP resource;
Determine the priority of the detection messages;
The detection messages are stored to priority query according to the priority of the detection messages;
The message in the priority query is successively read according to the message sequence in the priority query;
After reading the detection messages, the detection messages are sent by first connection.
11. according to the method described in claim 10, it is characterized in that,
The priority of the determination detection messages, comprising:
Determine the corresponding priority of the first QP resource;
The corresponding priority of the first QP resource is determined as to the priority of the detection messages.
12. according to the method described in claim 10, it is characterized in that, for store the priority queries of the detection messages with
Priority query for storage service message is same or different.
13. a kind of network quality detection method, which is characterized in that be applied to local terminal server, comprising:
UD is established respectively at least two opposite end servers using the first QP resource of local terminal server to connect;
It is connected by the UD to the corresponding opposite end server of the UD connection and sends detection messages;
The opposite end server, which is received, by the UD connection is directed to the response message that the detection messages return;
The network quality between the local terminal server and opposite end server is determined according to the response message.
14. a kind of network quality detection device, which is characterized in that be applied to local terminal server, comprising: module is established, for benefit
The first connection is established with the first QP resource of local terminal server and opposite end server;
Sending module sends detection messages for connecting by described first to the opposite end server;Wherein, the detection report
Text carries the identification information of the first QP resource;
Receiving module, for receiving the response message for being directed to the detection messages by first connection;Wherein, the response
Message is that opposite end server is sent according to the identification information to the local terminal server;
Determining module, for determining the network between the local terminal server and the opposite end server according to the response message
Quality.
15. device according to claim 14, which is characterized in that the module of establishing is specifically used for: utilizing local terminal service
First QP resource of device and at least two opposite end servers establish the first connection respectively;
Wherein, first connection includes: the connection based on corrupt data transmission UD;
The first QP resource includes: the QP resource for carrying out network quality detection;
Wherein, the protocol type that the detection messages carry is UD type;
The processing that the UD type is used to that opposite end server to be made to carry out corrupt data transmission.
16. device according to claim 14, which is characterized in that it is described to establish module, it is also used to take using the local terminal
The 3rd QP resource of device of being engaged in and opposite end server establish the second connection;
The sending module is also used to connect by described second to opposite end server transmission service message, the business
The protocol type that message carries is RC type, the processing that the RC type is used to that opposite end server to be made to carry out reliable data transmission;
Wherein, different opposite end servers corresponds to the 3rd different QP resources of the local terminal server;Second connection includes: base
In the connection of reliable data transmission RC.
17. device according to claim 14, which is characterized in that
The sending module is specifically used for when connecting by described first and send detection messages to the opposite end server: being taken
The detection messages of identification information with the first QP resource;Determine the priority of the detection messages;It is reported according to the detection
The priority of text stores the detection messages to priority query;It is successively read according to the message sequence in the priority query
Take the message in the priority query;After reading the detection messages, the detection is sent by first connection
Message;Wherein, identical as the priority query of storage service message for storing the priority query of the detection messages
Or it is different.
18. a kind of network quality detection method, which is characterized in that be applied to local terminal server, comprising:
Module is established, UD is established respectively at least two opposite end servers for the first QP resource using local terminal server and connects
It connects;
Sending module sends detection messages for connecting by the UD to the corresponding opposite end server of the UD connection;
Receiving module is directed to the response report that the detection messages return for receiving the opposite end server by the UD connection
Text;
Determining module, for determining the network matter between the local terminal server and opposite end server according to the response message
Amount.
19. a kind of local terminal server characterized by comprising processor and machine readable storage medium, it is described machine readable to deposit
Several computer instructions are stored on storage media, the processor is handled as follows when executing the computer instruction: utilizing
The first QP resource and opposite end server of local terminal server establish the first connection;It is sent by first connection and carries described the
The detection messages of the identification information of one QP resource;The response message for being directed to the detection messages is received by first connection;
Wherein, the response message is that the opposite end server is sent according to the identification information to the local terminal server;According to
The response message determines the network quality between the local terminal server and opposite end server.
20. a kind of local terminal server characterized by comprising processor and machine readable storage medium, it is described machine readable to deposit
Several computer instructions are stored on storage media, the processor is handled as follows when executing the computer instruction: utilizing
First QP resource of local terminal server is established UD at least two opposite end servers respectively and is connect;It is connected by the UD to described
The corresponding opposite end server of UD connection sends detection messages;The opposite end server, which is received, by the UD connection is directed to the inspection
Observe and predict the response message of text return;The network between the local terminal server and opposite end server is determined according to the response message
Quality.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810420035.9A CN110445666B (en) | 2018-05-04 | 2018-05-04 | Network quality detection method and device and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810420035.9A CN110445666B (en) | 2018-05-04 | 2018-05-04 | Network quality detection method and device and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110445666A true CN110445666A (en) | 2019-11-12 |
CN110445666B CN110445666B (en) | 2022-12-06 |
Family
ID=68427410
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810420035.9A Active CN110445666B (en) | 2018-05-04 | 2018-05-04 | Network quality detection method and device and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110445666B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112838992A (en) * | 2019-11-22 | 2021-05-25 | 华为技术有限公司 | Message scheduling method and network equipment |
CN114710515A (en) * | 2022-06-06 | 2022-07-05 | 浪潮电子信息产业股份有限公司 | Communication method and related assembly |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6912604B1 (en) * | 2001-03-26 | 2005-06-28 | Advanced Micro Devices, Inc. | Host channel adapter having partitioned link layer services for an infiniband server system |
US20130080562A1 (en) * | 2011-09-27 | 2013-03-28 | International Business Machines Corporation | Using transmission control protocol/internet protocol (tcp/ip) to setup high speed out of band data communication connections |
US20130135999A1 (en) * | 2011-11-27 | 2013-05-30 | Mellanox Technologies Ltd. | Destination-based congestion control |
WO2013147829A1 (en) * | 2012-03-30 | 2013-10-03 | Intel Corporation | Efficient distribution of subnet administration data over an rdma network |
WO2015154475A1 (en) * | 2014-04-10 | 2015-10-15 | 华为技术有限公司 | Data processing method, device, and computer having corresponding device |
CN106790354A (en) * | 2016-11-15 | 2017-05-31 | 上海远景数字信息技术有限公司 | A kind of communication means and its device of anti-data congestion |
US20170346742A1 (en) * | 2016-05-30 | 2017-11-30 | Mellanox Technologies Ltd. | End-to-end Enhanced Reliable Datagram Transport |
-
2018
- 2018-05-04 CN CN201810420035.9A patent/CN110445666B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6912604B1 (en) * | 2001-03-26 | 2005-06-28 | Advanced Micro Devices, Inc. | Host channel adapter having partitioned link layer services for an infiniband server system |
US20130080562A1 (en) * | 2011-09-27 | 2013-03-28 | International Business Machines Corporation | Using transmission control protocol/internet protocol (tcp/ip) to setup high speed out of band data communication connections |
US20130135999A1 (en) * | 2011-11-27 | 2013-05-30 | Mellanox Technologies Ltd. | Destination-based congestion control |
WO2013147829A1 (en) * | 2012-03-30 | 2013-10-03 | Intel Corporation | Efficient distribution of subnet administration data over an rdma network |
WO2015154475A1 (en) * | 2014-04-10 | 2015-10-15 | 华为技术有限公司 | Data processing method, device, and computer having corresponding device |
US20170346742A1 (en) * | 2016-05-30 | 2017-11-30 | Mellanox Technologies Ltd. | End-to-end Enhanced Reliable Datagram Transport |
CN106790354A (en) * | 2016-11-15 | 2017-05-31 | 上海远景数字信息技术有限公司 | A kind of communication means and its device of anti-data congestion |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112838992A (en) * | 2019-11-22 | 2021-05-25 | 华为技术有限公司 | Message scheduling method and network equipment |
CN114710515A (en) * | 2022-06-06 | 2022-07-05 | 浪潮电子信息产业股份有限公司 | Communication method and related assembly |
WO2023236589A1 (en) * | 2022-06-06 | 2023-12-14 | 浪潮电子信息产业股份有限公司 | Communication method and related components |
Also Published As
Publication number | Publication date |
---|---|
CN110445666B (en) | 2022-12-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9888048B1 (en) | Supporting millions of parallel light weight data streams in a distributed system | |
US20060047849A1 (en) | Apparatus and method for packet coalescing within interconnection network routers | |
US9002969B2 (en) | Distributed multimedia server system, multimedia information distribution method, and computer product | |
CN110365752A (en) | Processing method, device, electronic equipment and the storage medium of business datum | |
CN108494817A (en) | Data transmission method, relevant apparatus and system | |
AU2016201513A1 (en) | Low latency fifo messaging system | |
CN109729040A (en) | Method, equipment and the computer-readable medium of the selection of agreement | |
CN110069346A (en) | Resource share method, device, electronic equipment between multi-process | |
US10601722B2 (en) | Method and device for dynamically managing the message retransmission delay on an interconnection network | |
Pedretti et al. | Using the Cray Gemini Performance Counters. | |
CN109246004B (en) | Network data acceleration method, client, router and server | |
CN110166541A (en) | Rendering method, relevant device and system based on block chain | |
CN109828843A (en) | Method, system and the electronic equipment that data are transmitted between a kind of calculate node | |
CN110445666A (en) | A kind of network quality detection method, device and server | |
CN111431730A (en) | Service processing method, system, computer equipment and readable medium | |
WO2019047573A1 (en) | Downlink data transmission cache method, terminal, and base station | |
CN109120385A (en) | A kind of data transmission method based on data transmission system, apparatus and system | |
CN106658224A (en) | Method for transferring audio and video data streams based on TCP mode of DSS time sharing system | |
US20240146806A1 (en) | Intermediate apparatus, communication method, and program | |
US20240039805A1 (en) | Information processing device, information processing system, information processing method, and program | |
KR102082484B1 (en) | Apparatus for transmitting and receiving data | |
Gavrilov et al. | Using IoT Protocols in Real-Time Systems: Protocol Analysis and Evaluation of Data Transmission Characteristics | |
Nilsson et al. | Performance evaluation of message-oriented middleware | |
CN104980352A (en) | Routing method and device for multiline computer room | |
US20230066835A1 (en) | Methods, systems and computer readable media for improving remote direct memory access performance |
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 |