CN106656606A - Data path testing method, data path testing server and data path testing system - Google Patents
Data path testing method, data path testing server and data path testing system Download PDFInfo
- Publication number
- CN106656606A CN106656606A CN201611226721.XA CN201611226721A CN106656606A CN 106656606 A CN106656606 A CN 106656606A CN 201611226721 A CN201611226721 A CN 201611226721A CN 106656606 A CN106656606 A CN 106656606A
- Authority
- CN
- China
- Prior art keywords
- server
- test
- data path
- data
- message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 406
- 230000005540 biological transmission Effects 0.000 claims abstract description 49
- 230000002159 abnormal effect Effects 0.000 claims abstract description 41
- 238000012544 monitoring process Methods 0.000 claims description 31
- 238000010998 test method Methods 0.000 claims description 12
- 238000012423 maintenance Methods 0.000 abstract description 5
- 238000000034 method Methods 0.000 description 18
- 238000010586 diagram Methods 0.000 description 14
- 230000008569 process Effects 0.000 description 7
- 238000004590 computer program Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 238000003672 processing method Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0631—Management 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
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 present invention provides a data path testing method, a testing server and a testing system. The testing method includes: the testing server sends a testing message to a first server; wherein, the first server reports testing data to a third server through at least one second server ; 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. Through the present invention, it is possible to quickly and accurately determine whether each data path is normally transmitting data among multi-party servers, so that when a data path is interrupted or data transmission is abnormal during the operation of a multi-party server, the operation and maintenance personnel of the multi-party server can provide At the same time, the test of the data path can be realized without suspending normal business data transmission, ensuring normal data business services for users.
Description
技术领域technical field
本发明涉及计算机技术领域,具体而言,本发明涉及一种多方服务器间数据通路的测试方法,一种数据通路的测试服务器及一种数据通路的测试系统。The invention relates to the field of computer technology, in particular, the invention relates to a method for testing data paths between multi-party servers, a data path testing server and a data path testing system.
背景技术Background technique
随着网络应用的迅速发展,人们获取信息的数据业务的需求也越来越多,因此对服务器及时处理大数据业务的能力也要求越来越高。当用户请求的数据业务成百倍或千倍的激增时,需要在服务器端对服务器集群进行线性扩展,数据在服务器集群的多方服务器间进行传输的过程中,往往容易因数据线路发生故障等因素造成数据传输中断。现有技术中,往往通过对多方服务器的每条数据通路进行逐一测试来确定传输故障的数据通路,测试效率极低,严重影响了多方服务器的正常运行;此外,由于多方服务器之间的数据业务往往较复杂,且数据传输量巨大,因此测试数据通路的过程中容易出现误将故障数据通路判断为正常数据通路的情况,从而降低了测试结果的准确率。With the rapid development of network applications, people have more and more needs for data services to obtain information, so the server's ability to process big data services in a timely manner is also increasingly required. When the data business requested by users increases by hundreds or thousands of times, it is necessary to linearly expand the server cluster on the server side. During the process of data transmission between multiple servers in the server cluster, it is often easily caused by data line failures and other factors. Data transfer interrupted. In the prior art, each data path of the multi-party server is often tested one by one to determine the data path of the transmission failure. The test efficiency is extremely low, which seriously affects the normal operation of the multi-party server; It is often complicated and the amount of data transmission is huge. Therefore, it is easy to mistakenly judge the faulty data path as a normal data path in the process of testing the data path, thereby reducing the accuracy of the test results.
因此,亟需一种多方服务器间数据通路的测试方法,能够高效,快速,准确地判断出数据传输异常的数据通路。Therefore, there is an urgent need for a method for testing data paths between multi-party servers, which can efficiently, quickly and accurately determine the data path with abnormal data transmission.
发明内容Contents of the invention
为克服上述技术问题或者至少部分地解决上述技术问题,特提出以下技术方案:In order to overcome the above-mentioned technical problems or at least partially solve the above-mentioned technical problems, the following technical solutions are proposed:
本发明的实施例提出了一种多方服务器间数据通路的测试方法,包括:Embodiments of the present invention propose a method for testing data paths between multi-party servers, including:
测试服务器将测试消息发送至第一服务器;其中,第一服务器通过至少一个第二服务器向第三服务器上报测试数据;The test server sends the test message to the first server; wherein, the first server reports test data to the third server through 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.
优选地,判断第一服务器与第三服务器之间的数据通路是否异常,包括:Preferably, judging whether the data path between the first server and the third server is abnormal includes:
测试服务器将对应于测试消息的测试通知消息发送至第三服务器,以使得第三服务器根据接收到的测试通知消息,以及是否接收到测试消息和/或接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常;The test server sends a test notification message corresponding to the test message to the third server, so that the third server judges whether the first server receives the test notification message according to the received test notification message, and whether the test message is received and/or the time when the test message is received. Whether the data path with the third server is abnormal;
其中,测试通知消息包括以下一项或多项:测试消息内容、测试消息的发送时间、测试消息的发送对象、测试消息的标识信息。Wherein, the test notification message includes one or more of the following: test message content, test message sending time, test message sending object, and test message identification information.
优选地,第三服务器根据接收到的测试通知消息,以及是否接收到测试消息和/或接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常的方式,包括:Preferably, the third server judges 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, including:
若第三服务器接收到测试消息、且接收到测试消息的时间在预定监测时长内,则确定预定数据通路可以正常传输数据;或If the third server receives the test message and the time of receiving the test message is within the predetermined monitoring period, it is determined that the predetermined data path can transmit data normally; or
若第三服务器未在预定监测时长内接收到测试消息,则确定预定数据通路不可以正常传输数据;或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 data normally; or
若第三服务器接收到测试消息、且接收到测试消息的时间超过预定监测时长,则忽略测试消息,确定预定数据通路不可以正常传输数据。If the third server receives the test message and the time of receiving the test message exceeds the predetermined monitoring time, the test message is ignored, and it is determined that the predetermined data path cannot transmit data normally.
优选地,判断第一服务器与第三服务器之间的数据通路是否异常,包括:Preferably, judging whether the data path between the first server and the third server is abnormal includes:
测试服务器将对应于测试消息的测试通知消息发送至第三服务器,并监测第三服务器是否返回其已接收到与测试通知消息相匹配的测试消息的反馈信息;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 a test message matching the test notification message;
依据监测结果,判断预定数据通路是否正常传输数据。Based on the monitoring results, it is judged whether the predetermined data path transmits data normally.
可选地,还包括:Optionally, also include:
预存服务器列表,其中,服务器列表包括多个第一服务器与其各自对应的第二服务器的对应关系、多个第二服务器与一个第三服务器的对应关系、以及各个服务器的服务器相关信息;A pre-stored server list, wherein the server list includes correspondences between a plurality of first servers and their corresponding second servers, correspondences between a plurality of second servers and a third server, and server-related information of each server;
其中,服务器相关信息包括服务器网络地址、服务器的标识信息和服务器业务类型中的至少一项。Wherein, the server-related information includes at least one of server network address, server identification information and server service type.
可选地,还包括:Optionally, also include:
基于服务器列表,确定需向第三服务器发送的测试通知消息。Based on the server list, determine the test notification message to be sent to the third server.
本发明的另一实施例提出了一种多方服务器间数据通路的测试服务器,包括:Another embodiment of the present invention proposes a test server for data paths between multi-party servers, including:
发送模块,用于测试服务器将测试消息发送至第一服务器;其中,第一服务器通过至少一个第二服务器向第三服务器上报测试数据;The sending module is used for the test server to send the test message to the first server; wherein, the first server reports the test data to the third server through at least one second server;
判断模块,用于根据第三服务器是否接收到测试消息和/或第三服务器接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常。A judging module, configured to judge 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.
优选地,判断模块,包括:Preferably, the judging module includes:
发送单元,用于测试服务器将对应于测试消息的测试通知消息发送至第三服务器,以使得第三服务器根据接收到的测试通知消息,以及是否接收到测试消息和/或接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常;The sending unit is used for the test server to send the test notification message corresponding to the test message to the third server, so that the third server receives the test notification message according to the received test notification message, and whether the test message is received and/or the time when the test message is received , judging whether the data path between the first server and the third server is abnormal;
其中,测试通知消息包括以下一项或多项:测试消息内容、测试消息的发送时间、测试消息的发送对象、测试消息的标识信息。Wherein, the test notification message includes one or more of the following: test message content, test message sending time, test message sending object, and test message identification information.
优选地,判断模块,包括:Preferably, the judging module includes:
发送及监测单元,用于测试服务器将对应于测试消息的测试通知消息发送至第三服务器,并监测第三服务器是否返回其已接收到与测试通知消息相匹配的测试消息的反馈信息;The sending and monitoring unit is used for the test server to send the test notification message corresponding to the test message to the third server, and monitor whether the third server returns the feedback information that it has received the test message matching the test notification message;
判断单元,用于依据监测结果,判断预定数据通路是否正常传输数据。The judging unit is used to judge whether the predetermined data path transmits data normally according to the monitoring result.
可选地,还包括:Optionally, also include:
预存模块,用于预存服务器列表,其中,服务器列表包括多个第一服务器与其各自对应的第二服务器的对应关系、多个第二服务器与一个第三服务器的对应关系、以及各个服务器的服务器相关信息;The pre-storage module is used for pre-storing the server list, wherein the server list includes the corresponding relationship between multiple first servers and their corresponding second servers, the corresponding relationship between multiple second servers and a third server, and the server correlation of each server information;
其中,服务器相关信息包括服务器网络地址、服务器的标识信息和服务器业务类型中的至少一项。Wherein, the server-related information includes at least one of server network address, server identification information and server service type.
可选地,还包括:Optionally, also include:
确定模块,用于基于服务器列表,确定需向第三服务器发送的测试通知消息。The determination module is configured to determine the test notification message to be sent to the third server based on the server list.
本发明的又另一实施例提出了一种数据通路的测试系统,包括:Yet another embodiment of the present invention proposes a test system for a data path, including:
测试服务器,用于将测试消息发送至第一服务器,并将与测试消息对应的测试通知消息发送至第三服务器;The test server is configured to send the test message to the first server, and send the test notification message corresponding to the test message to the third server;
第一服务器,用于将获取到的测试消息发送至相匹配的第二服务器;The first server is configured to send the obtained test message to a matching second server;
第二服务器,用于基于预定数据通路将来自与其相匹配的第一服务器的测试消息发送至第三服务器;The second server is configured to send the test message from the first server matched with it to the third server based on a predetermined data path;
第三服务器,用于接收测试服务器发送的与测试消息对应的测试通知消息;The third server is configured to receive a test notification message corresponding to the test message sent by the test server;
根据接收到的测试通知消息,以及是否接收到测试消息和/或接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常。According to the received test notification message, whether the test message is received and/or the time when the test message is received, it is judged whether the data path between the first server and the third server is abnormal.
优选地,预定数据通路包括从第二服务器至第三服务器的最短数据通路距离的数据通路。Preferably, the predetermined data path includes a data path with the shortest data path distance from the second server to the third server.
优选地,第二服务器还用于若监测到未成功通过预定数据通路将测试消息发送至第三服务器,则基于多个第二服务器与第三服务器之间的数据通路关系,重新选定第二服务器与第三服务器之间的可选数据通路,并通过可选数据通路将测试消息发送至第三服务器。Preferably, the second server is also used to reselect the second server based on the data path relationship between multiple second servers and the third server if it detects that the test message is not successfully sent to the third server through the predetermined data path. An optional data path between the server and the third server, and sending the test message to the third server through the optional data path.
优选地,第三服务器用于判断第一服务器与第三服务器之间的数据通路是否异常的方式,包括:Preferably, the method used by the third server to determine whether the data path between the first server and the third server is abnormal includes:
若第三服务器接收到测试消息、且接收到测试消息的时间在预定监测时长内,则确定预定数据通路可以正常传输数据;或If the third server receives the test message and the time of receiving the test message is within the predetermined monitoring period, it is determined that the predetermined data path can transmit data normally; or
若第三服务器未在预定监测时长内接收到测试消息,则确定预定数据通路不可以正常传输数据;或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 data normally; or
若第三服务器接收到测试消息、且接收到测试消息的时间超过预定监测时长,则忽略测试消息,确定预定数据通路不可以正常传输数据。If the third server receives the test message and the time of receiving the test message exceeds the predetermined monitoring time, the test message is ignored, and it is determined that the predetermined data path cannot transmit data normally.
本发明的实施例中,提出了一种多方服务器间数据通路的测试方案,测试服务器将测试消息发送至第一服务器,其中,第一服务器通过至少一个第二服务器向第三服务器上报测试数据,实现了根据各服务器之间的匹配关系确定相应的数据通路,并通过该数据通路进行传输数据的测试,避免了对不必要的数据通路进行传输数据测试的情况,提高了多方服务器间对数据通路进行传输数据测试的测试效率,同时,将与测试消息对应的测试通知消息发送至第三服务器,为后续判断数据通路是否正常传输数据提供了必要的前提保障;根据第三服务器是否接收到测试消息和/或第三服务器接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常,实现了在多方服务器间快速准确地确定各路数据通路是否正常传输数据,使得多方服务器在运行过程中发生数据通路中断或数据传输异常情况时,能够为多方服务器的运行维护人员提供重要的参考依据,同时,无需暂停正常的业务数据传输即可实现对数据通路的测试,保证了为用户提供正常的数据业务服务。In an embodiment of the present invention, a test scheme for data paths between multi-party servers is proposed, the test server sends a test message to the first server, wherein the first server reports the test data to the third server through at least one second server, Realize the determination of the corresponding data path according to the matching relationship between the servers, and test the data transmission through the data path, avoiding the situation of unnecessary data path transmission data testing, and improving the data path between multi-party servers. The test efficiency of the transmission data test is carried out, and at the same time, the test notification message corresponding to the test message is sent to the third server, which provides the necessary premise guarantee for the subsequent judgment of whether the data path transmits data normally; according to whether the third server receives the test message And/or the time when the third server receives the test message, judge whether the data path between the first server and the third server is abnormal, and realize fast and accurate determination of whether each data path is normally transmitting data between multi-party servers, so that the multi-party When the data path is interrupted or the data transmission is abnormal during the operation of the server, it can provide an important reference for the operation and maintenance personnel of multi-party servers. At the same time, the test of the data path can be realized without suspending the normal business data transmission, ensuring Provide users with normal data business services.
本发明附加的方面和优点将在下面的描述中部分给出,这些将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the invention will be set forth in part in the description which follows, and will become apparent from the description, or may be learned by practice of the invention.
附图说明Description of drawings
本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and easy to understand from the following description of the embodiments in conjunction with the accompanying drawings, wherein:
图1为本发明中多方服务器之间的连接关系示意图;Fig. 1 is a schematic diagram of the connection relationship between multi-party servers in the present invention;
图2为本发明中一个实施例的多方服务器间数据通路的测试方法的流程图;Fig. 2 is the flow chart of the test method of the data path between the multi-party servers of an embodiment of the present invention;
图3为本发明中另一实施例的数据通路的测试服务器的结构示意图;Fig. 3 is the structural representation of the test server of the data path of another embodiment in the present invention;
图4为本发明中另一优选实施例的数据通路的测试系统的结构示意图。FIG. 4 is a schematic structural diagram of a data path testing system in another preferred embodiment of the present invention.
具体实施方式detailed description
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能解释为对本发明的限制。Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention.
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本发明的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。Those skilled in the art will understand that unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the word "comprising" used in the description of the present invention refers to the presence of said features, integers, steps, operations, elements and/or components, but does not exclude the presence or addition of one or more other features, Integers, steps, operations, elements, 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 or intervening elements may also be present. Additionally, "connected" or "coupled" as used herein may include wireless connection or wireless coupling. The expression "and/or" used herein includes all or any elements and all combinations of one or more associated listed items.
本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本发明所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。Those skilled in the art can understand that, unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art to which this invention belongs. It should also be understood that terms, such as those defined in commonly used dictionaries, should be understood to have meanings consistent with their meaning in the context of the prior art, and unless specifically defined as herein, are not intended to be idealized or overly Formal meaning to explain.
需要说明的是,本发明的实施例中,在多方服务器间数据通路的测试环境中,包括多个第一服务器和多个第二服务器,第一服务器和第二服务器的数量,在此不做限定。It should be noted that, in the embodiment of the present invention, in the test environment of the data path between multi-party servers, including multiple first servers and multiple second servers, the numbers of the first servers and the second servers are not specified here. limited.
图1为本发明中多方服务器之间的连接关系示意图。FIG. 1 is a schematic diagram of the connection relationship between multi-party servers in the present invention.
在多方服务器间数据通路的测试环境中,包括测试服务器,第一服务器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 multiple servers, including 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 dot server, the second server is a node server, and the third server is a data center server. Multiple dot servers correspond to a node server, and the business data of the multiple dot servers are all transmitted to the corresponding node server. Each node server transmits the business data from each management server to the data center server; as shown in Figure 1, the second server corresponding to the first server ServerA01, ServerA02 and ServerA03 is ServerB01, and ServerA01, ServerA02 and ServerA03 can actively send it The test message received respectively is transmitted to ServerB01, and the test notification message corresponding to the test message is sent to the third server ServerC; the third server corresponding to the second server ServerB01, ServerB02 and ServerB03 is ServerC, and ServerB01, ServerB02 and ServerB03 will receive The test messages of their corresponding first servers are transmitted to ServerC; there are two data transmission paths between ServerB01 and ServerC, one is the transmission path of the shortest straight-line distance between ServerB01 and ServerC, and the other is the transmission path between ServerB01 and ServerB02 and ServerB03 and ServerC Connected data transmission path.
本发明的实施例中,多方服务器间数据通路的测试环境以图1为例进行详述,符合此连接关系的其他多方服务器间的连接方式还包括多种,在此不做限定。In the embodiment of the present invention, the test environment of the data path between multi-party servers is described in detail by taking FIG. 1 as an example. There are many other connection modes between multi-party servers that conform to this connection relationship, which are not limited here.
图2为本发明中一个实施例的多方服务器间数据通路的测试方法的流程图。FIG. 2 is a flow chart of a method for testing data paths between multi-party servers according to an embodiment of the present invention.
本发明的实施例中,各步骤所执行的内容概述如下:步骤S210:测试服务器将测试消息发送至第一服务器;其中,第一服务器通过至少一个第二服务器向第三服务器上报测试数据;步骤S220:根据第三服务器是否接收到测试消息和/或第三服务器接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常。In the embodiment of the present invention, the content of each step is summarized as follows: 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 at least one second server; 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.
本发明的实施例中,提出了一种多方服务器间数据通路的测试方法,测试服务器将测试消息发送至第一服务器,其中,第一服务器通过至少一个第二服务器向第三服务器上报测试数据,实现了根据各服务器之间的匹配关系确定相应的数据通路,并通过该数据通路进行传输数据的测试,避免了对不必要的数据通路进行传输数据测试的情况,提高了多方服务器间对数据通路进行传输数据测试的测试效率,同时,将与测试消息对应的测试通知消息发送至第三服务器,为后续判断数据通路是否正常传输数据提供了必要的前提保障;根据第三服务器是否接收到测试消息和/或第三服务器接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常,实现了在多方服务器间快速准确地确定各路数据通路是否正常传输数据,使得多方服务器在运行过程中发生数据通路中断或数据传输异常情况时,能够为多方服务器的运行维护人员提供重要的参考依据,同时,无需暂停正常的业务数据传输即可实现对数据通路的测试,保证了为用户提供正常的数据业务服务。以下针对各个步骤的具体实现做进一步的说明:In an embodiment of the present invention, a method for testing a data path between multiple servers is proposed, the test server sends a test message to the first server, wherein the first server reports the test data to the third server through at least one second server, Realize the determination of the corresponding data path according to the matching relationship between the servers, and test the data transmission through the data path, avoiding the situation of unnecessary data path transmission data testing, and improving the data path between multi-party servers. The test efficiency of the transmission data test is carried out, and at the same time, the test notification message corresponding to the test message is sent to the third server, which provides the necessary premise guarantee for the subsequent judgment of whether the data path transmits data normally; according to whether the third server receives the test message And/or the time when the third server receives the test message, judge whether the data path between the first server and the third server is abnormal, and realize fast and accurate determination of whether each data path is normally transmitting data between multi-party servers, so that the multi-party When the data path is interrupted or the data transmission is abnormal during the operation of the server, it can provide an important reference for the operation and maintenance personnel of multi-party servers. At the same time, the test of the data path can be realized without suspending the normal business data transmission, ensuring Provide users with normal data business services. The following is a further description of the specific implementation of each step:
步骤S210:测试服务器将测试消息发送至第一服务器;其中,第一服务器通过至少一个第二服务器向第三服务器上报测试数据。Step S210: the test server sends a test message to the first server; wherein, the first server reports test data to the third server through 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 multiple servers, the test message, such as TestMsg01, is sent to the first server through the test server, such as ServerA01, and ServerA01 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 connects ServerB02 and ServerB03 to ServerC through a data transmission path.
步骤S220:根据第三服务器是否接收到测试消息和/或第三服务器接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常。Step S220: According to whether the third server receives the test message and/or the time when the third server receives the test message, determine whether the data path between the first server and the third server is abnormal.
例如,在多方服务器间数据通路的测试环境中,若测试服务器监测第三服务器ServerC接收到测试消息TestMsg01,测试服务器可判断第一服务器ServerA01与第三服务器ServerB03之间的数据通路正常传输数据;若测试服务器监测第三服务器ServerC未接收到测试消息TestMsg01,测试服务器可判断第一服务器ServerA01与第三服务器ServerB03之间的数据通路不能正常传输数据。For example, in the test environment of the data path between multiple servers, if the test server monitors that the third server ServerC receives the test message TestMsg01, the test server can judge that the data path between the first server ServerA01 and the third server ServerB03 normally transmits data; if 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 transmit data normally.
优选地,步骤S220中判断第一服务器与第三服务器之间的数据通路是否异常的步骤进一步包括步骤S221;步骤S221:测试服务器将对应于测试消息的测试通知消息发送至第三服务器,以使得第三服务器根据接收到的测试通知消息,以及是否接收到测试消息和/或接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常。Preferably, the step of judging whether the data path between the first server and the third server is abnormal in step S220 further includes 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 judges whether the data path between the first server and the third server is abnormal according to the received test notification message, whether the test message is received and/or the time when the test message is received.
其中,测试通知消息包括以下一项或多项:测试消息内容;测试消息的发送时间,例如:2016-12-12 02:10:00;测试消息的发送对象,例如,第一服务器ServerA01;测试消息的标识信息,例如,TestMsg01。Wherein, the test notification message includes one or more of the following: the content of the test message; the sending time of the test message, for example: 2016-12-12 02:10:00; the sending object of the test message, for example, the first server ServerA01; Identification information for the message, for example, TestMsg01.
例如,在多方服务器间数据通路的测试环境中,通过测试服务器,将对应于测试消息TestMsg01的测试通知消息发送至第三服务器ServerC,随后,第三服务器ServerC根据接收到的测试通知消息,以及ServerC接收到测试消息TestMsg01的反馈信息,ServerC可判断第一服务器ServerA01与第三服务器ServerB03之间的数据通路可正常传输数据。For example, in the test environment of the data path between 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 according to the received test notification message, and ServerC After receiving the feedback information of the test message TestMsg01, ServerC can determine that the data path between the first server ServerA01 and the third server ServerB03 can transmit data normally.
优选地,第三服务器根据接收到的测试通知消息,以及是否接收到测试消息和/或接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常的方式,包括:Preferably, the third server judges 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, including:
1)若第三服务器接收到测试消息、且接收到测试消息的时间在预定监测时长内,则确定预定数据通路可以正常传输数据;例如,若测试服务器发送测试消息TestMsg01的时间为2016-12-12 02:10:00,监测到接收到第三服务器ServerC返回的“已接收到与测试消息TestMsg01!”的信息,接收到TestMsg01的时间为2016-12-12 02: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 transmit data normally; for example, if the time when the test server sends the test message TestMsg01 is 2016-12- 12 02:10:00, received the message "Received and test message TestMsg01!" returned by the third server ServerC, the time of receiving TestMsg01 is 2016-12-12 02:15:00, the scheduled monitoring time If it is 15 minutes, then the time of receiving TestMsg01 is within the predetermined monitoring time, then it is determined that the predetermined data path can transmit data normally. or
2)若第三服务器未在预定监测时长内接收到测试消息,则确定预定数据通路不可以正常传输数据;例如,若测试服务器发送测试消息TestMsg01的时间为2016-12-12 02:10:00,预定监测时长为15分钟,若至2016-12-12 02:25:00时一直未监测到接收到第三服务器ServerC返回的“已接收到与测试消息TestMsg01!”的信息,则确定预定数据通路不可以正常传输数据。或2) If the third server does not receive the test message within the predetermined monitoring duration, it is determined that the predetermined data path cannot transmit data normally; for example, if the time when the test server sends the test message TestMsg01 is 2016-12-12 02:10:00 , the scheduled monitoring time is 15 minutes, if the message "Received and test message TestMsg01!" returned by the third server ServerC has not been monitored until 2016-12-12 02:25:00, then the scheduled data will be determined The channel cannot transmit data normally. or
3)若第三服务器接收到测试消息、且接收到测试消息的时间超过预定监测时长,则忽略测试消息,确定预定数据通路不可以正常传输数据。例如,若测试服务器发送测试消息TestMsg01的时间为2016-12-1202:10:00,监测到接收到第三服务器ServerC返回的“已接收到与测试消息TestMsg01!”的信息,接收到TestMsg01的时间为2016-12-12 02:35:00,预定监测时长为15分钟,则接收到TestMsg01的时间超过预定监测时长,则确定预定数据通路不可以正常传输数据。3) If the third server receives the test message and the time of receiving the test message exceeds the predetermined monitoring duration, ignore the test message and determine that the predetermined data path cannot transmit data normally. For example, if the time when the test server sends the test message TestMsg01 is 2016-12-1202:10:00, it is monitored to receive the information that "the test message TestMsg01 has been received!" returned by the third server ServerC, and the time when TestMsg01 is received is 2016-12-12 02:35:00, and the scheduled monitoring time is 15 minutes, then the time for receiving TestMsg01 exceeds the scheduled monitoring time, and it is determined that the scheduled data channel cannot transmit data normally.
通过本实施例,避免了将数据通路存在异常的数据通路判断为可正常传输数据的情况,同时,极大地节约了测试时间,同时提高了测试的效率。Through this embodiment, it is avoided that a data path with an abnormal data path is judged to be able to transmit data normally, at the same time, the test time is greatly saved, and the test efficiency is improved at the same time.
优选地,步骤S220中判断第一服务器与第三服务器之间的数据通路是否异常进一步包括步骤S222和步骤S223;步骤S222:测试服务器将对应于测试消息的测试通知消息发送至第三服务器,并监测第三服务器是否返回其已接收到与测试通知消息相匹配的测试消息的反馈信息;步骤S223:依据监测结果,判断预定数据通路是否正常传输数据。Preferably, in step S220, judging whether the data path between the first server and the third server is abnormal further includes steps S222 and 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 a test message that matches the test notification message; Step S223: According to the monitoring result, determine whether the predetermined data path transmits data normally.
例如,在多方服务器间数据通路的测试环境中,通过测试服务器将对应于测试消息TestMsg01的测试通知消息发送至第三服务器ServerC,并监测ServerC是否返回其已接收到与测试通知消息相匹配的测试消息TestMsg01的反馈信息,如ServerC返回的“已接收到与测试通知消息相匹配的测试消息TestMsg01!”的反馈信息,若测试服务器监测到第三服务器ServerC返回的“已接收到与测试通知消息相匹配的测试消息TestMsg01!”的反馈信息,可判断确定预定数据通路可以正常传输数据。For example, in the test environment of the data path between 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 monitors whether ServerC returns that it has received a test message matching the test notification message. The feedback information of the message TestMsg01, such as the feedback information of "the test message TestMsg01 matching the test notification message has been received!" returned by ServerC, if the test server monitors the "received the test message matching the test notification message" returned by the third server ServerC The matching test message TestMsg01!" feedback information can determine that the predetermined data path can transmit data normally.
优选地,该测试方法还包括步骤S230;步骤S230:预存服务器列表,其中,服务器列表包括:Preferably, the test method further includes step S230; step S230: pre-store server list, wherein the server list includes:
1)多个第一服务器与其各自对应的第二服务器的对应关系;例如,参照图1,建立第一服务器ServerA01、ServerA02和ServerA03与第二服务器ServerB01之间数据传输的对应关系,则第一服务器ServerA01、ServerA02和ServerA03可直接将数据发送至相匹配的第二服务器ServerB01。1) the corresponding relationship between a plurality of first servers and their respective corresponding second servers; for example, with reference to Fig. 1, establish the corresponding relationship of data transmission between the first server ServerA01, ServerA02 and ServerA03 and the second server ServerB01, then 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) the corresponding relation of a plurality of second servers and a 3rd server; For example, with reference to Fig. 1, establish the corresponding relation of data transmission between the second server ServerB01 and ServerB03 and the 3rd server ServerC, then the second server ServerB01 and ServerB03 can Send data directly to the third server ServerC, because the second server ServerB02 cannot directly send data to the third server ServerC, but can only send data to the second server ServerB01 or ServerB03, then establish the correspondence of data transmission between ServerB02 and ServerB01 relationship and the corresponding relationship of data transmission between ServerB02 and ServerB03.
3)各个服务器的服务器相关信息。3) Server related information of each server.
其中,服务器相关信息包括服务器网络地址、服务器的标识信息和服务器业务类型中的至少一项。具体地,服务器网络地址,如服务器的IP地址;服务器的标识信息,如服务器设备的唯一标识信息;服务器业务类型,如各个服务器具体负责的业务类型,包括存储数据、数据传输和数据测试等。Wherein, the server-related information includes at least one of server network address, server identification information and server service type. Specifically, the server network address, such as the server's IP address; server identification information, such as the unique identification information of the server device; server business type, such as the specific business type that each server is responsible for, including data storage, 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 Figure 1, in the test environment of the data path between multi-party servers, pre-stored server lists, such as ServerList, include the first server ServerA01, ServerA02 and ServerA03 in the ServerList, the second server ServerB01, ServerB02 and ServerB03, the third server The respective IP addresses of ServerC and the test server, their respective server identification information, their respective business types, and the data transmission correspondence between the first server ServerA01, ServerA02 and ServerA03 and the second server ServerB01 and the second server ServerB01, ServerB03 and the third server Information such as the data transmission correspondence relation of ServerC; Then, according to ServerList, can determine the data path between each second server and the 3rd server ServerC, can predetermine the data path between ServerB01 and ServerC to be the data corresponding to the shortest straight-line distance between ServerB01 and ServerC Passage, after passing the test server, sending the test message TestMsg01 to the first server ServerA01, and sending the test notification message corresponding to TestMsg01 to the third server ServerC, according to the ServerList, it can be determined that the second server matching ServerA01 is ServerB01, Then ServerA01 sends the obtained TestMsg01 to ServerB01; according to the ServerList, it can be determined that there is a data transmission correspondence between ServerB01 and the third server ServerC, and then directly sends TestMsg01 to ServerC through ServerB01 based on a predetermined data path.
优选地,该测试方法还包括步骤S240;步骤S240:基于服务器列表,确定需向第三服务器发送的测试通知消息。Preferably, the testing method further includes step S240; Step S240: Based on the server list, determine 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 the test environment of the data path between multiple servers, the test server sends a test message TestMsg01 to the first server ServerA01, and then, based on the server list ServerList, determines server-related information such as server identification information and its IP address of the first server ServerA01, And determine that the identification information of the second server corresponding to ServerA01 is ServerB01, etc., can determine the test notification message that needs to be sent to the third server ServerC, the test notification message includes the identification information of the first server that has determined to receive the test message TestMsg01 ServerA01, the identification information ServerB01 of the second server corresponding to ServerA01, the identification information TestMsg01 of the test message, the message content of the test message TestMsg01, and the like.
图3为本发明中另一实施例的数据通路的测试服务器的结构示意图。FIG. 3 is a schematic structural diagram of a data path test server according to another embodiment of the present invention.
本发明的实施例中,各模块所执行的内容概述如下:发送模块310测试服务器将测试消息发送至第一服务器;其中,第一服务器通过至少一个第二服务器向第三服务器上报测试数据;判断模块320根据第三服务器是否接收到测试消息和/或第三服务器接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常。In the embodiment of the present invention, the content executed by each module is summarized as follows: the sending module 310 test server sends the test message to the first server; wherein, the first server reports the test data to the third server through at least one second server; judges Module 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 invention, a test server for a data path between multiple servers is proposed, and the test server sends a test message to the first server; wherein, the first server reports test data to the third server through at least one second server, Realize the determination of the corresponding data path according to the matching relationship between the servers, and test the data transmission through the data path, avoiding the situation of unnecessary data path transmission data testing, and improving the data path between multi-party servers. The test efficiency of the transmission data test is carried out, and at the same time, the test notification message corresponding to the test message is sent to the third server, which provides the necessary premise guarantee for the subsequent judgment of whether the data path transmits data normally; according to whether the third server receives the test message And/or the time when the third server receives the test message, judge whether the data path between the first server and the third server is abnormal, and realize fast and accurate determination of whether each data path is normally transmitting data between multi-party servers, so that the multi-party When the data path is interrupted or the data transmission is abnormal during the operation of the server, it can provide an important reference for the operation and maintenance personnel of multi-party servers. At the same time, the test of the data path can be realized without suspending the normal business data transmission, ensuring Provide users with normal data business services.
发送模块310测试服务器将测试消息发送至第一服务器;其中,第一服务器通过至少一个第二服务器向第三服务器上报测试数据。The sending module 310 sends the test message to the first server by the test server; wherein, the first server reports the test data to the third server through at least one second server.
判断模块320根据第三服务器是否接收到测试消息和/或第三服务器接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常。The judging module 320 judges 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 judging 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 notification message according to whether it receives the test message and/or Or when the test message is received, it is judged whether the data path between the first server and the third server is abnormal.
其中,测试通知消息包括以下一项或多项:测试消息内容、测试消息的发送时间、测试消息的发送对象、测试消息的标识信息。Wherein, the test notification message includes one or more of the following: test message content, test message sending time, test message sending object, and test message identification information.
优选地,判断模块320包括发送及监测单元和判断单元;发送及监测单元测试服务器将对应于测试消息的测试通知消息发送至第三服务器,并监测第三服务器是否返回其已接收到与测试通知消息相匹配的测试消息的反馈信息;判断单元依据监测结果,判断预定数据通路是否正常传输数据。Preferably, the judging module 320 includes a sending and monitoring unit and a judging unit; the sending and monitoring unit test server sends the test notification message corresponding to the test message to the third server, and monitors whether the third server returns that it has received the test notification The feedback information of the test message matching the message; the judging unit judges whether the predetermined data path transmits data normally according to the monitoring result.
优选地,该测试服务器还包括预存模块;预存模块预存服务器列表,其中,服务器列表包括多个第一服务器与其各自对应的第二服务器的对应关系、多个第二服务器与一个第三服务器的对应关系、以及各个服务器的服务器相关信息。Preferably, the test server also includes a pre-storage module; the pre-storage module pre-storage server list, wherein the server list includes the correspondence between multiple first servers and their corresponding second servers, the correspondence between multiple second servers and a third server relationships, and server-related information for each server.
其中,服务器相关信息包括服务器网络地址、服务器的标识信息和服务器业务类型中的至少一项。Wherein, the server-related information includes at least one of server network address, server identification information and server service type.
优选地,该测试服务器还包括确定模块;确定模块基于服务器列表,确定需向第三服务器发送的测试通知消息。Preferably, the test server further includes a determination module; the determination module determines the test notification message to be sent to the third server based on the server list.
本发明实施例提供的多方服务器间数据通路的测试服务器可以实现上述提供的测试方法实施例,具体功能实现请参见测试方法实施例中的说明,在此不再赘述。The test server for the data path between multi-party servers provided by the embodiment of the present invention can implement the test method embodiment provided above. For specific function implementation, please refer to the description in the test method embodiment, and details will not be repeated here.
图4为本发明中另一优选实施例的数据通路的测试系统的结构示意图。FIG. 4 is a schematic structural diagram of a data path testing system in another preferred embodiment of the present invention.
本发明的实施例中,各系统所执行的内容概述如下:测试服务器410将测试消息发送至第一服务器,并将与测试消息对应的测试通知消息发送至第三服务器;第一服务器420将获取到的测试消息发送至相匹配的第二服务器;第二服务器430基于预定数据通路将来自与其相匹配的第一服务器的测试消息发送至第三服务器;第三服务器440接收测试服务器发送的与测试消息对应的测试通知消息;根据接收到的测试通知消息,以及是否接收到测试消息和/或接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常。In the embodiment of the present invention, the content performed by each system is summarized as follows: the test server 410 sends the test message to the first server, and sends the test notification message corresponding to the test message to the third server; the first server 420 will obtain The received test message is sent to the matched second server; the second server 430 sends the test message from the first server matched with it to the third server based on a predetermined data path; the third server 440 receives the test message sent by the test server and the test message A test notification message corresponding to the message; judging whether the data path between the first server and the third server is abnormal according to the received test notification message, whether the test message is received and/or the time when the test message is received.
本发明的实施例中,提出了一种数据通路的测试系统,测试服务器,用于将测试消息发送至第一服务器,并将与测试消息对应的测试通知消息发送至第三服务器;实现了根据各服务器之间的匹配关系确定相应的数据通路,并通过该数据通路进行传输数据的测试,避免了对不必要的数据通路进行传输数据测试的情况,提高了多方服务器间对数据通路进行传输数据测试的测试效率,同时,将与测试消息对应的测试通知消息发送至第三服务器,为后续判断数据通路是否正常传输数据提供了必要的前提保障;第一服务器,用于将获取到的测试消息发送至相匹配的第二服务器,并将对应于测试消息的测试通知消息发送至第三服务器;第二服务器,用于基于预定数据通路将来自与其相匹配的第一服务器的测试消息发送至第三服务器;第三服务器,用于接收测试服务器发送的与测试消息对应的测试通知消息;根据接收到的测试通知消息,以及是否接收到测试消息和/或接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常;实现了在多方服务器间快速准确地确定各路数据通路是否正常传输数据,使得多方服务器在运行过程中发生数据通路中断或数据传输异常情况时,能够为多方服务器的运行维护人员提供重要的参考依据,同时,无需暂停正常的业务数据传输即可实现对数据通路的测试,保证了为用户提供正常的数据业务服务。以下针对各个系统的具体实现做进一步的说明:In an embodiment of the present invention, a test system for a data path is proposed, a test server is used for sending a test message to the first server, and sending a test notification message corresponding to the test message to the third server; The matching relationship between the servers determines the corresponding data path, and the data transmission test is performed through the data path, which avoids the situation of unnecessary data path transmission data testing, and improves the transmission data of the data path between multiple servers. The test efficiency of the test, at the same time, the test notification message corresponding to the test message is sent to the third server, which provides the necessary premise guarantee for the subsequent judgment of whether the data path transmits data normally; the first server is used to send the obtained test message Send to the matching second server, and send the test notification message corresponding to the test message to the third server; the second server is used to send the test message from the first server matching it to the third server based on a predetermined data path Three servers; the third server is used to receive the test notification message corresponding to the test message sent by the test server; according to the received test notification message, and whether the test message is received and/or the time when the test message is received, judge the first Whether the data path between the server and the third server is abnormal; it is realized to quickly and accurately determine whether each data path is transmitting data normally among multi-party servers, so that when the data path is interrupted or the data transmission is abnormal during the operation of the multi-party server, It can provide an important reference for the operation and maintenance personnel of multi-party servers. At the same time, the test of the data path can be realized without suspending normal business data transmission, ensuring normal data business services for users. 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 first server has a corresponding second server, and the plurality of second servers correspond to on the third server.
测试服务器410将测试消息发送至第一服务器,并将与测试消息对应的测试通知消息发送至第三服务器。The test server 410 sends the test message to the first server, and sends a test notification message corresponding to the test message to the third server.
其中,测试通知消息包括以下一项或多项:测试消息内容、测试消息的发送时间、测试消息的发送对象、测试消息的标识信息。Wherein, the test notification message includes one or more of the following: test message content, test message sending time, test message sending object, and test message identification information.
优选地,测试服务器410预存服务器列表,其中,服务器列表包括多个第一服务器与其各自对应的第二服务器的对应关系、多个第二服务器与一个第三服务器的对应关系、以及各个服务器的服务器相关信息。Preferably, the test server 410 pre-stores a server list, wherein the server list includes the correspondence between a plurality of first servers and their corresponding second servers, the correspondence between a plurality of second servers and a third server, and the server Related Information.
其中,服务器相关信息包括服务器网络地址、服务器的标识信息和服务器业务类型中的至少一项。Wherein, the server-related information includes at least one of server network address, server identification information and server service type.
优选地,测试服务器410基于服务器列表,确定需向第三服务器发送的测试通知消息。Preferably, the test server 410 determines the 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 matched second server.
第二服务器430基于预定数据通路将来自与其相匹配的第一服务器的测试消息发送至第三服务器。The second server 430 sends the test message from the matched first server to the third server based on a predetermined data path.
第三服务器440接收测试服务器发送的与测试消息对应的测试通知消息;根据接收到的测试通知消息,以及是否接收到测试消息和/或接收到测试消息的时间,判断第一服务器与第三服务器之间的数据通路是否异常。The third server 440 receives the test notification message corresponding to the test message sent by the test server; according to the received test notification message, and whether the test message is received and/or the time when the test message is received, the first server and the third server are judged Whether the data path between them is abnormal.
优选地,预定数据通路包括从第二服务器至第三服务器的最短数据通路距离的数据通路。Preferably, the predetermined data path includes a data path with the 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 data paths between multiple 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 straight-line distance between ServerB01 and ServerC The data path can be predetermined as the data path of the straight-line distance between ServerB01 and ServerC.
优选地,第二服务器430还用于若监测到未成功通过预定数据通路将测试消息发送至第三服务器,则基于多个第二服务器与第三服务器之间的数据通路关系,重新选定第二服务器与第三服务器之间的可选数据通路,并通过可选数据通路将测试消息发送至第三服务器。Preferably, the second server 430 is also configured to reselect the third server based on the data path relationship between multiple second servers and the third server if it detects that the test message is not successfully sent to the third server through the predetermined data path. An optional data path between the second server and the third server, and sending the test message 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 Figure 1, in the test environment of the data path between multi-party servers, including test server, the first server ServerA01, ServerA02 and ServerA03, the second server ServerB01, ServerB02 and ServerB03, and the third server ServerC, with the first The second server corresponding to server ServerA01 carrying out data transmission is ServerB01, and the third server corresponding to carrying out data transmission with the second server ServerB01 is ServerC, and the predetermined data path is the data path of the linear distance between ServerB01 and ServerC; 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 of ServerB01 sending the obtained TestMsg01 to ServerC, if ServerB01 detects that the TestMsg01 is not successfully sent to ServerC through the predetermined data path, based on the communication between the second server ServerB01, ServerB02 and ServerB03 and the third server ServerC For the data path relationship, select the optional data path between ServerB01 and ServerC as the data path between ServerB01 and ServerC through connecting ServerB02 and ServerB03, and send TestMsg01 to ServerC through this data path.
优选地,第三服务器440用于判断第一服务器与第三服务器之间的数据通路是否异常的方式,包括:Preferably, the method used by the third server 440 to determine whether the data path between the first server and the third server is abnormal includes:
1)若第三服务器接收到测试消息、且接收到测试消息的时间在预定监测时长内,则确定预定数据通路可以正常传输数据;或1) If the third server receives the test message and the time of receiving the test message is within the predetermined monitoring duration, then determine that the predetermined data path can transmit data normally; or
2)若第三服务器未在预定监测时长内接收到测试消息,则确定预定数据通路不可以正常传输数据;或2) If the third server does not receive the test message within the predetermined monitoring time, it is determined that the predetermined data path cannot transmit data normally; or
3)若第三服务器接收到测试消息、且接收到测试消息的时间超过预定监测时长,则忽略测试消息,确定预定数据通路不可以正常传输数据。3) If the third server receives the test message and the time of receiving the test message exceeds the predetermined monitoring duration, ignore the test message and determine that the predetermined data path cannot transmit data normally.
本发明实施例提供的数据通路的测试系统可以实现上述提供的测试方法实施例,具体功能实现请参见测试方法实施例中的说明,在此不再赘述。The data path test system provided by the embodiment of the present invention can implement the test method embodiment provided above. For specific function realization, please refer to the description in the test method embodiment, which will not be repeated here.
本技术领域技术人员可以理解,本发明包括涉及用于执行本申请中所述操作中的一项或多项的设备。这些设备可以为所需的目的而专门设计和制造,或者也可以包括通用计算机中的已知设备。这些设备具有存储在其内的计算机程序,这些计算机程序选择性地激活或重构。这样的计算机程序可以被存储在设备(例如,计算机)可读介质中或者存储在适于存储电子指令并分别耦联到总线的任何类型的介质中,所述计算机可读介质包括但不限于任何类型的盘(包括软盘、硬盘、光盘、CD-ROM、和磁光盘)、ROM(Read-Only Memory,只读存储器)、RAM(Random Access Memory,随即存储器)、EPROM(Erasable ProgrammableRead-Only Memory,可擦写可编程只读存储器)、EEPROM(Electrically ErasableProgrammable Read-Only Memory,电可擦可编程只读存储器)、闪存、磁性卡片或光线卡片。也就是,可读介质包括由设备(例如,计算机)以能够读的形式存储或传输信息的任何介质。Those skilled in the art will appreciate that the present invention includes devices related to performing one or more of the operations described in this application. These devices may be specially designed and fabricated for the required purposes, or they may include known devices found in general purpose computers. These devices have computer programs stored therein that are selectively activated or reconfigured. Such a computer program can be stored in a device (e.g., computer) readable medium, including but not limited to any type of medium suitable for storing electronic instructions and respectively coupled to a bus. Types of disks (including floppy disks, hard disks, CDs, CD-ROMs, and magneto-optical disks), ROM (Read-Only Memory, read-only memory), RAM (Random Access Memory, random access memory), EPROM (Erasable Programmable Read-Only Memory, Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory, Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or optical card. That is, a readable medium includes any medium that stores or transmits information in a form readable by a device (eg, a computer).
本技术领域技术人员可以理解,可以用计算机程序指令来实现这些结构图和/或框图和/或流图中的每个框以及这些结构图和/或框图和/或流图中的框的组合。本技术领域技术人员可以理解,可以将这些计算机程序指令提供给通用计算机、专业计算机或其他可编程数据处理方法的处理器来实现,从而通过计算机或其他可编程数据处理方法的处理器来执行本发明公开的结构图和/或框图和/或流图的框或多个框中指定的方案。Those skilled in the art will understand that computer program instructions can be used to implement each block in these structural diagrams and/or block diagrams and/or flow diagrams and combinations of blocks in these structural diagrams and/or block diagrams and/or flow diagrams . Those skilled in the art can understand that these computer program instructions can be provided to general-purpose computers, professional computers, or processors of other programmable data processing methods for implementation, so that the computer or processors of other programmable data processing methods can execute the present invention. A scheme specified in a block or blocks of a structure diagram and/or a block diagram and/or a flow diagram of the invention disclosure.
本技术领域技术人员可以理解,本发明中已经讨论过的各种操作、方法、流程中的步骤、措施、方案可以被交替、更改、组合或删除。进一步地,具有本发明中已经讨论过的各种操作、方法、流程中的其他步骤、措施、方案也可以被交替、更改、重排、分解、组合或删除。进一步地,现有技术中的具有与本发明中公开的各种操作、方法、流程中的步骤、措施、方案也可以被交替、更改、重排、分解、组合或删除。Those skilled in the art can understand that the various operations, methods, and steps, measures, and solutions in the processes discussed in the present invention can be replaced, changed, combined, or deleted. Furthermore, other steps, measures, and schemes in the various operations, methods, and processes that have been discussed in the present invention may also be replaced, changed, rearranged, decomposed, combined, or deleted. Further, steps, measures, and schemes in the prior art that have operations, methods, and processes disclosed in the present invention can also be alternated, changed, rearranged, decomposed, combined, or deleted.
以上所述仅是本发明的部分实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above descriptions are only some of the embodiments of the present invention. It should be pointed out that those skilled in the art can make some improvements and modifications without departing from the principles of the present invention. It should be regarded as the protection scope of the present invention.
Claims (10)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611226721.XA CN106656606A (en) | 2016-12-27 | 2016-12-27 | Data path testing method, data path testing server and data path testing system |
PCT/CN2017/117228 WO2018121353A1 (en) | 2016-12-27 | 2017-12-19 | Method of testing data channel, test server, and test system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
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 |
---|---|
CN106656606A true CN106656606A (en) | 2017-05-10 |
Family
ID=58831525
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611226721.XA Pending CN106656606A (en) | 2016-12-27 | 2016-12-27 | Data path testing method, data path testing server and data path testing system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106656606A (en) |
WO (1) | WO2018121353A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018121353A1 (en) * | 2016-12-27 | 2018-07-05 | 北京奇虎科技有限公司 | Method of testing data channel, test server, and test system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1992711A (en) * | 2005-12-27 | 2007-07-04 | 中兴通讯股份有限公司 | Method for performing link detection to server by SIP terminal |
CN101183997A (en) * | 2006-11-17 | 2008-05-21 | 日本电气株式会社 | Method and system for verifying connectivity of logical link |
CN101442501A (en) * | 2007-11-22 | 2009-05-27 | 和舰科技(苏州)有限公司 | Method for monitoring e-mail passageway |
CN101841463A (en) * | 2010-03-05 | 2010-09-22 | 清华大学 | Multipath cocurrent transmission method based on SCTP (Stream Control Transmission Protocol) |
CN104684014A (en) * | 2015-01-09 | 2015-06-03 | 成都奥克特科技有限公司 | Mobile communication network transmission testing method |
WO2015171260A2 (en) * | 2014-05-08 | 2015-11-12 | Microsoft Technology Licensing, Llc | Fine-grained network monitoring |
CN105933153A (en) * | 2016-04-25 | 2016-09-07 | 乐视控股(北京)有限公司 | Cluster failure monitoring method and device |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7304957B2 (en) * | 2004-02-19 | 2007-12-04 | Tekelec | Methods and systems for simultaneous, multi-channel link fault sectionalization testing |
JP4874185B2 (en) * | 2007-07-19 | 2012-02-15 | アラクサラネットワークス株式会社 | Multi-fault handling system and shared link terminator used therefor |
CN101710869A (en) * | 2009-12-18 | 2010-05-19 | 中兴通讯股份有限公司 | Device and method for detecting two-layer virtual private network failures |
CN102611610B (en) * | 2011-01-24 | 2016-03-30 | 中兴通讯股份有限公司 | The method and system of a kind of many same paths tunnels centralized management |
CN105515912B (en) * | 2015-12-22 | 2018-10-16 | 河北远东通信系统工程有限公司 | Linkage availability detection and processing method between a kind of multinode |
CN106713037A (en) * | 2016-12-27 | 2017-05-24 | 北京奇虎科技有限公司 | Test method, test server and test system of data path |
CN106656606A (en) * | 2016-12-27 | 2017-05-10 | 北京奇虎科技有限公司 | Data path testing method, data path testing server and data path testing system |
-
2016
- 2016-12-27 CN CN201611226721.XA patent/CN106656606A/en active Pending
-
2017
- 2017-12-19 WO PCT/CN2017/117228 patent/WO2018121353A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1992711A (en) * | 2005-12-27 | 2007-07-04 | 中兴通讯股份有限公司 | Method for performing link detection to server by SIP terminal |
CN101183997A (en) * | 2006-11-17 | 2008-05-21 | 日本电气株式会社 | Method and system for verifying connectivity of logical link |
CN101442501A (en) * | 2007-11-22 | 2009-05-27 | 和舰科技(苏州)有限公司 | Method for monitoring e-mail passageway |
CN101841463A (en) * | 2010-03-05 | 2010-09-22 | 清华大学 | Multipath cocurrent transmission method based on SCTP (Stream Control Transmission Protocol) |
WO2015171260A2 (en) * | 2014-05-08 | 2015-11-12 | Microsoft Technology Licensing, Llc | Fine-grained network monitoring |
CN104684014A (en) * | 2015-01-09 | 2015-06-03 | 成都奥克特科技有限公司 | Mobile communication network transmission testing method |
CN105933153A (en) * | 2016-04-25 | 2016-09-07 | 乐视控股(北京)有限公司 | Cluster failure monitoring method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018121353A1 (en) * | 2016-12-27 | 2018-07-05 | 北京奇虎科技有限公司 | Method of testing data channel, test server, and test system |
Also Published As
Publication number | Publication date |
---|---|
WO2018121353A1 (en) | 2018-07-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110719318B (en) | Message processing method and system | |
CN110730246A (en) | Distributed link tracking method under micro-service architecture | |
US9973397B2 (en) | Diagnosis of network anomalies using customer probes | |
CN108134684B (en) | BMCIP address management system, management terminal and management method | |
US7983175B2 (en) | System and method for detecting a network failure | |
CN106034051B (en) | Network monitoring data processing method and network monitoring data processing unit | |
CN106130816A (en) | A kind of content distributing network monitoring method, monitoring server and system | |
WO2022127504A1 (en) | Network element management method and apparatus, and storage medium | |
JP2014068283A (en) | Network failure detection system and network failure detection device | |
CN111711544B (en) | Link dial testing method and device, electronic equipment and storage medium | |
CN111200649B (en) | Scheduling method and device and scheduling model generation method and device | |
CN104506370A (en) | Management method and management device for non-network-management system | |
CN103905222A (en) | Instant messaging login failure detection method and system | |
CN103731315A (en) | Server failure detecting method | |
CN106656368A (en) | Communication system monitoring method and apparatus | |
CN114448785A (en) | Method, device and electronic device for locating faulty network equipment | |
CN106656606A (en) | Data path testing method, data path testing server and data path testing system | |
CN104348815A (en) | Method and device for verifying verification code | |
CN111585844B (en) | Test method, system, server and storage medium based on verification code | |
CN105721231B (en) | A kind of quality of service perception detection method and device | |
CN106713037A (en) | Test method, test server and test system of data path | |
CN109962820B (en) | Detection method and detection platform of cloud platform | |
CN103326892B (en) | The operating method and device of web interface | |
CN110611602A (en) | Two-layer point-to-point channel state monitoring method and system | |
CN111147899B (en) | Fault early warning method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170510 |
|
RJ01 | Rejection of invention patent application after publication |