CN102316038A - Method for determining hot backup main /standby switching time, apparatus and system thereof - Google Patents

Method for determining hot backup main /standby switching time, apparatus and system thereof Download PDF

Info

Publication number
CN102316038A
CN102316038A CN201110267369A CN201110267369A CN102316038A CN 102316038 A CN102316038 A CN 102316038A CN 201110267369 A CN201110267369 A CN 201110267369A CN 201110267369 A CN201110267369 A CN 201110267369A CN 102316038 A CN102316038 A CN 102316038A
Authority
CN
China
Prior art keywords
communicator
message
tested
message amount
switching time
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
CN201110267369A
Other languages
Chinese (zh)
Other versions
CN102316038B (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.)
Fujian Star Net Communication Co Ltd
Original Assignee
Fujian Star Net Communication 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 Fujian Star Net Communication Co Ltd filed Critical Fujian Star Net Communication Co Ltd
Priority to CN201110267369.5A priority Critical patent/CN102316038B/en
Publication of CN102316038A publication Critical patent/CN102316038A/en
Application granted granted Critical
Publication of CN102316038B publication Critical patent/CN102316038B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method for determining hot backup main /standby switching time, an apparatus and a system thereof. The method is characterized by: during a process of determining hot backup main /standby switching time, needing to acquire a message quantity needed to send to a communication apparatus to be tested and the message quantity received from the communication apparatus to be tested; needing to acquire the message quantity in a buffer memory which corresponds to a specified interface of the communication apparatus to be tested; combining the acquired message quantity in the buffer memory which corresponds to the specified interface of the communication apparatus to be tested so as to determine hot backup main /standby switching time of the communication apparatus to be tested. Compared to the current method for determining the hot backup main /standby switching time, influence of a cache ability of burst flow of the interface of the communication apparatus to be tested on determining the switching time is considered. Accuracy of the determined switching time can be raised.

Description

Confirm the Hot Spare masterslave switchover methods, devices and systems of switching time
Technical field
The present invention relates to the communications field, relate in particular to a kind of definite Hot Spare masterslave switchover methods, devices and systems of switching time.
Background technology
At present, because router has vital status in network topology, so the stability of router and reliability become a problem of needing solution badly.For stability and the reliability of safeguarding router; Improve the rigid indexs such as performance parameter of router components and parts except needs; More need reduce number of times and duration that router breaks down, wherein the duration of fault is meant from fault and occurs to the needed time of fault recovery.
On the router that two management boards are installed; Management board as current normal use is called " main management plate ", and another piece is as subsequent use management board; Be used for when the main management plate breaks down or initiatively require to switch, taking over the work of main management plate, be called " from management board ".When utilizing the management board redundant fashion to improve the routers exchange capacity, managerial redundancy is provided also, has improved the stability of router, reduced the duration that router breaks down.In the router running, if unusual cisco unity malfunction appears in the main management plate, router will switch to from management board work automatically fast, does not lose user's corresponding configuration, thereby guarantees that network can normally move.
Switching to from management board from the main management plate has following dual mode:
Mode one, cold standby.Only when the main management plate loses efficacy, took over the work of main management plate from management board, and in taking over job, need communicator to restart, this will cause the service disconnection of a few minutes; After taking over communicator, need relearn and announce the variety of protocol in the communicator from management board.Therefore, though with respect to single tube reason board communications device, cold standby has reduced the time that communicator goes wrong and causes network to interrupt, and the cold standby technology causes time of service interruption longer.
Mode two, Hot Spare.Hot Spare has two crucial treatment mechanisms: data backup and management board switch.Wherein data backup is in order to guarantee when management board switches, and is consistent with the main management board status from the management board state; And management board to switch be in order to let when management board is taken over equipment and the ply-yarn drill state consistency.All configurations, agreement and the running status moved on the main management plate are synchronized to from management board in real time in batches, and two management boards entering heat is equipped with state after accomplishing synchronously.After the main management plate breaks down, can take over the work of main management plate rapidly from management board, do not need communicator to restart.In the master and slave management board handoff procedure, normal operation before variety of protocol, state are kept and switched need not recomputated.Therefore, in the process that master and slave management board switches, only in of short duration switching time, occur variety of protocol message handling interrupt; And to a data circulation interruption; With the cold standby compared with techniques, shortened service outage duration greatly, reach the purpose of fault to user transparent.
Utilizing the Hot Spare technology to carry out master and slave management board when switching, for router, reducing trouble duration just needs to reduce the switching time that the master and slave management board of router Hot Spare switches (hereinafter to be referred as masterslave switchover).In order to reduce the switching time of router Hot Spare masterslave switchover, at first need test out the switching time that router Hot Spare masterslave switchover needs.
Existing confirm that the method for Hot Spare masterslave switchover switching time mainly is to rely on tester; The tester transmitting terminal sends message (being that per second sends V message) with speed V (transmission rate of tester) at the uniform velocity; In the message process that the acceptance test appearance sends; Communicator carries out the Hot Spare masterslave switchover, waits the transmission that stops tester after the masterslave switchover success of communicator, notes the number M and the message number N that receives from this communicator of sending message to communicator; Calculate this communicator Hot Spare masterslave switchover switching time through computing formula (M-N)/V, test topology is as shown in Figure 1.
In order to deal with the burst flow in the communicator, can be in the buffer memory ability of the corresponding burst flow of interface setting of communicator.When carrying out the active and standby switching of Hot Spare, can not send though got into the message of communicator, can be kept in the buffer memory; Behind handover success; Message in the buffer memory can send with the message of new entering communicator; The message that wherein newly gets into communicator sends according to the transmission rate of tester; And the message in the buffer memory can send with very large speed, and the transmission rate sum that newly gets into message in transmission rate and the buffer memory of message of communicator is no more than the maximum rate that communicator can bear.
1) when the tester transmission rate was smaller, possible buffer memory was not also filled, and had just accomplished active and standby switching.Because the tester transmission rate is smaller; Message in the buffer memory can send with the message that switches back entering communicator; Therefore do not have packet loss, according to existing method of testing (M-N)/V, because tester is identical with the value of the message number N that receives from this communicator to the number M that communicator sends message; Can draw active and standby switching time is 0, but in fact exists switching time.
2) when the tester transmission rate more greatly but surpasses the maximum rate that communicator can bear; Then when active and standby switching, a large amount of messages get in the buffer memory, maybe be in active and standby switching still imperfect tense; Buffer memory is filled, and will cause in active and standby handoff procedure, message dropping occurring this moment.Behind handover success, the message in the buffer memory can send with the message that switches back entering communicator.
As shown in Figure 2, it is 6V that tester sends the message number, and receiving the message number is 4V, and it is 2s that existing method of testing tests out switching time.We can find out but from figure; In fact some is the message of the preservation in the buffer memory in the active and standby handoff procedure in the message that tester receives; Message in the buffer memory is to send the time of therefore determining greater than existing method actual switching time together with the message that switches the new entering in back communicator.
3) when tester transmission rate V be communicator can bear maximum rate the time, when active and standby switching, message gets in the buffer memory.Behind handover success, be the maximum rate that communicator can bear owing to switch the transmission rate that the back gets into the message of communicator, so the data in the buffer memory can't send,, just can send transmit leg after stopping.As shown in Figure 3; It is 6V that tester sends the message number; Receiving the message number is 4V; And also some is the message of the preservation in the buffer memory in the active and standby handoff procedure in the message that in fact tester receives, and the message in the buffer memory is after the new message transmission that gets into communicator finishes after the switching, to send.Therefore real switching time is also greater than 2s.
Therefore, present definite communicator Hot Spare masterslave switchover method switching time accuracy is lower, needs a kind of method that can improve the Hot Spare masterslave switchover accuracy of determining switching time.
Summary of the invention
The embodiment of the invention provides a kind of definite Hot Spare masterslave switchover methods, devices and systems of switching time, is used to improve the accuracy of Hot Spare masterslave switchover switching time of determining.
The method of a kind of definite Hot Spare masterslave switchover switching time, this method comprises:
Send message to set speed to communicator to be tested, said setting speed is not more than the maximum rate that this communicator to be tested can bear, and receives message from said communicator to be tested;
Send in the process of message to said communicator to be tested, said communicator to be tested is carried out masterslave switchover;
After masterslave switchover is accomplished; Stop to send message to said communicator to be tested, and obtain the message amount of buffer memory in the said communicator specified interface corresponding cache to be tested, the message amount of sending to said communicator to be tested and the message amount that receives from said communicator to be tested;
According to the message amount of the buffer memory that obtains, the message amount of transmission, the message amount that receives and said setting speed, confirm the Hot Spare masterslave switchover switching time of said communicator to be tested.
The device of a kind of definite Hot Spare masterslave switchover switching time, this device comprises:
Transmitting element is used for sending message to set speed to communicator to be tested, and said setting speed is not more than the maximum rate that this communicator to be tested can bear;
Receiving element is used for receiving message from said communicator to be tested;
The masterslave switchover trigger element is used for the process to said communicator transmission message to be tested, and said communicator to be tested is carried out masterslave switchover, and after masterslave switchover was accomplished, the indication transmitting element stopped to send message to said communicator to be tested;
Information acquisition unit is used for obtaining the message amount of said communicator specified interface corresponding cache buffer memory to be tested, the message amount of sending to said communicator to be tested and the message amount that receives from said communicator to be tested;
Confirm the unit switching time, be used for message amount, the message amount of transmission, the message amount that receives and said setting speed, confirm the Hot Spare masterslave switchover switching time of said communicator to be tested according to the buffer memory that obtains.
A kind of tester comprises the said definite Hot Spare masterslave switchover device of switching time.
A kind of communicator, this communicator comprises:
Receiving element is used to receive message;
The masterslave switchover unit is used for the process at receiving element reception message, carries out masterslave switchover;
Counting unit is used for receiving at receiving element the process of message, confirms the message amount of buffer memory in the specified interface corresponding cache of said communicator;
Transmitting element is used to send the message amount of the buffer memory that message that receiving element receives and said counting unit determines.
The system of a kind of definite Hot Spare masterslave switchover switching time, this system comprises tester and communicator, wherein:
Tester is used for sending message to set speed to said communicator, and said setting speed is not more than the maximum rate that said communicator can bear; Send in the process of message to said communicator, said communicator is carried out masterslave switchover; After masterslave switchover is accomplished; Stop to send message to said communicator, and obtain the message amount of buffer memory in the said communicator specified interface corresponding cache, the message amount of sending to said communicator and the message amount that receives from said communicator; According to the message amount of the buffer memory that obtains, the message amount of transmission, the message amount that receives and said setting speed, confirm the Hot Spare masterslave switchover switching time of said communicator;
Communicator; Be used to receive the message that said tester sends; In the process that receives message; Carry out masterslave switchover, and confirm to receive the message amount of buffer memory in the specified interface corresponding cache of communicator described in the process of message, and send the message amount of message that receives and the buffer memory of determining to said tester.
According to scheme provided by the invention; In confirming the Hot Spare masterslave switchover process of switching time; Not only need obtain message amount of sending and the message amount that receives from said communicator to be tested to communicator to be tested; Also need obtain the message amount in the said communicator specified interface corresponding cache to be tested, and the message amount in the communicator specified interface corresponding cache said to be tested that combines to obtain is confirmed the Hot Spare masterslave switchover switching time of said communicator to be tested.With respect to the existing definite Hot Spare masterslave switchover method of switching time, the buffer memory ability of burst flow of having considered communicator interface to be tested has improved the accuracy of the switching time of determining to the influence of switching time of determining.
Description of drawings
Fig. 1 is a test topology sketch map of the prior art;
Fig. 2 is the sketch map that tester receives message in the prior art;
Fig. 3 is the sketch map that tester receives message in the prior art;
The flow chart of steps of the method for Fig. 4 provides for the embodiment of the invention one a kind of definite Hot Spare masterslave switchover switching time;
The structural representation of the device of Fig. 5 provides for the embodiment of the invention two a kind of definite Hot Spare masterslave switchover switching time;
The structural representation of the communicator that Fig. 6 provides for the embodiment of the invention three;
The structural representation of the system of Fig. 7 provides for the embodiment of the invention four a kind of definite Hot Spare masterslave switchover switching time.
Embodiment
Method to confirming at present Hot Spare masterslave switchover switching time be (transmission message number-reception message number)/transmission rate; Do not consider the buffer memory ability of the burst flow of equipment interface; Some is in the masterslave switchover process, to be kept at buffer memory promptly not have to consider the message receive; And after masterslave switchover is accomplished, receive; Make to send message number and the difference that receives the message number less than in fact because the packet loss that masterslave switchover causes, thereby Hot Spare masterslave switchover accuracy switching time that causes determining is lower, in the scheme that the embodiment of the invention provides; The buffer memory ability of the burst flow of bonding apparatus interface is confirmed Hot Spare masterslave switchover switching time, thereby improves the accuracy of Hot Spare masterslave switchover switching time of determining.
The present invention program is described with each embodiment below in conjunction with Figure of description.
Embodiment one,
The embodiment of the invention one provides a kind of definite Hot Spare masterslave switchover method of switching time, and the steps flow chart of this method is as shown in Figure 4, may further comprise the steps:
Step 101, send message, and receive message from said communicator to be tested to communicator to be tested.
This step comprises: send message to set speed to communicator to be tested, and more excellent, can send message to communicator to be tested evenly to set speed, and receive message from said communicator to be tested.
When the speed of sending message excessive; During the maximum rate that promptly can bear greater than this communicator to be tested,, also there has been packet loss even without carrying out masterslave switchover; And because the scheme that provides of the embodiment of the invention is to confirm masterslave switchover switching time through the quantity of packet loss in the masterslave switchover process in essence; Therefore, for fear of the packet loss that non-masterslave switchover causes, said setting speed can be restricted to: be not more than the maximum rate that this communicator to be tested can bear.
Step 102, said communicator to be tested is carried out masterslave switchover.
This step comprises: send in the process of message to said communicator to be tested, said communicator to be tested is carried out masterslave switchover.
Step 103, confirm buffer memory message number, send the message number and receive the message number.
This step comprises: after masterslave switchover is accomplished; Stop to send message to said communicator to be tested, and obtain the message amount of buffer memory in the said communicator specified interface corresponding cache to be tested, the message amount of sending to said communicator to be tested and the message amount that receives from said communicator to be tested.
When the maximum rate that said setting speed can be born less than said communicator to be tested; Because the message in this communicator buffer memory to be tested can send with the message that after masterslave switchover is accomplished, gets into this communicator to be tested simultaneously; Therefore can return to when said communicator to be tested sends the transmission rate of message from 0 at the receiving velocity that receives message from said communicator to be tested; Confirm the masterslave switchover completion; Stop to send message to said communicator to be tested; Assurance receives the message in this communicator buffer memory to be tested and finishes, and can stop when said communicator to be tested sends message, obtains the message amount of sending to said communicator to be tested through first counter of setting; And can when stopping the setting of sending message, delay (guaranteeing that the message reception finishes) to said communicator to be tested, obtain the message amount that receives from said communicator to be tested through second counter of setting.And obtain message amount in the said communicator specified interface corresponding cache to be tested can be that said communicator to be tested is counted the message amount in the specified interface corresponding cache through the 3rd counter of setting and reported.
When said setting speed equals maximum rate that said communicator to be tested can bear; Can return to after said communicator to be tested sends the transmission rate of message from 0 at the receiving velocity that receives message from said communicator to be tested; Confirm the masterslave switchover completion, stop to send message to said communicator to be tested.Promptly can obtain the message amount of sending to said communicator to be tested through first counter of setting this moment.Because the message in this communicator buffer memory to be tested can only get into the message of this communicator to be tested and send the back transmission that finishes after masterslave switchover is accomplished; Can continue to receive message from said communicator to be tested; Until the said communicator to be tested message of not redispatching, guarantee the message in this communicator buffer memory to be tested received and finish.Can, said communicator to be tested obtain the message amount that receives from said communicator to be tested when not redispatching message through second counter of setting.And obtain message amount in the said communicator specified interface corresponding cache to be tested also can be that said communicator to be tested is counted the message amount in the specified interface corresponding cache through the 3rd counter of setting and reported.
Step 104, confirm masterslave switchover switching time.
This step comprises: according to the message amount of the buffer memory that obtains, the message amount of transmission, the message amount that receives and said setting speed, confirm the Hot Spare masterslave switchover switching time of said communicator to be tested.
Have now and confirm that the message amount with buffer memory is not included in the packet loss quantity in the masterslave switchover scheme of switching time.And in fact, though the message of buffer memory has finally also sent to tester, for tester, the message of buffer memory also belongs to the packet loss in the masterslave switchover process.
Setting speed is one at the uniform velocity during speed; On the basis of the switching time of determining according to (message amount of transmission-receive message amount)/set speed, can also binding cache in message amount and the receiving velocity of message from said its buffer memory of communicator reception to be tested of buffer memory confirm masterslave switchover switching time.
When said setting speed equals maximum rate that said communicator to be tested can bear; Because the receiving velocity that receives the message its buffer memory from said communicator to be tested equals the maximum rate that said communicator to be tested can bear; Concrete, can confirm Hot Spare masterslave switchover t switching time through following formula:
t=(M-N+I)/V
Wherein, the message amount of the I buffer memory representing to obtain;
The message amount of the transmission that M representes to obtain;
N representes the message amount that receives obtained;
V representes said setting speed.
When the maximum rate that said setting speed can be born less than said communicator to be tested; The maximum rate that can bear according to the message amount of the buffer memory that obtains, the message amount of transmission, the message amount that receives, said setting speed and this communicator to be tested is confirmed Hot Spare masterslave switchover switching time of said communicator to be tested.
Because the receiving velocity that receives the message its buffer memory from said communicator to be tested equals the maximum rate that said communicator to be tested can bear and the difference of said setting speed; Concrete; The setting speed of the maximum rate that can bear less than said communicator to be tested is one at the uniform velocity during speed, can confirm Hot Spare masterslave switchover t switching time through following formula:
t=(M-N)/V+I/(V′-V)
Wherein, the message amount of the I buffer memory representing to obtain;
The message amount of the transmission that M representes to obtain;
N representes the message amount that receives obtained;
V representes said setting speed;
The maximum rate that the said communicator to be tested of V ' expression can bear.
With the embodiment of the invention one based on same inventive concept, following device and system is provided.
Embodiment two,
The embodiment of the invention two provides a kind of definite Hot Spare masterslave switchover device of switching time, and the structural representation of this device is as shown in Figure 5, comprising:
Transmitting element 11 is used for sending message to set speed to communicator to be tested, and said setting speed is not more than the maximum rate that this communicator to be tested can bear; Receiving element 12 is used for receiving message from said communicator to be tested; Masterslave switchover trigger element 13 is used for the process to said communicator transmission message to be tested, and said communicator to be tested is carried out masterslave switchover, and after masterslave switchover was accomplished, the indication transmitting element stopped to send message to said communicator to be tested; Information acquisition unit 14 is used for obtaining the message amount of said communicator specified interface corresponding cache buffer memory to be tested, the message amount of sending to said communicator to be tested and the message amount that receives from said communicator to be tested; Confirm that unit 15 is used for message amount, the message amount of transmission, the message amount that receives and the said setting speed according to the buffer memory that obtains, and confirms the Hot Spare masterslave switchover switching time of said communicator to be tested switching time.
Confirm that unit 15 specifically is used for when said setting speed equals maximum rate that said communicator to be tested can bear, confirming Hot Spare masterslave switchover t switching time through following formula said switching time:
t=(M-N+I)/V
Wherein, the message amount of the I buffer memory representing to obtain;
The message amount of the transmission that M representes to obtain;
N representes the message amount that receives obtained;
V representes said setting speed.
When confirming maximum rate that unit 15 specifically is used for bearing less than said communicator to be tested in said setting speed said switching time; According to the maximum rate that the message amount of the buffer memory that obtains, the message amount of transmission, the message amount that receives, said setting speed and this communicator to be tested can bear, confirm the Hot Spare masterslave switchover switching time of said communicator to be tested.
Confirm that it is one at the uniform velocity during speed that unit 15 specifically is used in said setting speed, confirms Hot Spare masterslave switchover t switching time through following formula said switching time:
t=(M-N)/V+I/(V′-V)
Wherein, the message amount of the I buffer memory representing to obtain;
The message amount of the transmission that M representes to obtain;
N representes the message amount that receives obtained;
V representes said setting speed;
The maximum rate that the said communicator to be tested of V ' expression can bear.
The device that the embodiment of the invention two provides can be integrated in the tester, and promptly tester can have each functional unit of the device that the embodiment of the invention two provides and carry out function corresponding.
Embodiment three,
The embodiment of the invention three provides a kind of communicator, and the structural representation of this communicator is as shown in Figure 6, comprising:
Receiving element 21 is used to receive message; Masterslave switchover unit 22 is used for receiving at receiving element the process of message, carries out masterslave switchover; Counting unit 23 is used for receiving at receiving element the process of message, confirms the message amount of buffer memory in the specified interface corresponding cache of said communicator; Transmitting element 24 is used to send the message amount of the buffer memory that message that receiving element receives and said counting unit determines.
According to the scheme that the embodiment of the invention three provides, can confirm the message amount in the specified interface corresponding cache through the counting unit in the communicator, concrete, said counting unit can realize through counter.
Embodiment four,
The embodiment of the invention four provides a kind of definite Hot Spare masterslave switchover system of switching time, and the structural representation of this system is as shown in Figure 7, comprising:
Tester 31 is used for sending message to set speed to said communicator, and said setting speed is not more than the maximum rate that said communicator can bear; Send in the process of message to said communicator, said communicator is carried out masterslave switchover; After masterslave switchover is accomplished; Stop to send message to said communicator, and obtain the message amount of buffer memory in the said communicator specified interface corresponding cache, the message amount of sending to said communicator and the message amount that receives from said communicator; According to the message amount of the buffer memory that obtains, the message amount of transmission, the message amount that receives and said setting speed, confirm the Hot Spare masterslave switchover switching time of said communicator;
Communicator 32 is used to receive the message that said tester sends; In the process that receives message; Carry out masterslave switchover; And confirm to receive the message amount of buffer memory in the specified interface corresponding cache of communicator described in the process of message, and send the message amount of message that receives and the buffer memory of determining to said tester.
The scheme that provides according to the embodiment of the invention one~embodiment four; Message amount in the communicator specified interface corresponding cache said to be tested that can combine to obtain is confirmed the Hot Spare masterslave switchover switching time of said communicator to be tested; Improve the accuracy of the Hot Spare masterslave switchover switching time determine; And can be to the magnitude relationship of setting the maximum rate that speed and said communicator to be tested can bear; Select to confirm the Hot Spare masterslave switchover concrete scheme of switching time, further improve the accuracy of Hot Spare masterslave switchover switching time of determining.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.

Claims (11)

1. the method for definite Hot Spare masterslave switchover switching time is characterized in that this method comprises:
Send message to set speed to communicator to be tested, said setting speed is not more than the maximum rate that this communicator to be tested can bear, and receives message from said communicator to be tested;
Send in the process of message to said communicator to be tested, said communicator to be tested is carried out masterslave switchover;
After masterslave switchover is accomplished; Stop to send message to said communicator to be tested, and obtain the message amount of buffer memory in the said communicator specified interface corresponding cache to be tested, the message amount of sending to said communicator to be tested and the message amount that receives from said communicator to be tested;
According to the message amount of the buffer memory that obtains, the message amount of transmission, the message amount that receives and said setting speed, confirm the Hot Spare masterslave switchover switching time of said communicator to be tested.
2. the method for claim 1 is characterized in that, said setting speed equals the maximum rate that said communicator to be tested can bear;
According to the message amount of the buffer memory that obtains, the message amount of transmission, the message amount that receives and said setting speed, confirm the Hot Spare masterslave switchover switching time of said communicator to be tested, specifically comprise:
Confirm Hot Spare masterslave switchover t switching time through following formula:
t=(M-N+I)/V
Wherein, the message amount of the I buffer memory representing to obtain;
The message amount of the transmission that M representes to obtain;
N representes the message amount that receives obtained;
V representes said setting speed.
3. the method for claim 1 is characterized in that, the maximum rate that said setting speed can be born less than said communicator to be tested;
According to the message amount of the buffer memory that obtains, the message amount of transmission, the message amount that receives and said setting speed, confirm the Hot Spare masterslave switchover switching time of said communicator to be tested, specifically comprise:
According to the maximum rate that the message amount of the buffer memory that obtains, the message amount of transmission, the message amount that receives, said setting speed and this communicator to be tested can bear, confirm the Hot Spare masterslave switchover switching time of said communicator to be tested.
4. method as claimed in claim 3 is characterized in that, said setting speed is an at the uniform velocity speed, confirms Hot Spare masterslave switchover t switching time through following formula:
t=(M-N)/V+I/(V′-V)
Wherein, the message amount of the I buffer memory representing to obtain;
The message amount of the transmission that M representes to obtain;
N representes the message amount that receives obtained;
V representes said setting speed;
The maximum rate that the said communicator to be tested of V ' expression can bear.
5. the device of definite Hot Spare masterslave switchover switching time is characterized in that this device comprises:
Transmitting element is used for sending message to set speed to communicator to be tested, and said setting speed is not more than the maximum rate that this communicator to be tested can bear;
Receiving element is used for receiving message from said communicator to be tested;
The masterslave switchover trigger element is used for the process to said communicator transmission message to be tested, and said communicator to be tested is carried out masterslave switchover, and after masterslave switchover was accomplished, the indication transmitting element stopped to send message to said communicator to be tested;
Information acquisition unit is used for obtaining the message amount of said communicator specified interface corresponding cache buffer memory to be tested, the message amount of sending to said communicator to be tested and the message amount that receives from said communicator to be tested;
Confirm the unit switching time, be used for message amount, the message amount of transmission, the message amount that receives and said setting speed, confirm the Hot Spare masterslave switchover switching time of said communicator to be tested according to the buffer memory that obtains.
6. the device of definite Hot Spare masterslave switchover as claimed in claim 5 switching time; It is characterized in that; Confirm the unit said switching time; Specifically be used for when said setting speed equals maximum rate that said communicator to be tested can bear, confirming Hot Spare masterslave switchover t switching time through following formula:
t=(M-N+I)/V
Wherein, the message amount of the I buffer memory representing to obtain;
The message amount of the transmission that M representes to obtain;
N representes the message amount that receives obtained;
V representes said setting speed.
7. the device of definite Hot Spare masterslave switchover as claimed in claim 5 switching time; It is characterized in that; Confirm the unit said switching time; During the maximum rate that specifically is used for to bear less than said communicator to be tested in said setting speed; According to the maximum rate that the message amount of the buffer memory that obtains, the message amount of transmission, the message amount that receives, said setting speed and this communicator to be tested can bear, confirm the Hot Spare masterslave switchover switching time of said communicator to be tested.
8. the device of definite Hot Spare masterslave switchover as claimed in claim 7 switching time; It is characterized in that; Confirm the unit said switching time, specifically being used in said setting speed is one at the uniform velocity during speed, confirms Hot Spare masterslave switchover t switching time through following formula:
t=(M-N)/V+I/(V′-V)
Wherein, the message amount of the I buffer memory representing to obtain;
The message amount of the transmission that M representes to obtain;
N representes the message amount that receives obtained;
V representes said setting speed;
The maximum rate that the said communicator to be tested of V ' expression can bear.
9. a tester is characterized in that, this tester comprises like the described definite Hot Spare masterslave switchover of 5~8 arbitrary claims device of switching time.
10. a communicator is characterized in that, this communicator comprises:
Receiving element is used to receive message;
The masterslave switchover unit is used for the process at receiving element reception message, carries out masterslave switchover;
Counting unit is used for receiving at receiving element the process of message, confirms the message amount of buffer memory in the specified interface corresponding cache of said communicator;
Transmitting element is used to send the message amount of the buffer memory that message that receiving element receives and said counting unit determines.
11. the system of definite Hot Spare masterslave switchover switching time is characterized in that this system comprises tester and communicator, wherein:
Tester is used for sending message to set speed to said communicator, and said setting speed is not more than the maximum rate that said communicator can bear; Send in the process of message to said communicator, said communicator is carried out masterslave switchover; After masterslave switchover is accomplished; Stop to send message to said communicator, and obtain the message amount of buffer memory in the said communicator specified interface corresponding cache, the message amount of sending to said communicator and the message amount that receives from said communicator; According to the message amount of the buffer memory that obtains, the message amount of transmission, the message amount that receives and said setting speed, confirm the Hot Spare masterslave switchover switching time of said communicator;
Communicator; Be used to receive the message that said tester sends; In the process that receives message; Carry out masterslave switchover, and confirm to receive the message amount of buffer memory in the specified interface corresponding cache of communicator described in the process of message, and send the message amount of message that receives and the buffer memory of determining to said tester.
CN201110267369.5A 2011-09-09 2011-09-09 Method for determining hot backup main /standby switching time, apparatus and system thereof Active CN102316038B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110267369.5A CN102316038B (en) 2011-09-09 2011-09-09 Method for determining hot backup main /standby switching time, apparatus and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110267369.5A CN102316038B (en) 2011-09-09 2011-09-09 Method for determining hot backup main /standby switching time, apparatus and system thereof

Publications (2)

Publication Number Publication Date
CN102316038A true CN102316038A (en) 2012-01-11
CN102316038B CN102316038B (en) 2014-06-04

Family

ID=45428870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110267369.5A Active CN102316038B (en) 2011-09-09 2011-09-09 Method for determining hot backup main /standby switching time, apparatus and system thereof

Country Status (1)

Country Link
CN (1) CN102316038B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104539469A (en) * 2014-11-27 2015-04-22 盛科网络(苏州)有限公司 Method and device of testing master-slave switching time based on test messages
CN110488701A (en) * 2019-08-20 2019-11-22 北京计算机技术及应用研究所 The High Availabitity heat backup method of network and FlexRay bus based on production domesticization processor
CN110708218A (en) * 2019-10-30 2020-01-17 杭州迪普科技股份有限公司 Power failure protection equipment switching time detection method, device, equipment and system
CN111049704A (en) * 2019-12-23 2020-04-21 安徽皖通邮电股份有限公司 Method for calculating switching and back-switching time in protection environment through RFC2544
CN116915670A (en) * 2023-09-14 2023-10-20 浙江国利信安科技有限公司 Method, apparatus and medium for determining network recovery time

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5271000A (en) * 1991-03-22 1993-12-14 International Business Machines Corporation Method and apparatus for testing and evaluation of distributed networks
CN101102235A (en) * 2007-07-26 2008-01-09 北京交通大学 A method and device for measuring switching time
CN101404594A (en) * 2008-07-10 2009-04-08 北京星网锐捷网络技术有限公司 Hot backup performance test method and apparatus, communication equipment
CN101425941A (en) * 2008-12-04 2009-05-06 北京星网锐捷网络技术有限公司 Loop network link convergence time and recovery time test system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5271000A (en) * 1991-03-22 1993-12-14 International Business Machines Corporation Method and apparatus for testing and evaluation of distributed networks
CN101102235A (en) * 2007-07-26 2008-01-09 北京交通大学 A method and device for measuring switching time
CN101404594A (en) * 2008-07-10 2009-04-08 北京星网锐捷网络技术有限公司 Hot backup performance test method and apparatus, communication equipment
CN101425941A (en) * 2008-12-04 2009-05-06 北京星网锐捷网络技术有限公司 Loop network link convergence time and recovery time test system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104539469A (en) * 2014-11-27 2015-04-22 盛科网络(苏州)有限公司 Method and device of testing master-slave switching time based on test messages
CN110488701A (en) * 2019-08-20 2019-11-22 北京计算机技术及应用研究所 The High Availabitity heat backup method of network and FlexRay bus based on production domesticization processor
CN110708218A (en) * 2019-10-30 2020-01-17 杭州迪普科技股份有限公司 Power failure protection equipment switching time detection method, device, equipment and system
CN110708218B (en) * 2019-10-30 2021-11-02 杭州迪普科技股份有限公司 Power failure protection equipment switching time detection method, device, equipment and system
CN111049704A (en) * 2019-12-23 2020-04-21 安徽皖通邮电股份有限公司 Method for calculating switching and back-switching time in protection environment through RFC2544
CN116915670A (en) * 2023-09-14 2023-10-20 浙江国利信安科技有限公司 Method, apparatus and medium for determining network recovery time
CN116915670B (en) * 2023-09-14 2023-12-05 浙江国利信安科技有限公司 Method, apparatus and medium for determining network recovery time

Also Published As

Publication number Publication date
CN102316038B (en) 2014-06-04

Similar Documents

Publication Publication Date Title
US10348616B2 (en) Packet transmission method and apparatus, and interconnect interface
CN102984059B (en) Gigabit Ethernet redundancy network interface card and link switching condition criterion output control method thereof
CN102257759B (en) Master-standby switching method, system control unit and communication system
CN102316038B (en) Method for determining hot backup main /standby switching time, apparatus and system thereof
US9288075B2 (en) Method and system for auto-configuration, and network node
WO2016095344A1 (en) Link switching method and device, and line card
CN101267392B (en) A realizing method for notifying downstream device in case of switch of uplink link status
CN105024798A (en) Method and device for time synchronization
CN103916226A (en) Redundant backup method based on embedded equipment
CN106888142A (en) A kind of E1 dual-ring networks with ring self-healing function
CN100563201C (en) A kind of method for detecting route unit fault and device
CN112218321B (en) Master-slave link switching method, device, communication equipment and storage medium
CN110572228B (en) Synchronous information transmission method, device, related equipment and storage medium
WO2011079658A1 (en) Device and method for realizing switch between active and standby services
CN102407868B (en) Hot-standby dual-connection method suitable for communication protocol of modern monitoring system of rail transit
US20120195186A1 (en) Method and system for preventing traffic loss caused by wait-to-restore mechanisms in service protection networks
CN103391324B (en) A kind of heat backup method based on tftp agreement
CN102231700A (en) Exchange card switching information transmission method and exchange card hot backup system
CN112865908B (en) Method and device for controlling transmission of Ethernet frame
US20160197856A1 (en) Port Status Synchronization Method, Related Device, and System
CN106850264B (en) A kind of network equipment
CN109245911B (en) Method and device for realizing BRAS hot standby and computer readable storage medium
CN101009653A (en) The method for sending message and the system for switching device and main and standby switching
CN110995336B (en) OLP transmission link switching method and device, storage medium and OLP
CN204390224U (en) A kind of fault-tolerant master-slave synchronisation serial communication system based on FPGA

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant