CN106533827B - Network apparatus test method and device - Google Patents
Network apparatus test method and device Download PDFInfo
- Publication number
- CN106533827B CN106533827B CN201610951226.9A CN201610951226A CN106533827B CN 106533827 B CN106533827 B CN 106533827B CN 201610951226 A CN201610951226 A CN 201610951226A CN 106533827 B CN106533827 B CN 106533827B
- Authority
- CN
- China
- Prior art keywords
- network
- module
- functional module
- start completion
- network equipment
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0817—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
Abstract
The present invention relates to a kind of network apparatus test method, the network equipment includes network module and multiple functional modules;The described method includes: detect the network module whether start completion;The network module is tested after detecting the network module start completion;Successively detect each functional module whether start completion;And the functional module of start completion is tested.Reliability and testing efficiency in test process has can be improved in above-mentioned network apparatus test method.The present invention also provides a kind of network equipment detection devices.
Description
Technical field
The present invention relates to network communication technology fields, more particularly to a kind of network apparatus test method and device.
Background technique
Before carrying out network equipment detection, need whether detection network equipment starts completely.Traditional detection network is set
It is standby whether to complete to start, the method for generalling use PING (Packet Internet Groper).The obstructed network equipment of PING, then
Think the inactive completion of the network equipment;PING open network equipment, then it is assumed that equipment start completion.However, energy PING open network is set
It is standby, it can only illustrate the network module start completion in the network equipment, not for all module start completions of the network equipment.Work as net
When other modules in network equipment are inactive, the test crash to this module will lead to, reduce the reliability of test process.
Summary of the invention
Based on this, it is necessary to provide a kind of higher network apparatus test method of testing reliability and device.
A kind of network apparatus test method, the network equipment include network module and multiple functional modules;The method
Include: the detection network module whether start completion;To the network mould after detecting the network module start completion
Block is tested;Successively detect each functional module whether start completion;And the functional module of start completion is tested.
In one of the embodiments, the detection network module whether start completion the step of include: with default
Time interval sends solicited message until receiving the response message that the network equipment is replied, and connecing to the network equipment
The network module start completion is confirmed when receiving the response message.
In one of the embodiments, it is described successively detect each functional module whether start completion the step of in, to each function
The sequence that energy module is detected is identical as the boot sequence of each functional module in the network equipment.
In one of the embodiments, it is described successively detect each functional module whether start completion the step of include: with pre-
If time interval sends solicited message to the network equipment;Receive the response message that the network equipment is replied;The response
It include the functional module information that initialization is completed and the functional module information for not completing initialization in information;According to the response
Validation of information functional module whether start completion.
In one of the embodiments, it is described successively detect each functional module whether start completion the step of in, only visiting
Measure that current functional module has been turned on completion and complete just can be according to preset order after the test to the current functional module
To next functional module, whether start completion is detected.
A kind of network equipment detection device, the network equipment include network module and multiple functional modules, the network
Equipment testing device includes: detecting devices, for detect the network module whether start completion;Equipment is controlled, with the spy
Measurement equipment connection, for controlling the network equipment to institute after the detecting devices detects the network module start completion
Network module is stated to be tested;The detecting devices be also used to successively detect each functional module whether start completion;The control
Equipment is also used to control the network equipment and tests the functional module of start completion.
The detecting devices is used to ask with prefixed time interval to network equipment transmission in one of the embodiments,
Information is sought until receiving the response message that the network equipment is replied, and confirm the net when receiving the response message
Network module start completion.
The sequence that the detecting devices detects each functional module in one of the embodiments, is set with the network
The boot sequence of each functional module is identical in standby.
The detecting devices is used to ask with prefixed time interval to network equipment transmission in one of the embodiments,
Information is sought, and receives the response message that the network equipment is replied, the response message includes the function mould that initialization is completed
Block and the functional module for not completing initialization;The detecting devices is also used to whether confirm functional module according to the response message
Start completion.
The detecting devices only has been turned on completion and completion detecting current functional module in one of the embodiments,
To just can according to preset order to next functional module, whether start completion be visited after the test of the current functional module
It surveys.
Above-mentioned network apparatus test method and device, network module in first detection network equipment whether start completion and
The network module is tested after start completion, so that it is guaranteed that network module will not influence subsequent test process, is improved
Reliability in test process.Meanwhile before testing each functional module, it can first detect whether the functional module has started
At so that the problem of only testing to it after the functional module start completion, avoid the occurrence of test crash, further increases
Reliability and testing efficiency in test process.
Detailed description of the invention
Fig. 1 is the flow chart of the network apparatus test method in an embodiment;
Fig. 2 is the internal module figure of the IAD in an embodiment;
Fig. 3 is the flow chart tested IAD;
Fig. 4 is the structural block diagram of the network equipment detection device in an embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Fig. 1 is the flow chart of the network apparatus test method in an embodiment.The network apparatus test method is used for net
Network equipment is tested, and can be applied in network equipment automated production testing field.The network equipment includes network module
With multiple functional modules.Network module is for realizing the communication connection between the network equipment and test device, and each functional module is then
For realizing the various functions of the network equipment.Test device is for realizing the test method.The test method the following steps are included:
S110, detection network module whether start completion.
Solicited message is sent to the network equipment with prefixed time interval.Prefixed time interval, which can according to need, to be set
It is fixed.In the present embodiment, prefixed time interval 2s.The network equipment responds the solicited message after network module start completion,
And reply response message.When receiving the response message, network module start completion can be confirmed.
S120 tests network module after detecting network module start completion.
After confirming network module start completion, just control the network equipment network module is tested, thus avoid by
The case where test crash, occurs when network module inactive completion.Network module is tested, it can be ensured that network module
It can work normally, will not influence the test process of follow-up function module.
S130, successively detect each functional module whether start completion.
The sequence detected to each functional module is identical as the boot sequence of functional module each in the network equipment, thus nothing
It is tested again after needing to wait for the equal start completion of all modules in the network equipment, the testing time can be saved, improve test effect
Rate.To each functional module whether the detection method of start completion whether the detection method of start completion is identical with network module.Tool
Body, the network equipment is sent to the network equipment with prefixed time interval and sends request message.When the current detection in the network equipment
Functional module start completion after, reply response message.It include the functional module and not that initialization is completed in the response message
Complete the functional module of initialization.The functional module of initialization namely the functional module of start completion is completed.Therefore, according to sound
Answer message can confirm the functional module currently detected whether start completion, thus to it after the functional module start completion
S140 is executed, and continues whether start completion detects to next functional module.In one embodiment, detection process can connect
It is continuous to carry out, namely after detecting current functional module start completion, that is, start to detect next functional module, until institute
Functional module detection is completed.It in the present embodiment, can't be at once under after detecting current functional module start completion
One functional module is detected, and only can just be visited to next functional module after completing the test to current functional module
It surveys.Therefore, in current functional module detection process, next functional module can be completed to start, so that it is guaranteed that next function
The functional module has been started up completion when module is detected, and improves testing efficiency.
S140 tests the functional module of start completion.
Only the control network equipment tests the functional module of start completion, can be improved and is successfully tested probability, in turn
Improve whole testing efficiency.
Whether above-mentioned network apparatus test method, network module in first detection network equipment start completion and are starting
The network module is tested at rear, so that it is guaranteed that network module will not influence subsequent test process, improves and tested
Reliability in journey.Meanwhile before testing each functional module, can first detect the functional module whether start completion, from
And the problem of only it is tested after the functional module start completion, avoids the occurrence of test crash, further improve survey
Reliability and testing efficiency during examination.
Below with the network equipment to be carried out for IAD (Integrated Access Device, i.e. integrated access equipment)
Explanation.The equipment that IAD is to provide Internet data and voice communication access function, internal module figure are as shown in Figure 2.The IAD packet
Include network module 210, led module 220, usb module 230, wireless mode 240, voice module 250 and dect module
260.Wherein, network module 210 is the network module of IAD;Led module 220 is the indicating lamp module of IAD;Usb module 230
It is the usb interface module of IAD;Wireless mode 240 is the wireless module of IAD;Voice module 250 is the voice mould of IAD
Block;Dect module 260 is the cordless telephone module of IAD.Fig. 3 is the flow chart tested IAD, illustrates it to be clearer
Working principle also shows the Booting sequence of IAD in figure.The test method the following steps are included:
S302, to IAD electrifying startup.
S304 sends OPTIONS request message to IAD with predetermined period.
Execution predetermined period is 2s.OPTIONS request message is for realizing logical between test device and detected IAD
Letter.In the present embodiment, OPTIONS request message is defined as:
Test device continues to send OPTIONS request message to IAD with predetermined period.
S306 receives the 200OK response message that IAD is replied.
IAD after the power-up, starts network module 210, and ring after start completion to OPTIONS request message
It answers.200OK response message is defined as follows:
Message line | Message format | Explanation |
Response message mark row | RESPONSE 200OK | 200OK response message |
It has been turned on and completes module | Initialized:Module_1 ..., Module_N | It has been turned on and completes module, |
Module to be launched | Uninitialized:Module_1 ..., Module_N | Module to be launched |
Network module 210 has been started up completion at this time, therefore the 200OK response message that the network equipment is replied is as follows:
RESPONSE 200OK
Initialized:network
Uninitialized:led,usb,wireless,voice,dect
Network module 210 can be confirmed according to the 200OK response message, thereby executing subsequent step.
S308, control IAD carry out production test to netwrok module.
S310 continues to send OPTIONS request message to IAD with predetermined period.
S312 receives the 200OK response message that IAD is replied.
Netwrok module 210 is carried out in production test procedure in control IAD, the led module 220 in IAD has started
At.Therefore the content of the OPTIONS request message of IAD reply is as follows:
RESPONSE 200OK
Initialized:network,led
Uninitialized:usb,wireless,voice,dect
Therefore, 220 start completion of led module can be confirmed according to the message.
S314, control IAD carry out production test to led module.
S316 continues to send OPTIONS request message to IAD with predetermined period.
S318 receives the 200OK response message that IAD is replied.
Led module 220 is carried out in production test procedure in control IAD, 230 start completion of usb module in IAD.Therefore
The content for the OPTIONS request message that IAD is replied is as follows:
RESPONSE 200OK
Initialized:network,led,usb
Uninitialized:wireless,voice,dect
Therefore, 230 start completion of usb module can be confirmed according to the response message.
S320, control IAD carry out production test to usb module.
S322 continues to send OPTIONS request message to IAD with predetermined period.
S324 receives the 200OK response message that IAD is replied.
Usb module 230 is carried out in production test procedure in control IAD, the wireless module 240 in IAD has started
At.Therefore the content of the OPTIONS request message of IAD reply is as follows:
RESPONSE 200OK
Initialized:network,led,usb,wireless
Uninitialized:voice,dect
Therefore, 240 start completion of wireless module can be confirmed according to the message.
S326, control IAD carry out production test to wireless module.
S328 continues to send OPTIONS request message to IAD with predetermined period.
S330 receives the 200OK response message that IAD is replied.
Wireless module 240 is carried out in production test procedure in control IAD, the voice module 250 in IAD starts
It completes.Therefore the content of the OPTIONS request message of IAD reply is as follows:
RESPONSE 200OK
Initialized:network,led,usb,wireless,voice
Uninitialized:dect
Therefore, 250 start completion of voice module can be confirmed according to the message.
S332, control IAD carry out production test to voice module.
S334 continues predetermined period to IAD and sends OPTIONS request message.
S336 receives the 200OK response message that IAD is replied.
Voice module 250 is carried out in production test procedure in control IAD, 260 start completion of dect module in IAD.
Therefore the content of the OPTIONS request message of IAD reply is as follows:
RESPONSE 200OK
Initialized:network,led,usb,wireless,voice,dect
Uninitialized:
Therefore, 260 start completion of dect module can be confirmed according to the message.
S338, control IAD carry out production test to dect module.
S340 powers off IAD, stops sending OPTIONS request message to IAD.
In above-mentioned test process, test process is only just carried out after respective modules start completion, so as to effectively avoid
The test crash problem as caused by module inactive completion, improves the reliability in testing efficiency and test process.
The present invention also provides a kind of network equipment detection devices, for realizing above-mentioned test method.The network equipment detection
Device includes detecting devices 410 and controls equipment 420, as shown in Figure 4.Wherein, detecting devices 410 is for detection network module
No start completion.Specifically, detecting devices 410 is used to send solicited message to the network equipment until receiving with prefixed time interval
The response message replied to the network equipment, and network module start completion is confirmed when receiving the response message.Control is set
Standby 420 connect with detecting devices 410, for controlling the network equipment after detecting devices 410 detects network module start completion
Network module is tested.Detecting devices 410 be also used to successively detect each functional module whether start completion.Detecting devices
The sequence that 410 pairs of each functional modules are detected is identical as the boot sequence of functional module each in the network equipment.Specifically, it detects
Equipment 410 is used to send solicited message to the network equipment with prefixed time interval, and receives the response message of network equipment reply.
Response message includes the functional module that initialization is completed and the functional module for not completing initialization.Detecting devices 410 is also used to
According to the response message confirm functional module whether start completion.Control equipment 410 is also used to control the network equipment to having started
At functional module tested.
Whether above-mentioned network equipment detection device, network module in first detection network equipment start completion and are starting
The network module is tested at rear, so that it is guaranteed that network module will not influence subsequent test process, improves and tested
Reliability in journey.Meanwhile before testing each functional module, can first detect the functional module whether start completion, from
And the problem of only it is tested after the functional module start completion, avoids the occurrence of test crash, further improve survey
Reliability and testing efficiency during examination.
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention
Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Claims (8)
1. a kind of network apparatus test method, the network equipment includes network module and multiple functional modules;It is characterized in that,
The described method includes:
Detect the network module whether start completion;
The network module is tested after detecting the network module start completion;
Successively detect each functional module whether start completion;And
The functional module of start completion is tested;
It is described successively detect each functional module whether start completion the step of include:
Solicited message is sent to the network equipment with prefixed time interval;
Receive the response message that the network equipment is replied;It include the functional module letter that initialization is completed in the response message
Breath and the functional module information for not completing initialization;
According to the response message confirm functional module whether start completion.
2. the method according to claim 1, wherein the detection network module whether the step of start completion
Suddenly include:
Solicited message is sent until receiving the response that the network equipment is replied to the network equipment with prefixed time interval
Information, and the network module start completion is confirmed when receiving the response message.
3. the method according to claim 1, wherein it is described successively detect each functional module whether start completion
In step, the sequence detected to each functional module is identical as the boot sequence of each functional module in the network equipment.
4. the method according to claim 1, wherein it is described successively detect each functional module whether start completion
In step, only has been turned on completion and just can after completing the test to the current functional module detecting current functional module
According to preset order, to next functional module, whether start completion is detected.
5. a kind of network equipment detection device, the network equipment includes network module and multiple functional modules, which is characterized in that
The network equipment detection device includes:
Detecting devices, for detect the network module whether start completion;
Equipment is controlled, is connect with the detecting devices, for detecting the network module start completion in the detecting devices
After control the network equipment network module tested;
The detecting devices be also used to successively detect each functional module whether start completion;
The control equipment is also used to control the network equipment and tests the functional module of start completion;
The detecting devices is used to send solicited message to the network equipment with prefixed time interval, and receives the network and set
The standby response message replied, the response message include the functional module that initialization is completed and the function mould for not completing initialization
Block;The detecting devices be also used to according to the response message confirm functional module whether start completion.
6. network equipment detection device according to claim 5, which is characterized in that when the detecting devices is used for preset
Between be spaced and send solicited message to the network equipment until receiving the response message that the network equipment is replied, and receiving
The network module start completion is confirmed when to the response message.
7. network equipment detection device according to claim 5, which is characterized in that the detecting devices is to each functional module
The sequence detected is identical as the boot sequence of each functional module in the network equipment.
8. network equipment detection device according to claim 5, which is characterized in that the detecting devices is only worked as detecting
Preceding functional module has been turned on completion and complete just can be according to preset order to next after the test to the current functional module
Whether start completion is detected functional module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610951226.9A CN106533827B (en) | 2016-10-26 | 2016-10-26 | Network apparatus test method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610951226.9A CN106533827B (en) | 2016-10-26 | 2016-10-26 | Network apparatus test method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106533827A CN106533827A (en) | 2017-03-22 |
CN106533827B true CN106533827B (en) | 2019-12-03 |
Family
ID=58326806
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610951226.9A Active CN106533827B (en) | 2016-10-26 | 2016-10-26 | Network apparatus test method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106533827B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102238042A (en) * | 2010-04-29 | 2011-11-09 | 鸿富锦精密工业(深圳)有限公司 | Network equipment testing system and method |
CN103631702A (en) * | 2012-08-20 | 2014-03-12 | 腾讯科技(深圳)有限公司 | Automatic random key test method and device |
CN104850499A (en) * | 2015-06-10 | 2015-08-19 | 北京华力创通科技股份有限公司 | Automatic test method and device for base band software |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI497968B (en) * | 2012-12-25 | 2015-08-21 | Wistron Neweb Corp | Network transmission inspection device and network transmission inspection method |
-
2016
- 2016-10-26 CN CN201610951226.9A patent/CN106533827B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102238042A (en) * | 2010-04-29 | 2011-11-09 | 鸿富锦精密工业(深圳)有限公司 | Network equipment testing system and method |
CN103631702A (en) * | 2012-08-20 | 2014-03-12 | 腾讯科技(深圳)有限公司 | Automatic random key test method and device |
CN104850499A (en) * | 2015-06-10 | 2015-08-19 | 北京华力创通科技股份有限公司 | Automatic test method and device for base band software |
Also Published As
Publication number | Publication date |
---|---|
CN106533827A (en) | 2017-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113675636B (en) | Electronic device and method for electronic device to identify connection terminal of external device | |
CN112020048B (en) | Bluetooth device pairing method, device and storage medium | |
CN110035556B (en) | Method and terminal for processing conflict of communication service process | |
CN108476247A (en) | Media access control(MAC)Address identifies | |
CN106028264B (en) | Electronic equipment Bluetooth pairing methods and system | |
CN112492442A (en) | Connection switching method, device, equipment and storage medium of Bluetooth headset | |
CN111107528A (en) | Bluetooth test method and test machine | |
CN106598358B (en) | Proximity detection method and device and terminal | |
JP2017005304A5 (en) | ||
CN105354118B (en) | Automatic test approach, the apparatus and system of intelligent terminal | |
WO2020156428A1 (en) | Information sending method, information detection method, terminal device and network device | |
WO2019062509A1 (en) | Paging method, terminal and network side device | |
US20220022187A1 (en) | Transmission method, terminal device, and network-side device | |
US20220225352A1 (en) | System and method for physical downlink control channel monitoring | |
CN105549995B (en) | A kind of audio frequency apparatus upgrade method and device | |
CN106533827B (en) | Network apparatus test method and device | |
TW202215889A (en) | Method and system for implementing beam failure recovery | |
US8391162B2 (en) | Apparatus and method for testing SMNP cards | |
CN104850203A (en) | Electronic apparatus reset method and electronic apparatus | |
CN105743879B (en) | Smart television personal identification method and system | |
CN108538041A (en) | Electronic equipment matching method and apply its electronic equipment | |
US11352997B2 (en) | Remote starter adapter for use with a communication device | |
CN105243015B (en) | Method and system for automatically testing software | |
TW202203611A (en) | Network device and method for cross carrier scheduling | |
CN113691024A (en) | Wireless charging method and wireless charging device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |