CN109743384A - A kind of method and apparatus of test session no-load speed - Google Patents

A kind of method and apparatus of test session no-load speed Download PDF

Info

Publication number
CN109743384A
CN109743384A CN201811636715.0A CN201811636715A CN109743384A CN 109743384 A CN109743384 A CN 109743384A CN 201811636715 A CN201811636715 A CN 201811636715A CN 109743384 A CN109743384 A CN 109743384A
Authority
CN
China
Prior art keywords
host
session
test
standby
synchronization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811636715.0A
Other languages
Chinese (zh)
Other versions
CN109743384B (en
Inventor
赵腾云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201811636715.0A priority Critical patent/CN109743384B/en
Publication of CN109743384A publication Critical patent/CN109743384A/en
Application granted granted Critical
Publication of CN109743384B publication Critical patent/CN109743384B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a kind of method of test session no-load speed, test machine determines test quantity, and the session establishment request of the test quantity is sent to the host, if there is failure in the session that monitoring host is established to standby host master synchronization, then determine the quantity for being less than the test quantity, the quantity determined is re-used as test quantity, the session establishment request of the test quantity redefined out is sent to host, and it monitors the session that host is established to standby host master synchronization and whether there is failure, until determining that failure is not present in the session for monitoring that host is established to standby host master synchronization, the test quantity that session establishment is requested is sent to host when the session that the master synchronization that do not fail according to standby host is established, determine the session synchronization rate of host and standby host.The quantity of session is established by gradually decreasing host, there is no failures for session synchronization between Lai Shixian host and standby host, to test out the session synchronization rate between host and standby host.

Description

A kind of method and apparatus of test session no-load speed
Technical field
This application involves field of computer technology, in particular to a kind of method and apparatus of test session no-load speed.
Background technique
To guarantee that user can normally execute business, prevent due to the failures such as delay machine to institute in customer service implementation procedure Bring influences, and server-side is by way of setting host and standby host, to safeguard the session of user and server-side foundation, host meeting By the session synchronization of foundation to standby host, to guarantee that standby host is able to maintain that user and server-side when the failures such as delay machine occurs in host Between the session established, ensure the smooth execution of customer service.
In practical applications, operation maintenance personnel needs to test the session synchronization rate between host and standby host, with root According to the session synchronization rate tested out, to determine how effectively to guarantee that the session between host and standby host is synchronous as far as possible.
Currently, the mode of the session synchronization rate between test host and standby host used by operation maintenance personnel is bidirectional traffics By single device, the i.e. mode of synchronization request and response, by the newly-built connection number of observation host and standby host and concurrently connect Whether number is consistent, to judge the net synchronization capability of host and standby host.However, this mode can not effectively test out host and standby True session synchronization rate between machine because when ductility influence, when host is by synchronous session synchronization is needed to standby host, Standby host one session list that may be the session establishment according to host synchronization, and actually a part of true session content It may not be synchronized on standby host, in this way when host and standby host switch over, the session in non-true synchronization to standby host will It will fail, interrupted so as to cause the business between certain customers and server-side.So how effectively to test out master Session synchronization rate between machine and standby host is then a urgent problem to be solved.
Summary of the invention
In view of this, the application provides a kind of method and apparatus of test session no-load speed, operation maintenance personnel is enable to have The session synchronization rate of effect tested out between host and standby host.
Specifically, the application is achieved by the following technical solution:
A kind of method of test session no-load speed, comprising:
Test machine determines test quantity;
The session establishment request that the test quantity is sent to host, so that the host is requested according to the session establishment Session is established, and by the session synchronization of foundation to standby host;
In the session that the host is established, if session of the monitoring there are the host to the standby host synchronization failure, It determines the quantity for being less than the test quantity, the quantity determined is re-used as test quantity, Xiang Suoshu host is sent again The session establishment for the test quantity determined is requested, and monitors whether the meeting there are the host to the standby host synchronization failure Words, until monitoring to be not present session of the host to the standby host synchronization failure until determining;
Session establishment request is sent to the host when not synchronizing the session that the host is established unsuccessfully according to the standby host Test quantity, determine the session synchronization rate of the host and the standby host.
A kind of device of test session no-load speed, described device include:
Quantity determination unit, for determining test quantity;
Transmission unit, for sending the session establishment request of the test quantity to host, so that the host is according to institute It states session establishment request and establishes session, and by the session synchronization of foundation to standby host;
Monitoring unit, in the session that the host is established, there are the hosts to synchronize to the standby host if monitoring The session of failure, it is determined that less than the quantity of the test quantity, the quantity determined is re-used as test quantity, Xiang Suoshu Host sends the session establishment request of the test quantity redefined out, and it is same to the standby host to monitor whether that there are the hosts The session for walking failure, until monitoring to be not present session of the host to the standby host synchronization failure until determining;
Rate determination unit, to the host when for not synchronizing the session of the host foundation unsuccessfully according to the standby host The test quantity for sending session establishment request, determines the session synchronization rate of the host and the standby host.
From the above technical solution provided by the present application as it can be seen that test machine sends session establishment request to host, host will be built For vertical session synchronization to standby host, test machine determines test quantity, and the session establishment request of the test quantity is sent to the host, In the session that the host is established, if session of the monitoring there are the host to standby host synchronization failure, it is determined that be less than the test number The quantity determined is re-used as test quantity by the quantity of amount, and the meeting of the test quantity redefined out is sent to host Words establish request, and monitor whether the session there are host to standby host synchronization failure, until determine monitor there is no host to Until the session of standby host synchronization failure, session establishment is sent to host when according to the standby host session that unsuccessfully master synchronization is established and is asked The test quantity asked determines the session synchronization rate of host and standby host.The quantity of session is established by gradually decreasing host, is come real There is no failures for session synchronization between existing host and standby host, to test out the session synchronization rate between host and standby host.
Detailed description of the invention
Fig. 1 is the flow diagram of the test session no-load speed shown in the application;
Fig. 2 is a kind of configuration diagram of test macro shown in the application;
Fig. 3 is a kind of schematic diagram of the device of test session no-load speed shown in the application.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application. It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
Fig. 1 is the flow diagram of the test session no-load speed shown in the application, specifically includes the following steps:
S101: test machine determines test quantity.
S102: the session establishment request of the test quantity is sent to host, so that the host is built according to the session Session is established in vertical request, and by the session synchronization of foundation to standby host.
It in the embodiment of the present application, include test machine, host and standby host in entire test macro, wherein test machine is main For simulant-client and server-side, that is, the test machine can send session establishment request to host, so that host is according to reception To session establishment request conversate foundation, and host then can be by the session synchronization of foundation to standby host.Having built up meeting On the basis of words, test machine can also send message to host or standby host, and detailed process is as shown in Figure 2.
Fig. 2 is a kind of configuration diagram of test macro shown in the application.
In Fig. 2, test machine can send session establishment request to host by routing, so that host is according to receiving Session establishment request, conversate foundation, and host can be by the link between standby host, by the session synchronization of foundation to standby Machine.In addition to this, test machine can also send message to host or standby host, specifically, in the test macro shown in Fig. 2 Both links up and down be equipped with Virtual Router Redundacy Protocol (Virtual Router Redundancy Protocol, VRRP), by the access order priority being arranged in the VRRP, the report after test machine sends session establishment to host may be implemented Text, or message is sent to standby host, that is, when the access order priority being arranged in the basis above VRRP of link, determine host Access privileges when being higher than standby host, test machine will send message to host, and ought be arranged in the VRRP according to following link Access order priority, when determining that the access privileges of standby host is higher than host, test machine will send message to standby host.
When test machine tests the session synchronization rate between host and standby host, a certain number of sessions can be sent to host Establish request.Test machine can determine test quantity, and to host send the test quantity session establishment request, it is subsequent can Based on the test quantity, the session synchronization rate between host and standby host is tested.
Wherein, test machine can be by constantly sending session establishment request to host, to determine that the host can be built The maximum quantity of vertical session, and the quantity for the session establishment request that the maximum quantity is sent as starting to host, that is, this is most Big quantity is to test quantity.
Specifically, test machine constantly sends session establishment request to host, and test machine is received to host and sends data Interface monitored, when listen to start to occur the case where data packetloss when, then will can start to occur survey when data packetloss The quantity that the session establishment that test-run a machine has been sent to host is requested, which is determined as the host, can establish the maximum quantity of session.
Certainly, in practical applications, respective device parameter is all preserved in host or standby host, test machine can pass through These device parameters, to determine that host can establish the maximum quantity of session, and then using the maximum quantity determined as survey Quantity is tried, the session establishment request of the test quantity is sent to host.
S103: in the session that the host is established, if meeting of the monitoring there are the host to the standby host synchronization failure Words, it is determined that less than the quantity of the test quantity, the quantity determined is re-used as test quantity, Xiang Suoshu host is sent The session establishment of the test quantity redefined out is requested, and monitors whether that there are the hosts to the standby host synchronization failure Session, until monitoring to be not present session of the host to the standby host synchronization failure until determining.
In the embodiment of the present application, test machine gradually can send session establishment request to host, correspondingly, host is by root The session establishment sent according to test machine requests the foundation that conversates, while by the session synchronization of foundation to standby host.Test machine can be with By the VRRP being arranged in upper and lower both links, realizes and send session establishment request to host, and send message to standby host, with this To test out the session synchronization rate between host and standby host.
Specifically, test machine is in quantity (the i.e. above-mentioned test number for determining that the session establishment sent to host is needed to request Amount) after, the session establishment of these quantity can be requested gradually to be sent to host according to certain batch.For example, it is assumed that test Machine determines that the quantity for the session establishment request for needing to send to host is 100,000 (these 100,000 be test quantity), then test machine can In a manner of according to per second 10,000, the request of these session establishments is sent to host in batches.Host also will establish session by batch, And in the process, by the session synchronization of foundation to standby host.
At the same time, test machine can send message to standby host by another link, wherein host and standby host it Between there is no session synchronization failure in the case where, standby host can be by the session of host synchronization, to the report received from test machine Text is parsed and is responded.But if the case where there are session synchronization failures between host and standby host, the meeting established in host Words are not present in standby host, and standby host is caused to receive message transmitted by the established session of test machine Intrusion Detection based on host When, which can not be parsed, so that the message be abandoned, test machine also will be unable to reception standby host and receive this The response returned after message.
Based on this, test machine can be sent session establishment request to host respectively and be sent to standby host by both links The message of the established session of Intrusion Detection based on host, wherein the data flow of this both links can by VRRP mentioned above come It is controlled.For example, the access order priority in the VRRP for passing through control uplink, realizes that test machine sends session to host Request is established, and by the access order priority in the VRRP of link under controlling, realize that test machine sends message to standby host.Its In, while session establishment request can be sent to host, established for host according to the session establishment request received Each session sends the message based on the session to standby host, certainly, it is contemplated that the when ductility in data transmission procedure, test machine Can also be after setting time, then send to standby host the message for the session that Intrusion Detection based on host has built up.
Test machine to host send session establishment request, and to standby host send message during, if monitoring deposit In session of the host to standby host synchronization failure, then the quantity less than above-mentioned test quantity, and the number that will be determined can be determined Amount is re-used as test quantity, and the session establishment request of the test quantity redefined out is sent to host.
If the session synchronization between host and standby host has failure, then certainly will exist in the session being had built up in host Partial session is that do not have in standby host, and for this partial session not having in standby host, if standby host receives test machine The message based on this partial session sent then will be unable to carry out NAT reduction to these messages, so as to cause these reports are abandoned Text, test machine also will be unable to the response for receiving standby host about these messages.
Wherein, mentioned herein the progress NAT reduction of these messages to be referred to, due to having lacked a part of meeting in standby host Words, so, after standby host receives message, NAT reduction can be carried out to message, to parse the source IP or source of the message Mouthful.But if not being present in standby host with session belonging to the message, then can not find with the source IP of the message or It is the session that source port matches.For this message, standby host will abandon it.
Monitor there are session from host to standby host synchronization failure when, then can will monitor that host synchronizes master to standby host The quantity that the session establishment that test machine has been sent to host when the session that machine is established fails is requested is determined, and will be determined Quantity out is re-used as test quantity, and the session establishment request of the test quantity redefined out is sent to host.
It requests for example, it is assumed that test machine sends session establishment to host according to per second 10,000 frequency, is led when monitoring to exist Session from machine to standby host synchronization failure when, to host had sent 50,000 session establishment request, then next round can be to host Sum is gradually sent to request for 50,000 session establishment, and so on, until there is no host is same to standby host for discovery in a certain wheel The session of failure is walked, then there is no the session establishment requests that in this wheel of failure, test machine is sent to host by session synchronization Test quantity be determined, and then according to the test quantity, determine the session synchronization rate of host and standby host.
It should be noted that in the embodiment of the present application, it is every for test machine to take turns the test quantity determined, if the survey It is smaller to try quantity, then the test machine by the request of the session establishment of the test quantity by it is wholesale give host when, every batch of is sent out to host The quantity for the session establishment request sent is also smaller.For example, it is assumed that it is 100,000 (i.e. first that the test machine first round, which sends sum to host, Take turns the test quantity determined) session establishment request, then in the first round, test machine can send 10,000 to host with every batch of Session establishment request, until distributing 100,000 session establishment request.Wherein, if monitoring to add up to 50,000 in transmission Session establishment request when, monitor the session there are host to standby host synchronization failure, then second wheel can by 50,000 as test Quantity sends sum to host and requests for 50,000 session establishment, correspondingly, the second wheel test machine can be sent with every batch of to host 5000 session establishment request.That is, constantly becoming smaller with test quantity, each round is asked to the wholesale session establishment sent of host list The quantity asked will also become smaller.
Certainly, the session establishment request that test machine is not necessarily to the test quantity that will be determined all is sent to host, Once monitoring that host failure occurs to the session that standby host master synchronization is established, then the remaining session establishment request not sent It can no longer be sent to host, the quantity directly requested according to the session establishment sent to host opens next round session Establish the transmission of request.
S104: session establishment is sent to the host when not synchronizing the session that the host is established unsuccessfully according to the standby host The test quantity of request determines the session synchronization rate of the host and the standby host.
Determining session that host is established to standby host master synchronization, there is no the meetings that when failure, test machine is sent to host Words establish the test quantity of request, can determine that the session of host and standby host is same according to the test quantity and unit time Leg speed rate.
For example, it is assumed that test machine determines that the first round gradually sends sum to host and requests for 100,000 session establishment, work as hair When being sent to the request of 50,000 session establishments, monitor that host failure occurs to the session that standby host master synchronization is established, then it can be by 50,000 It is re-used as test quantity, opens the second wheel test.In the second wheel test process, test machine sends 49000 meetings to host When words establish request, monitors that host failure occurs to the session that standby host master synchronization is established, then can make 49000 again To test quantity, third round test is initiated.In third round test process, test machine sends 48500 session establishments to host It when request, monitors that host failure occurs to the session that standby host master synchronization is established, then can be re-used as test for 48500 Quantity initiates fourth round test.In fourth round test process, test machine discovery all sends out 48500 session establishment requests After giving host, do not have to monitor the case where host fails to the session that standby host master synchronization is established, then it can root According to the quantity: 48500 and unit time determine the session synchronization rate between host and standby host.
As can be seen that the quantity of session can be established by gradually decreasing host in from the above, Lai Shixian host and The case where failing is not present in session synchronization between standby host, to test out the session synchronization speed between host and standby host Rate.
In other words, it by constantly reducing the quantity for the session establishment request that test machine is sent to host, determines when survey When test-run a machine sends the request of how many session establishments to host, the session synchronization between host and standby host is not in failure, Jin Ergen Quantity and unit time according to session establishment request, obtain the session synchronization rate between host and standby host.
It should be noted that the session synchronization rate between the host and standby host determined by the above method, and it is different It surely is the true session synchronization rate between host and standby host, the session synchronization rate between host and standby host determined is in fact It is a value close to true session synchronization rate.With the increase of number of rounds of tests, the session synchronization rate obtained will be gradually It approaches, or even obtains the true session synchronization rate between host and standby host.
In the embodiment of the present application, test machine can monitor the session synchronization interface being arranged on host, if passing through The session synchronization interface monitor then additionally can star at least one link to host to there are packet losses when standby host simultaneous session, In a manner of by increasing link, bandwidth when host conversates synchronous to standby host is improved.
Specifically, in above-mentioned test macro, several links are equipped between host and standby host, for host and standby host into Row session synchronization, in normal condition, host only pass through with standby host a link conversate it is synchronous, and if test machine passes through meeting Words sync cap monitors host to there are packet losses when standby host simultaneous session, then can additionally start other at least one chains Road, to improve the data transfer bandwidth between host and standby host.
The purpose of this measure is, determines that the main effect of the session synchronization rate between host and standby host is to check time delay Factor can cause great influence to the session synchronization between host and standby host, so, in order to accurately test out when Under the influence of prolonging factor, session synchronization rate between host and standby host, need to reduce as far as possible in addition to time delay other because Asynchronous brought influence of the element to session between host and standby host.Therefore, pass through number between above-mentioned increase host and standby host According to the mode of transmission bandwidth, the session synchronization rate band gone out due to the limitation of hardware bandwidth to final test can be effectively reduced The adverse effect come.
It should be noted that being to monitor by way of to message progress NAT reduction is received in addition to above explained No there are hosts to outside the session of standby host synchronization failure, can also be monitored in other way.For example, standby host is connecing It after the message for receiving test machine transmission, can inquire with the presence or absence of the session to match with the message, if not having, then judgement should The type of message, if determining that the message belongs to non-syn message, then direct dropping packets, in this way, test machine will not receive yet Standby host is directed to the response that the non-syn message is returned.
For another example standby host, after the message for receiving test machine transmission, can inquire whether there is matches with the message Session, if not having, then can with queried access control list (Access Control List, ACL), determine that the message is It is no to have preset security access conditions, however, it is determined that not have the security access conditions, then abandon the message, correspondingly, test Machine will not receive standby host yet and be directed to the response that the message is returned.
Fig. 3 is a kind of schematic diagram of the device of test session no-load speed shown in the application, which includes: that quantity is true Order member 310, transmission unit 320, monitoring unit 330, rate determination unit 340.
Wherein, quantity determination unit 310, for determining test quantity;Transmission unit 320, described in being sent to host The session establishment request of quantity is tested, so that the host establishes session according to session establishment request, and by the meeting of foundation Words are synchronized to standby host;Monitoring unit 330, in the session that the host is established, if there are the hosts to described for monitoring The session of standby host synchronization failure, it is determined that less than the quantity of the test quantity, the quantity determined is re-used as test number Amount, Xiang Suoshu host send the session establishment of test quantity redefined out and request, and monitor whether there are the host to The session of the standby host synchronization failure, until determining that monitoring that there is no the hosts to the session of the standby host synchronization failure is Only;Rate determination unit 340 is sent out when for not synchronizing the session of the host foundation unsuccessfully according to the standby host to the host The test quantity for sending session establishment to request, determines the session synchronization rate of the host and the standby host.
In the present embodiment, the quantity determination unit 310 can establish session most specifically for the determination host Big quantity;Using the maximum quantity as test quantity.
In the present embodiment, the monitoring unit 330 is specifically used for being requested for the host according to the session establishment The each session established sends message to the standby host based on the session;If monitoring, the standby host can not be to the test machine The message of transmission carries out network address translation NAT reduction, it is determined that the session there are the host to the standby host synchronization failure.
In the present embodiment, the transmission unit 320, specifically for sending session establishment to request by wholesale to the host, Until the session establishment request that sum is the test quantity is sent to the host;
The monitoring unit 330, specifically for for test quantity determining every time, in the host by the test quantity Session synchronization to during the standby host, will monitor the session there are the host to the standby host synchronization failure for the first time Shi Suoshu test machine sends the quantity that session establishment is requested to the host, is determined as the quantity less than the test quantity.
In the present embodiment, for each test quantity determined, if the test quantity is smaller, described device is by the survey The session establishment request of examination quantity by it is wholesale give the host when, number that session establishment that every batch of is sent to the host is requested It measures also smaller.
In the present embodiment, there are several links between host and standby host, the link synchronizes meeting to standby host for host Words;
The transmission unit 320, if specifically for by the session synchronization interface monitor of the host to the host to There are packet losses when the standby host simultaneous session, then additionally start at least one link between the host and the standby host.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize application scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.

Claims (12)

1. a kind of method of test session no-load speed characterized by comprising
Test machine determines test quantity;
The session establishment request that the test quantity is sent to host, so that the host requests to establish according to the session establishment Session, and by the session synchronization of foundation to standby host;
In the session that the host is established, if session of the monitoring there are the host to the standby host synchronization failure, it is determined that Less than the quantity of the test quantity, the quantity determined is re-used as test quantity, the transmission of Xiang Suoshu host redefines The session establishment of test quantity out is requested, and monitors whether the session there are the host to the standby host synchronization failure, directly To determine monitor there is no session from the host to the standby host synchronization failure until;
The survey that session establishment is requested is sent to the host when not synchronizing the session that the host is established unsuccessfully according to the standby host Quantity is tried, determines the session synchronization rate of the host and the standby host.
2. being specifically included the method according to claim 1, wherein test machine determines test quantity:
The test machine determines that the host can establish the maximum quantity of session;
Using the maximum quantity as test quantity.
3. the method according to claim 1, wherein there are the hosts to the standby host synchronization failure for monitoring Session specifically includes:
Each session that the test machine is established for the host according to session establishment request, based on the session to described Standby host sends message;
If monitoring, the standby host can not carry out network address translation NAT reduction to the message that the test machine is sent, it is determined that Session there are from the host to the standby host synchronization failure.
4. the method according to claim 1, wherein being asked to the session establishment that host sends the test quantity It asks, specifically includes:
It send session establishment to request by wholesale to the host, requests to send until by the session establishment that sum is the test quantity To the host;
It determines the quantity for being less than the test quantity, specifically includes:
For test quantity determining every time, the session synchronization of the test quantity is given to the process of the standby host in the host In, by monitor for the first time there are session from the host to the standby host synchronization failure when test machine sent out to the host The quantity for sending session establishment to request is determined as the quantity less than the test quantity.
5. according to the method described in claim 4, it is characterized in that, for each test quantity determined, if the test number Measure it is smaller, then the test machine by the request of the session establishment of the test quantity by it is wholesale give the host when, every batch of is to described The quantity for the session establishment request that host is sent is also smaller.
6. the method according to claim 1, wherein there are several links, the links between host and standby host For host to standby host simultaneous session;
The method also includes:
If by the session synchronization interface monitor of the host to the host to when the standby host simultaneous session there are packet loss, Additionally start at least one link between the host and the standby host.
7. a kind of device of test session no-load speed, which is characterized in that described device includes:
Quantity determination unit, for determining test quantity;
Transmission unit, for sending the session establishment request of the test quantity to host, so that the host is according to the meeting Words establish request and establish session, and by the session synchronization of foundation to standby host;
Monitoring unit, in the session that the host is established, if there are the hosts to the standby host synchronization failure for monitoring Session, it is determined that less than it is described test quantity quantity, the quantity determined is re-used as test quantity, Xiang Suoshu host The session establishment request of the test quantity redefined out is sent, and monitors whether that there are the hosts and is lost to the standby host is synchronous The session lost, until monitoring to be not present session of the host to the standby host synchronization failure until determining;
Rate determination unit is sent when for not synchronizing the session of the host foundation unsuccessfully according to the standby host to the host The test quantity of session establishment request, determines the session synchronization rate of the host and the standby host.
8. device according to claim 7 characterized by comprising
The quantity determination unit is specifically used for:
Determine that the host can establish the maximum quantity of session;Using the maximum quantity as test quantity.
9. device according to claim 7 characterized by comprising
The monitoring unit is specifically used for:
Each session that described device is established for the host according to session establishment request, based on the session to described standby Machine sends message;If monitoring, the standby host can not carry out network address translation NAT reduction to the message that the test machine is sent, Then determine the session there are the host to the standby host synchronization failure.
10. device according to claim 7 characterized by comprising
The transmission unit is specifically used for:
It send session establishment to request by wholesale to the host, requests to send until by the session establishment that sum is the test quantity To the host;
The monitoring unit is specifically used for:
For test quantity determining every time, the session synchronization of the test quantity is given to the process of the standby host in the host In, by monitor for the first time there are session from the host to the standby host synchronization failure when test machine sent out to the host The quantity for sending session establishment to request is determined as the quantity less than the test quantity.
11. device according to claim 10 characterized by comprising
For each test quantity determined, if the test quantity is smaller, described device builds the session of the test quantity Vertical request by it is wholesale give the host when, the quantity that the session establishment that every batch of is sent to the host is requested is also smaller.
12. device according to claim 7, which is characterized in that there are several links, the links between host and standby host For host to standby host simultaneous session, comprising:
The transmission unit is specifically used for:
If by the session synchronization interface monitor of the host to the host to when the standby host simultaneous session there are packet loss, Additionally start at least one link between the host and the standby host.
CN201811636715.0A 2018-12-29 2018-12-29 Method and device for testing session synchronization rate Active CN109743384B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811636715.0A CN109743384B (en) 2018-12-29 2018-12-29 Method and device for testing session synchronization rate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811636715.0A CN109743384B (en) 2018-12-29 2018-12-29 Method and device for testing session synchronization rate

Publications (2)

Publication Number Publication Date
CN109743384A true CN109743384A (en) 2019-05-10
CN109743384B CN109743384B (en) 2021-06-29

Family

ID=66362354

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811636715.0A Active CN109743384B (en) 2018-12-29 2018-12-29 Method and device for testing session synchronization rate

Country Status (1)

Country Link
CN (1) CN109743384B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1921369A (en) * 2006-08-08 2007-02-28 华为技术有限公司 Adapting method for network connection
US20070136420A1 (en) * 2005-12-08 2007-06-14 International Business Machines Corporation Visual channel refresh rate control for composite services delivery
CN101202719A (en) * 2006-12-15 2008-06-18 鸿富锦精密工业(深圳)有限公司 Network device and communication redundancy method thereof
CN101815005A (en) * 2009-02-19 2010-08-25 凹凸电子(武汉)有限公司 The network equipment, system and network management
CN102238036A (en) * 2011-07-15 2011-11-09 苏州阔地网络科技有限公司 User session backup handover method and system
CN105827623A (en) * 2016-04-26 2016-08-03 山石网科通信技术有限公司 Data center system
CN106169999A (en) * 2016-07-27 2016-11-30 杭州迪普科技有限公司 The method and device of session backup
CN107749873A (en) * 2017-10-10 2018-03-02 杭州迪普科技股份有限公司 The session backup method and device of a kind of multichannel agreement
CN108023968A (en) * 2017-12-21 2018-05-11 东软集团股份有限公司 A kind of session information synchronous method, device and equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070136420A1 (en) * 2005-12-08 2007-06-14 International Business Machines Corporation Visual channel refresh rate control for composite services delivery
CN1921369A (en) * 2006-08-08 2007-02-28 华为技术有限公司 Adapting method for network connection
CN101202719A (en) * 2006-12-15 2008-06-18 鸿富锦精密工业(深圳)有限公司 Network device and communication redundancy method thereof
CN101815005A (en) * 2009-02-19 2010-08-25 凹凸电子(武汉)有限公司 The network equipment, system and network management
CN102238036A (en) * 2011-07-15 2011-11-09 苏州阔地网络科技有限公司 User session backup handover method and system
CN105827623A (en) * 2016-04-26 2016-08-03 山石网科通信技术有限公司 Data center system
CN106169999A (en) * 2016-07-27 2016-11-30 杭州迪普科技有限公司 The method and device of session backup
CN107749873A (en) * 2017-10-10 2018-03-02 杭州迪普科技股份有限公司 The session backup method and device of a kind of multichannel agreement
CN108023968A (en) * 2017-12-21 2018-05-11 东软集团股份有限公司 A kind of session information synchronous method, device and equipment

Also Published As

Publication number Publication date
CN109743384B (en) 2021-06-29

Similar Documents

Publication Publication Date Title
US7159234B1 (en) System and method for streaming media server single frame failover
US7460527B2 (en) Port aggregation for fibre channel interfaces
US9448914B2 (en) Method and system for implementing remote debugging
CN103117876B (en) The synchronous method and device of user state information
US8427943B2 (en) Bandwidth-aware multicast load balancing on a multi-interface host
CN102164116B (en) Method, system and corresponding device for balancing load
CN101035037B (en) Method, system and related device for detecting the network communication quality
CN103973728B (en) The method and device of load balancing under a kind of multiple data centers environment
TWI426752B (en) Routing selection method and system of multi-wan interfaces and network device employing the same
US20090232152A1 (en) Method and apparatus for aggregating ports
EP2787742B1 (en) Method and system for transmitting network video
KR101408037B1 (en) Virtual Machine Integration Monitoring Apparatus and method for Cloud system
EP2426827A1 (en) Method and network system for implementing user port orientation in multi-machine backup scenario of broadband remote access server
CN103595553A (en) Automatic setup of reflector instances
CN104270291A (en) Content delivery network (CDN) quality monitoring method
CN105071989A (en) Video content distribution quality monitoring system and monitoring method therefor
CN106982244B (en) Method and device for realizing message mirroring of dynamic flow under cloud network environment
CN112311896B (en) Health examination method, device, equipment and computer readable storage medium
CN114422201B (en) Network target range large-scale user remote access method and system
CN103401954B (en) The implementation method of virtual DHCP
CN106534216B (en) Server deployment system
CN104780121A (en) Message transmitting method and device
CN101340339A (en) Wideband access server cluster system and apparatus
KR20200072941A (en) Method and apparatus for handling VRRP(Virtual Router Redundancy Protocol)-based network failure using real-time fault detection
CN109743384A (en) A kind of method and apparatus of test session no-load speed

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant