CN101242319A - Testing method and device for network device - Google Patents

Testing method and device for network device Download PDF

Info

Publication number
CN101242319A
CN101242319A CNA2008100847385A CN200810084738A CN101242319A CN 101242319 A CN101242319 A CN 101242319A CN A2008100847385 A CNA2008100847385 A CN A2008100847385A CN 200810084738 A CN200810084738 A CN 200810084738A CN 101242319 A CN101242319 A CN 101242319A
Authority
CN
China
Prior art keywords
network equipment
interface
state
service card
test scene
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.)
Pending
Application number
CNA2008100847385A
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNA2008100847385A priority Critical patent/CN101242319A/en
Publication of CN101242319A publication Critical patent/CN101242319A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a method and device for testing a network equipment. The method mainly comprises: changing an interface state of an operation card in the network equipment by software; actualizing a test scene by the change of interface state of an operation card, and testing the equipment in the test scene. The device mainly comprises: an interface state change module, a test scene implementation module, and a test module. The invention can actualize various test scene based on the interface state in the operation card, can be used in various complex test environment performing a starting test for the network equipment, and can save manpower in test for the network equipment, and raises a testing efficiency.

Description

The method and apparatus that the network equipment is tested
Technical field
The present invention relates to network communication field, relate in particular to a kind of method and apparatus that the network equipment is tested.
Background technology
Modern communications is more and more higher to the requirement of network failure positioning time, especially for business such as the VolP that carries in the IP network, IPTV, the fault of real-time detection network is had higher requirement.Two-way forwarding detects (BFD, Bidirectional Forwarding Detection) agreement or fastfeeling (perception fast) function can be used to address this problem.
The BFD agreement is a kind of network measuring mechanism, the BFD agreement is by regularly sending based on user datagram protocol (UDP, User Datagram Protocol) Ceng fault-detection data bag, not only can detect and judge the outage of transmission link, optical interface and device port, can also detect and judge soft faults such as error code that transport layer, link layer, IP layer and application layer exist, packet loss.
Whether the realization of fastfeeling (fast perception) function is to be the down state by hardware perception interface link, is unidirectional testing mechanism, and it is logical or obstructed to detect link, notifies the physical state of link then, thereby triggers various upper layer software (applications) agreements.
A kind of method that the network equipment is tested of the prior art is: the method for testing of the service card in the network equipment directly being carried out hot plug.By manually service card being extracted, make all the professional and performance interruptions on this service card, in the situation that service card is not on the throne the network equipment is tested.Simultaneously, situation about inserting at service card is also tested the network equipment.Foundation is the detecting information of the network equipment of unit with the service card.
In realizing process of the present invention, the inventor finds: this method is measuring unit with the service card, can not be applied to the network equipment is carried out the various complicated test environment of beginning test.This method needs artificial the participation that service card is plugged, and is big to the networking pressure of test, carries out difficulty.
Summary of the invention
The purpose of the embodiment of the invention provides a kind of method and apparatus that the network equipment is tested, thereby can solve the problem that can not be applied to various complicated test environments in the prior art scheme, need artificial participation.
The purpose of the embodiment of the invention is achieved through the following technical solutions:
A kind of method that the network equipment is tested comprises:
Change by the state of software the interface of service card in the network equipment;
Utilize the state change of the interface in the described service card to realize out test scene, in this test scene, the described network equipment is tested.
A kind of device that the network equipment is tested comprises:
Interface status changes module, is used for changing by the state of software to the interface of network equipment service card;
Test module is used for changing in the test scene of being realized at the state of the interface that utilizes described service card, and the described network equipment is tested.
The technical scheme that is provided by the invention described above embodiment as can be seen, the embodiment of the invention can be based on the state of the interface in the service card, realize various test scenes, can be applied to the network equipment is carried out the various complicated test environment of beginning test, can in the network equipment is tested, save manpower, improve testing efficiency.
Description of drawings
Fig. 1 is the process chart of the described method that the network equipment is tested of the embodiment of the invention;
Fig. 2 is the described networking schematic diagram that needs the network equipment of test of the embodiment of the invention;
Fig. 3 describes schematic diagram for the 26S Proteasome Structure and Function of the bit11 in the described control register of the embodiment of the invention;
Fig. 4 is the structural representation of the described device that the network equipment is tested of the embodiment of the invention.
Embodiment
In embodiments of the present invention, the test scene of testing as required, select the corresponding business card, obtain the register that service card in the network equipment is controlled, change by the state of software, realize the state of the part or all of interface in the described service card is changed according to the state of this register to this register.
Utilize the state of the part or all of interface in the described service card to realize out test scene, in this test scene, utilize BFD agreement or fastfeeling function that the described network equipment is tested.
The handling process of the described method that the network equipment is tested of the embodiment of the invention comprises the steps: as shown in Figure 1
Step 1-1, the state of hardware register of control service card in the network equipment is changed, realize the state of interface in the service card is changed, realize out various test scenes.
In the time need carrying out beginning test of various complexity to the network equipment, such as, whether the forwarding of link in the network equipment or IP route be communicated with detect, to available detection the whether of the static routing in the network equipment, to the network equipment detection of giving out a contract for a project, the link of the network equipment is carried out various quick change detection based on BFD or fastfeeling or the like.
At first, the test scene of testing is as required chosen the service card in the corresponding network device, obtains the hardware register information that this service card is controlled.Then, change, the state of hardware register changed by the assignment of software to this hardware register, thus realize in this service card partly or entirely the state of interface change.According to the part or all of state of interface in this service card, just can realize this service card insertion, extract, various situations such as not on the throne, link down, and then realize out the test scene that above-mentioned needs are tested.
Step 1-2, in the various test scenes of realizing out, utilize test protocol that the network equipment is tested.
The state of part or all of interface in according to service card behind the test scene of realizing out testing, just can utilize BFD agreement or fastfeeling function etc. that the network equipment is tested in this test scene.
Introduce a concrete application example of the described method of the embodiment of the invention below.
Such as, in the networking of the network equipment that needs shown in Figure 2 are tested, link A-B-D-F is a reserve link, and A-C-E-F is an active link, and present embodiment is tested the switching services process between above-mentioned active link and the reserve link.
The embodiment of the invention is chosen the break simulation that router E in the networking shown in Figure 2 carries out active link, the master chip of supposing the interface card use of this router E is 88E1011, the offset address of the control register that this master chip is powered is 0x00, bit11 position in this control register be used to control master chip 88E1011 power supply connection and close, the 26S Proteasome Structure and Function of this bit11 is described as shown in Figure 3, the value of bit11 is that 0 expression is powered to master chip 88E1011, is that 1 expression is cut off the power supply to master chip 88E1011.
The embodiment of the invention arrives by the software transmitting order to lower levels and drives, by driving the value of the bit11 in the above-mentioned control register is put 1, so, just to the master chip 88E1011 outage of the interface card of above-mentioned router E, the state of the total interface in the interface card of router E just is down (interruption), being connected just between router E and extraneous other network equipment interrupted, and the state of above-mentioned active link is not just for being communicated with.So, just can the BFD agreement or the fastfeeling function carry out switching services test between the main/slave link.
In the above-described embodiments, can carry out Long-distance Control to the state of the interface in the interface card of router E by software, thereby can the interface line of the interface card of router E not plugged or docking port sticks under the situation of row plug, realizing the interruption and the connection of the Link State of router E.And then realize out various test scenes, can carry out various quick switch tests based on BFD or fastfeeling.
The structural representation of the described device that the network equipment is tested of the embodiment of the invention comprises as shown in Figure 4 as lower module:
Interface status changes module, is used for changing by the state of software to the interface of network equipment service card.Comprise: buffer status changes module.
Test scene is realized module, and the test scene that is used for testing is as required selected the corresponding business card, utilizes the state change of part or all of interface in the described service card to realize out described test scene;
Test module is used for realizing the test scene that module realized at described test scene, and the described network equipment is tested.
The buffer status that above-mentioned Interface status changes in the module changes module, be used for obtaining the register that network equipment service card is controlled, change by the state of software, realize the state of the interface in the described service card is changed according to the state of this register to this register.
In sum, after using apparatus and method of the present invention, can be based on the state of the single or whole business interfaces in the service card, realize various test scenes, can be applied to the network equipment is carried out the various complicated test environment of beginning test, go for beginning test and the positioning problems of the dependence single port state in BFD agreement or the fastfeeling function.
Can in the network equipment is tested, save manpower, improve testing efficiency, reduce the time of positioning problems and beginning test.
Can use BFD agreement or fastfeeling function, the network equipment is carried out virtual redundancy router protocol (VRRP, Virtual Router Redundancy Protocol) switches fast, label distribution protocol (LDP, Label Distribution Protocol) heavy-route (FRR, fast-reroute) switching, IP FRR switching fast, tests such as Virtual Private Network (VPN, Virtual Private Network) FRR switching.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (8)

1, a kind of method that the network equipment is tested is characterized in that, comprising:
Change by the state of software the interface of service card in the network equipment;
Utilize the state change of the interface in the described service card to realize out test scene, in this test scene, the described network equipment is tested.
2, method according to claim 1 is characterized in that, describedly changes by the state of software to the interface of service card in the network equipment, specifically comprises:
Obtain the register that service card in the network equipment is controlled, change, realize the state of the interface in the described service card is changed by the state of software to this register.
3, method according to claim 1 is characterized in that, the state of the interface of described service card comprises: the state of all or part interface in the service card.
According to claim 1 or 2 or 3 described methods, it is characterized in that 4, the described state that utilizes the interface in the described service card changes realizes out test scene, in this test scene the described network equipment is tested, and specifically comprises:
The test scene of testing is as required selected the corresponding business card, utilizes the state change of part or all of interface in this service card to realize out described test scene, in described test scene the described network equipment is tested.
5, method according to claim 4, it is characterized in that, described in described test scene the described network equipment test comprises: in described test scene, utilize two-way forwarding detect the BFD agreement or fast perception fastfeeling function the described network equipment is tested.
6, a kind of device that the network equipment is tested is characterized in that, comprising:
Interface status changes module, is used for changing by the state of software to the interface of network equipment service card;
Test module is used for changing in the test scene of being realized at the state of the interface that utilizes described service card, and the described network equipment is tested.
7, the device that the network equipment is tested according to claim 6 is characterized in that, described device also comprises:
Test scene is realized module, and the test scene that is used for testing is as required selected the corresponding business card, utilizes the state change of part or all of interface in the described service card to realize out described test scene.
According to claim 6 or the 7 described devices that the network equipment is tested, it is characterized in that 8, described Interface status changes module and comprises:
Buffer status changes module, is used for obtaining the register that network equipment service card is controlled, and changes by the state of software to this register, realizes the state of the interface in the described service card is changed according to the state of this register.
CNA2008100847385A 2008-03-14 2008-03-14 Testing method and device for network device Pending CN101242319A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008100847385A CN101242319A (en) 2008-03-14 2008-03-14 Testing method and device for network device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008100847385A CN101242319A (en) 2008-03-14 2008-03-14 Testing method and device for network device

Publications (1)

Publication Number Publication Date
CN101242319A true CN101242319A (en) 2008-08-13

Family

ID=39933542

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008100847385A Pending CN101242319A (en) 2008-03-14 2008-03-14 Testing method and device for network device

Country Status (1)

Country Link
CN (1) CN101242319A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012106883A1 (en) * 2011-07-12 2012-08-16 华为技术有限公司 Method, apparatus and system for initial deployment of layer 2 network device
CN111404779A (en) * 2020-03-12 2020-07-10 深圳市吉祥腾达科技有限公司 Method, device and system for testing role switching of router nodes

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012106883A1 (en) * 2011-07-12 2012-08-16 华为技术有限公司 Method, apparatus and system for initial deployment of layer 2 network device
CN111404779A (en) * 2020-03-12 2020-07-10 深圳市吉祥腾达科技有限公司 Method, device and system for testing role switching of router nodes
CN111404779B (en) * 2020-03-12 2022-02-25 深圳市吉祥腾达科技有限公司 Method, device and system for testing role switching of router nodes

Similar Documents

Publication Publication Date Title
Barré et al. Experimenting with multipath TCP
JP5213854B2 (en) Connectivity fault management (CFM) in networks with link aggregation group connections
CN102025646B (en) Link switching method and device thereof
CN101465859B (en) Method and device for triggering main and standby interface board inverse switch
CN104579727A (en) Method and device for managing network connection of network nodes
US9331870B2 (en) Switch, information processing apparatus, and information processing system
CN102437931A (en) Detection method and device of service path
CN105306284A (en) Method and device for detecting connectivity of user network interface of virtual private network
CN102307118B (en) Back plate test method, apparatus thereof and system thereof
CN101610535A (en) Multilink direct continuous show scape guarantees the method, system and device of BFD conversation stability down
CN104270309A (en) Method for achieving multi-hop BFD under IP RAN equipment
CN111490933B (en) Bidirectional forwarding detection switching method and edge device
CN103580894A (en) Method, device and system for operation, administration and maintenance (OAM) configuration
CN104683187A (en) Method for realizing router layer-2 VPN service physical interface end-to-end measurement
CN102647304A (en) Synchronizing method of address resolution protocols and device
CN104980293A (en) Method and device for quickly transmitting and detecting OAM message
CN100446476C (en) Method and apparatus for communicating network trouble dtecting result
JP2009010668A (en) Communication apparatus, communicating method, communication interface, and program
EP2634978A1 (en) Message forwarding method and network device
CN101340445B (en) Method and apparatus for providing service to MAC address duplicate customer
CN102857421A (en) VLL fault detection method and device
CN101242319A (en) Testing method and device for network device
CN102412997A (en) Method and system for transmitting link on/off state under main/standby environment
EP2566103A1 (en) Apparatus and method for correlating faults in an information carrying network
CN103138957A (en) Method, device and system for business path failback

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20080813