CN105049294B - The automated testing method of EAPS agreement MASTER switch ports state switching - Google Patents

The automated testing method of EAPS agreement MASTER switch ports state switching Download PDF

Info

Publication number
CN105049294B
CN105049294B CN201510523923.XA CN201510523923A CN105049294B CN 105049294 B CN105049294 B CN 105049294B CN 201510523923 A CN201510523923 A CN 201510523923A CN 105049294 B CN105049294 B CN 105049294B
Authority
CN
China
Prior art keywords
eaps
ports
master
state switching
agreements
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.)
Active
Application number
CN201510523923.XA
Other languages
Chinese (zh)
Other versions
CN105049294A (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.)
Huzhou YingLie Intellectual Property Operation Co.,Ltd.
Original Assignee
Shanghai Feixun Data Communication 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510523923.XA priority Critical patent/CN105049294B/en
Publication of CN105049294A publication Critical patent/CN105049294A/en
Application granted granted Critical
Publication of CN105049294B publication Critical patent/CN105049294B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters

Abstract

The invention discloses a kind of automated testing methods of EAPS agreements MASTER switch ports state switching, it is characterised in that:MASTER interchangers, double netcard computer are provided, the automated testing method of the EAPS agreements master switch ports state switching includes the following steps:S1:The first network interface card on double netcard computer connects the primary ports of the MASTER interchangers, second network interface card connects the secondery ports of MASTER interchangers, and double netcard meter is agreed the serial ports serial ports that is devices under of connection of machine and automated procedures are copied into the double netcard computer;S2:Program controls the serial ports tool of the double netcard computer to log in and is devices under bottom;S3:Program setting EAPS ring, control vlan and protection vlan, start EAPS ring;EAPS agreement master switch ports state switching automated testing method is easy to operate, scalability is strong, the protocol massages of read port state and parsing EAPS and the result of reading can be compared accurately automatically.

Description

The automated testing method of EAPS agreement MASTER switch ports state switching
Technical field
Switch the present invention relates to field of communication technology more particularly to a kind of EAPS agreements master switch ports state Automated testing method.
Background technology
With being widely used for interchanger, at present when testing the switching of EAPS agreement master switch ports state, need Interchanger and the topological environmental of multiple PC monitoring and analysis protocol message of three or more is built, is changed by being manually operated The connection status of the primary ports of master interchangers.Pass through the EAPS agreements of port monitoring and parsing interchanger transmission Message, using serial ports read port state and the update status of FDB tables, not only engaged test resource is more, but also testing efficiency It is not high.
Therefore, those skilled in the art have been devoted to research it is a kind of it is easy to operate, scalability is strong, can read automatically The protocol massages of port status and parsing EAPS and the EAPS agreement master switch ports accurately compared to the result of reading The automated testing method of state switching.
Invention content
The technical problem to be solved in the present invention is to provide a kind of EAPS agreements master switch ports state switching from Dynamicization test method, the EAPS agreement master switch ports state switching automated testing method it is easy to operate, can expand Malleability is strong, the protocol massages of read port state and parsing EAPS and the result of reading can be compared accurately automatically.
In order to solve the above technical problems, the present invention provides a kind of switchings of EAPS agreements MASTER switch ports state Automated testing method:MASTER interchangers, double netcard computer, the EAPS agreements master switch port states are provided The automated testing method of switching includes the following steps:
S1:The first network interface card on double netcard computer connects the primary ports of the MASTER interchangers, the second network interface card The secondery ports of MASTER interchangers are connected, the serial ports that the serial ports connection of double netcard computer is devices under simultaneously will Automated procedures copy into the double netcard computer;
S2:Program controls the serial ports tool of the double netcard computer to log in and is devices under bottom;
S3:Program setting EAPS ring, control vlan and protection vlan, start EAPS ring;
S4:First network interface card of the double netcard computer receives the hello packets that MASTER interchangers are sent, by program from Second network interface card is transmitted to the MASTER interchangers;
S5:Program controls the disabling of first network interface card, simulates the primary ports of the MASTER interchangers The connection status of DOWN, the secondary ports and primary ports changes;
S6:Whether the state of secondary ports described in program inquiring, the state of the secondary ports are switched to Forward states, if it is continue to run with, and otherwise pop up miscue, and terminate operation.
Preferably, the step S4 of the automated testing method of EAPS agreements MASTER switch ports state switching with Step is further included between step S5:
Program checks port status by the serial ports, and whether the state of the Secondary ports is blocking shapes State;If not, checking whether network connection circuit has broken string.
Preferably, the step S6 of the automated testing method of EAPS agreements MASTER switch ports state switching it After further include step:
S7:Program checks second network interface card and whether receives " link down " message of Master interchangers transmission, and examines It looks into whether the protocol package complies with standard, miscue is popped up, and terminate operation if nothing receives or is not inconsistent standardization.
Preferably, the step S7 of the automated testing method of EAPS agreements MASTER switch ports state switching it After further include step:
S8:Program checks whether second network interface card receives the message for refreshing FDB tables, and checks whether the message meets mark Standard pops up miscue, and terminate operation if nothing is received or mismatched.
After the above method, the first network interface card on double netcard computer connects the MASTER interchangers Primary ports, the second network interface card connect the secondery ports of MASTER interchangers, and the serial ports of double netcard computer is connected Automated procedures are simultaneously copied into the double netcard computer by the serial ports that is devices under;First network interface card of the double netcard computer The hello packets that MASTER interchangers are sent are received, the MASTER interchangers are transmitted to from the second network interface card by program;Program control The disabling of first network interface card is made, simulates the DOWN of the primary ports of the MASTER interchangers, the secondary ends The connection status of mouth and primary ports changes;The state of secondary ports, described described in program inquiring Whether the state of secondary ports is switched to forward states, if it is continues to run with, and otherwise pops up miscue, and Terminate operation;EAPS agreement master switch ports state switching automated testing method is easy to operate, scalability By force, can automatically read port state and parse EAPS protocol massages and the result of reading is accurately compared.
Description of the drawings
Fig. 1 is a kind of automated testing method of EAPS agreements master switch ports state switching of the present invention Work flow diagram.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is used only for explaining the present invention, and It is not used in the restriction present invention.
Embodiment 1
Referring to Fig. 1, Fig. 1 is a kind of automatic test of EAPS agreements master switch ports state switching of the present invention The work flow diagram of method;
In the present embodiment 1, a kind of automated testing method of EAPS agreements master switch ports state switching:It carries For MASTER interchangers, double netcard computer, the automatic test of the EAPS agreements master switch ports state switching Method includes the following steps:S1:The first network interface card on double netcard computer connects the primary ends of the MASTER interchangers Mouthful, the second network interface card connects the secondery ports of MASTER interchangers, and the serial ports connection of double netcard computer is devices under Serial ports and automated procedures are copied into the double netcard computer;
S2:Program controls the serial ports tool of the double netcard computer to log in and is devices under bottom;
S3:Program setting EAPS ring, control vlan and protection vlan, start EAPS ring;
S4:First network interface card of the double netcard computer receives the hello packets that MASTER interchangers are sent, by program from Second network interface card is transmitted to the MASTER interchangers;
S5:Program controls the disabling of first network interface card, simulates the primary ports of the MASTER interchangers The connection status of DOWN, the secondary ports and primary ports changes;
S6:Whether the state of secondary ports described in program inquiring, the state of the secondary ports are switched to Forward states, if it is continue to run with, and otherwise pop up miscue, and terminate operation.
In the present embodiment 1, the automatic test of the preferred EAPS agreements MASTER switch ports state switching Step is further included between the step S4 of method and step S5:
Program checks port status by the serial ports, and whether the state of the Secondary ports is blocking shapes State;If not, checking whether network connection circuit has broken string.
In the present embodiment 1, the automatic test of the preferred EAPS agreements MASTER switch ports state switching Step is further included after the step S6 of method:
S7:Program checks second network interface card and whether receives " link down " message of Master interchangers transmission, and examines It looks into whether the protocol package complies with standard, miscue is popped up, and terminate operation if nothing receives or is not inconsistent standardization.
In the present embodiment 1, the automatic test of the preferred EAPS agreements MASTER switch ports state switching Step is further included after the step S6 of method:
S8:Program checks whether second network interface card receives the message for refreshing FDB tables, and checks whether the message meets mark Standard pops up miscue, and terminate operation if nothing is received or mismatched.
Embodiment 2:
In the present embodiment 2, a kind of automated testing method of EAPS agreements master switch ports state switching:It carries For MASTER interchangers, double netcard computer, the automatic test of the EAPS agreements master switch ports state switching Method includes the following steps:S1:The first network interface card on double netcard computer connects the primary ends of the MASTER interchangers Mouthful, the second network interface card connects the secondery ports of MASTER interchangers, and the serial ports connection of double netcard computer is devices under Serial ports and automated procedures are copied into the double netcard computer;
S2:Program controls the serial ports tool of the double netcard computer to log in and is devices under bottom;
S3:Program setting EAPS ring, control vlan and protection vlan, start EAPS ring;
S4:First network interface card of the double netcard computer receives the hello packets that MASTER interchangers are sent, by program from Second network interface card is transmitted to the MASTER interchangers;
S5:Program controls the disabling of first network interface card, simulates the primary ports of the MASTER interchangers The connection status of DOWN, the secondary ports and primary ports changes;
S6:Whether the state of secondary ports described in program inquiring, the state of the secondary ports are switched to Forward states, if it is continue to run with, and otherwise pop up miscue, and terminate operation.
In the present embodiment 2, the automatic test of the preferred EAPS agreements MASTER switch ports state switching Step is further included between the step S4 of method and step S5:
Program checks port status by the serial ports, and whether the state of the Secondary ports is blocking shapes State;If not, checking whether network connection circuit has broken string.
In the present embodiment 2, the automatic test of the preferred EAPS agreements MASTER switch ports state switching Step is further included after the step S6 of method:
S7:Program checks whether second network interface card receives the message for refreshing FDB tables, and checks whether the message meets mark Standard pops up miscue, and terminate operation if nothing is received or mismatched.
In the present embodiment 2, the automatic test of the preferred EAPS agreements MASTER switch ports state switching Step is further included after the step S7 of method:
S8:Program checks second network interface card and whether receives " link down " message of Master interchangers transmission, and examines It looks into whether the protocol package complies with standard, miscue is popped up, and terminate operation if nothing receives or is not inconsistent standardization.
After the above method, the first network interface card on double netcard computer connects the MASTER interchangers Primary ports, the second network interface card connect the secondery ports of MASTER interchangers, and the serial ports of double netcard computer is connected Automated procedures are simultaneously copied into the double netcard computer by the serial ports that is devices under;First network interface card of the double netcard computer The hello packets that MASTER interchangers are sent are received, the MASTER interchangers are transmitted to from the second network interface card by program;Program control The disabling of first network interface card is made, simulates the DOWN of the primary ports of the MASTER interchangers, the secondary ends The connection status of mouth and primary ports changes;The state of secondary ports, described described in program inquiring Whether the state of secondary ports is switched to forward states, if it is continues to run with, and otherwise pops up miscue, and Terminate operation;EAPS agreement master switch ports state switching automated testing method is easy to operate, scalability By force, can automatically read port state and parse EAPS protocol massages and the result of reading is accurately compared.
It should be understood that it these are only the preferred embodiment of the present invention, it is impossible to therefore the scope of the claims of the limitation present invention, Every equivalent structure or equivalent flow shift made using description of the invention and accompanying drawing content, is directly or indirectly used in Other related technical areas are included within the scope of the present invention.

Claims (6)

1. a kind of automated testing method of EAPS agreements MASTER switch ports state switching, it is characterised in that:It provides MASTER interchangers, double netcard computer, the automatic test side of the EAPS agreements MASTER switch ports state switching Method includes the following steps:
S1:The first network interface card on double netcard computer connects the primary ports of the MASTER interchangers, the connection of the second network interface card The secondary ports of MASTER interchangers, the serial ports that the serial ports connection of double netcard computer is devices under simultaneously will be automatic Change program and copy into the double netcard computer;
S2:Program controls the serial ports tool of the double netcard computer to log in and is devices under bottom;
S3:Program setting EAPS ring, control vlan and protection vlan, start EAPS ring;
S4:First network interface card of the double netcard computer receives the hello packets that MASTER interchangers are sent, by program from second Network interface card is transmitted to the MASTER interchangers;
S5:Program controls the disabling of first network interface card, simulates the DOWN of the primary ports of the MASTER interchangers, institute The connection status for stating secondary ports and primary ports changes;
S6:Whether the state of secondary ports described in program inquiring, the state of the secondary ports are switched to Forward states, if it is continue to run with, and otherwise pop up miscue, and terminate operation.
2. the automated testing method of EAPS agreements MASTER switch ports state switching according to claim 1, It is characterized in that:The step S4 and step S5 of the automated testing method of the EAPS agreements MASTER switch ports state switching Between further include step:
Program checks port status by the serial ports of the double netcard computer, the states of the secondary ports whether be Blocking states;If not, checking whether network connection circuit has broken string.
3. the automated testing method of EAPS agreements MASTER switch ports state switching according to claim 1, It is characterized in that:It is also wrapped after the step S6 of the automated testing method of the EAPS agreements MASTER switch ports state switching Include step:
S7:Program checks second network interface card and whether receives " linkdown " message of MASTER interchangers transmission, and checks association Whether view packet complies with standard, and miscue is popped up, and terminate operation if nothing receives or is not inconsistent standardization.
4. the automated testing method of EAPS agreements MASTER switch ports state switching according to claim 1, It is characterized in that:It is also wrapped after the step S6 of the automated testing method of the EAPS agreements MASTER switch ports state switching Include step:
S7:Program checks whether second network interface card receives the message for refreshing FDB tables, and checks whether the message complies with standard, Miscue is popped up, and terminate operation if nothing is received or mismatched.
5. the automated testing method of EAPS agreements MASTER switch ports state switching according to claim 3, It is characterized in that:It is also wrapped after the step S7 of the automated testing method of the EAPS agreements MASTER switch ports state switching Include step:
S8:Program checks whether second network interface card receives the message for refreshing FDB tables, and checks whether the message complies with standard, Miscue is popped up, and terminate operation if nothing is received or mismatched.
6. the automated testing method of EAPS agreements MASTER switch ports state switching according to claim 4, It is characterized in that:It is also wrapped after the step S7 of the automated testing method of the EAPS agreements MASTER switch ports state switching Include step:
S8:Program checks second network interface card and whether receives " linkdown " message of MASTER interchangers transmission, and checks association Whether view packet complies with standard, and miscue is popped up, and terminate operation if nothing receives or is not inconsistent standardization.
CN201510523923.XA 2015-08-24 2015-08-24 The automated testing method of EAPS agreement MASTER switch ports state switching Active CN105049294B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510523923.XA CN105049294B (en) 2015-08-24 2015-08-24 The automated testing method of EAPS agreement MASTER switch ports state switching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510523923.XA CN105049294B (en) 2015-08-24 2015-08-24 The automated testing method of EAPS agreement MASTER switch ports state switching

Publications (2)

Publication Number Publication Date
CN105049294A CN105049294A (en) 2015-11-11
CN105049294B true CN105049294B (en) 2018-07-06

Family

ID=54455515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510523923.XA Active CN105049294B (en) 2015-08-24 2015-08-24 The automated testing method of EAPS agreement MASTER switch ports state switching

Country Status (1)

Country Link
CN (1) CN105049294B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306308A (en) * 2015-11-16 2016-02-03 上海斐讯数据通信技术有限公司 Automated testing method and equipment based on dynamic vlan (Virtual Local Area Network)
CN110138691B (en) * 2019-05-09 2021-03-23 深圳市吉祥腾达科技有限公司 Switch spanning tree protocol anti-loop stability test method and tool
CN113114536A (en) * 2021-04-15 2021-07-13 山东英信计算机技术有限公司 Switch data transmission method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111304A (en) * 2009-12-25 2011-06-29 中兴通讯股份有限公司 Method for system for detecting modems in batches
CN102684946A (en) * 2012-05-25 2012-09-19 中国舰船研究设计中心 Dual-network-interface-card switching performance testing method for information integration system
CN104202215A (en) * 2014-09-10 2014-12-10 上海斐讯数据通信技术有限公司 Method for testing full load of electric ports of Ethernet switchboard
CN104320313A (en) * 2014-11-28 2015-01-28 上海斐讯数据通信技术有限公司 System and method for testing ports of interchanger

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI427972B (en) * 2010-10-26 2014-02-21 Accton Technology Corp Network device with creating path data and method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111304A (en) * 2009-12-25 2011-06-29 中兴通讯股份有限公司 Method for system for detecting modems in batches
CN102684946A (en) * 2012-05-25 2012-09-19 中国舰船研究设计中心 Dual-network-interface-card switching performance testing method for information integration system
CN104202215A (en) * 2014-09-10 2014-12-10 上海斐讯数据通信技术有限公司 Method for testing full load of electric ports of Ethernet switchboard
CN104320313A (en) * 2014-11-28 2015-01-28 上海斐讯数据通信技术有限公司 System and method for testing ports of interchanger

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
EAPS 环网切换技术优化研究;何三波,刘高锦,罗向征;《电信科学》;20110401;全文 *

Also Published As

Publication number Publication date
CN105049294A (en) 2015-11-11

Similar Documents

Publication Publication Date Title
TWI514821B (en) Network devices and loopback detection methods
WO2016165463A1 (en) Software defined network-based link failure reporting method and forwarding device
CN105871743B (en) The machinery of consultation of aggregation port state and device
CN103209099B (en) A kind of automatic switching protection method of internodal network communication circuit
CN105049294B (en) The automated testing method of EAPS agreement MASTER switch ports state switching
TW201431320A (en) Method and network device for loop detection
CN101714939A (en) Fault treatment method for Ethernet ring network host node and corresponding Ethernet ring network
WO2016034127A1 (en) System and method for achieving dual-node interconnection pseudo-wire
CN105790988B (en) Method and device for realizing operation maintenance management function
CN104219115B (en) It is a kind of to enable the method and system of Ethernet ring agreement and Spanning-Tree Protocol isomery mixed networking
EP2897328B1 (en) Method, system and apparatus for establishing communication link
CN104980302A (en) STP-based method for removing redundancy link under SDN framework
CN106100988A (en) A kind of realize the method that link aggregation is switched fast
US9467397B2 (en) Port mode synchronization between switches
CN105847087B (en) Non-implanted formula network intercepting device
CN107645391A (en) A kind of port configuration method and device of Interface Expanding equipment
CN103457782A (en) VLAN-based loopback detection method and network equipment
CN106656554A (en) Method and device for implementing LACP in MLAG environment
CN104702498A (en) Method and device for reducing the number of optical connections through coordination protection
CN113300800A (en) Multi-mode deterministic data processing device and method
CN106506409B (en) A kind of management method and network management exchange of network management exchange
CN102594696B (en) A kind of method and device managing network device link aggregation group
CN104580028B (en) Exchange chip message processing method and device based on expansion interface
CN103840965B (en) Method for enhancing quick fault convergence in RSTP
CN102843282B (en) A kind of message processing method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201130

Address after: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou Jiji Intellectual Property Operation Co., Ltd

Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201217

Address after: 233000 3rd floor, Dong'an Market, Fengyang West Road, Longzihu District, Bengbu City, Anhui Province

Patentee after: Bengbu 309 Technology Consulting Co.,Ltd.

Address before: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou Jiji Intellectual Property Operation Co., Ltd

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210202

Address after: 313001 room 1019, Xintiandi office building, Yishan street, Wuxing District, Huzhou, Zhejiang, China

Patentee after: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Address before: 233000 3rd floor, Dong'an Market, Fengyang West Road, Longzihu District, Bengbu City, Anhui Province

Patentee before: Bengbu 309 Technology Consulting Co.,Ltd.