CN105049294A - Automatic testing method for port state switching of EAPS (Ethernet Automatic Protection Switching) protocol MASTER switch - Google Patents

Automatic testing method for port state switching of EAPS (Ethernet Automatic Protection Switching) protocol MASTER switch Download PDF

Info

Publication number
CN105049294A
CN105049294A CN201510523923.XA CN201510523923A CN105049294A CN 105049294 A CN105049294 A CN 105049294A CN 201510523923 A CN201510523923 A CN 201510523923A CN 105049294 A CN105049294 A CN 105049294A
Authority
CN
China
Prior art keywords
master switch
testing method
eaps
port
automated testing
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
CN201510523923.XA
Other languages
Chinese (zh)
Other versions
CN105049294B (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 an automatic testing method for port state switching of an EAPS (Ethernet Automatic Protection Switching) protocol MASTER switch. The automatic testing method is characterized in that the MASTER switch and a dual-network-card computer are provided. The automatic testing method for port state switching of the EAPS protocol MASTER switch comprises the following steps that: S1, a first network card on the dual-network-card computer is connected with the primary port of the MASTER switch, a second network card is connected with the secondary port of the MASTER switch, the serial port of the dual-network-card computer is connected with the serial port of equipment to be tested, and an automatic program is copied into the dual-network-card computer; S2, a serial port tool of the dual-network-card computer is controlled to log into the bottom layer of the equipment to be tested through the program; and S3, the program sets an EAPS ring, controls a vlan (Virtual Local Area Network), protects the vlan, and starts up the EAPS ring. The automatic testing method for port state switching of the EAPS protocol MASTER switch is easy to operate, and has high expandability. The port state can be read automatically; a protocol message of EAPS can be resolved automatically; and read results are compared accurately.

Description

The automated testing method that EAPS agreement MASTER switch ports themselves state switches
Technical field
The present invention relates to communication technical field, particularly relate to the automated testing method that a kind of EAPS agreement master switch ports themselves state switches.
Background technology
Along with widely using of switch, at present when testing EAPS agreement master switch ports themselves state and switching, the switch and the multiple PC that need to build more than three monitor and the topological environmental of analysis protocol message, the manually connection status of the primary port of operation change master switch.By port monitoring and the EAPS protocol massages of resolving the transmission of this switch, use the update status of serial ports read port state and FDB table, not only engaged test resource is more, and testing efficiency is not high.
Therefore, those skilled in the art be devoted to study always a kind of simple to operate, extensibility strong, can read port state and resolve the protocol massages of EAPS and the automated testing method to the EAPS agreement master switch ports themselves state switching that the result read accurately contrasts automatically.
Summary of the invention
The technical problem to be solved in the present invention is to provide the automated testing method that a kind of EAPS agreement master switch ports themselves state switches, and simple to operate, the extensibility of automated testing method that this EAPS agreement master switch ports themselves state switches is strong, can read port state and resolve the protocol massages of EAPS and accurately contrast the result of reading automatically.
For solving the problems of the technologies described above, the invention provides the automated testing method that a kind of EAPS agreement MASTER switch ports themselves state switches: provide MASTER switch, double netcard computer, the automated testing method that described EAPS agreement master switch ports themselves state switches comprises the following steps:
S1: the first network interface card on double netcard computer connects the primary port of described MASTER switch, second network interface card connects the secondery port of MASTER switch, the serial ports of double netcard computer is connected the serial ports of tested equipment and automated procedures is copied into described double netcard computer;
S2: described in program control, the serial ports instrument of double netcard computer logs in tested equipment bottom;
S3: programming EAPSring, control vlan and protection vlan, starts EAPSring;
S4: the hello that the first network interface card reception MASTER switch of described double netcard computer is sent wraps, and is transmitted to described MASTER switch by program from the second network interface card;
S5: the forbidding of the first network interface card described in program control, simulates the DOWN of the primary port of described MASTER switch, and the connection status of described secondary port and primary port changes;
S6: the state of secondary port described in program inquiring, whether the state of described secondary port switches to forward state, if it is continues to run, otherwise ejects miscue, and stops running.
Preferably, also step is comprised between the step S4 of automated testing method that switches of described EAPS agreement MASTER switch ports themselves state and step S5:
Program checks port status by described serial ports, and whether the state of described Secondary port is blocking state; If not, check whether network connection road has broken string.
Preferably, also step is comprised after the step S6 of automated testing method that described EAPS agreement MASTER switch ports themselves state switches:
S7: program checks " linkdown " message whether described second network interface card receives the transmission of Master switch, and checks whether this protocol package meets standard, if without receiving or not meeting standard, eject miscue, and stops running.
Preferably, also step is comprised after the step S7 of automated testing method that described EAPS agreement MASTER switch ports themselves state switches:
S8: program is checked described second network interface card and whether received the message refreshing FDB table, and checks whether this message meets standard, if without receiving or not mating, eject miscue, and stops running.
After adopting said method, the first network interface card on double netcard computer connects the primary port of described MASTER switch, second network interface card connects the secondery port of MASTER switch, the serial ports of double netcard computer is connected the serial ports of tested equipment and automated procedures is copied into described double netcard computer; The hello that first network interface card reception MASTER switch of described double netcard computer is sent wraps, and is transmitted to described MASTER switch by program from the second network interface card; The forbidding of the first network interface card described in program control, simulates the DOWN of the primary port of described MASTER switch, and the connection status of described secondary port and primary port changes; The state of secondary port described in program inquiring, whether the state of described secondary port switches to forward state, if it is continues to run, otherwise ejects miscue, and stops running; Simple to operate, the extensibility of automated testing method that this EAPS agreement master switch ports themselves state switches is strong, can read port state and resolve the protocol massages of EAPS and the result of reading is accurately contrasted automatically.
Accompanying drawing explanation
Fig. 1 is the workflow diagram of the automated testing method that a kind of EAPS agreement master switch ports themselves state of the present invention switches.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only for explaining the present invention, being not intended to limit the present invention.
Embodiment 1
Refer to Fig. 1, Fig. 1 is the workflow diagram of the automated testing method that a kind of EAPS agreement master of the present invention switch ports themselves state switches;
In the present embodiment 1, the automated testing method that a kind of EAPS agreement master switch ports themselves state switches: MASTER switch, double netcard computer are provided, the automated testing method that described EAPS agreement master switch ports themselves state switches comprises the following steps: S1: the first network interface card on double netcard computer connects the primary port of described MASTER switch, second network interface card connects the secondery port of MASTER switch, the serial ports of double netcard computer is connected the serial ports of tested equipment and automated procedures is copied into described double netcard computer;
S2: described in program control, the serial ports instrument of double netcard computer logs in tested equipment bottom;
S3: programming EAPSring, control vlan and protection vlan, starts EAPSring;
S4: the hello that the first network interface card reception MASTER switch of described double netcard computer is sent wraps, and is transmitted to described MASTER switch by program from the second network interface card;
S5: the forbidding of the first network interface card described in program control, simulates the DOWN of the primary port of described MASTER switch, and the connection status of described secondary port and primary port changes;
S6: the state of secondary port described in program inquiring, whether the state of described secondary port switches to forward state, if it is continues to run, otherwise ejects miscue, and stops running.
In the present embodiment 1, between the step S4 of the automated testing method that preferred described EAPS agreement MASTER switch ports themselves state switches and step S5, also comprise step:
Program checks port status by described serial ports, and whether the state of described Secondary port is blocking state; If not, check whether network connection road has broken string.
In the present embodiment 1, after the step S6 of the automated testing method that preferred described EAPS agreement MASTER switch ports themselves state switches, also comprise step:
S7: program checks " linkdown " message whether described second network interface card receives the transmission of Master switch, and checks whether this protocol package meets standard, if without receiving or not meeting standard, eject miscue, and stops running.
In the present embodiment 1, after the step S6 of the automated testing method that preferred described EAPS agreement MASTER switch ports themselves state switches, also comprise step:
S8: program is checked described second network interface card and whether received the message refreshing FDB table, and checks whether this message meets standard, if without receiving or not mating, eject miscue, and stops running.
Embodiment 2:
In the present embodiment 2, the automated testing method that a kind of EAPS agreement master switch ports themselves state switches: MASTER switch, double netcard computer are provided, the automated testing method that described EAPS agreement master switch ports themselves state switches comprises the following steps: S1: the first network interface card on double netcard computer connects the primary port of described MASTER switch, second network interface card connects the secondery port of MASTER switch, the serial ports of double netcard computer is connected the serial ports of tested equipment and automated procedures is copied into described double netcard computer;
S2: described in program control, the serial ports instrument of double netcard computer logs in tested equipment bottom;
S3: programming EAPSring, control vlan and protection vlan, starts EAPSring;
S4: the hello that the first network interface card reception MASTER switch of described double netcard computer is sent wraps, and is transmitted to described MASTER switch by program from the second network interface card;
S5: the forbidding of the first network interface card described in program control, simulates the DOWN of the primary port of described MASTER switch, and the connection status of described secondary port and primary port changes;
S6: the state of secondary port described in program inquiring, whether the state of described secondary port switches to forward state, if it is continues to run, otherwise ejects miscue, and stops running.
In the present embodiment 2, between the step S4 of the automated testing method that preferred described EAPS agreement MASTER switch ports themselves state switches and step S5, also comprise step:
Program checks port status by described serial ports, and whether the state of described Secondary port is blocking state; If not, check whether network connection road has broken string.
In the present embodiment 2, after the step S6 of the automated testing method that preferred described EAPS agreement MASTER switch ports themselves state switches, also comprise step:
S7: program is checked described second network interface card and whether received the message refreshing FDB table, and checks whether this message meets standard, if without receiving or not mating, eject miscue, and stops running.
In the present embodiment 2, after the step S7 of the automated testing method that preferred described EAPS agreement MASTER switch ports themselves state switches, also comprise step:
S8: program checks " linkdown " message whether described second network interface card receives the transmission of Master switch, and checks whether this protocol package meets standard, if without receiving or not meeting standard, eject miscue, and stops running.
After adopting said method, the first network interface card on double netcard computer connects the primary port of described MASTER switch, second network interface card connects the secondery port of MASTER switch, the serial ports of double netcard computer is connected the serial ports of tested equipment and automated procedures is copied into described double netcard computer; The hello that first network interface card reception MASTER switch of described double netcard computer is sent wraps, and is transmitted to described MASTER switch by program from the second network interface card; The forbidding of the first network interface card described in program control, simulates the DOWN of the primary port of described MASTER switch, and the connection status of described secondary port and primary port changes; The state of secondary port described in program inquiring, whether the state of described secondary port switches to forward state, if it is continues to run, otherwise ejects miscue, and stops running; Simple to operate, the extensibility of automated testing method that this EAPS agreement master switch ports themselves state switches is strong, can read port state and resolve the protocol massages of EAPS and the result of reading is accurately contrasted automatically.
Should be understood that; these are only the preferred embodiments of the present invention; can not therefore limit the scope of the claims of the present invention; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (6)

1. the automated testing method of an EAPS agreement MASTER switch ports themselves state switching, it is characterized in that: provide MASTER switch, double netcard computer, the automated testing method that described EAPS agreement master switch ports themselves state switches comprises the following steps:
S1: the first network interface card on double netcard computer connects the primary port of described MASTER switch, second network interface card connects the secondery port of MASTER switch, the serial ports of double netcard computer is connected the serial ports of tested equipment and automated procedures is copied into described double netcard computer;
S2: described in program control, the serial ports instrument of double netcard computer logs in tested equipment bottom;
S3: programming EAPSring, control vlan and protection vlan, starts EAPSring;
S4: the hello that the first network interface card reception MASTER switch of described double netcard computer is sent wraps, and is transmitted to described MASTER switch by program from the second network interface card;
S5: the forbidding of the first network interface card described in program control, simulates the DOWN of the primary port of described MASTER switch, and the connection status of described secondary port and primary port changes;
S6: the state of secondary port described in program inquiring, whether the state of described secondary port switches to forward state, if it is continues to run, otherwise ejects miscue, and stops running.
2. the automated testing method of EAPS agreement MASTER switch ports themselves state switching according to claim 1, is characterized in that: also comprise step between the step S4 of the automated testing method that described EAPS agreement MASTER switch ports themselves state switches and step S5:
Program checks port status by described serial ports, and whether the state of described Secondary port is blocking state; If not, check whether network connection road has broken string.
3. the automated testing method of EAPS agreement MASTER switch ports themselves state switching according to claim 1, is characterized in that: also comprise step after the step S6 of the automated testing method that described EAPS agreement MASTER switch ports themselves state switches:
S7: program checks " linkdown " message whether described second network interface card receives the transmission of Master switch, and checks whether this protocol package meets standard, if without receiving or not meeting standard, eject miscue, and stops running.
4. the automated testing method of EAPS agreement MASTER switch ports themselves state switching according to claim 1, is characterized in that: also comprise step after the step S6 of the automated testing method that described EAPS agreement MASTER switch ports themselves state switches:
S7: program is checked described second network interface card and whether received the message refreshing FDB table, and checks whether this message meets standard, if without receiving or not mating, eject miscue, and stops running.
5. the automated testing method of EAPS agreement MASTER switch ports themselves state switching according to claim 3, is characterized in that: also comprise step after the step S7 of the automated testing method that described EAPS agreement MASTER switch ports themselves state switches:
S8: program is checked described second network interface card and whether received the message refreshing FDB table, and checks whether this message meets standard, if without receiving or not mating, eject miscue, and stops running.
6. the automated testing method of EAPS agreement MASTER switch ports themselves state switching according to claim 1, is characterized in that: also comprise step after the step S7 of the automated testing method that described EAPS agreement MASTER switch ports themselves state switches:
S8: program checks " linkdown " message whether described second network interface card receives the transmission of Master switch, and checks whether this protocol package meets standard, if without receiving or not meeting standard, eject miscue, and stops running.
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 true CN105049294A (en) 2015-11-11
CN105049294B 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)

Cited By (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)
CN110138691A (en) * 2019-05-09 2019-08-16 深圳市吉祥腾达科技有限公司 The anti-ring stability test Method and kit for of interchanger Spanning-Tree Protocol
CN113114536A (en) * 2021-04-15 2021-07-13 山东英信计算机技术有限公司 Switch data transmission method and system

Citations (5)

* 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
US20120099425A1 (en) * 2010-10-26 2012-04-26 Ran-Yih Wang Network device and method for establishing path data
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

Patent Citations (5)

* 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
US20120099425A1 (en) * 2010-10-26 2012-04-26 Ran-Yih Wang Network device and method for establishing path data
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 环网切换技术优化研究", 《电信科学》 *

Cited By (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)
CN110138691A (en) * 2019-05-09 2019-08-16 深圳市吉祥腾达科技有限公司 The anti-ring stability test Method and kit for of interchanger Spanning-Tree Protocol
CN113114536A (en) * 2021-04-15 2021-07-13 山东英信计算机技术有限公司 Switch data transmission method and system

Also Published As

Publication number Publication date
CN105049294B (en) 2018-07-06

Similar Documents

Publication Publication Date Title
CN103401726A (en) Network path detecting method, device and system
CN105553885B (en) A kind of FC interchanger priority test method
CN104678851A (en) Switch control method and switch control device of intelligent socket
EP2854369A1 (en) Method and apparatus for detecting interface connection between devices
CN106452921B (en) Stacking system splitting detection method and device
CN102571492B (en) Method and device for detecting failure of routing equipment
CN102546266A (en) Method and platform for diagnosing network failures
CN104660449B (en) The method and apparatus for preventing the more main equipment Master of stacking splitting
CN104104488A (en) Wireless sensor network protocol conformance testing system and method
CN105049294A (en) Automatic testing method for port state switching of EAPS (Ethernet Automatic Protection Switching) protocol MASTER switch
CN106452880B (en) Network wiring detection method and device
CN103731663A (en) Method and device for testing smart television
US10055322B2 (en) Interpreting signals received from redundant buses
CN106708688B (en) Module test method and terminal
WO2016161938A1 (en) Single board reset method, apparatus and device for base band unit
CN104426715A (en) Distributed testing tool control method
WO2016015606A1 (en) Method for locating port connection error and related device
WO2015131623A1 (en) Method and device for detecting loopback link, optical line terminal, and optical network terminal
CN104243316A (en) Mainframe learning method and device
CN202424768U (en) Network safety isolator
CN104486787A (en) Method and device for detecting wireless link fault
CN105306302A (en) Method and system for automatically testing Qinq function
CN104518928A (en) Method and system for transmission of remote image messages through RPR (resilient packet ring) network
CN103885441A (en) Self-adaptive fault diagnosis method for controller local area network
US10673492B2 (en) Point-to-multipoint communication system in which automatic ID allocation is possible

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.