CN110138691A - The anti-ring stability test Method and kit for of interchanger Spanning-Tree Protocol - Google Patents

The anti-ring stability test Method and kit for of interchanger Spanning-Tree Protocol Download PDF

Info

Publication number
CN110138691A
CN110138691A CN201910382689.1A CN201910382689A CN110138691A CN 110138691 A CN110138691 A CN 110138691A CN 201910382689 A CN201910382689 A CN 201910382689A CN 110138691 A CN110138691 A CN 110138691A
Authority
CN
China
Prior art keywords
loop
scene
port
message
automated procedures
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
CN201910382689.1A
Other languages
Chinese (zh)
Other versions
CN110138691B (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.)
SHENZHEN JIXIANG TENDA TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN JIXIANG TENDA TECHNOLOGY 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 SHENZHEN JIXIANG TENDA TECHNOLOGY Co Ltd filed Critical SHENZHEN JIXIANG TENDA TECHNOLOGY Co Ltd
Priority to CN201910382689.1A priority Critical patent/CN110138691B/en
Publication of CN110138691A publication Critical patent/CN110138691A/en
Application granted granted Critical
Publication of CN110138691B publication Critical patent/CN110138691B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/18Loop-free operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/48Routing tree calculation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a kind of above-mentioned anti-ring stability test Method and kit fors of interchanger Spanning-Tree Protocol, stability test is carried out to three kinds of loop scenes, it includes providing a host, host has one first network interface card and one second network interface card, one Serial Port Line connects host and tested switch A, one automated procedures are installed in host, tester brings into operation to automated procedures, formation operation interface, and carry out the setting of parameter, automated procedures send instructions to the serial ports tool CRT of host, tested switch A and tested switch b form Spanning-Tree Protocol;Third step, automated procedures collect the record of serial ports tool CRT, and save file, the storing path of spanning tree message is accordingly P1, P2 and P3, so far, the stability test of the first loop scene, second of loop scene and the third loop scene terminates, easy to operate and high-efficient.

Description

The anti-ring stability test Method and kit for of interchanger Spanning-Tree Protocol
[technical field]
The present invention relates to a kind of anti-ring stability test Method and kit for of interchanger Spanning-Tree Protocol, espespecially a kind of operation letter The anti-ring stability test Method and kit for of single and high-efficient interchanger Spanning-Tree Protocol.
[background technique]
Spanning tree is the major function of interchanger, plays the role of anti-loops, and interchanger must assure that in real network In environment, if there is loop, the communication of regular traffic will not be influenced, tester needs in laboratory simulation live network Under flow scene, the anti-ring stability of interchanger is verified, avoids final products from communicating when practical application and goes wrong.
There are two kinds of test methods on the market at present: the first is, buys expensive test equipment, come analog switch into Row cooperation verifying, but the cost of test equipment is very high, and a port can only simulate an interchanger, need to occupy simultaneously multiple Port also needs purchase Lincense.Second is, in laboratory as far as possible by more group of switches at testing together, to make With true switch test, but a large amount of resource is needed in this way, and networking is extremely complex, do not have many times such Experiment condition, so practicability is low.
Therefore, it is necessary to design a kind of good anti-ring stability test Method and kit for of interchanger Spanning-Tree Protocol, with gram Take the above problem.
[summary of the invention]
For background technique problem encountered, the purpose of the present invention is to provide one kind by installing automated procedures, To reach test simply, the anti-ring stability test Method and kit for of high-efficient interchanger Spanning-Tree Protocol.
To achieve the above object, the present invention uses following technological means:
A kind of anti-ring stability test method of interchanger Spanning-Tree Protocol carries out stability test to three kinds of loop scenes, The first loop scene is that tested switch A has Single port A1, the port B1 of one switch b of port A1 connection, The switch b does not support Spanning-Tree Protocol, and the switch b has a Single port B2 and Single port B3, described in cable connection The port B2 and port B3, second of loop scene are that tested switch A has Single port A1 and Single port A2, a net Line connects the port A1 and port A2, the third loop scene is that tested switch A has Single port A1 and one Port A2, tested switch b have Single port B1 and Single port B2, and a cable connects the port A1 and the port B1, a cable connect the port A2 and port B2 comprising the first step provides a host, and the host has one the One network interface card and one second network interface card, a Serial Port Line connect the host and the tested switch A, are equipped in the host One automated procedures, tester bring into operation to the automated procedures, formation operation interface, and carry out the setting of parameter: The testing time of the first loop scene loop is the storing path P1 of T1 and message;The survey of second of loop scene loop Try the storing path P2 that the time is T2 and message;The testing time of the third loop scene loop is the guarantor of T3 and message Deposit path P 3, the automated procedures send instructions to the serial ports tool CRT of the host, the tested switch A and The tested switch b forms Spanning-Tree Protocol;
Second step, when testing the first described loop scene, if the automated procedures judge described When a kind of testing time T1 of loop scene loop is zero, then for the first described loop scene without test, it is right down to continue Second of loop scene carries out test judgement, if the automated procedures judge the first loop scene loop When testing time T1 is greater than zero, then the first described loop scene is tested, the port of the tested switch A A1 issues spanning tree message, and first network interface card receives spanning tree message, and the automated procedures receive first network interface card Spanning tree message be filtered, extract spanning tree message, the automated procedures are by the spanning tree message from described first Network interface card is sent out, and length of testing speech is the testing time T1 of tester's setting, and simulation test is completed;
When testing second of loop scene, if the automated procedures judge second of loop When the testing time T2 of scene loop is zero, then second of loop scene continues without test down to the third Kind loop scene carries out test judgement, if the automated procedures judge the testing time of second of loop scene loop When T2 is greater than zero, then second of loop scene is tested, and the port A1 of the tested switch A issues life At tree message, first network interface card receives message, the spanning tree message that the automated procedures receive first network interface card from Second network interface card is sent out, and the port A2 of the tested switch A issues spanning tree message, second network interface card Spanning tree message is received, the spanning tree message that the automated procedures receive second network interface card is issued from first network interface card It goes, length of testing speech is the testing time T2 of tester's setting, and simulation test is completed;
When testing the third described loop scene, if the automated procedures judge the third described loop When the testing time T3 of scene loop is zero, then the third described loop scene is without test, if the automated procedures When judging that the testing time T3 of the third loop scene loop is greater than zero, then the third described loop scene is tested, The automated procedures construct spanning tree message, and the source MAC of spanning tree message is the tested switch b, described tested The port B1 of the switch b of examination issues spanning tree message, and first network interface card receives spanning tree message, described tested The port B2 of switch b issues spanning tree message, and second network interface card receives spanning tree message, and length of testing speech is tester The testing time T3 of member's setting, simulation test are completed;
Third step, the automated procedures collect the record of the serial ports tool CRT, and save file, spanning tree message Storing path be accordingly P1, P2 and P3, so far, the first described loop scene, second of loop scene and described The stability test of the third loop scene terminates.
Further, in second step, the filter type of the automated procedures is to carry out according to type of message field Filter.
Further, in second step, the transmission rates of the automated procedures be every 2 seconds 1.
Further, in the first step, zero is set as to the duration of the first loop scene loop, then the first loop Scene is not test, and the duration setting of the first loop scene loop is greater than zero, then the first loop scene is test;The The duration of two kinds of loop scene loops is set as zero, then second of loop scene is not test, second of loop scene ring The duration setting on road is greater than zero, then second of loop scene is test;The duration of the third loop scene loop sets It is set to zero, then the third loop scene is not test, and the duration setting of the third loop scene loop is greater than zero, then third Kind loop scene is test.
Further, in third step, preservation file be TXT file, file designation STP, loop scene test record and System time.
A kind of anti-ring stability test tool of interchanger Spanning-Tree Protocol carries out stability test to three kinds of loop scenes, The first loop scene is that tested switch A has Single port A1, the port B1 of one switch b of port A1 connection, The switch b does not support Spanning-Tree Protocol, and the switch b has a Single port B2 and Single port B3, described in cable connection The port B2 and port B3, second of loop scene are that tested switch A has Single port A1 and Single port A2, a net Line connects the port A1 and port A2, the third loop scene is that tested switch A has Single port A1 and one Port A2, tested switch b have Single port B1 and Single port B2, and a cable connects the port A1 and the port B1, a cable connect the port A2 and port B2 comprising a host, the host have one first network interface card and one the Two network interface cards, a Serial Port Line connect the host and the tested switch A, an automation journey are equipped in the host Sequence, tester bring into operation to the automated procedures, formation operation interface, and carry out the setting of parameter: the first loop The testing time of scene loop is the storing path P1 of T1 and message;The testing time of second of loop scene loop is T2, And the storing path P2 of message;The testing time of the third loop scene loop is the storing path P3 of T3 and message, institute State the serial ports tool CRT that automated procedures send instructions to the host, the tested switch A and described tested Switch b forms Spanning-Tree Protocol;When testing the first described loop scene, if the automated procedures judge When the testing time T1 of the first loop scene loop is zero, then the first described loop scene continues without test Test judgement is carried out to second of loop scene down, if the automated procedures judge the first described loop scene When the testing time T1 of loop is greater than zero, then the first described loop scene is tested, the institute of the tested switch A It states port A1 and issues spanning tree message, first network interface card receives spanning tree message, and the automated procedures are to first net Block the spanning tree message that receives to be filtered, extract spanning tree message, the automated procedures are by the spanning tree message from institute It states the first network interface card to send out, length of testing speech is the testing time T1 of tester's setting, and simulation test is completed;When to described second When kind loop scene is tested, if the automated procedures judge the testing time T2 of second of loop scene loop When being zero, then second of loop scene continues test to the third described loop scene down to sentence without test It is disconnected, if the automated procedures judge that the testing time T2 of second of loop scene loop is greater than zero, described the Two kinds of loop scenes are tested, and the port A1 of the tested switch A issues spanning tree message, first net Card receives message, and the automated procedures send out the spanning tree message that first network interface card receives from second network interface card, The port A2 of the tested switch A issues spanning tree message, and second network interface card receives spanning tree message, described Automated procedures send out the spanning tree message that second network interface card receives from first network interface card, and length of testing speech is tester The testing time T2 of member's setting, simulation test are completed;When testing the third described loop scene, if described automatic When changing program and judging that the testing time T3 of the third loop scene loop is zero, then the third described loop scene without Test, it is described if the automated procedures judge that the testing time T3 of the third loop scene loop is greater than zero The third loop scene is tested, and the automated procedures construct spanning tree message, and the source MAC of spanning tree message is the quilt The port B1 of the switch b of test, the tested switch b issues spanning tree message, and first network interface card receives The port B2 of spanning tree message, the tested switch b issues spanning tree message, and second network interface card receives generation Message is set, length of testing speech is the testing time T3 of tester's setting, and simulation test is completed;And the automated procedures collect institute The record of serial ports tool CRT is stated, and saves file, the storing path of spanning tree message is accordingly P1, P2 and P3.
Further, the transmission rate of the automated procedures be every 2 seconds 1.
Further, the filter type of the automated procedures is according to type of message Field Sanitization.
Further, saving file is TXT file, file designation STP, loop scene test record and system time.
Compared with prior art, the invention has the following advantages:
The above-mentioned anti-ring stability test Method and kit for of interchanger Spanning-Tree Protocol carries out stability to three kinds of loop scenes Test, the first loop scene are that tested switch A has Single port A1, the end of one switch b of port A1 connection Mouth B1, the switch b do not support Spanning-Tree Protocol, and the switch b has Single port B2 and Single port B3, cable connection The port B2 and port B3, second of loop scene are that tested switch A has Single port A1 and Single port A2, One cable connects the port A1 and port A2, the third loop scene is that tested switch A has Single port A1 With Single port A2, tested switch b has Single port B1 and Single port B2, and a cable connects the port A1 and the end Mouth B1, a cable connect the port A2 and port B2 comprising the first step provides a host, and the host has one First network interface card and one second network interface card, a Serial Port Line connect the host and the tested switch A, installation in the host There are an automated procedures, tester brings into operation to the automated procedures, formation operation interface, and carries out setting for parameter Set: the testing time of the first loop scene loop is the storing path P1 of T1 and message;Second loop scene loop Testing time is T2 and the storing path P2 of message;The testing time of the third loop scene loop is T3 and message Storing path P3, the automated procedures send instructions to the serial ports tool CRT of the host, the tested switch A Spanning-Tree Protocol is formed with the tested switch b;Second step, when testing the first described loop scene, If the automated procedures judge that the testing time T1 of the first loop scene loop is zero, the first described ring Road scene is without test, and continuation carries out test judgement to second of loop scene down, if the automated procedures When judging that the testing time T1 of the first loop scene loop is greater than zero, then the first described loop scene is tested, The port A1 of the tested switch A issues spanning tree message, and first network interface card receives spanning tree message, described The spanning tree message that automated procedures receive first network interface card is filtered, and extracts spanning tree message, the automation Program sends out the spanning tree message from first network interface card, and length of testing speech is the testing time T1 of tester's setting, mould Quasi- test is completed;When testing second of loop scene, if the automated procedures judge described second When the testing time T2 of loop scene loop is zero, then second of loop scene continues without test down to described The third loop scene carries out test judgement, if the automated procedures judge the test of second of loop scene loop When time T2 is greater than zero, then second of loop scene is tested, the port A1 hair of the tested switch A Spanning tree message out, first network interface card receive message, the spanning tree report that the automated procedures receive first network interface card Text is sent out from second network interface card, the port A2 sending spanning tree message of the tested switch A, and described second Network interface card receives spanning tree message, and the spanning tree message that the automated procedures receive second network interface card is from first network interface card It sends out, length of testing speech is the testing time T2 of tester's setting, and simulation test is completed;When to the third described loop scene When being tested, if the automated procedures judge that the testing time T3 of the third loop scene loop is zero, The third described loop scene is without test, if the automated procedures judge the survey of the third loop scene loop When trying time T3 greater than zero, then the third described loop scene is tested, and the automated procedures construct spanning tree message, raw Source MAC at tree message is the tested switch b, and the port B1 of the tested switch b, which is issued, to be generated Message is set, first network interface card receives spanning tree message, and the port B2 of the tested switch b issues spanning tree report Text, second network interface card receive spanning tree message, and length of testing speech is the testing time T3 of tester's setting, and simulation test is complete At;Third step, the automated procedures collect the record of the serial ports tool CRT, and save file, the preservation of spanning tree message Path is accordingly P1, P2 and P3, so far, the first described loop scene, second of loop scene and it is described the third The stability test of loop scene terminates, first network interface card, second network interface card and the third network interface card, the interchanger Configuration and packet capturing filtering, modification instruction are all automatically performed by the automated procedures, and parameter need to be only arranged in tester, such as survey The time is tried, device power just can be carried out to test, it is easy to operate, and the automated procedures can be held at night or weekend Row, is not take up the manual test time, improves testing efficiency, in addition, refining three kinds of classical loop scenes, it is not necessary to build again multiple Miscellaneous multiple equipment scene is verified, and while reaching stability test effect, reduces many workloads, natural cost It reduces, practical application face greatly promotes.
[Detailed description of the invention]
Fig. 1 is the first loop scene in the anti-ring stability test Method and kit for of interchanger Spanning-Tree Protocol of the present invention Schematic diagram;
Fig. 2 is second of loop scene in the anti-ring stability test Method and kit for of interchanger Spanning-Tree Protocol of the present invention Schematic diagram;
Fig. 3 is the third loop scene in the anti-ring stability test Method and kit for of interchanger Spanning-Tree Protocol of the present invention Schematic diagram;
Fig. 4 is the test networking figure in the anti-ring stability test Method and kit for of interchanger Spanning-Tree Protocol of the present invention;
Fig. 5 is the flow chart of the anti-ring stability test method of interchanger Spanning-Tree Protocol of the present invention.
[specific embodiment]
Purpose, structure, feature and effect to facilitate the understanding of the present invention etc., now in conjunction with attached drawing and specific implementation The invention will be further described for mode.
Referring to Figure 1 to Fig. 3, a kind of anti-ring stability test method of interchanger Spanning-Tree Protocol, to three kinds of loop scenes Stability test is carried out, the first loop scene is that tested switch A has Single port A1, and the port A1 connection one is handed over Change planes the port B1 of B, and the switch b does not support Spanning-Tree Protocol, and the switch b has Single port B2 and Single port B3, One cable connects the port B2 and port B3, and second of loop scene is that tested switch A has Single port A1 With Single port A2, a cable connects the port A1 and port A2, the third loop scene is tested switch A tool There are Single port A1 and Single port A2, tested switch b has Single port B1 and Single port B2, and a cable connects the port The A1 and port B1, a cable connect the port A2 and port B2.Networking in tester's real network is all Very complicated, multiple devices are connected, above-mentioned three kinds of loop scenes are to have passed through three kinds of simplified typical scenes, are many times tested Personnel are accidentally to be connected to loop, for example wire casing wiring, can be by same root cable sometimes since wiring is very long It is connected on two ports of same interchanger.
Referring to Figure 1 to Fig. 5, specific steps are as follows: the first step provides a host, the host have one first network interface card and One second network interface card, a Serial Port Line connect the host and the tested switch A, are equipped with an automation in the host Program, tester bring into operation to the automated procedures, formation operation interface, and carry out the setting of parameter: the first ring The testing time of road scene loop is the storing path P1 of T1 and message;The testing time of second of loop scene loop is The storing path P2 of T2 and message;The testing time of the third loop scene loop is the storing path of T3 and message P3, the automated procedures send instructions to the serial ports tool CRT of the host, the tested switch A and the quilt The switch b of test forms Spanning-Tree Protocol.
Second step, when testing the first described loop scene, if the automated procedures judge described When a kind of testing time T1 of loop scene loop is zero, then for the first described loop scene without test, it is right down to continue Second of loop scene carries out test judgement, if the automated procedures judge the first loop scene loop When testing time T1 is greater than zero, then the first described loop scene is tested, the port of the tested switch A A1 issues spanning tree message, and first network interface card receives spanning tree message, and the automated procedures receive first network interface card Spanning tree message be filtered, the filter type of the automated procedures is to be filtered according to type of message field, extract Spanning tree message out, the automated procedures send out the spanning tree message from first network interface card, and length of testing speech is test The testing time T1 of personnel setting, the transmission rates of the automated procedures be every 2 seconds 1, simulation test is completed, and simulation is reached The effect of the first loop scene.
When testing second of loop scene, if the automated procedures judge second of loop When the testing time T2 of scene loop is zero, then second of loop scene continues without test down to the third Kind loop scene carries out test judgement, if the automated procedures judge the testing time of second of loop scene loop When T2 is greater than zero, then second of loop scene is tested, and the port A1 of the tested switch A issues life At tree message, first network interface card receives message, the spanning tree message that the automated procedures receive first network interface card from Second network interface card is sent out, and the port A2 of the tested switch A issues spanning tree message, second network interface card Spanning tree message is received, the spanning tree message that the automated procedures receive second network interface card is issued from first network interface card Go, length of testing speech is the testing time T2 of tester's setting, the transmission rates of the automated procedures be every 2 seconds 1, simulation Test is completed, and achievees the effect that simulation second of loop scene.
When testing the third described loop scene, if the automated procedures judge the third described loop When the testing time T3 of scene loop is zero, then the third described loop scene is without test, if the automated procedures When judging that the testing time T3 of the third loop scene loop is greater than zero, then the third described loop scene is tested, The automated procedures construct spanning tree message, and the source MAC of spanning tree message is the tested switch b, described tested The port B1 of the switch b of examination issues spanning tree message, and first network interface card receives spanning tree message, described tested The port B2 of switch b issues spanning tree message, and second network interface card receives spanning tree message, and length of testing speech is tester The testing time T3 of member's setting, the transmission rates of the automated procedures be every 2 seconds 1, simulation test is completed, and simulation institute is reached State the effect of the third loop scene.
Third step, the automated procedures collect the record of the serial ports tool CRT, and save file, save file and are TXT file, file designation STP, loop scene test record and system time, the storing path of spanning tree message are accordingly P1, P2 and P3, so far, the first described loop scene, second of loop scene and the third loop scene it is steady Qualitative test terminates.
The above-mentioned anti-ring stability test Method and kit for of interchanger Spanning-Tree Protocol carries out stability to three kinds of loop scenes Test, the first loop scene are that tested switch A has Single port A1, the end of one switch b of port A1 connection Mouth B1, the switch b do not support Spanning-Tree Protocol, and the switch b has Single port B2 and Single port B3, cable connection The port B2 and port B3, second of loop scene are that tested switch A has Single port A1 and Single port A2, One cable connects the port A1 and port A2, the third loop scene is that tested switch A has Single port A1 With Single port A2, tested switch b has Single port B1 and Single port B2, and a cable connects the port A1 and the end Mouth B1, a cable connect the port A2 and port B2 comprising the first step provides a host, and the host has one First network interface card and one second network interface card, a Serial Port Line connect the host and the tested switch A, installation in the host There are an automated procedures, tester brings into operation to the automated procedures, formation operation interface, and carries out setting for parameter Set: the testing time of the first loop scene loop is the storing path P1 of T1 and message;Second loop scene loop Testing time is T2 and the storing path P2 of message;The testing time of the third loop scene loop is T3 and message Storing path P3, the automated procedures send instructions to the serial ports tool CRT of the host, the tested switch A Spanning-Tree Protocol is formed with the tested switch b;Second step, when testing the first described loop scene, If the automated procedures judge that the testing time T1 of the first loop scene loop is zero, the first described ring Road scene is without test, and continuation carries out test judgement to second of loop scene down, if the automated procedures When judging that the testing time T1 of the first loop scene loop is greater than zero, then the first described loop scene is tested, The port A1 of the tested switch A issues spanning tree message, and first network interface card receives spanning tree message, described The spanning tree message that automated procedures receive first network interface card is filtered, and extracts spanning tree message, the automation Program sends out the spanning tree message from first network interface card, and length of testing speech is the testing time T1 of tester's setting, mould Quasi- test is completed;When testing second of loop scene, if the automated procedures judge described second When the testing time T2 of loop scene loop is zero, then second of loop scene continues without test down to described The third loop scene carries out test judgement, if the automated procedures judge the test of second of loop scene loop When time T2 is greater than zero, then second of loop scene is tested, the port A1 hair of the tested switch A Spanning tree message out, first network interface card receive message, the spanning tree report that the automated procedures receive first network interface card Text is sent out from second network interface card, the port A2 sending spanning tree message of the tested switch A, and described second Network interface card receives spanning tree message, and the spanning tree message that the automated procedures receive second network interface card is from first network interface card It sends out, length of testing speech is the testing time T2 of tester's setting, and simulation test is completed;When to the third described loop scene When being tested, if the automated procedures judge that the testing time T3 of the third loop scene loop is zero, The third described loop scene is without test, if the automated procedures judge the survey of the third loop scene loop When trying time T3 greater than zero, then the third described loop scene is tested, and the automated procedures construct spanning tree message, raw Source MAC at tree message is the tested switch b, and the port B1 of the tested switch b, which is issued, to be generated Message is set, first network interface card receives spanning tree message, and the port B2 of the tested switch b issues spanning tree report Text, second network interface card receive spanning tree message, and length of testing speech is the testing time T3 of tester's setting, and simulation test is complete At;Third step, the automated procedures collect the record of the serial ports tool CRT, and save file, the preservation of spanning tree message Path is accordingly P1, P2 and P3, so far, the first described loop scene, second of loop scene and it is described the third The stability test of loop scene terminates, first network interface card, second network interface card and the third network interface card, the interchanger Configuration and packet capturing filtering, modification instruction are all automatically performed by the automated procedures, and parameter need to be only arranged in tester, such as survey The time is tried, device power just can be carried out to test, it is easy to operate, and the automated procedures can be held at night or weekend Row, is not take up the manual test time, improves testing efficiency, in addition, refining three kinds of classical loop scenes, uses the host Come the interaction scenario of the interchanger spanning tree message in the case of simulating three kinds, to verify exchanger loop stability, it is not necessary to take again Build complicated multiple equipment scene to be verified, while reaching stability test effect, reduce many workloads, it is natural at This is also reduced, and practical application face greatly promotes.
Be described in detail above be only the preferred embodiments of the invention explanation, non-therefore limitation the scope of the patents of the invention, So all equivalence techniques with carried out by this creation specification and diagramatic content change, it is both contained in the scope of the patents of the invention It is interior.

Claims (9)

1. a kind of anti-ring stability test method of interchanger Spanning-Tree Protocol carries out stability test to three kinds of loop scenes, the A kind of loop scene is that tested switch A has Single port A1, the port B1 of one switch b of port A1 connection, institute It states switch b and does not support Spanning-Tree Protocol, the switch b has Single port B2 and Single port B3, and a cable connects the end The mouth B2 and port B3, second of loop scene are that tested switch A has Single port A1 and Single port A2, a cable The port A1 and the port A2 are connected, the third loop scene is that tested switch A has Single port A1 and one end Mouth A2, tested switch b have Single port B1 and Single port B2, and a cable connects the port A1 and port B1, One cable connects the port A2 and port B2 characterized by comprising
The first step provides a host, and the host has one first network interface card and one second network interface card, and a Serial Port Line connects the host With the tested switch A, an automated procedures are installed in the host, tester opens the automated procedures Begin to run, formation operation interface, and carry out the setting of parameter: the testing time of the first loop scene loop is T1, Yi Jibao The storing path P1 of text;The testing time of second of loop scene loop is the storing path P2 of T2 and message;The third ring The testing time of road scene loop is the storing path P3 of T3 and message, and the automated procedures send instructions to the master The serial ports tool CRT of machine, the tested switch A and the tested switch b form Spanning-Tree Protocol;
Second step, when testing the first described loop scene, if automated procedures judgement it is described the first When the testing time T1 of loop scene loop is zero, then the first described loop scene continues without test down to described Second of loop scene carries out test judgement, if the automated procedures judge the test of the first loop scene loop When time T1 is greater than zero, then the first described loop scene is tested, the port A1 hair of the tested switch A Spanning tree message out, first network interface card receive spanning tree message, the life that the automated procedures receive first network interface card It is filtered at tree message, extracts spanning tree message, the automated procedures are by the spanning tree message from first network interface card It sends out, length of testing speech is the testing time T1 of tester's setting, and simulation test is completed;
When testing second of loop scene, if the automated procedures judge second of loop scene When the testing time T2 of loop is zero, then second of loop scene continues without test down to the third described ring Road scene carries out test judgement, if the automated procedures judge that the testing time T2 of second of loop scene loop is big When zero, then second of loop scene is tested, and the port A1 of the tested switch A issues spanning tree Message, first network interface card receive message, and the spanning tree message that the automated procedures receive first network interface card is from described Second network interface card is sent out, and the port A2 of the tested switch A issues spanning tree message, and second network interface card receives Spanning tree message, the automated procedures send out the spanning tree message that second network interface card receives from first network interface card, Length of testing speech is the testing time T2 of tester's setting, and simulation test is completed;
When testing the third described loop scene, if the automated procedures judge the third described loop scene When the testing time T3 of loop is zero, then the third described loop scene is without test, if the automated procedures judge When the testing time T3 of the third loop scene loop is greater than zero, then the third described loop scene is tested, described Automated procedures construct spanning tree message, and the source MAC of spanning tree message is the tested switch b, described tested The port B1 of switch b issues spanning tree message, and first network interface card receives spanning tree message, the tested exchange The port B2 of machine B issues spanning tree message, and second network interface card receives spanning tree message, and length of testing speech sets for tester Fixed testing time T3, simulation test are completed;
Third step, the automated procedures collect the record of the serial ports tool CRT, and save file, the guarantor of spanning tree message Depositing path is accordingly P1, P2 and P3, so far, the first described loop scene, second of loop scene and the third The stability test of kind loop scene terminates.
2. the anti-ring stability test method of interchanger Spanning-Tree Protocol as described in claim 1, it is characterised in that: second step In, the filter type of the automated procedures is to be filtered according to type of message field.
3. the anti-ring stability test method of interchanger Spanning-Tree Protocol as described in claim 1, it is characterised in that: second step In, the transmission rates of the automated procedures be every 2 seconds 1.
4. the anti-ring stability test method of interchanger Spanning-Tree Protocol as described in claim 1, it is characterised in that: the first step In, zero is set as to the duration of the first loop scene loop, then the first loop scene is not test, the first loop The duration setting of scene loop is greater than zero, then the first loop scene is test;Second loop scene loop continues Time is set as zero, then second of loop scene is not test, and the duration setting of second of loop scene loop is greater than zero, Then second of loop scene is test;The duration of the third loop scene loop is set as zero, then the third loop scene Not test, the duration setting of the third loop scene loop is greater than zero, then the third loop scene is test.
5. the anti-ring stability test method of interchanger Spanning-Tree Protocol as described in claim 1, it is characterised in that: third step In, preservation file is TXT file, file designation STP, loop scene test record and system time.
6. a kind of anti-ring stability test tool of interchanger Spanning-Tree Protocol carries out stability test to three kinds of loop scenes, the A kind of loop scene is that tested switch A has Single port A1, the port B1 of one switch b of port A1 connection, institute It states switch b and does not support Spanning-Tree Protocol, the switch b has Single port B2 and Single port B3, and a cable connects the end The mouth B2 and port B3, second of loop scene are that tested switch A has Single port A1 and Single port A2, a cable The port A1 and the port A2 are connected, the third loop scene is that tested switch A has Single port A1 and one end Mouth A2, tested switch b have Single port B1 and Single port B2, and a cable connects the port A1 and port B1, One cable connects the port A2 and port B2 characterized by comprising a host, the host have one first net Card and one second network interface card, a Serial Port Line connect the host and the tested switch A, and one is equipped in the host certainly Dynamicization program, tester bring into operation to the automated procedures, formation operation interface, and carry out the setting of parameter: first The testing time of kind loop scene loop is the storing path P1 of T1 and message;When the test of second of loop scene loop Between for T2 and message storing path P2;The testing time of the third loop scene loop is the preservation road of T3 and message Diameter P3, the automated procedures send instructions to the serial ports tool CRT of the host, the tested switch A and described Tested switch b forms Spanning-Tree Protocol;When testing the first described loop scene, if the automation When program judges that the testing time T1 of the first loop scene loop is zero, then the first described loop scene is without surveying Examination, continuation carry out test judgement to second of loop scene down, if automated procedures judgement it is described the first When the testing time T1 of loop scene loop is greater than zero, then the first described loop scene is tested, the tested friendship The port A1 of A of changing planes issues spanning tree message, and first network interface card receives spanning tree message, and the automated procedures are to institute It states the spanning tree message that the first network interface card receives to be filtered, extracts spanning tree message, the automated procedures are by the spanning tree Message is sent out from first network interface card, and length of testing speech is the testing time T1 of tester's setting, and simulation test is completed;When right When second of loop scene is tested, if the automated procedures judge the survey of second of loop scene loop Time T2 is tried when being zero, then second of loop scene is without test, continue down to the third described loop scene into Row test judgement, if the automated procedures judge that the testing time T2 of second of loop scene loop is greater than zero, Then second of loop scene is tested, and the port A1 of the tested switch A issues spanning tree message, institute It states the first network interface card and receives message, the spanning tree message that the automated procedures receive first network interface card is from second network interface card It sends out, the port A2 of the tested switch A issues spanning tree message, and second network interface card receives spanning tree report Text, the automated procedures send out the spanning tree message that second network interface card receives from first network interface card, length of testing speech For the testing time T2 of tester's setting, simulation test is completed;When testing the third described loop scene, if When the automated procedures judge that the testing time T3 of the third loop scene loop is zero, then the third described Loop Field Scape is without test, if the automated procedures judge that the testing time T3 of the third loop scene loop is greater than zero When, then the third described loop scene is tested, and the automated procedures construct spanning tree message, the source of spanning tree message MAC is the tested switch b, and the port B1 of the tested switch b issues spanning tree message, described the One network interface card receives spanning tree message, and the port B2 of the tested switch b issues spanning tree message, second net Card receives spanning tree message, and length of testing speech is the testing time T3 of tester's setting, and simulation test is completed;And the automation Program collects the record of the serial ports tool CRT, and saves file, the storing path of spanning tree message be accordingly P1, P2 and P3。
7. the anti-ring stability test tool of interchanger Spanning-Tree Protocol as described in claim 1, it is characterised in that: described automatic Change program transmission rate be every 2 seconds 1.
8. the anti-ring stability test tool of interchanger Spanning-Tree Protocol as described in claim 1, it is characterised in that: described automatic The filter type for changing program is according to type of message Field Sanitization.
9. the anti-ring stability test tool of interchanger Spanning-Tree Protocol as described in claim 1, it is characterised in that: save file For TXT file, file designation STP, loop scene test record and system time.
CN201910382689.1A 2019-05-09 2019-05-09 Switch spanning tree protocol anti-loop stability test method and tool Expired - Fee Related CN110138691B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910382689.1A CN110138691B (en) 2019-05-09 2019-05-09 Switch spanning tree protocol anti-loop stability test method and tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910382689.1A CN110138691B (en) 2019-05-09 2019-05-09 Switch spanning tree protocol anti-loop stability test method and tool

Publications (2)

Publication Number Publication Date
CN110138691A true CN110138691A (en) 2019-08-16
CN110138691B CN110138691B (en) 2021-03-23

Family

ID=67576684

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910382689.1A Expired - Fee Related CN110138691B (en) 2019-05-09 2019-05-09 Switch spanning tree protocol anti-loop stability test method and tool

Country Status (1)

Country Link
CN (1) CN110138691B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111343452A (en) * 2020-02-28 2020-06-26 深圳市吉祥腾达科技有限公司 Switch monitoring belt machine quantity testing method of analog camera

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070127629A1 (en) * 2002-09-26 2007-06-07 Mcdonald Randy M System and Method for Conducting Variable Voice Path Assurance Tests
CN105049294A (en) * 2015-08-24 2015-11-11 上海斐讯数据通信技术有限公司 Automatic testing method for port state switching of EAPS (Ethernet Automatic Protection Switching) protocol MASTER switch
CN106330621A (en) * 2016-09-30 2017-01-11 深圳市吉祥腾达科技有限公司 Testing method for interchanger transmission signal performance and testing system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070127629A1 (en) * 2002-09-26 2007-06-07 Mcdonald Randy M System and Method for Conducting Variable Voice Path Assurance Tests
CN105049294A (en) * 2015-08-24 2015-11-11 上海斐讯数据通信技术有限公司 Automatic testing method for port state switching of EAPS (Ethernet Automatic Protection Switching) protocol MASTER switch
CN106330621A (en) * 2016-09-30 2017-01-11 深圳市吉祥腾达科技有限公司 Testing method for interchanger transmission signal performance and testing system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
何强,张祖平: "基于MSTP协议的一致性测试设计", 《计算机应用》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111343452A (en) * 2020-02-28 2020-06-26 深圳市吉祥腾达科技有限公司 Switch monitoring belt machine quantity testing method of analog camera
CN111343452B (en) * 2020-02-28 2021-07-06 深圳市吉祥腾达科技有限公司 Switch monitoring belt machine quantity testing method of analog camera

Also Published As

Publication number Publication date
CN110138691B (en) 2021-03-23

Similar Documents

Publication Publication Date Title
CN106374439B (en) Software definition implementation method based on intelligent substation Protection control system
CN105045970B (en) Analogue system and its implementation based on Unity dynamic generation three-dimensional scenic
CN107786000B (en) Intelligent generation method for configuration file of digital relay protection tester
CN104767657B (en) The registration of light cat and test system and method
CN104980317A (en) Automatic test system and test method for dispatching data network equipment
CN107204893A (en) A kind of Ethernet switch high-volume whole-machine test method and system
CN105093017B (en) Intelligent substation GOOSE integrated testabilities device and its method of testing
CN108092854A (en) The test method and device of train grade ethernet device based on IEC61375 agreements
CN106656654A (en) Network fault diagnosis methods and network fault diagnosis device
CN104579797B (en) Intelligent substation switch information flow method of automatic configuration
CN110989547A (en) Detection method and system for intelligent substation one-key sequence control system
CN106411637A (en) Internet-of-things device scenario testing method
CN106712295A (en) Logical power distribution terminal based on distributed power distribution automation system and communication method thereof
CN102684948A (en) Serpentine-flow-based network port testing method
CN111308242A (en) Test platform and test method of distribution automation system
CN110046383A (en) Power system information physical hybrid simulation method based on event synchronization and screening
CN114401212A (en) Method for testing communication protocol of double master stations
CN110138691A (en) The anti-ring stability test Method and kit for of interchanger Spanning-Tree Protocol
CN103634163B (en) Method for testing interchangeability of remote communication unit of acquisition terminal
CN102638363A (en) Power dispatching data network equipment upgrading improvement simulation previewing method based on SP Guru
CN106771599A (en) Intelligent substation synchronous phasor measuring device method of testing and test device
CN108282384B (en) Automatic test system for communication stability of MMS server based on IEC61850
CN107733743B (en) Method and system for realizing automatic test of Ethernet bus data
CN112187582B (en) Intelligent substation process layer switch port flow monitoring pre-warning system and method
CN106788701B (en) A kind of method and system positioning the segment fault of ODN network

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210323