WO2018121353A1 - Method of testing data channel, test server, and test system - Google Patents

Method of testing data channel, test server, and test system Download PDF

Info

Publication number
WO2018121353A1
WO2018121353A1 PCT/CN2017/117228 CN2017117228W WO2018121353A1 WO 2018121353 A1 WO2018121353 A1 WO 2018121353A1 CN 2017117228 W CN2017117228 W CN 2017117228W WO 2018121353 A1 WO2018121353 A1 WO 2018121353A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
test
message
data path
test message
Prior art date
Application number
PCT/CN2017/117228
Other languages
French (fr)
Chinese (zh)
Inventor
李宠波
王景正
孙雷
Original Assignee
北京奇虎科技有限公司
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 北京奇虎科技有限公司 filed Critical 北京奇虎科技有限公司
Publication of WO2018121353A1 publication Critical patent/WO2018121353A1/en

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/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers

Definitions

  • the present disclosure relates to the field of computer technology, and in particular, the present disclosure relates to a method for testing a data path between multiple servers, a test server for a data path, and a test system for a data path.
  • the server cluster needs to be linearly expanded on the server side.
  • the data path of the transmission failure is often determined by testing each data path of the multi-party server one by one, and the test efficiency is extremely low, which seriously affects the normal operation of the multi-party server; in addition, due to the data service between the multi-party servers It is often complicated, and the amount of data transmission is huge. Therefore, in the process of testing the data path, it is easy to misjudge the faulty data path as a normal data path, thereby reducing the accuracy of the test result.
  • Embodiments of the present disclosure provide a method for testing a data path between multiple servers, including:
  • the test server sends the test message to the first server; wherein the first server reports the test data to the third server through the at least one second server;
  • Whether the data path between the first server and the third server is abnormal is determined according to whether the third server receives the test message and/or the time when the third server receives the test message.
  • test server for a multi-party data path between servers, including:
  • a sending module configured to send a test message to the first server by the test server, where the first server reports the test data to the third server by using the at least one second server;
  • the determining module is configured to determine whether the data path between the first server and the third server is abnormal according to whether the third server receives the test message and/or the time when the third server receives the test message.
  • test system for a data path including:
  • test server configured to send the test message to the first server, and send a test notification message corresponding to the test message to the third server;
  • a first server configured to send the obtained test message to the matching second server
  • a second server configured to send a test message from the first server that matches the third server to the third server based on the predetermined data path
  • a third server configured to receive a test notification message corresponding to the test message sent by the test server
  • Computer readable code when the computer readable code is run on a computing device, causes the computing device to perform the test method of the inter-server data path described above.
  • Yet another embodiment of the present disclosure provides a computer readable medium, comprising:
  • a test method for performing the above-described data path between the multi-party servers is stored.
  • a test solution for a data path between multiple servers is provided.
  • the test server sends a test message to the first server, where the first server reports the test data to the third server through the at least one second server.
  • the corresponding data path is determined according to the matching relationship between the servers, and the data transmission is tested through the data path, thereby avoiding the test of the transmission data of the unnecessary data path, and improving the transmission of the data path between the multiple servers.
  • the test notification message corresponding to the test message is sent to the third server, which provides the necessary precondition for the subsequent determination of whether the data path normally transmits data; according to whether the third server receives the test message and/or Or the time when the third server receives the test message, determining whether the data path between the first server and the third server is abnormal, and realizing whether the data path of each channel is normally transmitted between the multi-party servers, so that the multi-party server is in the working process
  • the data path can be tested without suspending the normal service data transmission, ensuring normal operation for the user. Data business services.
  • FIG. 1 is a schematic diagram of a connection relationship between multiple servers in the present disclosure
  • FIG. 2 is a flowchart of a method for testing a data path between multiple servers according to an embodiment of the present disclosure
  • FIG. 3 is a schematic structural diagram of a test server of a data path according to another embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of a test system for a data path according to another preferred embodiment of the present disclosure.
  • FIG. 5 schematically illustrates a block diagram of a computing device for performing a test method for a multi-party inter-server data path in accordance with an embodiment of the present disclosure
  • FIG. 6 schematically illustrates a storage unit for maintaining or carrying program code that implements a test method for a multi-party server data path in accordance with an embodiment of the present disclosure.
  • the number of the first server and the plurality of second servers, the first server and the second server are not performed here. limited.
  • FIG. 1 is a schematic diagram of a connection relationship between multiple servers in the present disclosure.
  • the test server In the test environment of the data path between the multi-servers, the test server, the first server ServerA01, ServerA02 and ServerA03, the second server ServerB01, ServerB02 and ServerB03, and the third server ServerC; it should be noted that in the actual business system
  • the first server is a management server
  • the second server is a node server
  • the third server is a data center server
  • the plurality of management servers correspond to one node server
  • the service data of the plurality of management servers are transmitted to the corresponding node server
  • the node server retransmits the service data from each management server to the data center server; as shown in FIG.
  • the second server corresponding to the first server ServerA01, ServerA02, and ServerA03 is ServerB01, and ServerA01, ServerA02, and ServerA03 can actively take it.
  • the test messages received by the respective ones are transmitted to the server B01, and the test notification messages corresponding to the test messages are sent to the third server ServerC;
  • the third servers corresponding to the second servers ServerB01, ServerB02 and ServerB03 are ServerC, ServerB01, Serve rB02 and ServerB03 transmit test messages from their respective first servers to ServerC; there are two data transmission paths between ServerB01 and ServerC, one is the shortest straight-distance transmission path between ServerB01 and ServerC, and the other is ServerB01. The data transmission path connecting ServerB02 and ServerB03 to ServerC.
  • test environment of the data path between the multi-party servers is described in detail with reference to FIG. 1 , and the connection manners of other multi-party servers that conform to the connection relationship include a plurality of types, which are not limited herein.
  • FIG. 2 is a flow chart of a method for testing a data path between multiple servers according to an embodiment of the present disclosure.
  • Step S210 The test server sends a test message to the first server; wherein the first server reports the test data to the third server by using the at least one second server;
  • S220 Determine whether the data path between the first server and the third server is abnormal according to whether the third server receives the test message and/or the time when the third server receives the test message.
  • a test method for a data path between multiple servers is provided.
  • the test server sends a test message to the first server, where the first server reports the test data to the third server through the at least one second server.
  • the corresponding data path is determined according to the matching relationship between the servers, and the data transmission is tested through the data path, thereby avoiding the test of the transmission data of the unnecessary data path, and improving the transmission of the data path between the multiple servers.
  • the test notification message corresponding to the test message is sent to the third server, which provides the necessary precondition for the subsequent determination of whether the data path normally transmits data; according to whether the third server receives the test message and/or Or the time when the third server receives the test message, determining whether the data path between the first server and the third server is abnormal, and realizing whether the data path of each channel is normally transmitted between the multi-party servers, so that the multi-party server is in the During operation When the data path is interrupted or the data transmission is abnormal, it can provide an important reference for the operation and maintenance personnel of the multi-party server. At the same time, the data path can be tested without suspending the normal service data transmission, ensuring normal operation for the user. Data business services. The following is a further description of the specific implementation of each step:
  • Step S210 The test server sends the test message to the first server; wherein the first server reports the test data to the third server through the at least one second server.
  • the test server such as TestMsg01
  • the first server such as ServerA01
  • the server A01 sends the obtained test message TestMsg01 to the matching second server.
  • ServerB01 sends TestMsg01 to ServerC through ServerB01 based on a predetermined data path, such as ServerB01's data transmission path connecting ServerB02 and ServerB03 to ServerC.
  • Step S220 Determine whether the data path between the first server and the third server is abnormal according to whether the third server receives the test message and/or the time when the third server receives the test message.
  • test server monitors the third server ServerC to receive the test message TestMsg01, the test server can determine that the data path between the first server ServerA01 and the third server ServerB03 normally transmits data;
  • the test server monitors that the third server ServerC does not receive the test message TestMsg01, and the test server can determine that the data path between the first server ServerA01 and the third server ServerB03 cannot normally transmit data.
  • step S220 further comprises step S221; step S221: the test server sends a test notification message corresponding to the test message to the third server, so that The third server determines whether the data path between the first server and the third server is abnormal according to the received test notification message and whether the test message is received and/or the test message is received.
  • test notification message includes one or more of the following: test message content; test message sending time, for example: 2016-12-1202:10:00; test message sending object, for example, first server ServerA01; test message Identification information, for example, TestMsg01.
  • the test notification message corresponding to the test message TestMsg01 is sent to the third server ServerC through the test server, and then the third server ServerC receives the test notification message according to the received, and the ServerC receives To the feedback information of the test message TestMsg01, the ServerC can determine that the data path between the first server ServerA01 and the third server ServerB03 can normally transmit data.
  • the third server determines, according to the received test notification message, whether the test message is received and/or the time when the test message is received, whether the data path between the first server and the third server is abnormal, including:
  • the third server receives the test message and the time of receiving the test message is within the predetermined monitoring duration, it is determined that the predetermined data path can normally transmit the data; for example, if the test server sends the test message TestMsg01 for 2016-12- 1202:10:00, it is monitored that the message "Received and test message TestMsg01! returned by the third server ServerC is received, and the time of receiving TestMsg01 is 2016-12-1202:15:00, and the scheduled monitoring duration is 15 Minutes, when the time of receiving TestMsg01 is within the predetermined monitoring time, it is determined that the predetermined data path can normally transmit data. or
  • the third server does not receive the test message within the predetermined monitoring time period, it is determined that the predetermined data path cannot transmit the data normally; for example, if the test server sends the test message TestMsg01 for 2016-12-1202:10:00, The scheduled monitoring duration is 15 minutes. If the information of "received and tested message TestMsg01! returned by the third server ServerC is not detected until 2016-12-1202:25:00, it is determined that the predetermined data path is not Data can be transferred normally. or
  • the third server receives the test message and receives the test message for more than the predetermined monitoring duration, the test message is ignored, and it is determined that the predetermined data path cannot normally transmit the data. For example, if the time for the test server to send the test message TestMsg01 is 2016-12-1202:10:00, it is monitored that the message "Received with the test message TestMsg01! returned by the third server ServerC is received, and the time of receiving the TestMsg01 is received. For 2016-12-1202:35:00, the scheduled monitoring duration is 15 minutes, and if the time of receiving TestMsg01 exceeds the predetermined monitoring duration, it is determined that the predetermined data path cannot normally transmit data.
  • the data path with abnormal data path is determined to be normal data transmission, and at the same time, the test time is greatly saved, and the test efficiency is improved.
  • determining whether the data path between the first server and the third server is abnormal in step S220 further comprises step S222 and step S223; step S222: the test server sends a test notification message corresponding to the test message to the third server, and Monitoring whether the third server returns feedback information that it has received the test message matching the test notification message; step S223: judging whether the predetermined data path normally transmits data according to the monitoring result.
  • a test notification message corresponding to the test message TestMsg01 is sent to the third server ServerC through the test server, and it is monitored whether the ServerC returns a test that it has received a match with the test notification message.
  • the feedback information of the message TestMsg01 such as the feedback message that the server C has received the test message TestMsg01! that matches the test notification message, if the test server detects that the third server ServerC has returned "has received the test notification message"
  • the feedback information of the matched test message TestMsg01! can be determined to determine that the predetermined data path can normally transmit data.
  • the testing method further includes step S230; step S230: pre-storing the server list, wherein the server list comprises:
  • the server related information includes at least one of a server network address, a server identification information, and a server service type.
  • the server network address such as the server's IP address
  • the server's identification information such as the server device's unique identification information
  • the server service type such as the specific service type of each server, including storage data, data transmission, and data testing.
  • a pre-stored server list such as a ServerList
  • a serverList includes a first server ServerA01, ServerA02, and ServerA03, and a second server ServerB01, ServerB02, and ServerB03, and a third server.
  • the path when passing the test server, sends the test message TestMsg01 to the first server ServerA01, and sends a test notification message corresponding to TestMsg01 to the third server ServerC, and can determine that it matches the ServerA01 according to the ServerList.
  • ServerB01 second server and then the acquired TestMsg01 ServerA01 transmitted to ServerB01;
  • ServerList correspondence relationship may be determined that there is data transmission ServerB01 ServerC according to the third server, and then sent directly to the TestMsg01 ServerC data based on a predetermined path through the ServerB01.
  • the testing method further includes step S240; step S240: determining, based on the server list, a test notification message to be sent to the third server.
  • the test server sends a test message TestMsg01 to the first server ServerA01, and then determines server related information such as server identification information and IP address of the first server ServerA01 based on the server list ServerList. And determining that the identifier information of the second server corresponding to the server A01 is ServerB01 or the like, and determining a test notification message to be sent to the third server ServerC, where the test notification message includes the identifier information of the first server that receives the received test message TestMsg01. ServerA01, ServerA01 corresponding second server identification information ServerB01, test message identification information TestMsg01 and test message TestMsg01 message content.
  • FIG. 3 is a schematic structural diagram of a test server of a data path according to another embodiment of the present disclosure.
  • a test server for a data path between multiple servers sends a test message to the first server.
  • the first server reports the test data to the third server through the at least one second server.
  • the corresponding data path is determined according to the matching relationship between the servers, and the data transmission is tested through the data path, thereby avoiding the test of the transmission data of the unnecessary data path, and improving the transmission of the data path between the multiple servers.
  • the sending module 310 is configured to send a test message to the first server by the test server, where the first server reports the test data to the third server by using the at least one second server.
  • the determining module 320 is configured to determine whether the data path between the first server and the third server is abnormal according to whether the third server receives the test message and/or the time when the third server receives the test message.
  • the determining module 320 includes a sending unit; the sending unit test server sends a test notification message corresponding to the test message to the third server, so that the third server receives the test message according to the received test notification message and/or Or when the test message is received, it is determined whether the data path between the first server and the third server is abnormal.
  • the test notification message includes one or more of the following: a test message content, a test message sending time, a test message sending object, and a test message identifier information.
  • the determining module 320 comprises a sending and monitoring unit and a determining unit; the sending and monitoring unit testing server sends a test notification message corresponding to the test message to the third server, and monitors whether the third server returns the received and tested notification The feedback information of the test message matching the message; the judging unit judges whether the predetermined data path normally transmits the data according to the monitoring result.
  • the test server further includes a pre-stored module; the pre-stored module pre-stores the server list, wherein the server list includes a correspondence between the plurality of first servers and their respective second servers, and a correspondence between the plurality of second servers and a third server Relationships, and server-related information for each server.
  • the pre-stored module pre-stores the server list, wherein the server list includes a correspondence between the plurality of first servers and their respective second servers, and a correspondence between the plurality of second servers and a third server Relationships, and server-related information for each server.
  • test server of the multi-party data path provided by the embodiment of the present disclosure may implement the foregoing test method embodiment.
  • specific function implementation refer to the description in the test method embodiment, and details are not described herein again.
  • FIG. 4 is a schematic structural diagram of a test system for a data path in another preferred embodiment of the present disclosure.
  • the test server 410 sends a test message to the first server, and sends a test notification message corresponding to the test message to the third server; the first server 420 will acquire The incoming test message is sent to the matching second server; the second server 430 sends a test message from the first server that matches it to the third server based on the predetermined data path; the third server 440 receives the test server sent and tested The test notification message corresponding to the message; determining whether the data path between the first server and the third server is abnormal according to the received test notification message and whether the test message is received and/or the time when the test message is received.
  • a test system for a data path where a test server is configured to send a test message to a first server, and send a test notification message corresponding to the test message to a third server;
  • the matching relationship between the servers determines the corresponding data path, and the data transmission is tested through the data path, thereby avoiding the test of the transmission data of the unnecessary data path, and improving the test of the data transmission between the multi-party servers.
  • the first server is configured to send the obtained test message to a matching second server, and sending a test notification message corresponding to the test message to the third server;
  • the second server configured to send a test message from the first server matching the same to the third server based on the predetermined data path Third server for receiving the test server Sending a test notification message corresponding to the test message; determining whether the data path between the first server and the third server is abnormal according to the received test notification message and whether the test message is received and/or the test message is received It realizes the fast and accurate determination of whether each data path is normally transmitted between the multi-party servers, so that the multi-party server can provide an important reference for the operation and maintenance personnel of the multi-party server when the data path is interrupted or the data transmission is abnormal during the operation.
  • the test of the data path can be realized without suspending the normal service data transmission, and
  • the test system includes a plurality of first servers, a plurality of second servers, a third server, and a test server; wherein each of the first servers has a corresponding second server, and the plurality of second servers correspond to On the third server.
  • the test server 410 transmits the test message to the first server and transmits a test notification message corresponding to the test message to the third server.
  • the test notification message includes one or more of the following: a test message content, a test message sending time, a test message sending object, and a test message identifier information.
  • the server related information includes at least one of a server network address, a server identification information, and a server service type.
  • the first server 420 sends the obtained test message to the matching second server.
  • the third server 440 receives the test notification message corresponding to the test message sent by the test server; and determines the first server and the third server according to the received test notification message, and whether the test message is received and/or the test message is received. Whether the data path between the two is abnormal.
  • the predetermined data path includes a data path of a shortest data path distance from the second server to the third server.
  • the third server corresponding to the data transmission of the second servers ServerB01, ServerB02, and ServerB03 is ServerC
  • the shortest data path distance from ServerB01 to ServerC is the linear distance between ServerB01 and ServerC.
  • the data path can be scheduled to be a data path for the linear distance between ServerB01 and ServerC.
  • the second server 430 is further configured to: if it detects that the test message is not successfully sent to the third server through the predetermined data path, reselect the first based on the data path relationship between the second server and the third server. An optional data path between the second server and the third server, and the test message is sent to the third server through the optional data path.
  • the third server 440 is configured to determine whether the data path between the first server and the third server is abnormal, including:
  • the third server If the third server receives the test message and receives the test message for more than the predetermined monitoring duration, the test message is ignored, and it is determined that the predetermined data path cannot normally transmit the data.
  • FIG. 5 illustrates a computing device that can implement the test method of the inter-server data path of the present disclosure.
  • the computing device conventionally includes a processor 510 and a computer program product or computer readable medium in the form of a storage device 520.
  • Storage device 520 can be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • Storage device 520 has a storage space 530 that stores program code 531 for performing any of the method steps described above.
  • storage space 530 storing program code may include various program code 531 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • These computer program products include program code carriers such as a hard disk, a compact disk (CD), a memory card, or a floppy disk.
  • a computer program product is typically a portable or fixed storage unit such as that shown in FIG.
  • the storage unit may have storage segments, storage spaces, and the like that are similarly arranged to storage device 520 in the computing device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit includes computer readable code 531' for performing the steps of the method in accordance with the present disclosure, ie, code that can be read by a processor, such as 510, which when executed by the computing device causes the computing device Perform the various steps in the method described above.
  • test system of the data path provided by the embodiment of the present disclosure may implement the foregoing test method embodiment.
  • specific function implementation refer to the description in the test method embodiment, and details are not described herein again.
  • the present invention includes apparatus related to performing one or more of the operations described herein. These devices may be specially designed and manufactured for the required purposes, or may also include known devices in a general purpose computer. These devices have computer programs stored therein that are selectively activated or reconfigured. Those skilled in the art will appreciate that each block of the block diagrams and/or block diagrams and/or flow diagrams and combinations of blocks in the block diagrams and/or block diagrams and/or flow diagrams can be implemented by computer program instructions. . Those skilled in the art will appreciate that these computer program instructions can be implemented by a general purpose computer, a professional computer, or a processor of other programmable data processing methods, such that the processor is executed by a computer or other programmable data processing method. The disclosed block diagrams and/or block diagrams and/or schemes of the flow diagrams or blocks are specified in a plurality of blocks.

Landscapes

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

Abstract

The disclosure provides a method of testing a data channel, a test server, and a test system. The method comprises: transmitting, by a test server, a test message to a first server, wherein the first server reports test data to a third server via at least one second server; and determining, according to whether the test message is received by the third server and/or according to a time when the third server receives the test message, whether a data channel between the first server and the third server is abnormal.

Description

数据通路的测试方法、测试服务器及测试系统Data path test method, test server and test system
相关申请的交叉参考Cross-reference to related applications
本申请要求于2016年12月27日提交中国专利局、申请号为201611226721.X、名称为“数据通路的测试方法、测试服务器及测试系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application entitled "Data Path Test Method, Test Server and Test System" submitted by the Chinese Patent Office on December 27, 2016, with the application number 201611226721.X, the entire contents of which are incorporated by reference. Combined in this application.
技术领域Technical field
本公开涉及计算机技术领域,具体而言,本公开涉及一种多方服务器间数据通路的测试方法,一种数据通路的测试服务器及一种数据通路的测试系统。The present disclosure relates to the field of computer technology, and in particular, the present disclosure relates to a method for testing a data path between multiple servers, a test server for a data path, and a test system for a data path.
背景技术Background technique
随着网络应用的迅速发展,人们获取信息的数据业务的需求也越来越多,因此对服务器及时处理大数据业务的能力也要求越来越高。当用户请求的数据业务成百倍或千倍的激增时,需要在服务器端对服务器集群进行线性扩展,数据在服务器集群的多方服务器间进行传输的过程中,往往容易因数据线路发生故障等因素造成数据传输中断。现有技术中,往往通过对多方服务器的每条数据通路进行逐一测试来确定传输故障的数据通路,测试效率极低,严重影响了多方服务器的正常运行;此外,由于多方服务器之间的数据业务往往较复杂,且数据传输量巨大,因此测试数据通路的过程中容易出现误将故障数据通路判断为正常数据通路的情况,从而降低了测试结果的准确率。With the rapid development of network applications, there is an increasing demand for data services for people to obtain information. Therefore, the ability to process large data services in a timely manner is also required. When the data service requested by the user is experiencing a hundredfold or a thousand times increase, the server cluster needs to be linearly expanded on the server side. In the process of data transmission between the server servers, it is often caused by data line failure and other factors. Data transfer is interrupted. In the prior art, the data path of the transmission failure is often determined by testing each data path of the multi-party server one by one, and the test efficiency is extremely low, which seriously affects the normal operation of the multi-party server; in addition, due to the data service between the multi-party servers It is often complicated, and the amount of data transmission is huge. Therefore, in the process of testing the data path, it is easy to misjudge the faulty data path as a normal data path, thereby reducing the accuracy of the test result.
因此,亟需一种多方服务器间数据通路的测试方法,能够高效、快速、准确地判断出数据传输异常的数据通路。Therefore, there is a need for a test method for data paths between multiple servers, which can efficiently, quickly and accurately determine the data path of abnormal data transmission.
发明内容Summary of the invention
为克服上述技术问题或者至少部分地解决上述技术问题,特提出以下技术方案:In order to overcome the above technical problems or at least partially solve the above technical problems, the following technical solutions are proposed:
本公开的实施例提供了一种多方服务器间数据通路的测试方法,包括:Embodiments of the present disclosure provide a method for testing a data path between multiple servers, including:
测试服务器将测试消息发送至第一服务器;其中,第一服务器通过至少一个第二服务器向第三服务器上报测试数据;The test server sends the test message to the first server; wherein the first server reports the test data to the third server through the at least one second server;
根据第三服务器是否接收到测试消息和/或第三服务器接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常。Whether the data path between the first server and the third server is abnormal is determined according to whether the third server receives the test message and/or the time when the third server receives the test message.
本公开的另一实施例提供了一种多方服务器间数据通路的测试服务器,包括:Another embodiment of the present disclosure provides a test server for a multi-party data path between servers, including:
发送模块,用于测试服务器将测试消息发送至第一服务器;其中,第一服务器通过至少一个第二服务器向第三服务器上报测试数据;a sending module, configured to send a test message to the first server by the test server, where the first server reports the test data to the third server by using the at least one second server;
判断模块,用于根据第三服务器是否接收到测试消息和/或第三服务器接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常。The determining module is configured to determine whether the data path between the first server and the third server is abnormal according to whether the third server receives the test message and/or the time when the third server receives the test message.
本公开的又另一实施例提供了一种数据通路的测试系统,包括:Yet another embodiment of the present disclosure provides a test system for a data path, including:
测试服务器,用于将测试消息发送至第一服务器,并将与测试消息对应的测试通知消息发送至第三服务器;a test server, configured to send the test message to the first server, and send a test notification message corresponding to the test message to the third server;
第一服务器,用于将获取到的测试消息发送至相匹配的第二服务器;a first server, configured to send the obtained test message to the matching second server;
第二服务器,用于基于预定数据通路将来自与其相匹配的第一服务器的测试消息发送至第三服务器;a second server, configured to send a test message from the first server that matches the third server to the third server based on the predetermined data path;
第三服务器,用于接收测试服务器发送的与测试消息对应的测试通知消息;a third server, configured to receive a test notification message corresponding to the test message sent by the test server;
根据接收到的测试通知消息,以及是否接收到测试消息和/或接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常。Based on the received test notification message, and whether the test message is received and/or the test message is received, it is determined whether the data path between the first server and the third server is abnormal.
本公开的又一实施例提供了一种计算机程序,包括:Yet another embodiment of the present disclosure provides a computer program comprising:
计算机可读代码,当计算机可读代码在计算设备上运行时,导致计算设备执行上述多方服务器间数据通路的测试方法。Computer readable code, when the computer readable code is run on a computing device, causes the computing device to perform the test method of the inter-server data path described above.
本公开的又一实施例提供了一种计算机可读介质,包括:Yet another embodiment of the present disclosure provides a computer readable medium, comprising:
存储了上述执行上述多方服务器间数据通路的测试方法。本公开的实施例中,提供了一种多方服务器间数据通路的测试方案,测试服务器将测试消息发送至第一服务器,其中,第一服务器通过至少一个第二服务器向第三服务器上报测试数据,实现了根据各服务器之间的匹配关系确定相应的数据通路,并通过该数据通路进行传输数据的测试,避免了对不必要的数据通路进 行传输数据测试,提高了多方服务器间对数据通路进行传输数据测试的测试效率,同时,将与测试消息对应的测试通知消息发送至第三服务器,为后续判断数据通路是否正常传输数据提供了必要的前提保障;根据第三服务器是否接收到测试消息和/或第三服务器接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常,实现了在多方服务器间快速准确地确定各路数据通路是否正常传输数据,使得多方服务器在运行过程中发生数据通路中断或数据传输异常情况时,能够为多方服务器的运行维护人员提供重要的参考依据,同时,无需暂停正常的业务数据传输即可实现对数据通路的测试,保证了为用户提供正常的数据业务服务。A test method for performing the above-described data path between the multi-party servers is stored. In an embodiment of the present disclosure, a test solution for a data path between multiple servers is provided. The test server sends a test message to the first server, where the first server reports the test data to the third server through the at least one second server. The corresponding data path is determined according to the matching relationship between the servers, and the data transmission is tested through the data path, thereby avoiding the test of the transmission data of the unnecessary data path, and improving the transmission of the data path between the multiple servers. The test efficiency of the data test, at the same time, the test notification message corresponding to the test message is sent to the third server, which provides the necessary precondition for the subsequent determination of whether the data path normally transmits data; according to whether the third server receives the test message and/or Or the time when the third server receives the test message, determining whether the data path between the first server and the third server is abnormal, and realizing whether the data path of each channel is normally transmitted between the multi-party servers, so that the multi-party server is in the working process When the data path is interrupted or the data transmission is abnormal, it can provide an important reference for the operation and maintenance personnel of the multi-party server. At the same time, the data path can be tested without suspending the normal service data transmission, ensuring normal operation for the user. Data business services.
本公开附加的方面和优点将在下面的描述中部分给出,这些将从下面的描述中变得明显,或通过本公开的实践了解到。The aspects and advantages of the present invention will be set forth in part in the description which follows.
附图概述BRIEF abstract
本公开上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present disclosure will become apparent and readily understood from
图1为本公开中多方服务器之间的连接关系示意图;1 is a schematic diagram of a connection relationship between multiple servers in the present disclosure;
图2为本公开中一个实施例的多方服务器间数据通路的测试方法的流程图;2 is a flowchart of a method for testing a data path between multiple servers according to an embodiment of the present disclosure;
图3为本公开中另一实施例的数据通路的测试服务器的结构示意图;3 is a schematic structural diagram of a test server of a data path according to another embodiment of the present disclosure;
图4为本公开中另一优选实施例的数据通路的测试系统的结构示意图;4 is a schematic structural diagram of a test system for a data path according to another preferred embodiment of the present disclosure;
图5示意性地示出了用于执行根据本公开实施例的多方服务器间数据通路的测试方法的计算设备的框图;以及FIG. 5 schematically illustrates a block diagram of a computing device for performing a test method for a multi-party inter-server data path in accordance with an embodiment of the present disclosure;
图6示意性地示出了用于保持或者携带实现根据本公开实施例的多方服务器间数据通路的测试方法的程序代码的存储单元。FIG. 6 schematically illustrates a storage unit for maintaining or carrying program code that implements a test method for a multi-party server data path in accordance with an embodiment of the present disclosure.
本发明的较佳实施方式Preferred embodiment of the invention
下面详细描述本公开的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的 元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本公开,而不能解释为对本公开的限制。The embodiments of the present disclosure are described in detail below, and the examples of the embodiments are illustrated in the drawings, wherein the same or similar reference numerals are used to refer to the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are intended to be illustrative only, and are not to be construed as limiting.
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本公开的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件,被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。The singular forms "a", "an", "the" It is to be understood that the phrase "comprise" or "comprises" or "an" Integers, steps, operations, components, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element. Further, "connected" or "coupled" as used herein may include either a wireless connection or a wireless coupling. The phrase "and/or" used herein includes all or any one and all combinations of one or more of the associated listed.
本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本公开所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。Those skilled in the art will appreciate that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs, unless otherwise defined. It should also be understood that terms such as those defined in a general dictionary should be understood to have meaning consistent with the meaning in the context of the prior art, and will not be idealized or excessive unless specifically defined as here. The formal meaning is explained.
需要说明的是,本公开的实施例中,在多方服务器间数据通路的测试环境中,包括多个第一服务器和多个第二服务器,第一服务器和第二服务器的数量,在此不做限定。It should be noted that, in the embodiment of the present disclosure, in the test environment of the data path between the multi-party servers, the number of the first server and the plurality of second servers, the first server and the second server are not performed here. limited.
图1为本公开中多方服务器之间的连接关系示意图。FIG. 1 is a schematic diagram of a connection relationship between multiple servers in the present disclosure.
在多方服务器间数据通路的测试环境中,包括测试服务器,第一服务器ServerA01、ServerA02和ServerA03,第二服务器ServerB01、ServerB02和ServerB03,以及第三服务器ServerC;需要说明的是,在实际的业务系统中,第一服务器为打点服务器,第二服务器为节点服务器,第三服务器为数据中心服务器,多个打点服务器对应于一个节点服务器,该多个打点服务器的业务数据均传输至对应的节点服务器,多个节点服务器将来自各个打点服务器的业务数据再传输至数据中心服务器;如图1所示,第一服务器ServerA01、ServerA02和ServerA03对应的第二服务器为ServerB01,ServerA01、ServerA02和ServerA03可主动地将其各自接收到的测试消息传输至 ServerB01,并将与测试消息对应的测试通知消息发送至第三服务器ServerC;第二服务器ServerB01、ServerB02和ServerB03对应的第三服务器为ServerC,ServerB01、ServerB02和ServerB03将来自其各自对应的第一服务器的测试消息传输至ServerC;ServerB01与ServerC之间存在两条数据传输通路,一条为ServerB01与ServerC之间最短直线距离的传输通路,另一条为ServerB01通过ServerB02和ServerB03与ServerC相连的数据传输通路。In the test environment of the data path between the multi-servers, the test server, the first server ServerA01, ServerA02 and ServerA03, the second server ServerB01, ServerB02 and ServerB03, and the third server ServerC; it should be noted that in the actual business system The first server is a management server, the second server is a node server, the third server is a data center server, and the plurality of management servers correspond to one node server, and the service data of the plurality of management servers are transmitted to the corresponding node server, and more The node server retransmits the service data from each management server to the data center server; as shown in FIG. 1 , the second server corresponding to the first server ServerA01, ServerA02, and ServerA03 is ServerB01, and ServerA01, ServerA02, and ServerA03 can actively take it. The test messages received by the respective ones are transmitted to the server B01, and the test notification messages corresponding to the test messages are sent to the third server ServerC; the third servers corresponding to the second servers ServerB01, ServerB02 and ServerB03 are ServerC, ServerB01, Serve rB02 and ServerB03 transmit test messages from their respective first servers to ServerC; there are two data transmission paths between ServerB01 and ServerC, one is the shortest straight-distance transmission path between ServerB01 and ServerC, and the other is ServerB01. The data transmission path connecting ServerB02 and ServerB03 to ServerC.
本公开的实施例中,多方服务器间数据通路的测试环境以图1为例进行详述,符合此连接关系的其他多方服务器间的连接方式还包括多种,在此不做限定。In the embodiment of the present disclosure, the test environment of the data path between the multi-party servers is described in detail with reference to FIG. 1 , and the connection manners of other multi-party servers that conform to the connection relationship include a plurality of types, which are not limited herein.
图2为本公开中一个实施例的多方服务器间数据通路的测试方法的流程图。2 is a flow chart of a method for testing a data path between multiple servers according to an embodiment of the present disclosure.
本公开的实施例中,各步骤所执行的内容概述如下:步骤S210:测试服务器将测试消息发送至第一服务器;其中,第一服务器通过至少一个第二服务器向第三服务器上报测试数据;步骤S220:根据第三服务器是否接收到测试消息和/或第三服务器接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常。In the embodiment of the present disclosure, the content of each step is summarized as follows: Step S210: The test server sends a test message to the first server; wherein the first server reports the test data to the third server by using the at least one second server; S220: Determine whether the data path between the first server and the third server is abnormal according to whether the third server receives the test message and/or the time when the third server receives the test message.
本公开的实施例中,提供了一种多方服务器间数据通路的测试方法,测试服务器将测试消息发送至第一服务器,其中,第一服务器通过至少一个第二服务器向第三服务器上报测试数据,实现了根据各服务器之间的匹配关系确定相应的数据通路,并通过该数据通路进行传输数据的测试,避免了对不必要的数据通路进行传输数据测试,提高了多方服务器间对数据通路进行传输数据测试的测试效率,同时,将与测试消息对应的测试通知消息发送至第三服务器,为后续判断数据通路是否正常传输数据提供了必要的前提保障;根据第三服务器是否接收到测试消息和/或第三服务器接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常,实现了在多方服务器间快速准确地确定各路数据通路是否正常传输数据,使得多方服务器在运行过程中发生数据通路中断或数据传输异常情况时,能够为多方服务器的运行维护人员提供重要的参考依据,同时,无需暂停正常的业务数据传输 即可实现对数据通路的测试,保证了为用户提供正常的数据业务服务。以下针对各个步骤的具体实现做进一步的说明:In the embodiment of the present disclosure, a test method for a data path between multiple servers is provided. The test server sends a test message to the first server, where the first server reports the test data to the third server through the at least one second server. The corresponding data path is determined according to the matching relationship between the servers, and the data transmission is tested through the data path, thereby avoiding the test of the transmission data of the unnecessary data path, and improving the transmission of the data path between the multiple servers. The test efficiency of the data test, at the same time, the test notification message corresponding to the test message is sent to the third server, which provides the necessary precondition for the subsequent determination of whether the data path normally transmits data; according to whether the third server receives the test message and/or Or the time when the third server receives the test message, determining whether the data path between the first server and the third server is abnormal, and realizing whether the data path of each channel is normally transmitted between the multi-party servers, so that the multi-party server is in the During operation When the data path is interrupted or the data transmission is abnormal, it can provide an important reference for the operation and maintenance personnel of the multi-party server. At the same time, the data path can be tested without suspending the normal service data transmission, ensuring normal operation for the user. Data business services. The following is a further description of the specific implementation of each step:
步骤S210:测试服务器将测试消息发送至第一服务器;其中,第一服务器通过至少一个第二服务器向第三服务器上报测试数据。Step S210: The test server sends the test message to the first server; wherein the first server reports the test data to the third server through the at least one second server.
例如,在多方服务器间数据通路的测试环境中,通过测试服务器,将测试消息,如TestMsg01,发送至第一服务器,如ServerA01,ServerA01将获取到的测试消息TestMsg01发送至相匹配的第二服务器,如ServerB01,并通过ServerB01基于预定数据通路,如ServerB01通过ServerB02和ServerB03与ServerC相连的数据传输通路,将TestMsg01发送至ServerC。For example, in the test environment of the data path between the multi-servers, the test server, such as TestMsg01, is sent to the first server, such as ServerA01, and the server A01 sends the obtained test message TestMsg01 to the matching second server. For example, ServerB01 sends TestMsg01 to ServerC through ServerB01 based on a predetermined data path, such as ServerB01's data transmission path connecting ServerB02 and ServerB03 to ServerC.
步骤S220:根据第三服务器是否接收到测试消息和/或第三服务器接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常。Step S220: Determine whether the data path between the first server and the third server is abnormal according to whether the third server receives the test message and/or the time when the third server receives the test message.
例如,在多方服务器间数据通路的测试环境中,若测试服务器监测第三服务器ServerC接收到测试消息TestMsg01,测试服务器可判断第一服务器ServerA01与第三服务器ServerB03之间的数据通路正常传输数据;若测试服务器监测第三服务器ServerC未接收到测试消息TestMsg01,测试服务器可判断第一服务器ServerA01与第三服务器ServerB03之间的数据通路不能正常传输数据。For example, in the test environment of the data path between the multi-servers, if the test server monitors the third server ServerC to receive the test message TestMsg01, the test server can determine that the data path between the first server ServerA01 and the third server ServerB03 normally transmits data; The test server monitors that the third server ServerC does not receive the test message TestMsg01, and the test server can determine that the data path between the first server ServerA01 and the third server ServerB03 cannot normally transmit data.
优选地,步骤S220中判断第一服务器与第三服务器之间的数据通路是否异常的步骤进一步包括步骤S221;步骤S221:测试服务器将对应于测试消息的测试通知消息发送至第三服务器,以使得第三服务器根据接收到的测试通知消息,以及是否接收到测试消息和/或接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常。Preferably, the step of determining whether the data path between the first server and the third server is abnormal in step S220 further comprises step S221; step S221: the test server sends a test notification message corresponding to the test message to the third server, so that The third server determines whether the data path between the first server and the third server is abnormal according to the received test notification message and whether the test message is received and/or the test message is received.
其中,测试通知消息包括以下一项或多项:测试消息内容;测试消息的发送时间,例如:2016-12-1202:10:00;测试消息的发送对象,例如,第一服务器ServerA01;测试消息的标识信息,例如,TestMsg01。The test notification message includes one or more of the following: test message content; test message sending time, for example: 2016-12-1202:10:00; test message sending object, for example, first server ServerA01; test message Identification information, for example, TestMsg01.
例如,在多方服务器间数据通路的测试环境中,通过测试服务器将对应于测试消息TestMsg01的测试通知消息发送至第三服务器ServerC,随后,第三服务器ServerC根据接收到的测试通知消息,以及ServerC接收到测试消息TestMsg01的反馈信息,ServerC可判断第一服务器ServerA01与第三 服务器ServerB03之间的数据通路可正常传输数据。For example, in the test environment of the data path between the multi-party servers, the test notification message corresponding to the test message TestMsg01 is sent to the third server ServerC through the test server, and then the third server ServerC receives the test notification message according to the received, and the ServerC receives To the feedback information of the test message TestMsg01, the ServerC can determine that the data path between the first server ServerA01 and the third server ServerB03 can normally transmit data.
优选地,第三服务器根据接收到的测试通知消息,以及是否接收到测试消息和/或接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常的方式,包括:Preferably, the third server determines, according to the received test notification message, whether the test message is received and/or the time when the test message is received, whether the data path between the first server and the third server is abnormal, including:
1)若第三服务器接收到测试消息、且接收到测试消息的时间在预定监测时长内,则确定预定数据通路可以正常传输数据;例如,若测试服务器发送测试消息TestMsg01的时间为2016-12-1202:10:00,监测到接收到第三服务器ServerC返回的“已接收到与测试消息TestMsg01!”的信息,接收到TestMsg01的时间为2016-12-1202:15:00,预定监测时长为15分钟,则接收到TestMsg01的时间在预定监测时长内,则确定预定数据通路可以正常传输数据。或1) If the third server receives the test message and the time of receiving the test message is within the predetermined monitoring duration, it is determined that the predetermined data path can normally transmit the data; for example, if the test server sends the test message TestMsg01 for 2016-12- 1202:10:00, it is monitored that the message "Received and test message TestMsg01!" returned by the third server ServerC is received, and the time of receiving TestMsg01 is 2016-12-1202:15:00, and the scheduled monitoring duration is 15 Minutes, when the time of receiving TestMsg01 is within the predetermined monitoring time, it is determined that the predetermined data path can normally transmit data. or
2)若第三服务器未在预定监测时长内接收到测试消息,则确定预定数据通路不可以正常传输数据;例如,若测试服务器发送测试消息TestMsg01的时间为2016-12-1202:10:00,预定监测时长为15分钟,若至2016-12-1202:25:00时一直未监测到接收到第三服务器ServerC返回的“已接收到与测试消息TestMsg01!”的信息,则确定预定数据通路不可以正常传输数据。或2) If the third server does not receive the test message within the predetermined monitoring time period, it is determined that the predetermined data path cannot transmit the data normally; for example, if the test server sends the test message TestMsg01 for 2016-12-1202:10:00, The scheduled monitoring duration is 15 minutes. If the information of "received and tested message TestMsg01!" returned by the third server ServerC is not detected until 2016-12-1202:25:00, it is determined that the predetermined data path is not Data can be transferred normally. or
3)若第三服务器接收到测试消息、且接收到测试消息的时间超过预定监测时长,则忽略测试消息,确定预定数据通路不可以正常传输数据。例如,若测试服务器发送测试消息TestMsg01的时间为2016-12-1202:10:00,监测到接收到第三服务器ServerC返回的“已接收到与测试消息TestMsg01!”的信息,接收到TestMsg01的时间为2016-12-1202:35:00,预定监测时长为15分钟,则接收到TestMsg01的时间超过预定监测时长,则确定预定数据通路不可以正常传输数据。3) If the third server receives the test message and receives the test message for more than the predetermined monitoring duration, the test message is ignored, and it is determined that the predetermined data path cannot normally transmit the data. For example, if the time for the test server to send the test message TestMsg01 is 2016-12-1202:10:00, it is monitored that the message "Received with the test message TestMsg01!" returned by the third server ServerC is received, and the time of receiving the TestMsg01 is received. For 2016-12-1202:35:00, the scheduled monitoring duration is 15 minutes, and if the time of receiving TestMsg01 exceeds the predetermined monitoring duration, it is determined that the predetermined data path cannot normally transmit data.
通过本实施例,避免了将数据通路存在异常的数据通路判断为可正常传输数据,同时,极大地节约了测试时间,同时提高了测试的效率。Through the embodiment, it is avoided that the data path with abnormal data path is determined to be normal data transmission, and at the same time, the test time is greatly saved, and the test efficiency is improved.
优选地,步骤S220中判断第一服务器与第三服务器之间的数据通路是否异常进一步包括步骤S222和步骤S223;步骤S222:测试服务器将对应于测试消息的测试通知消息发送至第三服务器,并监测第三服务器是否返回其 已接收到与测试通知消息相匹配的测试消息的反馈信息;步骤S223:依据监测结果,判断预定数据通路是否正常传输数据。Preferably, determining whether the data path between the first server and the third server is abnormal in step S220 further comprises step S222 and step S223; step S222: the test server sends a test notification message corresponding to the test message to the third server, and Monitoring whether the third server returns feedback information that it has received the test message matching the test notification message; step S223: judging whether the predetermined data path normally transmits data according to the monitoring result.
例如,在多方服务器间数据通路的测试环境中,通过测试服务器将对应于测试消息TestMsg01的测试通知消息发送至第三服务器ServerC,并监测ServerC是否返回其已接收到与测试通知消息相匹配的测试消息TestMsg01的反馈信息,如ServerC返回的“已接收到与测试通知消息相匹配的测试消息TestMsg01!”的反馈信息,若测试服务器监测到第三服务器ServerC返回的“已接收到与测试通知消息相匹配的测试消息TestMsg01!”的反馈信息,可判断确定预定数据通路可以正常传输数据。For example, in a test environment of a data path between multiple servers, a test notification message corresponding to the test message TestMsg01 is sent to the third server ServerC through the test server, and it is monitored whether the ServerC returns a test that it has received a match with the test notification message. The feedback information of the message TestMsg01, such as the feedback message that the server C has received the test message TestMsg01! that matches the test notification message, if the test server detects that the third server ServerC has returned "has received the test notification message" The feedback information of the matched test message TestMsg01!" can be determined to determine that the predetermined data path can normally transmit data.
优选地,该测试方法还包括步骤S230;步骤S230:预存服务器列表,其中,服务器列表包括:Preferably, the testing method further includes step S230; step S230: pre-storing the server list, wherein the server list comprises:
1)多个第一服务器与其各自对应的第二服务器的对应关系;例如,参照图1,建立第一服务器ServerA01、ServerA02和ServerA03与第二服务器ServerB01之间数据传输的对应关系,则第一服务器ServerA01、ServerA02和ServerA03可直接将数据发送至相匹配的第二服务器ServerB01。1) a correspondence between a plurality of first servers and their respective second servers; for example, referring to FIG. 1, establishing a correspondence between data transmission between the first server ServerA01, ServerA02, and ServerA03 and the second server ServerB01, the first server ServerA01, ServerA02, and ServerA03 can directly send data to the matching second server ServerB01.
2)多个第二服务器与一个第三服务器的对应关系;例如,参照图1,建立第二服务器ServerB01和ServerB03和第三服务器ServerC之间数据传输的对应关系,则第二服务器ServerB01和ServerB03可直接将数据发送至第三服务器ServerC,由于第二服务器ServerB02不可直接将数据发送至第三服务器ServerC,仅能将数据发送至第二服务器ServerB01或ServerB03,则建立ServerB02与ServerB01之间数据传输的对应关系以及ServerB02与ServerB03之间数据传输的对应关系。2) a correspondence between a plurality of second servers and a third server; for example, referring to FIG. 1, establishing a correspondence between data transmission between the second server ServerB01 and ServerB03 and the third server ServerC, the second servers ServerB01 and ServerB03 may Sending the data directly to the third server ServerC. Since the second server ServerB02 cannot directly send the data to the third server ServerC, and can only send the data to the second server ServerB01 or ServerB03, the correspondence between the data transmission between ServerB02 and ServerB01 is established. Relationship and the correspondence between data transmission between ServerB02 and ServerB03.
3)各个服务器的服务器相关信息。3) Server related information of each server.
其中,服务器相关信息包括服务器网络地址、服务器的标识信息和服务器业务类型中的至少一项。具体地,服务器网络地址,如服务器的IP地址;服务器的标识信息,如服务器设备的唯一标识信息;服务器业务类型,如各个服务器具体负责的业务类型,包括存储数据、数据传输和数据测试等。The server related information includes at least one of a server network address, a server identification information, and a server service type. Specifically, the server network address, such as the server's IP address; the server's identification information, such as the server device's unique identification information; the server service type, such as the specific service type of each server, including storage data, data transmission, and data testing.
例如,如图1所示,在多方服务器间数据通路的测试环境中,预存服务器列表,如ServerList,ServerList中包括第一服务器ServerA01、ServerA02 和ServerA03,第二服务器ServerB01、ServerB02和ServerB03,第三服务器ServerC及测试服务器各自的IP地址、各自的服务器标识信息、各自的业务类型,以及第一服务器ServerA01、ServerA02和ServerA03与第二服务器ServerB01的数据传输对应关系和第二服务器ServerB01、ServerB03和第三服务器ServerC的数据传输对应关系等信息;随后,根据ServerList可确定各第二服务器与第三服务器ServerC之间的数据通路,可预定ServerB01与ServerC之间的数据通路为ServerB01与ServerC最短直线距离对应的数据通路,当通过测试服务器,将测试消息TestMsg01发送至第一服务器ServerA01,并将与TestMsg01对应的测试通知消息发送至第三服务器ServerC后,根据ServerList可确定与ServerA01相匹配的第二服务器为ServerB01,随后ServerA01将获取到的TestMsg01发送至ServerB01;根据ServerList可确定ServerB01与第三服务器ServerC存在数据传输对应关系,随后通过ServerB01基于预定数据通路将TestMsg01直接发送至ServerC。For example, as shown in FIG. 1, in a test environment of a data path between multiple servers, a pre-stored server list, such as a ServerList, includes a first server ServerA01, ServerA02, and ServerA03, and a second server ServerB01, ServerB02, and ServerB03, and a third server. The respective IP addresses of the ServerC and the test server, the respective server identification information, the respective service types, and the data transmission correspondence between the first server ServerA01, ServerA02, and ServerA03 and the second server ServerB01, and the second servers ServerB01, ServerB03, and the third server ServerC data transmission correspondence and other information; subsequently, according to the ServerList, the data path between each second server and the third server ServerC can be determined, and the data path between ServerB01 and ServerC can be scheduled to be the data corresponding to the shortest straight line distance between ServerB01 and ServerC. The path, when passing the test server, sends the test message TestMsg01 to the first server ServerA01, and sends a test notification message corresponding to TestMsg01 to the third server ServerC, and can determine that it matches the ServerA01 according to the ServerList. ServerB01 second server, and then the acquired TestMsg01 ServerA01 transmitted to ServerB01; ServerList correspondence relationship may be determined that there is data transmission ServerB01 ServerC according to the third server, and then sent directly to the TestMsg01 ServerC data based on a predetermined path through the ServerB01.
优选地,该测试方法还包括步骤S240;步骤S240:基于服务器列表,确定需向第三服务器发送的测试通知消息。Preferably, the testing method further includes step S240; step S240: determining, based on the server list, a test notification message to be sent to the third server.
例如,在多方服务器间数据通路的测试环境中,测试服务器向第一服务器ServerA01发送测试消息TestMsg01,随后,基于服务器列表ServerList,确定第一服务器ServerA01的服务器标识信息及其IP地址等服务器相关信息,并确定与ServerA01对应的第二服务器的标识信息为ServerB01等,可确定需向第三服务器ServerC发送的测试通知消息,该测试通知消息中包括已确定的接收测试消息TestMsg01的第一服务器的标识信息ServerA01、ServerA01对应的第二服务器的标识信息ServerB01、测试消息的标识信息TestMsg01和测试消息TestMsg01的消息内容等。For example, in a test environment of a data path between multiple servers, the test server sends a test message TestMsg01 to the first server ServerA01, and then determines server related information such as server identification information and IP address of the first server ServerA01 based on the server list ServerList. And determining that the identifier information of the second server corresponding to the server A01 is ServerB01 or the like, and determining a test notification message to be sent to the third server ServerC, where the test notification message includes the identifier information of the first server that receives the received test message TestMsg01. ServerA01, ServerA01 corresponding second server identification information ServerB01, test message identification information TestMsg01 and test message TestMsg01 message content.
图3为本公开中另一实施例的数据通路的测试服务器的结构示意图。FIG. 3 is a schematic structural diagram of a test server of a data path according to another embodiment of the present disclosure.
本公开的实施例中,各模块所执行的内容概述如下:发送模块310,用于测试服务器将测试消息发送至第一服务器;其中,第一服务器通过至少一个第二服务器向第三服务器上报测试数据;判断模块320,根据第三服务器是否接收到测试消息和/或第三服务器接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常。In the embodiment of the present disclosure, the content executed by each module is summarized as follows: the sending module 310 is configured to send a test message to the first server by the test server, where the first server reports the test to the third server by using the at least one second server. The data determining unit 320 determines whether the data path between the first server and the third server is abnormal according to whether the third server receives the test message and/or the time when the third server receives the test message.
本公开的实施例中,提供了一种多方服务器间数据通路的测试服务器,测试服务器将测试消息发送至第一服务器;其中,第一服务器通过至少一个第二服务器向第三服务器上报测试数据,实现了根据各服务器之间的匹配关系确定相应的数据通路,并通过该数据通路进行传输数据的测试,避免了对不必要的数据通路进行传输数据测试,提高了多方服务器间对数据通路进行传输数据测试的测试效率,同时,将与测试消息对应的测试通知消息发送至第三服务器,为后续判断数据通路是否正常传输数据提供了必要的前提保障;根据第三服务器是否接收到测试消息和/或第三服务器接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常,实现了在多方服务器间快速准确地确定各路数据通路是否正常传输数据,使得多方服务器在运行过程中发生数据通路中断或数据传输异常情况时,能够为多方服务器的运行维护人员提供重要的参考依据,同时,无需暂停正常的业务数据传输即可实现对数据通路的测试,保证了为用户提供正常的数据业务服务。In an embodiment of the present disclosure, a test server for a data path between multiple servers is provided. The test server sends a test message to the first server. The first server reports the test data to the third server through the at least one second server. The corresponding data path is determined according to the matching relationship between the servers, and the data transmission is tested through the data path, thereby avoiding the test of the transmission data of the unnecessary data path, and improving the transmission of the data path between the multiple servers. The test efficiency of the data test, at the same time, the test notification message corresponding to the test message is sent to the third server, which provides the necessary precondition for the subsequent determination of whether the data path normally transmits data; according to whether the third server receives the test message and/or Or the time when the third server receives the test message, determining whether the data path between the first server and the third server is abnormal, and realizing whether the data path of each channel is normally transmitted between the multi-party servers, so that the multi-party server is in the working process When the data path is interrupted or the data transmission is abnormal, it can provide an important reference for the operation and maintenance personnel of the multi-party server. At the same time, the data path can be tested without suspending the normal service data transmission, ensuring normal operation for the user. Data business services.
发送模块310,用于测试服务器将测试消息发送至第一服务器;其中,第一服务器通过至少一个第二服务器向第三服务器上报测试数据。The sending module 310 is configured to send a test message to the first server by the test server, where the first server reports the test data to the third server by using the at least one second server.
判断模块320,用于根据第三服务器是否接收到测试消息和/或第三服务器接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常。The determining module 320 is configured to determine whether the data path between the first server and the third server is abnormal according to whether the third server receives the test message and/or the time when the third server receives the test message.
优选地,判断模块320包括发送单元;发送单元测试服务器将对应于测试消息的测试通知消息发送至第三服务器,以使得第三服务器根据接收到的测试通知消息,以及是否接收到测试消息和/或接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常。Preferably, the determining module 320 includes a sending unit; the sending unit test server sends a test notification message corresponding to the test message to the third server, so that the third server receives the test message according to the received test notification message and/or Or when the test message is received, it is determined whether the data path between the first server and the third server is abnormal.
其中,测试通知消息包括以下一项或多项:测试消息内容、测试消息的发送时间、测试消息的发送对象、测试消息的标识信息。The test notification message includes one or more of the following: a test message content, a test message sending time, a test message sending object, and a test message identifier information.
优选地,判断模块320包括发送及监测单元和判断单元;发送及监测单元测试服务器将对应于测试消息的测试通知消息发送至第三服务器,并监测第三服务器是否返回其已接收到与测试通知消息相匹配的测试消息的反馈信息;判断单元依据监测结果,判断预定数据通路是否正常传输数据。Preferably, the determining module 320 comprises a sending and monitoring unit and a determining unit; the sending and monitoring unit testing server sends a test notification message corresponding to the test message to the third server, and monitors whether the third server returns the received and tested notification The feedback information of the test message matching the message; the judging unit judges whether the predetermined data path normally transmits the data according to the monitoring result.
优选地,该测试服务器还包括预存模块;预存模块预存服务器列表,其 中,服务器列表包括多个第一服务器与其各自对应的第二服务器的对应关系、多个第二服务器与一个第三服务器的对应关系、以及各个服务器的服务器相关信息。Preferably, the test server further includes a pre-stored module; the pre-stored module pre-stores the server list, wherein the server list includes a correspondence between the plurality of first servers and their respective second servers, and a correspondence between the plurality of second servers and a third server Relationships, and server-related information for each server.
其中,服务器相关信息包括服务器网络地址、服务器的标识信息和服务器业务类型中的至少一项。The server related information includes at least one of a server network address, a server identification information, and a server service type.
优选地,该测试服务器还包括确定模块;确定模块基于服务器列表,确定需向第三服务器发送的测试通知消息。Preferably, the test server further comprises a determining module; the determining module determines a test notification message to be sent to the third server based on the server list.
本公开实施例提供的多方服务器间数据通路的测试服务器可以实现上述提供的测试方法实施例,具体功能实现请参见测试方法实施例中的说明,在此不再赘述。The test server of the multi-party data path provided by the embodiment of the present disclosure may implement the foregoing test method embodiment. For the specific function implementation, refer to the description in the test method embodiment, and details are not described herein again.
图4为本公开中另一优选实施例的数据通路的测试系统的结构示意图。4 is a schematic structural diagram of a test system for a data path in another preferred embodiment of the present disclosure.
本公开的实施例中,各系统所执行的内容概述如下:测试服务器410将测试消息发送至第一服务器,并将与测试消息对应的测试通知消息发送至第三服务器;第一服务器420将获取到的测试消息发送至相匹配的第二服务器;第二服务器430基于预定数据通路将来自与其相匹配的第一服务器的测试消息发送至第三服务器;第三服务器440接收测试服务器发送的与测试消息对应的测试通知消息;根据接收到的测试通知消息,以及是否接收到测试消息和/或接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常。In the embodiment of the present disclosure, the content executed by each system is summarized as follows: the test server 410 sends a test message to the first server, and sends a test notification message corresponding to the test message to the third server; the first server 420 will acquire The incoming test message is sent to the matching second server; the second server 430 sends a test message from the first server that matches it to the third server based on the predetermined data path; the third server 440 receives the test server sent and tested The test notification message corresponding to the message; determining whether the data path between the first server and the third server is abnormal according to the received test notification message and whether the test message is received and/or the time when the test message is received.
本公开的实施例中,提出了一种数据通路的测试系统,测试服务器,用于将测试消息发送至第一服务器,并将与测试消息对应的测试通知消息发送至第三服务器;实现了根据各服务器之间的匹配关系确定相应的数据通路,并通过该数据通路进行传输数据的测试,避免了对不必要的数据通路进行传输数据测试,提高了多方服务器间对数据通路进行传输数据测试的测试效率,同时,将与测试消息对应的测试通知消息发送至第三服务器,为后续判断数据通路是否正常传输数据提供了必要的前提保障;第一服务器,用于将获取到的测试消息发送至相匹配的第二服务器,并将对应于测试消息的测试通知消息发送至第三服务器;第二服务器,用于基于预定数据通路将来自与其相匹配的第一服务器的测试消息发送至第三服务器;第三服务器,用于接收测 试服务器发送的与测试消息对应的测试通知消息;根据接收到的测试通知消息,以及是否接收到测试消息和/或接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常;实现了在多方服务器间快速准确地确定各路数据通路是否正常传输数据,使得多方服务器在运行过程中发生数据通路中断或数据传输异常情况时,能够为多方服务器的运行维护人员提供重要的参考依据,同时,无需暂停正常的业务数据传输即可实现对数据通路的测试,保证了为用户提供正常的数据业务服务。以下针对各个系统的具体实现做进一步的说明:In an embodiment of the present disclosure, a test system for a data path is provided, where a test server is configured to send a test message to a first server, and send a test notification message corresponding to the test message to a third server; The matching relationship between the servers determines the corresponding data path, and the data transmission is tested through the data path, thereby avoiding the test of the transmission data of the unnecessary data path, and improving the test of the data transmission between the multi-party servers. Testing efficiency, at the same time, sending a test notification message corresponding to the test message to the third server, providing necessary precondition for the subsequent determination of whether the data path normally transmits data; the first server is configured to send the obtained test message to a matching second server, and sending a test notification message corresponding to the test message to the third server; the second server, configured to send a test message from the first server matching the same to the third server based on the predetermined data path Third server for receiving the test server Sending a test notification message corresponding to the test message; determining whether the data path between the first server and the third server is abnormal according to the received test notification message and whether the test message is received and/or the test message is received It realizes the fast and accurate determination of whether each data path is normally transmitted between the multi-party servers, so that the multi-party server can provide an important reference for the operation and maintenance personnel of the multi-party server when the data path is interrupted or the data transmission is abnormal during the operation. At the same time, the test of the data path can be realized without suspending the normal service data transmission, and the normal data service service is guaranteed for the user. The following is a further description of the specific implementation of each system:
在本实施例中,测试系统包括多个第一服务器、多个第二服务器、一个第三服务器及一个测试服务器;其中,各个第一服务器具有相对应的第二服务器,多个第二服务器对应于该第三服务器。In this embodiment, the test system includes a plurality of first servers, a plurality of second servers, a third server, and a test server; wherein each of the first servers has a corresponding second server, and the plurality of second servers correspond to On the third server.
测试服务器410将测试消息发送至第一服务器,并将与测试消息对应的测试通知消息发送至第三服务器。The test server 410 transmits the test message to the first server and transmits a test notification message corresponding to the test message to the third server.
其中,测试通知消息包括以下一项或多项:测试消息内容、测试消息的发送时间、测试消息的发送对象、测试消息的标识信息。The test notification message includes one or more of the following: a test message content, a test message sending time, a test message sending object, and a test message identifier information.
优选地,测试服务器410预存服务器列表,其中,服务器列表包括多个第一服务器与其各自对应的第二服务器的对应关系、多个第二服务器与一个第三服务器的对应关系、以及各个服务器的服务器相关信息。Preferably, the test server 410 prestores the server list, wherein the server list includes a correspondence between the plurality of first servers and their respective second servers, a correspondence between the plurality of second servers and a third server, and a server of each server. Related Information.
其中,服务器相关信息包括服务器网络地址、服务器的标识信息和服务器业务类型中的至少一项。The server related information includes at least one of a server network address, a server identification information, and a server service type.
优选地,测试服务器410基于服务器列表,确定需向第三服务器发送的测试通知消息。Preferably, the test server 410 determines a test notification message to be sent to the third server based on the server list.
第一服务器420将获取到的测试消息发送至相匹配的第二服务器。The first server 420 sends the obtained test message to the matching second server.
第二服务器430基于预定数据通路将来自与其相匹配的第一服务器的测试消息发送至第三服务器。The second server 430 transmits a test message from the first server that matches it to the third server based on the predetermined data path.
第三服务器440接收测试服务器发送的与测试消息对应的测试通知消息;根据接收到的测试通知消息,以及是否接收到测试消息和/或接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常。The third server 440 receives the test notification message corresponding to the test message sent by the test server; and determines the first server and the third server according to the received test notification message, and whether the test message is received and/or the test message is received. Whether the data path between the two is abnormal.
优选地,预定数据通路包括从第二服务器至第三服务器的最短数据通路距离的数据通路。Preferably, the predetermined data path includes a data path of a shortest data path distance from the second server to the third server.
例如,在多方服务器间数据通路的测试环境中,与第二服务器ServerB01、ServerB02和ServerB03进行数据传输对应的第三服务器为ServerC,从ServerB01至ServerC最短数据通路距离为ServerB01与ServerC之间的直线距离的数据通路,可预定数据通路为ServerB01与ServerC之间的直线距离的数据通路。For example, in the test environment of the data path between the multi-servers, the third server corresponding to the data transmission of the second servers ServerB01, ServerB02, and ServerB03 is ServerC, and the shortest data path distance from ServerB01 to ServerC is the linear distance between ServerB01 and ServerC. The data path can be scheduled to be a data path for the linear distance between ServerB01 and ServerC.
优选地,第二服务器430还用于若监测到未成功通过预定数据通路将测试消息发送至第三服务器,则基于多个第二服务器与第三服务器之间的数据通路关系,重新选定第二服务器与第三服务器之间的可选数据通路,并通过可选数据通路将测试消息发送至第三服务器。Preferably, the second server 430 is further configured to: if it detects that the test message is not successfully sent to the third server through the predetermined data path, reselect the first based on the data path relationship between the second server and the third server. An optional data path between the second server and the third server, and the test message is sent to the third server through the optional data path.
例如,如图1所示,在多方服务器间数据通路的测试环境中,包括测试服务器,第一服务器ServerA01、ServerA02和ServerA03,第二服务器ServerB01、ServerB02和ServerB03,和第三服务器ServerC,与第一服务器ServerA01进行数据传输对应的第二服务器为ServerB01,与第二服务器ServerB01进行数据传输对应的第三服务器为ServerC,预定的数据通路为ServerB01与ServerC之间直线距离的数据通路;通过测试服务器将测试消息TestMsg01发送至第一服务器ServerA01,并将与TestMsg01对应的测试通知消息发送至第三服务器ServerC后,ServerA01将获取到的TestMsg01发送至ServerB01,通过预定的数据通路,ServerB01将获取到的TestMsg01发送至ServerC,在ServerB01将获取到的TestMsg01发送至ServerC的过程中,若ServerB01监测到未成功通过预定数据通路将TestMsg01发送至ServerC,则基于第二服务器ServerB01、ServerB02和ServerB03与第三服务器ServerC之间的数据通路关系,重新选定ServerB01与ServerC之间的可选数据通路为ServerB01通过与ServerB02和ServerB03相连至ServerC之间的数据通路,并通过该数据通路将TestMsg01发送至ServerC。For example, as shown in FIG. 1 , in a test environment of a data path between multiple servers, including a test server, first servers ServerA01, ServerA02, and ServerA03, second servers ServerB01, ServerB02 and ServerB03, and a third server ServerC, and the first The second server corresponding to the data transmission by the server ServerA01 is ServerB01, the third server corresponding to the data transmission of the second server ServerB01 is ServerC, and the predetermined data path is a data path of a straight line distance between ServerB01 and ServerC; the test server will test After the message TestMsg01 is sent to the first server ServerA01, and the test notification message corresponding to TestMsg01 is sent to the third server ServerC, ServerA01 sends the obtained TestMsg01 to ServerB01, and through the predetermined data path, ServerB01 sends the obtained TestMsg01 to ServerC, in the process that ServerB01 sends the obtained TestMsg01 to ServerC, if ServerB01 detects that it has not successfully sent TestMsg01 to ServerC through the predetermined data path, it is based on the second servers ServerB01, ServerB02 and ServerB03 and the third service. ServerC relationship between the data path, re-selected optional data path between ServerB01 and ServerC is connected by ServerB01 ServerB03 ServerB02 and to the data path between ServerC, and sent via the data path to ServerC TestMsg01.
优选地,第三服务器440用于判断第一服务器与第三服务器之间的数据通路是否异常的方式,包括:Preferably, the third server 440 is configured to determine whether the data path between the first server and the third server is abnormal, including:
1)若第三服务器接收到测试消息、且接收到测试消息的时间在预定监测 时长内,则确定预定数据通路可以正常传输数据;或1) if the third server receives the test message and receives the test message within a predetermined monitoring time period, determining that the predetermined data path can transmit the data normally; or
2)若第三服务器未在预定监测时长内接收到测试消息,则确定预定数据通路不可以正常传输数据;或2) if the third server does not receive the test message within the predetermined monitoring time period, it is determined that the predetermined data path cannot transmit the data normally; or
3)若第三服务器接收到测试消息、且接收到测试消息的时间超过预定监测时长,则忽略测试消息,确定预定数据通路不可以正常传输数据。3) If the third server receives the test message and receives the test message for more than the predetermined monitoring duration, the test message is ignored, and it is determined that the predetermined data path cannot normally transmit the data.
本公开的又一实施例提供了一种计算机程序,图5示出了可以实现本公开的多方服务器间数据通路的测试方法的计算设备。该计算设备传统上包括处理器510和以存储设备520形式的计算机程序产品或者计算机可读介质。存储设备520可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储设备520具有存储用于执行上述方法中的任何方法步骤的程序代码531的存储空间530。例如,存储程序代码的存储空间530可以包括分别用于实现上面的方法中的各种步骤的各个程序代码531。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘、紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为例如图6所示的便携式或者固定存储单元。该存储单元可以具有与图5的计算设备中的存储设备520类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括用于执行根据本公开的方法步骤的计算机可读代码531',即可以由诸如510之类的处理器读取的代码,当这些代码由计算设备运行时,导致该计算设备执行上面所描述的方法中的各个步骤。Yet another embodiment of the present disclosure provides a computer program, and FIG. 5 illustrates a computing device that can implement the test method of the inter-server data path of the present disclosure. The computing device conventionally includes a processor 510 and a computer program product or computer readable medium in the form of a storage device 520. Storage device 520 can be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Storage device 520 has a storage space 530 that stores program code 531 for performing any of the method steps described above. For example, storage space 530 storing program code may include various program code 531 for implementing various steps in the above methods, respectively. The program code can be read from or written to one or more computer program products. These computer program products include program code carriers such as a hard disk, a compact disk (CD), a memory card, or a floppy disk. Such a computer program product is typically a portable or fixed storage unit such as that shown in FIG. The storage unit may have storage segments, storage spaces, and the like that are similarly arranged to storage device 520 in the computing device of FIG. The program code can be compressed, for example, in an appropriate form. Typically, the storage unit includes computer readable code 531' for performing the steps of the method in accordance with the present disclosure, ie, code that can be read by a processor, such as 510, which when executed by the computing device causes the computing device Perform the various steps in the method described above.
本公开实施例提供的数据通路的测试系统可以实现上述提供的测试方法实施例,具体功能实现请参见测试方法实施例中的说明,在此不再赘述。The test system of the data path provided by the embodiment of the present disclosure may implement the foregoing test method embodiment. For the specific function implementation, refer to the description in the test method embodiment, and details are not described herein again.
本技术领域技术人员可以理解,本发明包括涉及用于执行本申请中所述操作中的一项或多项的设备。这些设备可以为所需的目的而专门设计和制造,或者也可以包括通用计算机中的已知设备。这些设备具有存储在其内的计算机程序,这些计算机程序选择性地激活或重构。本技术领域技术人员可以理解,可以用计算机程序指令来实现这些结构图和/或框图和/或流图中的每个框以及这些结构图和/或框图和/或流图中的框的组合。本技术领域技术人员 可以理解,可以将这些计算机程序指令提供给通用计算机、专业计算机或其他可编程数据处理方法的处理器来实现,从而通过计算机或其他可编程数据处理方法的处理器来执行本公开公开的结构图和/或框图和/或流图的框或多个框中指定的方案。Those skilled in the art will appreciate that the present invention includes apparatus related to performing one or more of the operations described herein. These devices may be specially designed and manufactured for the required purposes, or may also include known devices in a general purpose computer. These devices have computer programs stored therein that are selectively activated or reconfigured. Those skilled in the art will appreciate that each block of the block diagrams and/or block diagrams and/or flow diagrams and combinations of blocks in the block diagrams and/or block diagrams and/or flow diagrams can be implemented by computer program instructions. . Those skilled in the art will appreciate that these computer program instructions can be implemented by a general purpose computer, a professional computer, or a processor of other programmable data processing methods, such that the processor is executed by a computer or other programmable data processing method. The disclosed block diagrams and/or block diagrams and/or schemes of the flow diagrams or blocks are specified in a plurality of blocks.
本技术领域技术人员可以理解,本公开中已经讨论过的各种操作、方法、流程中的步骤、措施、方案可以被交替、更改、组合或删除。进一步地,具有本公开中已经讨论过的各种操作、方法、流程中的其他步骤、措施、方案也可以被交替、更改、重排、分解、组合或删除。进一步地,现有技术中的具有与本公开中公开的各种操作、方法、流程中的步骤、措施、方案也可以被交替、更改、重排、分解、组合或删除。Those skilled in the art can understand that the various operations, methods, and steps, measures, and solutions in the present disclosure may be alternated, modified, combined, or deleted. Further, other steps, measures, and aspects of the various operations, methods, and processes that have been discussed in this disclosure may be alternated, modified, rearranged, decomposed, combined, or deleted. Further, the steps, measures, and solutions in the prior art having various operations, methods, and processes disclosed in the present disclosure may also be alternated, modified, rearranged, decomposed, combined, or deleted.
以上所述仅是本公开的部分实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本公开原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本公开的保护范围。The above description is only a partial embodiment of the present disclosure, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present disclosure. It should be considered as the scope of protection of this disclosure.

Claims (17)

  1. 一种多方服务器间数据通路的测试方法,其特征在于,包括:A method for testing a data path between multiple servers, comprising:
    测试服务器将测试消息发送至第一服务器;其中,所述第一服务器通过至少一个第二服务器向第三服务器上报测试数据;The test server sends the test message to the first server; wherein the first server reports the test data to the third server through the at least one second server;
    根据所述第三服务器是否接收到所述测试消息和/或所述第三服务器接收到所述测试消息的时间,判断所述第一服务器与所述第三服务器之间的数据通路是否异常。Determining whether the data path between the first server and the third server is abnormal according to whether the third server receives the test message and/or the time when the third server receives the test message.
  2. 根据权利要求1所述的测试方法,其特征在于,所述判断所述第一服务器与所述第三服务器之间的数据通路是否异常,包括:The test method according to claim 1, wherein the determining whether the data path between the first server and the third server is abnormal comprises:
    测试服务器将对应于所述测试消息的测试通知消息发送至第三服务器,以使得所述第三服务器根据接收到的所述测试通知消息,以及是否接收到所述测试消息和/或接收到所述测试消息的时间,判断所述第一服务器与所述第三服务器之间的数据通路是否异常;The test server sends a test notification message corresponding to the test message to the third server, so that the third server according to the received test notification message, and whether the test message is received and/or received Determining whether the data path between the first server and the third server is abnormal;
    其中,所述测试通知消息包括以下一项或多项:测试消息内容、测试消息的发送时间、测试消息的发送对象、测试消息的标识信息。The test notification message includes one or more of the following: a test message content, a test message sending time, a test message sending object, and a test message identifier information.
  3. 根据权利要求2所述的测试方法,其特征在于,所述第三服务器根据接收到的所述测试通知消息,以及是否接收到所述测试消息和/或接收到所述测试消息的时间,判断所述第一服务器与所述第三服务器之间的数据通路是否异常的方式,包括:The testing method according to claim 2, wherein the third server determines according to the received test notification message and whether the test message is received and/or the test message is received. The manner in which the data path between the first server and the third server is abnormal includes:
    若第三服务器接收到所述测试消息、且接收到所述测试消息的时间在预定监测时长内,则确定所述预定数据通路可以正常传输数据;或Determining that the predetermined data path can normally transmit data if the third server receives the test message and the time of receiving the test message is within a predetermined monitoring time period; or
    若第三服务器未在预定监测时长内接收到所述测试消息,则确定所述预定数据通路不可以正常传输数据;或If the third server does not receive the test message within a predetermined monitoring time period, determining that the predetermined data path cannot transmit data normally; or
    若第三服务器接收到所述测试消息、且接收到所述测试消息的时间超过预定监测时长,则忽略所述测试消息,确定所述预定数据通路不可以正常传输数据。If the third server receives the test message and receives the test message for more than a predetermined monitoring duration, the test message is ignored, and it is determined that the predetermined data path cannot normally transmit data.
  4. 根据权利要求1所述的测试方法,其特征在于,所述判断所述第一服务器与所述第三服务器之间的数据通路是否异常,包括:The test method according to claim 1, wherein the determining whether the data path between the first server and the third server is abnormal comprises:
    测试服务器将对应于所述测试消息的测试通知消息发送至第三服务器,并监测所述第三服务器是否返回其已接收到与所述测试通知消息相匹配的测试消息的反馈信息;The test server sends a test notification message corresponding to the test message to the third server, and monitors whether the third server returns feedback information that it has received the test message that matches the test notification message;
    依据监测结果,判断所述预定数据通路是否正常传输数据。Based on the monitoring result, it is determined whether the predetermined data path normally transmits data.
  5. 根据权利要求1所述的测试方法,其特征在于,还包括:The testing method according to claim 1, further comprising:
    预存服务器列表,其中,所述服务器列表包括多个第一服务器与其各自对应的第二服务器的对应关系、多个第二服务器与一个第三服务器的对应关系、以及各个服务器的服务器相关信息;a server list, where the server list includes a correspondence between a plurality of first servers and their respective second servers, a correspondence between a plurality of second servers and a third server, and server related information of each server;
    其中,所述服务器相关信息包括服务器网络地址、服务器的标识信息和服务器业务类型中的至少一项。The server related information includes at least one of a server network address, a server identification information, and a server service type.
  6. 根据权利要求5所述的测试方法,其特征在于,还包括:The testing method according to claim 5, further comprising:
    基于所述服务器列表,确定需向所述第三服务器发送的所述测试通知消息。Based on the server list, the test notification message to be sent to the third server is determined.
  7. 一种多方服务器间数据通路的测试服务器,其特征在于,包括:A test server for a data path between multiple servers, comprising:
    发送模块,用于测试服务器将测试消息发送至第一服务器;其中,所述第一服务器通过至少一个第二服务器向第三服务器上报测试数据;a sending module, configured to send, by the test server, a test message to the first server, where the first server reports the test data to the third server by using the at least one second server;
    判断模块,用于根据所述第三服务器是否接收到所述测试消息和/或所述第三服务器接收到所述测试消息的时间,判断所述第一服务器与所述第三服务器之间的数据通路是否异常。a judging module, configured to determine, according to whether the third server receives the test message and/or the time when the third server receives the test message, determining between the first server and the third server Whether the data path is abnormal.
  8. 根据权利要求7所述的测试服务器,其特征在于,所述判断模块,包括:The test server according to claim 7, wherein the determining module comprises:
    发送单元,用于测试服务器将对应于所述测试消息的测试通知消息发送至第三服务器,以使得所述第三服务器根据接收到的所述测试通知消息,以及是否接收到所述测试消息和/或接收到所述测试消息的时间,判断所述第一服务器与所述第三服务器之间的数据通路是否异常;a sending unit, configured to send, by the test server, a test notification message corresponding to the test message to a third server, so that the third server receives the test notification message according to the received test message, and And/or receiving the test message, determining whether the data path between the first server and the third server is abnormal;
    其中,所述测试通知消息包括以下一项或多项:测试消息内容、测试消息的发送时间、测试消息的发送对象、测试消息的标识信息。The test notification message includes one or more of the following: a test message content, a test message sending time, a test message sending object, and a test message identifier information.
  9. 根据权利要求7所述的测试服务器,其特征在于,所述判断模块,包括:The test server according to claim 7, wherein the determining module comprises:
    发送及监测单元,用于测试服务器将对应于所述测试消息的测试通知 消息发送至第三服务器,并监测所述第三服务器是否返回其已接收到与所述测试通知消息相匹配的测试消息的反馈信息;a sending and monitoring unit, configured to send, by the test server, a test notification message corresponding to the test message to a third server, and monitor whether the third server returns a test message that it has received a match with the test notification message Feedback information;
    判断单元,用于依据监测结果,判断所述预定数据通路是否正常传输数据。The determining unit is configured to determine, according to the monitoring result, whether the predetermined data path normally transmits data.
  10. 根据权利要求7所述的测试服务器,其特征在于,还包括:The test server according to claim 7, further comprising:
    预存模块,用于预存服务器列表,其中,所述服务器列表包括多个第一服务器与其各自对应的第二服务器的对应关系、多个第二服务器与一个第三服务器的对应关系、以及各个服务器的服务器相关信息;a pre-stored module, configured to pre-store a server list, where the server list includes a correspondence between a plurality of first servers and their respective second servers, a correspondence between a plurality of second servers and a third server, and a Server related information;
    其中,所述服务器相关信息包括服务器网络地址、服务器的标识信息和服务器业务类型中的至少一项。The server related information includes at least one of a server network address, a server identification information, and a server service type.
  11. 根据权利要求10所述的测试服务器,其特征在于,还包括:The test server according to claim 10, further comprising:
    确定模块,用于基于所述服务器列表,确定需向所述第三服务器发送的所述测试通知消息。And a determining module, configured to determine, according to the server list, the test notification message to be sent to the third server.
  12. 一种数据通路的测试系统,其特征在于,包括:A data path testing system, comprising:
    测试服务器,用于将测试消息发送至第一服务器,并将与所述测试消息对应的测试通知消息发送至第三服务器;a test server, configured to send a test message to the first server, and send a test notification message corresponding to the test message to the third server;
    第一服务器,用于将获取到的所述测试消息发送至相匹配的第二服务器;a first server, configured to send the obtained test message to a matching second server;
    第二服务器,用于基于预定数据通路将来自与其相匹配的第一服务器的所述测试消息发送至第三服务器;a second server, configured to send the test message from the first server that matches the third server to the third server based on the predetermined data path;
    第三服务器,用于接收所述测试服务器发送的与所述测试消息对应的测试通知消息;a third server, configured to receive a test notification message that is sent by the test server and that is corresponding to the test message;
    根据接收到的所述测试通知消息,以及是否接收到所述测试消息和/或接收到所述测试消息的时间,判断所述第一服务器与所述第三服务器之间的数据通路是否异常。Determining whether the data path between the first server and the third server is abnormal according to the received test notification message and whether the test message is received and/or the test message is received.
  13. 根据权利要求12所述的测试系统,其特征在于,所述预定数据通路包括从所述第二服务器至所述第三服务器的最短数据通路距离的数据通路。The test system of claim 12 wherein said predetermined data path comprises a data path of a shortest data path distance from said second server to said third server.
  14. 根据权利要求12所述的测试系统,其特征在于,所述第二服务 器还用于若监测到未成功通过预定数据通路将所述测试消息发送至所述第三服务器,则基于多个第二服务器与所述第三服务器之间的数据通路关系,重新选定所述第二服务器与所述第三服务器之间的可选数据通路,并通过所述可选数据通路将所述测试消息发送至所述第三服务器。The test system according to claim 12, wherein the second server is further configured to: if the monitoring message is not successfully sent to the third server through a predetermined data path, based on the plurality of second a data path relationship between the server and the third server, reselecting an optional data path between the second server and the third server, and transmitting the test message through the optional data path To the third server.
  15. 根据权利要求12所述的测试系统,其特征在于,所述第三服务器用于判断所述第一服务器与所述第三服务器之间的数据通路是否异常的方式,包括:The test system according to claim 12, wherein the third server is configured to determine whether the data path between the first server and the third server is abnormal, including:
    若第三服务器接收到所述测试消息、且接收到所述测试消息的时间在预定监测时长内,则确定所述预定数据通路可以正常传输数据;或Determining that the predetermined data path can normally transmit data if the third server receives the test message and the time of receiving the test message is within a predetermined monitoring time period; or
    若第三服务器未在预定监测时长内接收到所述测试消息,则确定所述预定数据通路不可以正常传输数据;或If the third server does not receive the test message within a predetermined monitoring time period, determining that the predetermined data path cannot transmit data normally; or
    若第三服务器接收到所述测试消息、且接收到所述测试消息的时间超过预定监测时长,则忽略所述测试消息,确定所述预定数据通路不可以正常传输数据。If the third server receives the test message and receives the test message for more than a predetermined monitoring duration, the test message is ignored, and it is determined that the predetermined data path cannot normally transmit data.
  16. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据权利要求1-6中的任一项所述的多方服务器间数据通路的测试方法。A computer program comprising computer readable code, when the computer readable code is run on a computing device, causing the computing device to perform the inter-server data path according to any one of claims 1-6 Test method.
  17. 一种计算机可读介质,其中存储了如权利要求16所述的计算机程序。A computer readable medium storing the computer program of claim 16.
PCT/CN2017/117228 2016-12-27 2017-12-19 Method of testing data channel, test server, and test system WO2018121353A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611226721.X 2016-12-27
CN201611226721.XA CN106656606A (en) 2016-12-27 2016-12-27 Data path testing method, data path testing server and data path testing system

Publications (1)

Publication Number Publication Date
WO2018121353A1 true WO2018121353A1 (en) 2018-07-05

Family

ID=58831525

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/117228 WO2018121353A1 (en) 2016-12-27 2017-12-19 Method of testing data channel, test server, and test system

Country Status (2)

Country Link
CN (1) CN106656606A (en)
WO (1) WO2018121353A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106656606A (en) * 2016-12-27 2017-05-10 北京奇虎科技有限公司 Data path testing method, data path testing server and data path testing system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050185590A1 (en) * 2004-02-19 2005-08-25 Tekelec Methods and systems for simultaneous, multi-channel link fault sectionalization testing
US20090022052A1 (en) * 2007-07-19 2009-01-22 Takehiro Yoshimaru Counter multi-failure system and common link terminal device used therein
CN101710869A (en) * 2009-12-18 2010-05-19 中兴通讯股份有限公司 Device and method for detecting two-layer virtual private network failures
CN102611610A (en) * 2011-01-24 2012-07-25 中兴通讯股份有限公司 Method and system for centralized management of a plurality of tunnels with same path
CN105515912A (en) * 2015-12-22 2016-04-20 河北远东通信系统工程有限公司 Detecting and processing method for validity of link among multiple nodes
CN106656606A (en) * 2016-12-27 2017-05-10 北京奇虎科技有限公司 Data path testing method, data path testing server and data path testing system
CN106713037A (en) * 2016-12-27 2017-05-24 北京奇虎科技有限公司 Test method, test server and test system of data path

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1992711B (en) * 2005-12-27 2011-05-11 中兴通讯股份有限公司 Method for performing link detection to server by SIP terminal
JP2008148290A (en) * 2006-11-17 2008-06-26 Nec Corp Method and system for verifying connectivity of logical link
CN101442501B (en) * 2007-11-22 2012-02-22 和舰科技(苏州)有限公司 Method for monitoring e-mail passageway
CN101841463B (en) * 2010-03-05 2012-05-16 清华大学 Multipath cocurrent transmission method based on SCTP (Stream Control Transmission Protocol)
US11539611B2 (en) * 2014-05-08 2022-12-27 Microsoft Technology Licensing, Llc Fine-grained network monitoring
CN104684014B (en) * 2015-01-09 2018-03-23 成都奥克特科技有限公司 Mobile communications network transmission testing method
CN105933153A (en) * 2016-04-25 2016-09-07 乐视控股(北京)有限公司 Cluster failure monitoring method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050185590A1 (en) * 2004-02-19 2005-08-25 Tekelec Methods and systems for simultaneous, multi-channel link fault sectionalization testing
US20090022052A1 (en) * 2007-07-19 2009-01-22 Takehiro Yoshimaru Counter multi-failure system and common link terminal device used therein
CN101710869A (en) * 2009-12-18 2010-05-19 中兴通讯股份有限公司 Device and method for detecting two-layer virtual private network failures
CN102611610A (en) * 2011-01-24 2012-07-25 中兴通讯股份有限公司 Method and system for centralized management of a plurality of tunnels with same path
CN105515912A (en) * 2015-12-22 2016-04-20 河北远东通信系统工程有限公司 Detecting and processing method for validity of link among multiple nodes
CN106656606A (en) * 2016-12-27 2017-05-10 北京奇虎科技有限公司 Data path testing method, data path testing server and data path testing system
CN106713037A (en) * 2016-12-27 2017-05-24 北京奇虎科技有限公司 Test method, test server and test system of data path

Also Published As

Publication number Publication date
CN106656606A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN107295080B (en) Data storage method applied to distributed server cluster and server
EP3013086B1 (en) Method, apparatus and electronic device for connection management
US20210036907A1 (en) Methods and apparatuses for pushing a message
CN110995513B (en) Data sending and receiving method in Internet of things system, internet of things equipment and platform
CN108696589B (en) Block chain data transmission method, device, equipment and storage medium
WO2021139052A1 (en) File transmission feedback method, device, apparatus, and storage medium
US10320951B2 (en) Systems and methods for establishing a virtual local area network
WO2020253542A1 (en) Sidelink monitoring method for vehicle communication, and related device
CN112118315A (en) Data processing system, method, device, electronic equipment and storage medium
CN107613023B (en) Equipment connection method and device
CN112835885B (en) Processing method, device and system for distributed form storage
US9705903B2 (en) Call control device, call control method, and call control system
WO2018121353A1 (en) Method of testing data channel, test server, and test system
WO2016086638A1 (en) Link detection method, device, and computer storage medium
JP4566148B2 (en) Network communication monitoring system, network communication monitoring method, central device, relay device, and computer program
CN110995522B (en) Information processing method and device
CN107800754B (en) Data transmission task processing method and device, and data transmission task monitoring method and device
US20140215052A1 (en) System and method for reporting peer-to-peer transfer events
CN113242292A (en) Message transmission method, device, equipment, medium and product
CN111190754A (en) Block chain event notification method and block chain system
CN110611602A (en) Two-layer point-to-point channel state monitoring method and system
CN104579593B (en) Data monitoring system and method
CN110839034B (en) Communication connection control method and related equipment
US11606274B1 (en) Method for operations of virtual machines in monitoring cloud activities, system, and device applying the method
CN113595240B (en) Method, device, equipment and storage medium for detecting electric power data

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17886774

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17886774

Country of ref document: EP

Kind code of ref document: A1