CN104410549A - Test system and method of router - Google Patents

Test system and method of router Download PDF

Info

Publication number
CN104410549A
CN104410549A CN201410753392.9A CN201410753392A CN104410549A CN 104410549 A CN104410549 A CN 104410549A CN 201410753392 A CN201410753392 A CN 201410753392A CN 104410549 A CN104410549 A CN 104410549A
Authority
CN
China
Prior art keywords
router
controlled switch
switch unit
test
power
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
CN201410753392.9A
Other languages
Chinese (zh)
Other versions
CN104410549B (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.)
Boding Shihua (Beijing) Technology 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 CN201410753392.9A priority Critical patent/CN104410549B/en
Publication of CN104410549A publication Critical patent/CN104410549A/en
Application granted granted Critical
Publication of CN104410549B publication Critical patent/CN104410549B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Remote Monitoring And Control Of Power-Distribution Networks (AREA)

Abstract

The invention provides a test system and method of a router. The test system comprises a controlled switch unit connected with a power supply of the router, a control unit connected with the controlled switch unit and a test unit connected with the controlled switch unit, wherein the control unit is used for sending an on/off instruction to the controlled switch unit according to preset rules, so that the controlled switch unit carries out on/off operation on the power supply of the router based on the on/off instruction; the test unit is used for testing the router when the power supply of the router is powered on. The test system and method have the benefit that as the controlled switch unit is arranged at the power supply end of the router, and the control rules are set, the test system can automatically test without artificial participation, so that unattended operation is realized, the power-on time is automatically adjusted, and therefore, the running efficiency of the test system is improved.

Description

The test macro of router and method
Technical field
The present invention relates to a kind of measuring technology, particularly relate to a kind of test macro and method of router.
Background technology
In order to verify the serious problems such as the configuration loss that soho router causes in each time interval power down or mirror image damage, need the switching on and shutting down test carrying out router.The method that current wireless router switching on and shutting down test is commonly used is: manual mode and automated manner.Wherein, manual mode, by pressing the switch of multipurpose socket manually, repeatedly, realizes switching on and shutting down test.Automated manner the pattern preset is solidified in a test system by programming, then by manually starting operation.
Said method mainly contains following shortcoming: in unattended situation, or tester is busier, forgets and checks current running status, and system can be caused to be in unwatched state for a long time.And if setting time is up, also have passed test in this moment, need tester to carry out manual regulation time, to test the value of subsequent time.If now but nobody goes to revise the testing time, the waste of system resource will be caused, greatly can reduce testing efficiency.
But the testing requirement of in fact switching on and shutting down is lasting tests, if night company's unattended operation, so switching on and shutting down test also can only perform at most the upper power-off time arranged before tester leaves.Once test terminates, system resource is in again waste state.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of test macro and method of router, for solving problem of carrying out router test that cannot continue in prior art, that automatically repeat break-make power supply.
For achieving the above object and other relevant objects, the invention provides a kind of test macro of router, comprising: the controlled switch unit be connected with the power supply of router; The control unit be connected with described controlled switch unit, for according to preset rule to the instruction of described controlled switch unit transmit button so that described controlled switch unit carries out make-break operation based on described switch command to the power supply of described router; The test cell be connected with described controlled switch unit, for when the power supply of described router is energized, tests described router.
Preferably, described preset rules comprise following in any one: fixing power on/off periods rules, random power on/off periods rules, in the time zone internal fixtion of setting or the rule in random power on/off cycle.
Preferably, described test cell is used for, when the power supply energising of described router, carrying out the test relevant to power down to described router.
Preferably, the described test relevant to power down comprises following at least one: configuration loss, mirror image damage.
Preferably, described controlled switch unit comprises: relay.
Based on above-mentioned purpose, the present invention also provides a kind of method of testing of router, comprise: according to the rule preset to the controlled switch unit transmit button instruction be connected with router, so that described controlled switch unit carries out make-break operation based on described switch command to the power supply of described router; When the power supply energising of described router, described router is tested.
Preferably, described preset rules comprise following in any one: fixing power on/off periods rules, random power on/off periods rules, in the time zone internal fixtion of setting or the rule in random power on/off cycle.
Preferably, during the described energising of the power supply at described router, the mode that described router is tested is comprised: when the power supply energising of described router, the test relevant to power down is carried out to described router.
Preferably, the described test relevant to power down comprises following at least one: configuration loss, mirror image damage.
As mentioned above, the test macro of router of the present invention and method, there is following beneficial effect: by arranging controlled switch unit at the power end of router and setup control is regular, described test macro can without the need to testing of manually participating in automatically, achieve unattended operation, automatic adjustment power-on time, improves the operational efficiency of test macro; In addition, described test macro can be tested according to various control law, effectively ensures during unattended operation, test comprehensive.
Accompanying drawing explanation
Fig. 1 is shown as the structural representation of the test macro of router of the present invention.
Fig. 2 is shown as the flow chart of the method for testing of router of the present invention.
Element numbers explanation
1 test macro
11 controlled switch unit
12 control units
13 test cells
2 routers
S1 ~ S2 step
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this specification can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this specification also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.It should be noted that, when not conflicting, the feature in following examples and embodiment can combine mutually.
It should be noted that, the diagram provided in following examples only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in graphic but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
Refer to Fig. 1, the invention provides a kind of test macro of router.Described test macro 1 comprises: controlled switch unit 11, control unit 12 and test cell 13.
Described controlled switch unit 11 is connected with the power supply of router two to be tested.
Particularly, between described controlled switch unit 11 power interface that can be connected to described router two and electric power system.Such as, described controlled switch is connected between the supply socket of described router two and a wiring board.Described wiring board is connected with civil power.At this, described controlled switch unit 11 comprises: relay and the peripheral circuit for voltage stabilizing.
Described control unit 12 is connected with described controlled switch unit 11, for according to preset rule to the instruction of described controlled switch unit 11 transmit button so that described controlled switch unit 11 carries out make-break operation based on described switch command to the power supply of described router two.
Particularly, technical staff arranges the rule for controlling described controlled switch unit 11 break-make power supply to described control unit 12 in advance by interface or by external equipment in advance, then described control unit 12 based on set rule to the instruction of described controlled switch unit 11 transmit button.Then described controlled switch unit 11 carries out power on/off operation based on described switch command to described router two.Wherein, described rule includes but not limited to: fix power on/off periods rules, at random power on/off periods rules, in the time zone internal fixtion set or the rule in random power on/off cycle.
Such as, technical staff is arranged by interface and made described controlled switch unit 11 be energized once every 3 seconds, and the duration of each energising was 30 seconds.Then described control unit 12 is from described rule settings completes, electrical instruction is sent every 3 seconds to described controlled switch unit 11 according to system clock, then described controlled switch unit 11 performs power-on servicing based on described electrical instruction, when 30 second of energising, described control unit 12 sends cut-offing instruction, then described controlled switch unit 11 performs power operation based on described cut-offing instruction.Repetition like this.
And for example, described technical staff is arranged by interface and adopts the instruction of stochastic model transmit button from 6 pm to the next morning 9, then described control unit 12 is in the afternoon in 6 to the next morning time zone of 9, sends electrical instruction or cut-offing instruction at random.So, described test macro 1 can After Hours proceed test employee, effectively to utilize unattended time zone, completes dependence test.
Preferably, in order to prevent each random number produced from repeating, described control unit 12 adopts different seeds to produce random number.Such as, described control unit 12 produces different seed by performing srand ((int) time (NULL)) statement.
Then, described test cell 13 is connected with described controlled switch unit 11, for when the power supply of described router two is energized, tests described router two.
Particularly, described test cell 13 is by monitoring the power on/off situation of described controlled switch unit 11 or identifying power on/off situation by receiving described switch command, when determining the power supply energising of described router two, according to the testing process preset, described router two is tested.Wherein, described test can be electric test, conventionally test, high/low temperature test etc.
Preferably, the opening and closing for described controlled switch unit 11 is frequent, and described test cell 13, for when the power supply of described router two is energized, carries out the test relevant to power down to described router two.Wherein, the described test relevant to power down includes but not limited to following at least one: configuration loss, mirror image damage.
According to Fig. 1, the course of work of described test macro 1 is exemplified below:
Technical staff by interface input in the afternoon 6 adopt fixing power on/off periods rules to the next morning 9, and setting made described controlled switch unit 11 be energized once every 3 seconds, and the duration of each energising was 30 seconds.Then described control unit 12 sends electrical instruction or cut-offing instruction based on above-mentioned rule to described controlled switch unit 11, described controlled switch unit 11 makes described router two power on/off based on electrical instruction or cut-offing instruction, meanwhile, the test cell 13 be connected with described controlled switch unit 11 sends ping when it is energized to described router two and sets IP instruction, to test the preservation situation of the configuration of described router two.
Refer to Fig. 2, the invention provides a kind of method of testing of router.Described method of testing performs primarily of test macro.Wherein, described test macro comprises: controlled switch unit, control unit and test cell.Described method of testing comprises step S1 and S2.
Described controlled switch unit is connected with the power supply of router to be tested.
Particularly, between the described controlled switch unit power interface that can be connected to described router and electric power system.Such as, described controlled switch is connected between the supply socket of described router and a wiring board.Described wiring board is connected with civil power.At this, described controlled switch unit comprises: relay and the peripheral circuit for voltage stabilizing.
In step sl, described control unit according to preset rule to the instruction of described controlled switch unit transmit button so that described controlled switch unit carries out make-break operation based on described switch command to the power supply of described router.
Particularly, technical staff arranges the rule for controlling described controlled switch unit break-make power supply to described control unit in advance by interface or by external equipment in advance, then described control unit based on set rule to the instruction of described controlled switch unit transmit button.Then described controlled switch unit carries out power on/off operation based on described switch command to described router.Wherein, described rule includes but not limited to: fix power on/off periods rules, at random power on/off periods rules, in the time zone internal fixtion set or the rule in random power on/off cycle.
Such as, technical staff is arranged by interface and made described controlled switch unit be energized once every 3 seconds, and the duration of each energising was 30 seconds.Then described control unit is from described rule settings completes, electrical instruction is sent every 3 seconds to described controlled switch unit according to system clock, then described controlled switch unit performs power-on servicing based on described electrical instruction, when 30 second of energising, described control unit sends cut-offing instruction, then described controlled switch unit performs power operation based on described cut-offing instruction.Repetition like this.
And for example, described technical staff is arranged by interface and adopts the instruction of stochastic model transmit button from 6 pm to the next morning 9, then described control unit is in the afternoon in 6 to the next morning time zone of 9, sends electrical instruction or cut-offing instruction at random.So, described test macro can After Hours proceed test employee, effectively to utilize unattended time zone, completes dependence test.
Preferably, in order to prevent each random number produced from repeating, described control unit adopts different seeds to produce random number.Such as, described control unit produces different seed by performing srand ((int) time (NULL)) statement.
Then, in step s 2, described test cell, when the power supply energising of described router, is tested described router.
Particularly, described test cell is by monitoring the power on/off situation of described controlled switch unit or identifying power on/off situation by receiving described switch command, when determining the power supply energising of described router, according to the testing process preset, described router is tested.Wherein, described test can be electric test, conventionally test, high/low temperature test etc.
Preferably, the opening and closing for described controlled switch unit is frequent, and described test cell is used for, when the power supply energising of described router, carrying out the test relevant to power down to described router.Wherein, the described test relevant to power down includes but not limited to following at least one: configuration loss, mirror image damage.
According to Fig. 2, the course of work of described test macro is exemplified below:
Technical staff by interface input in the afternoon 6 adopt fixing power on/off periods rules to the next morning 9, and setting made described controlled switch unit be energized once every 3 seconds, and the duration of each energising was 30 seconds.Then described control unit sends electrical instruction or cut-offing instruction based on above-mentioned rule to described controlled switch unit, described controlled switch unit makes described router power on/off based on electrical instruction or cut-offing instruction, meanwhile, the test cell be connected with described controlled switch unit sends ping when it is energized to described router and sets IP instruction, to test the preservation situation of the configuration of described router.
In sum, the test macro of router of the present invention and method, by arranging controlled switch unit at the power end of router and setup control is regular, described test macro can without the need to testing of manually participating in automatically, achieve unattended operation, automatic adjustment power-on time, improves the operational efficiency of test macro; In addition, described test macro can be tested according to various control law, effectively ensures during unattended operation, test comprehensive.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.

Claims (9)

1. a test macro for router, is characterized in that, comprising:
The controlled switch unit be connected with the power supply of router;
The control unit be connected with described controlled switch unit, for according to preset rule to the instruction of described controlled switch unit transmit button so that described controlled switch unit carries out make-break operation based on described switch command to the power supply of described router;
The test cell be connected with described controlled switch unit, for when the power supply of described router is energized, tests described router.
2. the test macro of router according to claim 1, is characterized in that: described preset rules comprise following in any one: fixing power on/off periods rules, random power on/off periods rules, in the time zone internal fixtion of setting or the rule in random power on/off cycle.
3. the test macro of router according to claim 1, is characterized in that: described test cell is used for, when the power supply energising of described router, carrying out the test relevant to power down to described router.
4. the test macro of router according to claim 1, is characterized in that: the described test relevant to power down comprises following at least one: configuration loss, mirror image damage.
5. the test macro of router according to claim 1, is characterized in that: described controlled switch unit comprises: relay.
6. a method of testing for router, is characterized in that, comprising:
According to the rule preset to the controlled switch unit transmit button instruction be connected with router, so that described controlled switch unit carries out make-break operation based on described switch command to the power supply of described router;
When the power supply energising of described router, described router is tested.
7. the method for testing of router according to claim 6, is characterized in that: described preset rules comprise following in any one: fixing power on/off periods rules, random power on/off periods rules, in the time zone internal fixtion of setting or the rule in random power on/off cycle.
8. the method for testing of router according to claim 6, it is characterized in that: during the described energising of the power supply at described router, the mode that described router is tested is comprised: when the power supply energising of described router, the test relevant to power down is carried out to described router.
9. the method for testing of router according to claim 6, is characterized in that: the described test relevant to power down comprises following at least one: configuration loss, mirror image damage.
CN201410753392.9A 2014-12-10 2014-12-10 The test system and method for router Active CN104410549B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410753392.9A CN104410549B (en) 2014-12-10 2014-12-10 The test system and method for router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410753392.9A CN104410549B (en) 2014-12-10 2014-12-10 The test system and method for router

Publications (2)

Publication Number Publication Date
CN104410549A true CN104410549A (en) 2015-03-11
CN104410549B CN104410549B (en) 2018-09-28

Family

ID=52648147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410753392.9A Active CN104410549B (en) 2014-12-10 2014-12-10 The test system and method for router

Country Status (1)

Country Link
CN (1) CN104410549B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104901848A (en) * 2015-06-02 2015-09-09 上海斐讯数据通信技术有限公司 Automated testing system and method for startup and shutdown of router
CN105158590A (en) * 2015-06-03 2015-12-16 上海斐讯数据通信技术有限公司 Test system for broadband wireless device
CN105337807A (en) * 2015-11-30 2016-02-17 上海斐讯数据通信技术有限公司 Router testing system and method
CN108737220A (en) * 2018-06-26 2018-11-02 广东九博科技股份有限公司 The test system of routing device
CN108768764A (en) * 2018-05-08 2018-11-06 四川斐讯信息技术有限公司 A kind of router test method and device
CN108900378A (en) * 2018-07-06 2018-11-27 四川斐讯信息技术有限公司 A kind of router switch machine automated testing method and system
CN113612659A (en) * 2021-08-02 2021-11-05 京东数科海益信息科技有限公司 Equipment networking test method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1346398A2 (en) * 2000-11-01 2003-09-24 Actelis Networks Ltd. High speed access system over copper cable plant
CN1484147A (en) * 2002-09-20 2004-03-24 联想(北京)有限公司 System and method for realizing automatic on/off test of computer
CN101551770A (en) * 2009-05-07 2009-10-07 福建星网锐捷网络有限公司 Hot plug testing device and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1346398A2 (en) * 2000-11-01 2003-09-24 Actelis Networks Ltd. High speed access system over copper cable plant
CN1484147A (en) * 2002-09-20 2004-03-24 联想(北京)有限公司 System and method for realizing automatic on/off test of computer
CN101551770A (en) * 2009-05-07 2009-10-07 福建星网锐捷网络有限公司 Hot plug testing device and method

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104901848A (en) * 2015-06-02 2015-09-09 上海斐讯数据通信技术有限公司 Automated testing system and method for startup and shutdown of router
CN104901848B (en) * 2015-06-02 2018-05-01 上海斐讯数据通信技术有限公司 A kind of router switch machine automatization test system and method
CN105158590A (en) * 2015-06-03 2015-12-16 上海斐讯数据通信技术有限公司 Test system for broadband wireless device
CN105158590B (en) * 2015-06-03 2018-01-02 上海斐讯数据通信技术有限公司 A kind of test system of wideband wireless device
CN105337807A (en) * 2015-11-30 2016-02-17 上海斐讯数据通信技术有限公司 Router testing system and method
CN105337807B (en) * 2015-11-30 2019-07-02 上海斐讯数据通信技术有限公司 Router test macro and method
CN108768764A (en) * 2018-05-08 2018-11-06 四川斐讯信息技术有限公司 A kind of router test method and device
CN108737220A (en) * 2018-06-26 2018-11-02 广东九博科技股份有限公司 The test system of routing device
CN108737220B (en) * 2018-06-26 2021-12-28 广东九博科技股份有限公司 Test system of routing equipment
CN108900378A (en) * 2018-07-06 2018-11-27 四川斐讯信息技术有限公司 A kind of router switch machine automated testing method and system
CN108900378B (en) * 2018-07-06 2023-04-28 索尔集团股份有限公司 Automatic test method and system for switching on and switching off of router
CN113612659A (en) * 2021-08-02 2021-11-05 京东数科海益信息科技有限公司 Equipment networking test method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN104410549B (en) 2018-09-28

Similar Documents

Publication Publication Date Title
CN104410549A (en) Test system and method of router
CN107632219B (en) Automatic startup and shutdown test system and test method thereof
RU2015137955A (en) METHOD AND SYSTEM FOR TESTS OF SEVERAL SPATIO-DISTRIBUTED PROTECTIVE DEVICES OF ELECTRICITY SUPPLY NETWORK
CN104901848A (en) Automated testing system and method for startup and shutdown of router
CN107886821B (en) Simulation test bed for PLC teaching laboratory and data communication method thereof
CN104133146A (en) On-site test method for feeder automation fault treatment logic
CN105067928A (en) Automobile electronic product dark current automatic test method and device
CN106055443A (en) Multichannel DC circulation test system
CN104635722A (en) Abnormal power failure simulation test device
CN105337807A (en) Router testing system and method
CN110320463A (en) A kind of device and method for realizing Devices to test intelligence Aging control
CN201110878Y (en) Aging test system
CN104378788A (en) Method and system for testing wireless network access facility
CN203396869U (en) Integrated test equipment
CN203870229U (en) Time-control voltage-regulating light fixture testing apparatus
CN101409026A (en) Device and method for training and checking electric failure-solving and PLC application skill
CN106603790A (en) Start-up and shutdown test method for mobile terminal
CN106093772A (en) A kind of electrical switch temperature rise detecting system and method
CN103529824B (en) Stability test method and system
CN210377148U (en) Electrical control loop fault point checking system based on programmable controller
CN204479694U (en) A kind of general ultrasonic probe proving installation
CN103217971A (en) Portable multi-functional electrically controlled experiment platform
CN203551245U (en) Vibration testing device
CN106896320B (en) PLC board simulation detection jig
CN103747088B (en) A kind of method and data transmission system that data are transmitted for Full scope simulator

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate 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: 20201103

Address after: 318015 no.2-3167, zone a, Nonggang City, no.2388, Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province

Patentee after: Taizhou 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: 20211109

Address after: No. 150, 1st floor, building 4, Xisanqi building materials City, Haidian District, Beijing 100096

Patentee after: Boding Shihua (Beijing) Technology Co.,Ltd.

Address before: 318015 no.2-3167, area a, nonggangcheng, 2388 Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province

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