CN104410549B - The test system and method for router - Google Patents

The test system and method for router Download PDF

Info

Publication number
CN104410549B
CN104410549B CN201410753392.9A CN201410753392A CN104410549B CN 104410549 B CN104410549 B CN 104410549B CN 201410753392 A CN201410753392 A CN 201410753392A CN 104410549 B CN104410549 B CN 104410549B
Authority
CN
China
Prior art keywords
router
power
controlled switch
switch unit
test
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
CN201410753392.9A
Other languages
Chinese (zh)
Other versions
CN104410549A (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 present invention provides a kind of test system and method for router.Wherein, the test system includes:The controlled switch unit being connected with the power supply of router;The control unit being connected with the controlled switch unit, for sending switch order to the controlled switch unit according to default rule, so that the controlled switch unit carries out on-off line operation based on the switch order to the power supply of the router;The test cell being connected with the controlled switch unit, for when the power supply of the router is powered, testing the router.The present invention by the way that controlled switch unit is arranged in the power end of router and sets control rule, the test system can be not necessarily to manually to participate in it is automatic be tested, realize unattended, adjust automatically power-on time improves the operational efficiency of test system.

Description

The test system and method for router
Technical field
The present invention relates to a kind of measuring technologies, more particularly to a kind of test system and method for router.
Background technology
In order to verify the serious problems such as configuration loss that soho router causes in each time interval power down or mirror image damage, The switching on and shutting down for carrying out router are needed to test.Common method is tested in wireless router switching on and shutting down at present:Manual mode and from Flowing mode.Wherein, manual mode repeatedly realizes switching on and shutting down test by manually pressing the switch of multipurpose socket.From Flowing mode is in a test system, then by manually starting to be run the solidification of preset pattern by programming.
The above method mainly has the disadvantage that:In the case of unattended or tester is relatively busy, forgets to check and work as Preceding operating status can cause system to be in unwatched state for a long time.And if setting has timed out, at the moment Test is had also passed through, tester is needed to carry out manually adjusting the time, to test the value of subsequent time.If but nobody at this time The modification testing time is gone, the waste of system resource is may result in, testing efficiency can be substantially reduced.
However, in fact the testing requirement of switching on and shutting down is that lasting test switchs if night company is unattended Machine test at most can only also execute the upper power-off time being arranged before tester leaves.Once test terminates, system resource is located again In waste state.
Invention content
In view of the foregoing deficiencies of prior art, the purpose of the present invention is to provide a kind of test system of router and Method, for solving the problems, such as the carry out router test for repeating break-make power supply can not continue in the prior art, automatic.
In order to achieve the above objects and other related objects, the present invention provides a kind of test system of router, including:With road By the connected controlled switch unit of the power supply of device;The control unit being connected with the controlled switch unit, for according to preset Rule sends switch order to the controlled switch unit, so that the controlled switch unit is based on the switch order to described The power supply of router carries out on-off line operation;The test cell being connected with the controlled switch unit, in the router When power supply is powered, the router is tested.
Preferably, the preset rules include it is following in it is any:Fixed power on/off periods rules, random power on/off period Rule, fixed or the power on/off period at random the rule in the time zone of setting.
Preferably, the test cell is used for when the power supply of the router is powered, and the router is carried out and fallen The relevant test of electricity.
Preferably, the relevant test of described and power down includes following at least one:Configuration loss, mirror image damage.
Preferably, the controlled switch unit includes:Relay.
Based on above-mentioned purpose, the present invention also provides a kind of test methods of router, including:According to default rule to The connected controlled switch unit of router sends switch order, so that the controlled switch unit is based on the switch order to institute The power supply for stating router carries out on-off line operation;When the power supply of the router is powered, the router is tested.
Preferably, the preset rules include it is following in it is any:Fixed power on/off periods rules, random power on/off period Rule, fixed or the power on/off period at random the rule in the time zone of setting.
Preferably, when the power supply in the router is powered, the mode tested the router includes: When the power supply of the router is powered, the router is carried out and the relevant test of power down.
Preferably, the relevant test of described and power down includes following at least one:Configuration loss, mirror image damage.
As described above, the test system and method for the router of the present invention, has the advantages that:By in router Power end setting controlled switch unit and set control rule, the test system can be not necessarily to the automatic progress that manually participates in Test, realizes unattended, and adjust automatically power-on time improves the operational efficiency of test system;In addition, the test system System can be tested according to various control rules, be effectively ensured in unattended period, test it is comprehensive.
Description of the drawings
Fig. 1 is shown as the structural schematic diagram of the test system of the router of the present invention.
Fig. 2 is shown as the flow chart of the test method of the router of the present invention.
Component label instructions
1 test system
11 controlled switch units
12 control units
13 test cells
2 routers
S1~S2 steps
Specific implementation mode
Illustrate that embodiments of the present invention, those skilled in the art can be by this specification below by way of specific specific example Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through in addition different specific realities The mode of applying is embodied or practiced, the various details in this specification can also be based on different viewpoints with application, without departing from Various modifications or alterations are carried out under the spirit of the present invention.It should be noted that in the absence of conflict, following embodiment and implementation Feature in example can be combined with each other.
It should be noted that the diagram provided in following embodiment only illustrates the basic structure of the present invention in a schematic way Think, component count, shape and size when only display is with related component in the present invention rather than according to actual implementation in schema then Draw, when actual implementation kenel, quantity and the ratio of each component can be a kind of random change, and its assembly layout kenel It is likely more complexity.
Referring to Fig. 1, the present invention provides a kind of test system of router.The test system 1 includes:Controlled switch list Member 11, control unit 12 and test cell 13.
The controlled switch unit 11 is connected with the power supply of router 2 to be tested.
Specifically, the controlled switch unit 11 is attached between the power interface and power supply system of the router 2. For example, the controlled switch is connected between the power outlet of the router 2 and a wiring board.The wiring board and alternating current phase Even.Here, the controlled switch unit 11 includes:Relay and peripheral circuit for voltage stabilizing.
Described control unit 12 is connected with the controlled switch unit 11, for controlled being opened to described according to default rule Close unit 11 send switch order, so as to the controlled switch unit 11 based on the switch order to the electricity of the router 2 Source carries out on-off line operation.
Specifically, technical staff first passes through interface or is arranged in advance to described control unit 12 from external equipment and used in advance In the rule for controlling the 11 break-make power supply of controlled switch unit, then described control unit 12 based on set rule to described Controlled switch unit 11 sends switch order.Then the controlled switch unit 11 is based on the switch order to the router 2 It is electrically operated to carry out break-make.Wherein, the rule includes but not limited to:Fixed power on/off periods rules, rule of random power on/off period Then, fixed or the power on/off period at random the rule in the time zone of setting.
It enabled the controlled switch unit 11 be powered once every 3 seconds for example, technical staff is arranged by interface, is powered every time When it is 30 seconds a length of.Then described control unit 12 since the rule settings complete, according to system clock every 3 seconds to The controlled switch unit 11 sends out electrical instruction, then the controlled switch unit 11 is based on the electrical instruction and executes the behaviour that is powered Make, when being powered 30 seconds, described control unit 12 sends out cut-offing instruction, then the controlled switch unit 11 is based on the power-off Instruction execution power operation.So repeat.
For another example, the technical staff is arranged from 6 pm to the next morning by interface and is sent using stochastic model for 9 points Switch order, then described control unit 12 in the afternoon 6 points in 9 points of time zone of the next morning, it is random send electrical instruction or Cut-offing instruction.In this way, the test system 1 can After Hours continue to test in employee, it is unattended to efficiently use Dependence test is completed in time zone.
Preferably, the random number generated every time in order to prevent repeats, and described control unit 12 is generated using different seeds Random number.For example, described control unit 12 generates different seeds by executing srand ((int) time (NULL)) sentences.
Then, the test cell 13 is connected with the controlled switch unit 11, logical for the power supply in the router 2 When electric, the router 2 is tested.
Specifically, the test cell 13 is by monitoring the power on/off situation of the controlled switch unit 11 or by connecing The switch order is received to identify power on/off situation, when determining that the power supply of the router 2 is powered, according to preset testing process The router 2 is tested.Wherein, the test can be electric test, routine test, high/low temperature test etc..
Preferably, the opening and closing for the controlled switch unit 11 is frequent, and the test cell 13 is used in the routing When the power supply of device 2 is powered, the router 2 is carried out and the relevant test of power down.Wherein, the described and relevant test bag of power down It includes but is not limited to following at least one:Configuration loss, mirror image damage.
According to Fig. 1, the course of work of the test system 1 is exemplified below:
Technical staff by interface input in the afternoon 6 points to 9 points of the next morning using fixed power on/off periods rules, and Setting enabled the controlled switch unit 11 be powered once every 3 seconds, be powered every time when it is 30 seconds a length of.Then described control unit 12 send electrical instruction or cut-offing instruction, 11 base of the controlled switch unit based on above-mentioned rule to the controlled switch unit 11 2 power on/off of the router is enabled in electrical instruction or cut-offing instruction, at the same time, is connected with the controlled switch unit 11 Test cell 13 sends ping setting IP instructions when it is powered to the router 2, to test the configuration of the router 2 Preserve situation.
Referring to Fig. 2, the present invention provides a kind of test method of router.The test method mainly by test system Lai It executes.Wherein, the test system includes:Controlled switch unit, control unit and test cell.The test method includes step Rapid S1 and S2.
The controlled switch unit is connected with the power supply of router to be tested.
Specifically, the controlled switch unit is attached between the power interface and power supply system of the router.Example Such as, the controlled switch is connected between the power outlet of the router and a wiring board.The wiring board is electrically connected with city. Here, the controlled switch unit includes:Relay and peripheral circuit for voltage stabilizing.
In step sl, described control unit sends switch order according to default rule to the controlled switch unit, So that the controlled switch unit carries out on-off line operation based on the switch order to the power supply of the router.
Specifically, technical staff first passes through interface or is used in advance to described control unit setting from external equipment in advance The rule of the controlled switch unit break-make power supply is controlled, then described control unit controlled is opened based on set rule to described It closes unit and sends switch order.Then the controlled switch unit is based on the switch order and carries out power on/off behaviour to the router Make.Wherein, the rule includes but not limited to:Fixed power on/off periods rules, random power on/off periods rules, setting when The rule in fixed or random power on/off period in area.
It enabled the controlled switch unit be powered once every 3 seconds for example, technical staff is arranged by interface, is powered every time Shi Changwei 30 seconds.Then described control unit is since being completed the rule settings, according to system clock every 3 seconds to described Controlled switch unit sends out electrical instruction, then the controlled switch unit is based on the electrical instruction and executes power-on servicing, when logical When 30 seconds electric, described control unit sends out cut-offing instruction, then it is disconnected to be based on cut-offing instruction execution for the controlled switch unit It is electrically operated.So repeat.
For another example, the technical staff is arranged from 6 pm to the next morning by interface and is sent using stochastic model for 9 points Switch order, then described control unit in the afternoon 6 points in 9 points of time zone of the next morning, it is random to send electrical instruction or disconnected Electricity instruction.In this way, the test system can After Hours continue to test in employee, when efficiently using unattended Area completes dependence test.
Preferably, the random number that generates every time in order to prevent repeats, described control unit using different seeds generate with Machine number.For example, described control unit generates different seeds by executing srand ((int) time (NULL)) sentences.
Then, in step s 2, the test cell carries out the router when the power supply of the router is powered Test.
Specifically, the test cell is by monitoring the power on/off situation of the controlled switch unit or by receiving institute Switch order is stated to identify power on/off situation, when determining that the power supply of the router is powered, according to preset testing process to institute Router is stated to be tested.Wherein, the test can be electric test, routine test, high/low temperature test etc..
Preferably, the opening and closing for the controlled switch unit is frequent, and the test cell is used in the router When power supply is powered, the router is carried out and the relevant test of power down.Wherein, the test relevant with power down includes but not It is limited to following at least one:Configuration loss, mirror image damage.
According to Fig.2, the course of work of the test system is exemplified below:
Technical staff by interface input in the afternoon 6 points to 9 points of the next morning using fixed power on/off periods rules, and It is primary that setting enabled the controlled switch unit be powered every 3 seconds, be powered every time when it is 30 seconds a length of.Then described control unit base Electrical instruction or cut-offing instruction are sent to the controlled switch unit in above-mentioned rule, the controlled switch unit, which is based on being powered, to be referred to It enables or cut-offing instruction enables the router power on/off, at the same time, the test cell being connected with the controlled switch unit exists Ping setting IP instructions are sent to the router when it is powered, to test the preservation situation of the configuration of the router.
In conclusion the test system and method for the router of the present invention, controlled by being arranged in the power end of router Switch unit simultaneously sets control rule, and what the test system can be not necessarily to manually participate in is tested automatically, realizes nobody On duty, adjust automatically power-on time improves the operational efficiency of test system;In addition, the test system can be according to various Control rule is tested, and is effectively ensured in unattended period, test it is comprehensive.So the present invention effectively overcomes Various shortcoming in the prior art and have high industrial utilization.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe The personage for knowing this technology can all carry out modifications and changes to above-described embodiment without violating the spirit and scope of the present invention.Cause This, institute is complete without departing from the spirit and technical ideas disclosed in the present invention by those of ordinary skill in the art such as At all equivalent modifications or change, should by the present invention claim be covered.

Claims (7)

1. a kind of test system of router, which is characterized in that including:
The controlled switch unit being connected with the power supply of router;
The control unit being connected with the controlled switch unit, for being sent to the controlled switch unit according to default rule Switch order, so that the controlled switch unit carries out on-off line operation based on the switch order to the power supply of the router; The test cell being connected with the controlled switch unit, the power on/off that the test cell passes through the monitoring controlled switch unit Situation identifies power on/off situation by receiving the switch order, when determining that the power supply of the router is powered, according to Preset testing process tests the router;
The preset rules include it is following in it is any:Fixed power on/off periods rules, are being set random power on/off periods rules Time zone in the fixed or random power on/off period rule.
2. the test system of router according to claim 1, it is characterised in that:The test cell is used on the road When being powered by the power supply of device, the router is carried out and the relevant test of power down.
3. the test system of router according to claim 2, it is characterised in that:It is described to include with the relevant test of power down Following at least one:Configuration loss, mirror image damage.
4. the test system of router according to claim 1, it is characterised in that:The controlled switch unit includes:After Electric appliance.
5. a kind of test method of router, which is characterized in that including:
One control unit sends switch order according to default rule to the controlled switch unit being connected with router, so as to described Controlled switch unit carries out on-off line operation based on the switch order to the power supply of the router;One test cell passes through monitoring The power on/off situation of the controlled switch unit identifies power on/off situation by receiving the switch order, determine described in When the power supply of router is powered, the router is tested according to preset testing process;
The preset rules include it is following in it is any:Fixed power on/off periods rules, are being set random power on/off periods rules Time zone in the fixed or random power on/off period rule.
6. the test method of router according to claim 5, it is characterised in that:It is powered in the power supply of the router When, the mode tested the router includes:The router power supply be powered when, to the router carry out with The relevant test of power down.
7. the test method of router according to claim 6, it is characterised in that:It is described to include with the relevant test of power down 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 CN104410549A (en) 2015-03-11
CN104410549B true 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)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104901848B (en) * 2015-06-02 2018-05-01 上海斐讯数据通信技术有限公司 A kind of router switch machine automatization test system and method
CN105158590B (en) * 2015-06-03 2018-01-02 上海斐讯数据通信技术有限公司 A kind of test system of wideband wireless device
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
CN108737220B (en) * 2018-06-26 2021-12-28 广东九博科技股份有限公司 Test system of routing equipment
CN108900378B (en) * 2018-07-06 2023-04-28 索尔集团股份有限公司 Automatic test method and system for switching on and switching off of router
CN113612659B (en) * 2021-08-02 2023-05-12 京东科技信息技术有限公司 Device networking test method and device, electronic device 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

Also Published As

Publication number Publication date
CN104410549A (en) 2015-03-11

Similar Documents

Publication Publication Date Title
CN104410549B (en) The test system and method for router
CN104901848A (en) Automated testing system and method for startup and shutdown of router
CN103970630A (en) Method for testing overall stability of server
CN106452956B (en) A kind of Homeplug dormancy wake-up testing system and test method
CN110320463A (en) A kind of device and method for realizing Devices to test intelligence Aging control
CN203367660U (en) Intelligent metering socket
CN105337807B (en) Router test macro and method
CN102955136A (en) Assistant detection circuit and assistant detection method for redundant power sources
CN203396869U (en) Integrated test equipment
CN204440048U (en) A kind of time power source on-off control device
CN203870229U (en) Time-control voltage-regulating light fixture testing apparatus
CN203630252U (en) Testing circuit, device and system of household electrical appliances
CN103619109B (en) The debug system of light fixture and adjustment method in lighting mains
CN104486162A (en) Automatic on-off test system and test method thereof
CN202710672U (en) Power-on reliability test system
CN203689125U (en) LED display screen multichannel automatic aging control device
CN106093772A (en) A kind of electrical switch temperature rise detecting system and method
CN204314679U (en) A kind of fault routing inspection circuit exported for many power sources in parallel
CN203573126U (en) Circuit structure in remote control switching mode
CN204422669U (en) Welder equipment test control circuit and welder equipment testing and control box
CN104730371A (en) Testing method, circuit, device and system for household appliances
CN203672633U (en) Vehicle door glass lifting test device
CN206975629U (en) A kind of X86 platforms automatic on/off test of computer tool
CN202453430U (en) External power grid instantaneous power supply interruption time testing device
CN203786273U (en) Automatic continuous impact testing circuit

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

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.

TR01 Transfer of patent right