CN103888306A - Message forwarding system performance test method and performance test device - Google Patents

Message forwarding system performance test method and performance test device Download PDF

Info

Publication number
CN103888306A
CN103888306A CN201210555274.8A CN201210555274A CN103888306A CN 103888306 A CN103888306 A CN 103888306A CN 201210555274 A CN201210555274 A CN 201210555274A CN 103888306 A CN103888306 A CN 103888306A
Authority
CN
China
Prior art keywords
message
repeater system
receiving
transmitting terminal
operation information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201210555274.8A
Other languages
Chinese (zh)
Inventor
张仁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201210555274.8A priority Critical patent/CN103888306A/en
Publication of CN103888306A publication Critical patent/CN103888306A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The application discloses a message forwarding system performance test method and performance test device. The method mainly comprises the following steps: an operating message is sent to a tested message forwarding system by a transmitting end, and then the received operating message is forwarded to a receiving end by the message forwarding system, and when the operating message is received by the receiving end which is located in a same physical entity with the transmitting end, a notification message is returned to the transmitting end at once, and the transmitting end is used to take the time difference between the notification message receving process and the message forwarding system operating message transmitting process as the message transfer time obtained through tests. The time taken by the receiving end for returning the notification message to the transmitting end is negligible, so according to the scheme of the application, not only the transmission of the operating message from the transmitting end to the message forwarding system and from the message forwarding system to the receiving end is simulated accurately, and but also the network delay that may be exist in the transmission process is simulated, so that the test result can accurately reflect the message transfer time of the message forwarding system.

Description

A kind of performance test methods and performance test apparatus to message repeater system
Technical field
The application relates to field of computer technology, relates in particular to a kind of performance test methods and performance test apparatus to message repeater system.
Background technology
Message repeater system is that one is applied between message Transmitting and Receiving End, be connected (as based on TCP(Transmission Control Protocol by network with Transmitting and Receiving End, transmission control protocol)), realize the repeater system that message is transmitted between Transmitting and Receiving End.
A kind of typical message repeater system is artificial online customer service system, artificial online customer service system receives user by the SWF(Shock Wave Flash embedding in browser) message sent of the Transmission Control Protocol communication function that provides of object, and this message is transmitted to customer service background server by the Transmission Control Protocol communication function of self, and by customer service background server, the message receiving is shown to contact staff by browser, realize the online conversation between user and contact staff with this.
For example, user enters by browser after the artificial customer service page of website, by clicking " enquirement " button in the artificial customer service page, sends the enquirement message for a certain problem to artificial online customer service system; Artificial online customer service system receives after this enquirement message, if there are many customer service background servers can receive this enquirement message, can be according to the message forwarding logic of local maintenance (as being preferentially transmitted to the customer service background server that hardware capabilities is stronger, or be preferentially transmitted to current relatively idle customer service background server), this enquirement message is transmitted to corresponding customer service background server, by customer service background server, the enquirement message receiving is shown to contact staff, realize the dialogue for this problem between user and contact staff.
Because message repeater system is being born the message relay service between Transmitting and Receiving End, therefore, whether message repeater system has fast-forwarding ability, can in actual application, meeting message, to forward the real-time demand of scene just particularly important, and the performance that this ability of message repeater system can be sent to duration by its message embodies.Described message is sent to duration and is referred to: message is sent from transmitting terminal, arrives the required total duration of receiving terminal through message repeater system.
Meet the demand of practical application scene in order to make the message of message repeater system send to this performance of duration, need to send to duration to the message of message repeater system tests, take artificial online customer service system as example, user must not be greater than by the browser total duration that receives message to customer service background server that initiates a message the maximum duration 5s tolerating under this scene of artificial customer service.
Below take artificial online customer service system as example, illustrate that industry sends to the test mode of this performance of duration at present for the message of message repeater system, mainly contain following two kinds:
Test mode one: utilize pressure test instrument to send to duration to the message of artificial online customer service system and test.
Utilize Load Runner equal pressure testing tool to test the required duration of message transfer between artificial online customer service system and transmitting terminal, as simulate a large amount of transmitting terminals to artificial online customer service system transmission message, receive the required average duration of each message to test artificial online customer service system, and this average duration is sent to duration as message.
Because test mode one can only be determined time that transmitting terminal initiates a message and artificial online customer service system and receives the time of this message, and then definite message arrives the required duration of artificial online customer service system from transmitting terminal, but afterwards when artificial online customer service system is transmitted to message after receiving terminal, test mode one cannot determine that receiving terminal receives the time of this message, that is to say, test mode one cannot determine that message arrives the required duration of receiving terminal from artificial online customer service system, therefore, utilize test result that test mode one obtains can not reflect exactly that the message of artificial online customer service system sends to duration.
Test mode two: utilize journal function to send to duration to the message of artificial online customer service system and test.
Test mode two is to add journal function in artificial online customer service system, receive time of the message of being sent by transmitting terminal and artificial online customer service system and send to receiving terminal the time of message by artificial online customer service system log (SYSLOG), and the time difference of these two times is sent to duration as message.
Network state ideal based on TCP between transmitting terminal and artificial online customer service system and between artificial online customer service system and receiving terminal, can ignore network delay, the test result of test mode two is reasonable.But, at actual net environment, network delay not only cannot be ignored, also may send to duration to message and have considerable influence, therefore, in the situation that network delay cannot be ignored, the test result that test mode two obtains can not reflect exactly sends to duration to the message of artificial online customer service system.
In sum, still there is the inaccurate problem of test result in the performance test of at present sending to duration for the message of message repeater system, need to find a kind of effectively performance test mode, carrys out the message of test post repeater system exactly and send to duration.
Summary of the invention
The object of the embodiment of the present application is, a kind of performance test methods and performance test apparatus to message repeater system is provided, and sends to duration and tests inaccurate problem in order to solve the message to test post repeater system existing in prior art.
To a performance test methods for message repeater system, described method comprises:
Transmitting terminal is to message repeater system transmit operation message;
Transmitting terminal, in the time receiving the notification message that receiving terminal returns, is sent to duration with the time difference that sends described operation information to message repeater system as the message of described message repeater system using receiving described notification message;
Described notification message is receiving terminal while receiving the described operation information that message repeater system forwards, send, and described transmitting terminal and described receiving terminal is arranged in Same Physical entity to described transmitting terminal.
To a performance test methods for message repeater system, described method comprises:
The operation information from transmitting terminal that receiving terminal receipt message repeater system forwards;
Receiving terminal returns to notification message to described transmitting terminal, according to receiving notification message and the time difference to message repeater system transmit operation message, determines that the message of described message repeater system is sent to duration by transmitting terminal;
Described transmitting terminal and described receiving terminal are arranged in Same Physical entity.
To a performance test methods for message repeater system, described method comprises:
The operation information that message repeater system receiving end/sending end sends;
Described operation information is transmitted to receiving terminal by message repeater system, return to notification message by receiving terminal to described transmitting terminal, receive notification message and the time difference to message repeater system transmit operation message by transmitting terminal basis again, determine that the message of described message repeater system is sent to duration;
Described transmitting terminal and described receiving terminal are arranged in Same Physical entity.
To a performance test apparatus for message repeater system, described performance test apparatus comprises transmitting terminal and receiving terminal, wherein:
Described transmitting terminal, be used for to message repeater system transmit operation message, and, in the time receiving the notification message that receiving terminal returns, send to duration with the time difference that sends described operation information to message repeater system as the message of described message repeater system using receiving described notification message;
Described receiving terminal, for receipt message repeater system forward described operation information time, send described notification message to described transmitting terminal;
Described transmitting terminal and described receiving terminal are arranged in Same Physical entity.
The application has simulated operation information and has arrived via message repeater system from transmitting terminal the overall process of receiving terminal, because transmitting terminal can be known the time of operation information in initial transmission, and in the time receiving the notification message that receiving terminal returns, determine that operation information finishes the time sending, therefore, test result had both reflected that operation information was from transmitting terminal to message repeater system, message repeater system is to the transmission duration of these two sections of distances of receiving terminal, reflected again the network delay that may exist in transmitting procedure, the message that has reflected exactly tested message repeater system is sent to duration.
Accompanying drawing explanation
Fig. 1 is the schematic diagram that the embodiment of the present application one performance testing equipment is tested message repeater system;
Fig. 2 is the schematic diagram that the performance test apparatus in the embodiment of the present application two is tested artificial online customer service system;
Fig. 3 is the method step schematic diagram that utilizes the performance test apparatus shown in Fig. 2 to test.
Embodiment
Accurately test in order to send to duration to the message of message repeater system, a kind of message for message repeater system of the embodiment of the present application proposition is sent to the performance test mode of duration, in test process, by transmitting terminal to tested message repeater system transmit operation message, by message repeater system, the operation information receiving is transmitted to receiving terminal again, in the time that receiving terminal receives this operation information, can be considered the process of having simulated once-through operation message and arrive via message repeater system from transmitting terminal receiving terminal.Receiving terminal is receiving after operation information and can return to notification message to transmitting terminal immediately, finish in order to the operation information process of transmitting of notifying this simulation of transmitting terminal, the response that is equivalent to simulate due to described notification message, and transmitting terminal and receiving terminal are arranged in Same Physical entity, receiving terminal receives operation information and transmitting terminal, and to receive time difference between notification message very short, can ignore, therefore, transmitting terminal can be received to the time of reception (being the time that receiving terminal receives operation information) of described operation information and transmitting terminal to time difference of message repeater system transmit operation message as test result, the message that reflects tested message repeater system is sent to duration.
The performance test mode that the embodiment of the present application proposes both simulated operation information from transmitting terminal to message repeater system, message repeater system is to the transmission of receiving terminal these two sections of distances, simulated again the network delay that may exist in transmitting procedure, therefore, utilize test result that the mode of the embodiment of the present application obtains can reflect exactly that the message of tested message repeater system sends to duration.
Below in conjunction with Figure of description, the embodiment of the present application is described in detail.
Embodiment mono-:
As shown in Figure 1, be the schematic diagram that the embodiment of the present application one performance testing equipment is tested message repeater system, described performance test apparatus comprises transmitting terminal 11 and receiving terminal 12.Performance test apparatus in the embodiment of the present application one can be made up of many physical entities, between each physical entity, connects by wired or wireless mode the transmission that realizes message.In order to make final test result accurate as far as possible, reduce receiving terminal and return to the shared duration of notification message process to transmitting terminal, transmitting terminal and receiving terminal can be arranged in Same Physical entity.
In the time utilizing the performance test apparatus shown in Fig. 1 that the message of message repeater system is sent to duration and tested, by transmitting terminal 11 to message repeater system transmit operation message.
Message repeater system, receiving after described operation information, is transmitted to receiving terminal 12 by described operation information, and particularly, if only have a receiving terminal 12 in performance test apparatus, described operation information is directly sent to unique receiving terminal 12 by message repeater system; If there are multiple receiving terminals 12 in performance test apparatus, message repeater system can, at local maintenance message forwarding logic, send described operation information according to certain forwarding logic to a receiving terminal in multiple receiving terminals 12.
Receiving terminal 12, receiving after the operation information that message repeater system is forwarded to, returns to notification message to transmitting terminal 11, is successfully completed for the repeating process of notifying transmitting terminal 11 these operation informations.
Particularly, if only have a transmitting terminal 11 in performance test apparatus, receiving terminal 12 directly returns to unique transmitting terminal 11 by notification message; If there are multiple transmitting terminals 11 in performance test apparatus, in the operation information that transmitting terminal 11 sends to message repeater system, carry can unique identification self thread identification, so that receiving terminal 12 is receiving after operation information, can determine corresponding transmitting terminal 11 according to the thread identification of carrying in operation information, and then return to described notification message to definite transmitting terminal 11, avoid in the time having the parallel transmit operation message of multiple transmitting terminals 11 to test message repeater system, receiving terminal 12 cannot correctly be identified each transmitting terminal 11, causes the problem of test crash.
Transmitting terminal 11, in the time receiving the notification message that receiving terminal 12 returns, is sent to duration with the time difference that sends described operation information to message repeater system as the message of described message repeater system using receiving described notification message.
The time difference that transmitting terminal is determined is this message to message repeater system and sends to the test result that duration is tested.Because message is sent to duration and is referred to that operation information sends from transmitting terminal, arrive the required total duration of receiving terminal through message repeater system, do not comprise that receiving terminal receives the handling duration to it after operation information, therefore, in test process, can not simulate receiving terminal in the process receiving after operation information, test result does not comprise the handling duration of receiving terminal to operation information yet.For example, in the time the message of artificial online customer service system is sent to duration testing, test result does not comprise artificial online customer service system operation information is showed to contact staff and the processing procedure of contact staff to operation information.
Particularly, definite time difference of transmitting terminal 11 includes but not limited to following two kinds of modes:
Mode one: transmitting terminal is when to message repeater system transmit operation message, record the transmitting time T1 of described operation information, and in the time receiving the notification message that receiving terminal returns, record the time of reception T2 of notification message, and send to the time difference of duration using the time difference of described time of reception T2 and described transmitting time T1 as definite message.
Because transmitting terminal is very short with the interval of recording this twice operation of transmitting time T1 to message repeater system transmit operation message, can be considered and in transmit operation message, record transmitting time T1, in actual moving process, can ignore to message repeater system transmit operation message and the sequencing that records transmitting time T1.
Simultaneously, because transmitting terminal receiving notice message is also very short with the interval of recording this twice operation of time of reception T2, also can be considered and in receiving notice message, record time of reception T2, in actual moving process, also can ignore receiving notice message and the sequencing that records time of reception T2.
Mode two: transmitting terminal, when to message repeater system transmit operation message, starts timing, and in the time receiving the notification message that receiving terminal returns, stops timing, using timing duration as determining that message sends to the time difference of duration.
Because transmitting terminal is very short with the interval that starts this twice operation of timing to message repeater system transmit operation message, can be considered in transmit operation message and start timing, in actual moving process, can ignore to message repeater system transmit operation message and the sequencing that starts timing.
Meanwhile, because transmitting terminal receiving notice message is also very short with the interval that stops this twice operation of timing, can be considered and in receiving notice message, stop timing, in actual moving process, can ignore receiving notice message and the sequencing that stops timing.
The present embodiment two:
In the scheme of the present embodiment one, the thread of transmitting terminal and receiving terminal can use Java language to realize, as used JDK(Java Development Kit) 1.6 versions realizations.Below take artificial online customer service system as example, illustrate when including the performance test apparatus of N transmitting terminal, 1 receiving terminal and the message of artificial online customer service system is sent to duration carry out test process.
As shown in Figure 2, the schematic diagram of artificial online customer service system being tested for the performance test apparatus in the present embodiment two, send-thread of each transmitting terminal operation comes to artificial online customer service system transmit operation message, and receiving terminal operation receiving thread returns to corresponding notification message to each transmitting terminal.Suppose that transmitting terminal and receiving terminal are at same JVM(JavaVirtual Machine, Java Virtual Machine) in, communicating by letter between transmitting terminal and receiving terminal can directly be used wait () object and notify () method in Java concurrency programming to realize.
As shown in Figure 3, be the method step schematic diagram that utilizes the performance test apparatus shown in Fig. 2 to test, specifically describe as follows:
Step 1: test starts, and transmitting terminal is according to predefined operation generating run message.
The operation information that transmitting terminal generates is the message that the Transmission Control Protocol communication function that provides by the SWF object embedding in browser of analog subscriber sends to artificial online customer service system, described operation information can be to login for user the message that artificial online customer service system generates, also can be that some problem is putd question to, the message generating for user session can also be to exit for user the message that artificial online customer service system generates.
In the operation information that transmitting terminal generates, carry the thread identification of the send-thread of the current operation of this transmitting terminal.
Step 2: transmitting terminal sends the operation information generating to artificial online customer service system, and record the transmitting time T1 of described operation information.
In this step 2, transmitting terminal sends thread from the operation information generating to artificial online customer service system is very short with the thread operation interval of transmitting time T1 of recording described operation information, be considered as recording transmitting time T1 in transmit operation message, in the time of realistic simulation, the thread of transmitting time T1 that can first log operation information reruns and sends the thread of the operation information generating to artificial online customer service system, also can first move the rerun thread of the transmitting time T1 that records operation information of the thread that sends the operation information generating to artificial online customer service system, the present embodiment does not limit this.
In the scheme of the present embodiment two, between transmitting terminal and artificial online customer service system, can carry out by TCP mode the transmission of operation information.
What the scheme of the present embodiment two adopted is that aforesaid way one is determined the time difference, and the scheme of the present embodiment is not limited to adopt aforesaid way two or other modes to determine the time difference.
Step 3: transmitting terminal calls wait () object, hangs up the send-thread of current operation, waits for that receiving terminal returns to notification message.
Step 4: the operation information that artificial online customer service system sends transmitting terminal is transmitted to receiving terminal.
Step 5: receiving terminal receives the operation information that artificial online customer service system sends.
In the scheme of the present embodiment two, receiving terminal moves receiving thread in the time of initialization, and receiving thread is set to daemon thread (daemon thread).If receiving terminal need to receive the operation information that multiple transmitting terminals send by artificial online customer service system simultaneously, receiving thread can use BIO Select mode to read the operation information receiving, and repeats following steps 7 and step 8 for the operation information reading at every turn; If only have a transmitting terminal in performance test apparatus, or receiving terminal once receives only the operation information that a transmitting terminal sends by artificial online customer service system, and receiving thread can use NIO Select mode to read the operation information receiving.
Step 6: the thread identification of carrying in receiving terminal read operation message.
Step 7: receiving terminal is determined corresponding transmitting terminal according to described thread identification, the notify () method of calling on its wait () object notifies the send-thread of transmitting terminal to continue operation.
Because the thread identification of carrying in operation information is the mark of the send-thread of the current operation of transmitting terminal, therefore, can unique transmitting terminal of determining current this send-thread of operation according to the send-thread that described thread identification is corresponding.
In the present embodiment, transmitting terminal sends notify () message to receiving terminal and can be considered the operation sending a notification message to transmitting terminal.
Step 8: transmitting terminal receives the send-thread before the follow-up reforwarding trade of notify () message, record receives the time of reception T2 of notify () message.
Transmitting terminal can continue to move current send-thread, repeated execution of steps 1.
In this step 8, it is very short with the thread operation interval of recording time of reception T2 that transmitting terminal receives the thread of notify () message, be considered as recording time of reception T2 in receiving notify () message, in the time of realistic simulation, the thread that can first move reception notify () message reruns and records the thread of time of reception T2, also thread that can first log time of reception T2 reruns and receives the thread of notify () message, and the present embodiment does not limit this.
Step 9: transmitting terminal calculates the time difference between time of reception T2 and transmitting time T1, obtains test result.
In the time that a large amount of transmitting terminal of simulation walks abreast to artificial online customer service system transmit operation message, receiving terminal is successfully receiving after operation information at every turn, return to notification message to corresponding transmitting terminal, therefore, for an operation information, receiving terminal just can test out the time difference between time of reception T2 and transmitting time T1, for many operation informations, receiving terminal can test out multiple time differences, and multiple message is sent to duration; Receiving terminal is sent to duration using the message testing out at every turn and is averaged as test result, and the mode that this employing multisample is got average can effectively reduce test error, improves the accuracy of test result.
Below by concrete test scene, the test effect of the embodiment of the present application one and embodiment bis-is described.
So that artificial online customer service system is tested as example, test 400 clients under the busy scene of contact staff's enquirement, can the message of artificial online customer service system be sent to duration and be met the requirement that is less than 5s.Suppose that each client sends once-through operation message, follow-on test 5 hours by browser to artificial online customer service system device in every 5 seconds.
Can adopt the mode of multiple sending end parallel running send-thread, as utilize 400 send-threads of Java language establishment (to create 400 transmitting terminals, 1 send-thread of each transmitting terminal operation), 1 receiving thread (create 1 receiving terminal, move this send-thread).
After utilizing the mode of embodiment mono-and embodiment bis-to test above-mentioned artificial online customer service system, the test result obtaining is as shown in table 1:
Figure BDA00002614625200101
Table 1
Can find out from above test result, after the scheme that adopts the embodiment of the present application one and embodiment bis-is sent to duration and is tested the message of artificial online customer service system, 400 samples test result in 5 hours is between 1205.9ms to 447.30ms, test result is accurate, and the message of tested artificial online customer service system is sent to duration and met the system requirements that is less than 5s.
The performance test methods providing by the embodiment of the present application and performance test apparatus, utilize the transmitting terminal of simulating in Same Physical entity and receiving terminal in the time the message of message repeater system is sent to duration testing, tested out message and forwarded the network delay in links shared duration and message transmitting procedure, the test result obtaining can reflect that actual message sends to duration exactly; And, in the time carrying out performance test, in the operation information that transmitting terminal generates, carry the thread identification of the send-thread of operation, can be in the time that the parallel transmit operation message of multiple sending end be repeatedly tested, receiving terminal can be determined according to the thread identification of carrying in the operation information receiving the transmitting terminal of receiving notice message, the test errors of having avoided multiple sending end parallel running to cause.
In addition, under the scheme of the embodiment of the present application is applied in scenes such as artificial online customer service system, can create according to demand send-thread and receiving thread, and generate the operation information (as logined, exit, session etc.) of different business, and the transmission time interval of operation information all can arrange as required (as the operation information sending for session every 10 seconds, 20 operation information backed off after randoms of every transmission), therefore, in the time that the message of the artificial online customer service system of test is sent to duration, can altitude simulation user behavior, make test result more accurate.
Those skilled in the art should understand, the application's embodiment can be provided as method, system or computer program.Therefore, the application can adopt complete hardware implementation example, completely implement software example or the form in conjunction with the embodiment of software and hardware aspect.And the application can adopt the form at one or more upper computer programs of implementing of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) that wherein include computer usable program code.
The application is with reference to describing according to flow chart and/or the block diagram of the method for the embodiment of the present application, equipment (system) and computer program.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction that makes to carry out by the processor of computer or other programmable data processing device produces the device for realizing the function of specifying at flow process of flow chart or multiple flow process and/or square frame of block diagram or multiple square frame.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of specifying in flow process of flow chart or multiple flow process and/or square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computer or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of specifying in flow process of flow chart or multiple flow process and/or square frame of block diagram or multiple square frame on computer or other programmable devices.
Although described the application's preferred embodiment, once those skilled in the art obtain the basic creative concept of cicada, can make other change and modification to these embodiment.So claims are intended to be interpreted as comprising preferred embodiment and fall into all changes and the modification of the application's scope.
Obviously, those skilled in the art can carry out various changes and modification and the spirit and scope that do not depart from the application to the application.Like this, if within these of the application are revised and modification belongs to the scope of the application's claim and equivalent technologies thereof, the application is also intended to comprise these changes and modification interior.

Claims (12)

1. the performance test methods to message repeater system, is characterized in that, described method comprises:
Transmitting terminal is to message repeater system transmit operation message;
Transmitting terminal, in the time receiving the notification message that receiving terminal returns, is sent to duration with the time difference that sends described operation information to message repeater system as the message of described message repeater system using receiving described notification message;
Described notification message is receiving terminal while receiving the described operation information that message repeater system forwards, send, and described transmitting terminal and described receiving terminal is arranged in Same Physical entity to described transmitting terminal.
2. the method for claim 1, is characterized in that, in described operation information, carries thread identification;
Described notification message is the thread identification in the receiving terminal basis described operation information receiving, and sends to transmitting terminal corresponding to described thread identification.
3. method as claimed in claim 1 or 2, is characterized in that, transmitting terminal is after message repeater system sends described operation information, and before receiving the notification message that receiving terminal returns, described method also comprises:
Transmitting terminal is waited for and is received described notification message.
4. the method for claim 1, is characterized in that, described method also comprises:
Transmitting terminal during to message repeater system transmit operation message, records the transmitting time of described operation information, and in the time receiving the notification message that receiving terminal returns, records the time of reception of notification message;
Transmitting terminal is sent to duration with the time difference that sends described operation information to message repeater system as the message of described message repeater system using receiving described notification message, specifically comprises:
The message of transmitting terminal using the time difference of described time of reception and described transmitting time as described message repeater system is sent to duration.
5. the method for claim 1, is characterized in that, described method also comprises:
Transmitting terminal during to message repeater system transmit operation message, starts timing, and in the time receiving the notification message that receiving terminal returns, stops timing;
Transmitting terminal is sent to duration with the time difference that sends described operation information to message repeater system as the message of described message repeater system using receiving described notification message, specifically comprises:
The message of transmitting terminal using timing duration as described message repeater system is sent to duration.
6. the performance test methods to message repeater system, is characterized in that, described method comprises:
The operation information from transmitting terminal that receiving terminal receipt message repeater system forwards;
Receiving terminal returns to notification message to described transmitting terminal, according to receiving notification message and the time difference to message repeater system transmit operation message, determines that the message of described message repeater system is sent to duration by transmitting terminal;
Described transmitting terminal and described receiving terminal are arranged in Same Physical entity.
7. method as claimed in claim 6, is characterized in that, in described operation information, carries thread identification;
Receiving terminal returns to notification message to described transmitting terminal, specifically comprises:
Receiving terminal is according to the thread identification in described operation information, and the transmitting terminal corresponding to described thread identification returns to notification message.
8. the performance test methods to message repeater system, is characterized in that, described method comprises:
The operation information that message repeater system receiving end/sending end sends;
Described operation information is transmitted to receiving terminal by message repeater system, return to notification message by receiving terminal to described transmitting terminal, receive notification message and the time difference to message repeater system transmit operation message by transmitting terminal basis again, determine that the message of described message repeater system is sent to duration;
Described transmitting terminal and described receiving terminal are arranged in Same Physical entity.
9. the performance test apparatus to message repeater system, is characterized in that, described performance test apparatus comprises transmitting terminal and receiving terminal, wherein:
Described transmitting terminal, be used for to message repeater system transmit operation message, and, in the time receiving the notification message that receiving terminal returns, send to duration with the time difference that sends described operation information to message repeater system as the message of described message repeater system using receiving described notification message;
Described receiving terminal, for receipt message repeater system forward described operation information time, send described notification message to described transmitting terminal;
Described transmitting terminal and described receiving terminal are arranged in Same Physical entity.
10. performance test apparatus as claimed in claim 9, is characterized in that,
Described transmitting terminal, specifically for sending the operation information that carries thread identification to message repeater system;
Described receiving terminal, specifically for according to the thread identification in described operation information, returns to described notification message to transmitting terminal corresponding to described thread identification.
11. performance test apparatus as claimed in claim 9, is characterized in that,
Described transmitting terminal, specifically for when to message repeater system transmit operation message, record the transmitting time of described operation information, and in the time receiving the notification message that receiving terminal returns, record the time of reception of notification message, and message using the time difference of described time of reception and described transmitting time as described message repeater system is sent to duration.
12. performance test apparatus as claimed in claim 9, is characterized in that,
Described transmitting terminal, specifically for when to message repeater system transmit operation message, starts timing, in the time receiving the notification message that receiving terminal returns, stops timing, and message using timing duration as described message repeater system is sent to duration.
CN201210555274.8A 2012-12-19 2012-12-19 Message forwarding system performance test method and performance test device Pending CN103888306A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210555274.8A CN103888306A (en) 2012-12-19 2012-12-19 Message forwarding system performance test method and performance test device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210555274.8A CN103888306A (en) 2012-12-19 2012-12-19 Message forwarding system performance test method and performance test device

Publications (1)

Publication Number Publication Date
CN103888306A true CN103888306A (en) 2014-06-25

Family

ID=50957033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210555274.8A Pending CN103888306A (en) 2012-12-19 2012-12-19 Message forwarding system performance test method and performance test device

Country Status (1)

Country Link
CN (1) CN103888306A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140253386A1 (en) * 2013-03-11 2014-09-11 Qualcomm Incorporated Devices, methods, and apparatuses for computing round-trip time of a message
CN105337786A (en) * 2014-07-23 2016-02-17 华为技术有限公司 Server performance detection method, apparatus and equipment
CN105471674A (en) * 2015-11-20 2016-04-06 珠海多玩信息技术有限公司 Method and system for testing performance of server
CN105743729A (en) * 2014-12-12 2016-07-06 杭州迪普科技有限公司 Method and device for time delay calculation
CN108092848A (en) * 2017-12-06 2018-05-29 新华三技术有限公司 A kind of equipment performance detection method and device
CN108733560A (en) * 2018-04-19 2018-11-02 北京京东尚科信息技术有限公司 A kind of test method and device
CN111464384A (en) * 2020-03-30 2020-07-28 中国建设银行股份有限公司 Consistency test method and device for asynchronous messages

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5982743A (en) * 1996-02-15 1999-11-09 Nec Corporation Performance monitor system, transmission device and performance monitor method of transmission line
CN101488892A (en) * 2009-02-04 2009-07-22 北京华力创通科技股份有限公司 Method and apparatus for testing forwording time delay of equipment
CN101547063A (en) * 2009-04-30 2009-09-30 北京星网锐捷网络技术有限公司 Method and system for testing forward delay

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5982743A (en) * 1996-02-15 1999-11-09 Nec Corporation Performance monitor system, transmission device and performance monitor method of transmission line
CN101488892A (en) * 2009-02-04 2009-07-22 北京华力创通科技股份有限公司 Method and apparatus for testing forwording time delay of equipment
CN101547063A (en) * 2009-04-30 2009-09-30 北京星网锐捷网络技术有限公司 Method and system for testing forward delay

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140253386A1 (en) * 2013-03-11 2014-09-11 Qualcomm Incorporated Devices, methods, and apparatuses for computing round-trip time of a message
CN105337786A (en) * 2014-07-23 2016-02-17 华为技术有限公司 Server performance detection method, apparatus and equipment
CN105743729A (en) * 2014-12-12 2016-07-06 杭州迪普科技有限公司 Method and device for time delay calculation
CN105471674A (en) * 2015-11-20 2016-04-06 珠海多玩信息技术有限公司 Method and system for testing performance of server
CN105471674B (en) * 2015-11-20 2019-04-23 珠海多玩信息技术有限公司 The method and system of testing server performance
CN108092848A (en) * 2017-12-06 2018-05-29 新华三技术有限公司 A kind of equipment performance detection method and device
CN108733560A (en) * 2018-04-19 2018-11-02 北京京东尚科信息技术有限公司 A kind of test method and device
CN111464384A (en) * 2020-03-30 2020-07-28 中国建设银行股份有限公司 Consistency test method and device for asynchronous messages

Similar Documents

Publication Publication Date Title
CN103888306A (en) Message forwarding system performance test method and performance test device
CN104978263B (en) A kind of mobile terminal applied program testing method and system
CN102420712B (en) Testing method and equipment
US20150227449A1 (en) Method and device for developing, compiling and debugging
CN108228444B (en) Test method and device
US20090313603A1 (en) System And Method For Creating Virtual Callback Objects
KR101593984B1 (en) Method for distributed test and system for performing the same, method for controling distributed test and system for performing the same, method for making distributed test plan and apparatus for performing the same, method for executing distributed test plan and agent for distributed test
CN104679651B (en) A kind of automated testing method and execute node
CN111522727B (en) Simulation object test method, device and system
CN110380936A (en) Test method and device
CN105260082A (en) Display method for test data and development terminal
CN102612055A (en) Multi-user test method and device
US20050004787A1 (en) System and method for real time simulation
CN107395456B (en) Distributed file system direct current storage test method and platform
Herrnleben et al. An iot network emulator for analyzing the influence of varying network quality
CN103605610A (en) System and method for software testing based on Hadoop
CN101800672B (en) Equipment detection method and equipment
CN110888800A (en) Service interaction function test method, device, storage medium and test system
CN105867164A (en) Transponder system analog simulation method, device and system
CN105446867A (en) Method and apparatus for generating test data
CN117041111A (en) Vehicle cloud function test method and device, electronic equipment and storage medium
CN106776277A (en) A kind of method of striding course test, device and electronic equipment
CN103944779A (en) WAP service performance monitoring method and system
CN116074228A (en) Network card testing method and device, storage medium and electronic equipment
Asthana et al. Maareech: Usability testing tool for voice response system using xml based user models

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140625

RJ01 Rejection of invention patent application after publication