CN101834679B - Port test method, device and system - Google Patents

Port test method, device and system Download PDF

Info

Publication number
CN101834679B
CN101834679B CN201010157738.0A CN201010157738A CN101834679B CN 101834679 B CN101834679 B CN 101834679B CN 201010157738 A CN201010157738 A CN 201010157738A CN 101834679 B CN101834679 B CN 101834679B
Authority
CN
China
Prior art keywords
test
port
test packet
opposite equip
equipment under
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.)
Expired - Fee Related
Application number
CN201010157738.0A
Other languages
Chinese (zh)
Other versions
CN101834679A (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.)
Ruijie Networks Co Ltd
Original Assignee
Fujian Star Net Communication 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 Fujian Star Net Communication Co Ltd filed Critical Fujian Star Net Communication Co Ltd
Priority to CN201010157738.0A priority Critical patent/CN101834679B/en
Publication of CN101834679A publication Critical patent/CN101834679A/en
Application granted granted Critical
Publication of CN101834679B publication Critical patent/CN101834679B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses port test method, device and system. The method comprises the following steps of: communicating a tested port of a tested apparatus; sending a first test message to the tested apparatus and receiving the first test message forwarded by the tested apparatus through the tested port; sending the first test message to an opposite apparatus and receiving the first test message returned by the opposite apparatus; obtaining a first test result according to the first test message sent to the tested apparatus and the first test message returned by the opposite apparatus; and/or sending a second test message to the opposite apparatus and receiving the second test message forwarded by the opposite apparatus; sending the second test message to the tested apparatus through the tested port and receiving the second test message returned by the tested apparatus; and obtaining a second test result according to the second test message sent to the opposite apparatus and the second test message returned by the tested apparatus. Therefore, the accuracy rate of the test result is improved.

Description

The methods, devices and systems of port test
Technical field
The embodiment of the present invention relates to communication technical field, particularly a kind of methods, devices and systems of port test.
Background technology
Along with the development of the communication technology, provide the company of communication equipment solution and manufacture communication equipment more and more, the equipment that different company produces is incomplete same in performance and index.The equipment that different company produces exists cannot carry out normal situation about being communicated with because of the difference of performance or index.Cannot normally be communicated with the equipment that other company produces for fear of the equipment putting goods on the market, conventionally can carry out continuity testing to the port of equipment in the equipment Design and manufacture stage, the port of the port of equipment under test and the opposite equip. different from the type of this equipment under test be carried out to continuity testing.
Fig. 7 is the structural representation of the system of prior art middle port test, as shown in Figure 7, this system comprise equipment under test, the opposite equip. being connected with equipment under test, the first network tester being connected with opposite equip. and the second network tester that is connected with equipment under test.In Fig. 7, need the port one of equipment under test to carry out continuity testing to port n.In test process, a certain port of equipment under test need to be connected to opposite equip. n with opposite equip. 1 one by one, and by receiving and sending datagram, this port be carried out to continuity testing.Adopt again subsequently identical method to carry out one by one continuity testing to all the other ports.
In prior art, arbitrary port is carried out in test process, need to adopt cable that the port of equipment under test is connected with each opposite equip. by manual type.Owing to easily occurring that cable is loosening in artificial plug cable process, therefore by manual type, the port of equipment under test is connected with each opposite equip., there will be the inaccurate situation of test result, thereby reduced the accuracy rate of test result.
Summary of the invention
The invention provides a kind of methods, devices and systems of port test, in order to improve the accuracy rate of test result.
The embodiment of the present invention provides a kind of method of port test, comprising:
The tested port of equipment under test and opposite equip. are communicated with;
Send the first test packet to described equipment under test, and receive described equipment under test by the first test packet of described tested port repeat, described the first test packet is sent to described opposite equip., and receiving described the first test packet that described opposite equip. returns, the first test packet returning according to the first test packet sending to described equipment under test and described opposite equip. draws the first test result; And/or, send the second test packet to described opposite equip., and receive described the second test packet that described opposite equip. forwards, described the second test packet is sent to described equipment under test by described tested port, and receiving the second test packet that described equipment under test returns, the second test packet returning according to the second test packet sending to described opposite equip. and described equipment under test draws the second test result.
The embodiment of the present invention provides a kind of device of port test, and this device comprises: port module and control module, and described port module, connects respectively tested port and the described opposite equip. of described equipment under test; Described control module is connected with described equipment under test, described opposite equip. and described port module respectively, for controlling described port module, the tested port of described equipment under test and described opposite equip. is communicated with;
Described control module is also for sending the first test packet to equipment under test, receive described the first test packet that described opposite equip. returns, and according to the first test packet sending to described equipment under test and described in the first test packet of returning draw the first test result; Described port module passes through the first test packet of described tested port repeat for receiving described equipment under test, and described the first test packet is sent to described opposite equip.; And/or
Described control module is also for sending the second test packet to described opposite equip., receive the second test packet that described equipment under test returns, and draw the second test result according to the second test packet that the second test packet sending to described opposite equip. and described equipment under test return; Described the second test packet that described port module forwards for receiving described opposite equip., and described the second test packet is sent to described equipment under test by described tested port.
The embodiment of the present invention provides a kind of system of port test, comprising: the device of equipment under test, the port test that is connected with described equipment under test and the opposite equip. being connected with the device of described port test;
The device of described port test adopts the device of above-mentioned port test.
The methods, devices and systems of the port test that the present embodiment provides, the tested port of equipment under test and opposite equip. are communicated with, send the first test packet to equipment under test, and receive equipment under test by the first test packet of tested port repeat, the first test packet is sent to opposite equip., and receiving the first test packet that opposite equip. returns, the first test packet returning according to the first test packet sending to equipment under test and opposite equip. draws the first test result, and/or, send the second test packet to opposite equip., and receive opposite equip. forward the second test packet, the second test packet is sent to equipment under test by tested port, and receive the second test packet that equipment under test returns, draw the second test result according to the second test packet sending to opposite equip. and the second test packet of returning of equipment under test, avoid by manual type, the port of equipment under test being connected with opposite equip., without adopt cable that the port of equipment under test is connected with opposite equip. by manual type, while having avoided artificial plug cable, there is the inaccurate problem of test result that cable is loosening and cause, thereby draw test result accurately, improve the accuracy rate of test result.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The flow chart of the method for a kind of port test that Fig. 1 provides for the embodiment of the present invention one;
The flow chart of the method for a kind of port test that Fig. 2 provides for the embodiment of the present invention two;
The structural representation of the device of a kind of port test that Fig. 3 provides for the embodiment of the present invention three;
The structural representation of the device of a kind of port test that Fig. 4 provides for the embodiment of the present invention four;
Fig. 5 is the structural representation of optical attenuation module in the embodiment of the present invention four;
Fig. 6 is the structural representation of electric attenuation module in the embodiment of the present invention four;
Fig. 7 is the structural representation of the system of prior art middle port test.
Embodiment
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The flow chart of the method for a kind of port test that Fig. 1 provides for the embodiment of the present invention one, as shown in Figure 1, the method comprises:
Step 101, the tested port of equipment under test and opposite equip. are communicated with.
In the present embodiment, each step can be carried out by the device of port test.Equipment under test can comprise one or more tested port, and opposite equip. can be one or more.In the present embodiment, the device of port test is connected with all tested port of equipment under test and is connected with all opposite equip.s.The device of this step middle port test is communicated with the tested port in equipment under test with pair of end equipment.
Step 102, send the first test packet to equipment under test, and receive equipment under test by the first test packet of tested port repeat, the first test packet is sent to opposite equip., and receiving the first test packet that opposite equip. returns, the first test packet returning according to the first test packet sending to equipment under test and opposite equip. draws the first test result; And/or, send the second test packet to opposite equip., and receive opposite equip. forward the second test packet, the second test packet is sent to equipment under test by tested port, and receiving the second test packet that equipment under test returns, the second test packet returning according to the second test packet sending to opposite equip. and equipment under test draws the second test result.
In the present embodiment, the device of port test sends the first test packet to equipment under test, receive the first test packet that opposite equip. returns, and draw according to the first test packet sending to equipment under test and the first test packet of returning of opposite equip. and can realize the process of the first test result the sending function of tested port is tested.The device of port test sends the second test packet to opposite equip., receive the second test packet that equipment under test returns, and draw according to the second test packet sending to opposite equip. and the second test packet of returning of equipment under test and can realize the process of the second test result the receiving function of tested port is tested.
In the present embodiment, show that according to the first test packet sending to equipment under test and the first test packet of returning of opposite equip. the first test result specifically comprises: whether the quantity of the first test packet relatively sending to equipment under test and the quantity of the first test packet that opposite equip. returns equate.If the quantity of the first test packet sending to equipment under test and the quantity of the first test packet that opposite equip. returns equate, whether the content of the first test packet relatively sending to equipment under test is identical with the content of the first test packet that opposite equip. returns, if the content of the first test packet that the content of the first test packet sending to equipment under test is returned with opposite equip. is identical, determine the first test result for to test successfully.If to equipment under test send the quantity of the first test packet and the quantity of the first test packet that opposite equip. returns is unequal or to equipment under test send the content of the first test packet not identical with the content of the first test packet that opposite equip. returns, show that the first test result is test crash.Wherein, if the quantity of the first test packet sending to equipment under test is multiple, the content of the first test packet and whether identical being specially of content of the first test packet that opposite equip. returns that relatively send to equipment under test: whether the content of the first test packet that the content of more each the first test packet sending to equipment under test and the opposite equip. corresponding with this first test packet sending to equipment under test return is identical.
In the present embodiment, show that according to the second test packet sending to opposite equip. and the second test packet of returning of equipment under test the second test result specifically comprises: whether the quantity of the second test packet relatively sending to opposite equip. and the quantity of the second test packet that equipment under test returns equate.If the quantity of the second test packet sending to opposite equip. and the quantity of the second test packet that equipment under test returns equate, whether the content of the second test packet relatively sending to opposite equip. is identical with the content of the second test packet that equipment under test returns, if the content of the second test packet that the content of the second test packet sending to opposite equip. is returned with equipment under test is identical, determine the second test result for to test successfully.If to opposite equip. send the quantity of the second test packet and the quantity of the second test packet that equipment under test returns is unequal or to opposite equip. send the content of the second test packet not identical with the content of the second test packet that equipment under test returns, show that the first test result is test crash.Wherein, if the quantity of the second test packet sending to opposite equip. is multiple, the content of the second test packet and whether identical being specially of content of the second test packet that equipment under test returns that relatively send to opposite equip.: whether the content of the second test packet that the content of more each the second test packet sending to equipment under test and the opposite equip. corresponding with this second test packet sending to equipment under test return is identical.
In the present embodiment, when tested port be multiple and opposite equip. also when multiple, can repeated execution of steps 101 and step 102, this tested port is communicated with all the other opposite equip.s successively, and performs step 102 pairs of these tested ports and all the other opposite equip.s carry out continuity testing.This tested port and all opposite equip.s are carried out, after continuity testing, can continuing repeated execution of steps 101 and step 102, to complete the test to all the other tested ports.
The method of the port test that the present embodiment provides, the tested port of equipment under test and opposite equip. are communicated with, send the first test packet to equipment under test, and receive equipment under test by the first test packet of tested port repeat, the first test packet is sent to opposite equip., and receiving the first test packet that opposite equip. returns, the first test packet returning according to the first test packet sending to equipment under test and opposite equip. draws the first test result, and/or, send the second test packet to opposite equip., and receive opposite equip. send the second test packet, the second test packet is passed through to tested port repeat to equipment under test, and receive the second test packet that equipment under test returns, draw the second test result according to the second test packet sending to opposite equip. and the second test packet of returning of equipment under test, without adopt cable that the port of equipment under test is connected with opposite equip. by manual type, while having avoided artificial plug cable, there is the inaccurate problem of test result that cable is loosening and cause, thereby draw test result accurately, improve the accuracy rate of test result.
The flow chart of the method for a kind of port test that Fig. 2 provides for the embodiment of the present invention two, as shown in Figure 2, the method comprises:
The device of step 201, port test is communicated with the tested port of equipment under test and opposite equip., and performs step 202 and step 203.
In the present embodiment, each step can be carried out by the device of port test.Can be referring to the step 101 in embodiment mono-to the specific descriptions of this step.
The device of step 202, port test sends the first test packet to equipment under test, and performs step 204.
The device of step 203, port test sends the second test packet to opposite equip., and performs step 213.
The device of step 204, port test receives equipment under test by the first test packet of tested port repeat.
The device of step 205, port test carries out signal attenuation processing to the first test packet, and the first test packet is sent to opposite equip..
In the present embodiment, the first test packet is carried out to signal attenuation processing, can simulate the attenuation effect of cable to message in actual transmissions process.Cable can comprise optical fiber and/or netting twine.
The device of step 206, port test receives the first test packet that opposite equip. returns.
Whether the quantity of the first test packet that the device comparison of step 207, port test sends to equipment under test and the quantity of the first test packet that opposite equip. returns equate, if so, perform step 208; If not, perform step 210.
Whether the content of the first test packet that the device comparison of step 208, port test sends to equipment under test is identical with the content of the first test packet that opposite equip. returns, and if so, performs step 209; If not, perform step 210.
The device of step 209, port test is determined the first test result for to test successfully, and flow process finishes.
The device of step 210, port test upgrades the first test crash number of times.
In the present embodiment, renewal the first test crash number of times is specially the first test crash number of times is added to 1.
The device of step 211, port test judges that whether the first test crash number of times reaches setting threshold, if so, performs step 212; If not, continue execution step 202.
In the present embodiment, setting threshold can arrange as required.
It is test crash that the device of step 212, port test is determined the first test result, and flow process finishes.
The device of step 213, port test receives the second test packet that opposite equip. forwards.
The device of step 214, port test carries out signal attenuation processing to the second test packet, and the second test packet is sent to equipment under test by tested port.
In the present embodiment, the second test packet is carried out to signal attenuation processing, can simulate the attenuation effect of cable to message in actual transmissions process.Cable can comprise optical fiber and/or netting twine.
The device of step 215, port test receives the second test packet that equipment under test returns.
Whether the quantity of the second test packet that the device comparison of step 216, port test sends to opposite equip. and the quantity of the second test packet that equipment under test returns equate, if so, perform step 217; If not, perform step 219.
Whether the content of the second test packet that the device comparison of step 217, port test sends to opposite equip. is identical with the content of the second test packet that equipment under test returns, and if so, performs step 218; If not, perform step 219.
The device of step 218, port test is determined the first test result for to test successfully, and flow process finishes.
The device of step 219, port test upgrades the second test crash number of times.
In the present embodiment, renewal the second test crash number of times is specially the second test crash number of times is added to 1.
The device of step 220, port test judges that whether the second test crash number of times reaches setting threshold, if so, performs step 221; If not, continue execution step 203.
It is test crash that the device of step 221, port test is determined the second test result, and flow process finishes.
In the present embodiment, the process that step 201 is carried out continuity testing for the device of port test to a tested port and pair of end equipment to step 221.Can repeated execution of steps 201 to step 221, complete the process that this tested port and other opposite equip. are carried out to continuity testing, and the process that other tested port and opposite equip. are carried out to continuity testing.
Further, in the present embodiment, after the device of port test is determined the first test result and is test crash, can record the port numbers of tested port and the reason of test crash of test crash; After the device of port test is determined the second test result and is test crash, can record the port numbers of tested port and the reason of test crash of test crash.
In the present embodiment, in the time that the device of port test need to be tested the sending function of tested port, after execution step 201, can only perform step 202 to step 212; In the time that the device of port test need to be tested the receiving function of tested port, after execution step 201, can only perform step 213 to step 221.
The method of the port test that the present embodiment provides, the device of port test is communicated with the tested port of equipment under test and opposite equip..Send the first test packet to equipment under test, and receive equipment under test by the first test packet of tested port repeat, the first test packet is sent to opposite equip., and receiving the first test packet that opposite equip. returns, the first test packet returning according to the first test packet sending to equipment under test and opposite equip. draws the first test result; And/or, send the second test packet to opposite equip., and receive opposite equip. forward the second test packet, the second test packet is sent to equipment under test by tested port, and receiving the second test packet that equipment under test returns, the second test packet returning according to the second test packet sending to opposite equip. and equipment under test draws the second test result.Without adopt cable that the port of equipment under test is connected with opposite equip. by manual type, while having avoided artificial plug cable, there is the inaccurate problem of test result that cable is loosening and cause, thereby draw test result accurately, improved the accuracy rate of test result.Avoid expending a large amount of time when the port of equipment under test connection successively with opposite equip. by manual type, thereby shortened the time of port test, improved the efficiency of port test.Compared with prior art, while adopting the method for the present embodiment to test port without adopting expensive network tester, thereby effectively reduce testing cost.
The structural representation of the device of a kind of port test that Fig. 3 provides for the embodiment of the present invention three, as shown in Figure 3, this device comprises: port module 11 and control module 12.Port module 11 connects respectively tested port and the opposite equip. of equipment under test.Control module 12 is connected with equipment under test, opposite equip. and port module 11 respectively, for control port module 11, the tested port of equipment under test and opposite equip. is communicated with.
Control module 12 sends the first test packet to equipment under test, port module 11 receives equipment under test by the first test packet of tested port repeat and the first test packet is sent to opposite equip., and control module 12 receives described the first test packet that described opposite equip. returns and draws the first test result according to the first test packet that the first test packet sending to equipment under test and opposite equip. return.
And/or, control module 12 sends the second test packet to opposite equip., port module 11 receives the second test packet that opposite equip. forwards and the second test packet is sent to equipment under test by tested port, and control module 12 receives the second test packet that equipment under test returns and draws the second test result according to the second test packet that the second test packet sending to opposite equip. and equipment under test return.
The device of the port test that the present embodiment provides can be used for realizing the method for the port test that above-described embodiment one provides.
The device of the port test that the present embodiment provides, the tested port of equipment under test and opposite equip. are communicated with, send the first test packet to equipment under test, and receive equipment under test by the first test packet of tested port repeat, the first test packet is sent to opposite equip., and receiving the first test packet that opposite equip. returns, the first test packet returning according to the first test packet sending to equipment under test and opposite equip. draws the first test result, and/or, send the second test packet to opposite equip., and receive opposite equip. forward the second test packet, the second test packet is sent to equipment under test by tested port, and receive the second test packet that equipment under test returns, draw the second test result according to the second test packet sending to opposite equip. and the second test packet of returning of equipment under test, without adopt cable that the port of equipment under test is connected with opposite equip. by manual type, while having avoided artificial plug cable, there is the inaccurate problem of test result that cable is loosening and cause, thereby draw test result accurately, improve the accuracy rate of test result.。
The structural representation of the device of a kind of port test that Fig. 4 provides for the embodiment of the present invention four, as shown in Figure 4, the present embodiment is on the basis of above-described embodiment three, and port module 11 comprises the first external port one 11, the first port gating module 112, the second port gating module 113 and the second external port one 14.
The first external port one 11 is connected with the first port gating module 112.The first external port one 11 is for connecting all tested port of equipment under test.Equipment under test comprises multiple ports, needs tested port in tested port-for-port.In the present embodiment, can from the port of equipment under test, an optional port to be as connectivity port, control module 12 can be connected to realize with equipment under test with this connectivity port and be connected.In the present embodiment, the first external port one 11 can comprise at least one electricity mouth and/or at least one light mouth., in the time that tested port is light mouth, this tested port can be connected with the light mouth in the first external port one 11; In the time that equipment under test is electricity mouth, this tested port can be connected with the electricity mouthful in the first external port one 11.
The first port gating module 112 is connected with the first external port one 11 and control module 12.The tested port that the first port gating module 112 is connected with the first external port one 11 for gating under the control in control module 12.
The second external port one 14 is connected with the second port gating module 113.The second external port one 14 is for connecting all opposite equip.s.In the present embodiment, opposite equip. can comprise that opposite equip. 1, opposite equip. 2 are to opposite equip. n.In the present embodiment, the second external port one 14 can comprise at least one electricity mouth and/or at least one light mouth.In the time adopting the light mouth of opposite equip., the light mouth of opposite equip. can be connected with the light mouth in the second external port one 14; In the time adopting the electricity mouth of opposite equip., the electricity of opposite equip. mouthful can be connected with the electricity mouthful in the second external port one 14.
The second port gating module 113 is connected with the first port gating module 112, control module 12 and the second external port one 14.The opposite equip. that the second port gating module 113 is connected with the second external port one 14 for gating under the control in control module 12.The second port gating module 113 can under the control of control module 12, gating be connected with the second external port one 14 successively opposite equip..For example: the opposite equip. 1 that the second port gating module 113 can gating be connected with the second external port one 14 successively under the control of control module 12 is to opposite equip. n.In the present embodiment, control module 12 is communicated with the tested port of equipment under test and opposite equip. by controlling the first port gating module 112 and the second port gating module 113.For example: control module 12 can be by controlling the first port gating module 112 and the second port gating module 113 is communicated with first tested port and the opposite equip. 1 of equipment under test.
In the present embodiment, the first external port one 11 receives equipment under test and sends to the first port gating module 112 by the first test packet of tested port repeat and by the first test packet, the first test packet is sent to the second port gating module 113 by the first port gating module 112, the second port gating module 113 sends to the external port one 14 of the second external port one 14, the second that the first test packet is sent to opposite equip. the first test packet.And/or, the second external port one 14 receives the second test packet of opposite equip. transmission and the second test packet is sent to the second port gating module 113, the second test packet is sent to the first port gating module 112 by the second port gating module 113, the first port gating module 112 sends to the external port one 11 of the first external port one 11, the first that the second test packet is sent to equipment under test by tested port the second test packet.
Further, port module 11 can also comprise attenuation module 115.Attenuation module 115 is connected with the first port gating module 112 and the second port gating module 113.In the present embodiment in the time that the first test packet is sent to the second port gating module 113 by the first port gating module 112, attenuation module 115 can receive the first test packet that the first port gating module 112 sends, the first test packet is carried out to signal attenuation processing, and the first test packet is sent to the second port gating module 113.In the present embodiment in the time that the second test packet is sent to the first port gating module 112 by the second port gating module 113, attenuation module 115 can receive the second test packet that the second port gating module 113 sends, the second test packet is carried out to signal attenuation processing, and the second test packet is sent to the first port gating module 112.
In the present embodiment, attenuation module 115 can comprise optical attenuation module and/or electric attenuation module.In the time that tested port is light mouth, attenuation module 115 adopts optical attenuation module; In the time that tested port is electricity mouth, attenuation module 115 adopts electric attenuation module.
Particularly, in the time that tested port is light mouth, the optical attenuation module that control module 12 can be controlled in attenuation module 15 is communicated with the first port gating module 112 and the second port gating module 113, adopts optical attenuation module to realize.In the present embodiment, optical attenuation module can adopt optical attenuator.Optical attenuator can carry out signal attenuation processing to the first test packet receiving, and/or, to the second test packet signal attenuation processing receiving.Optical attenuator can be used for simulating the attenuation effect of optical fiber to message in actual transmissions process.Particularly, can select to have the optical attenuator of different light decay depreciations, to realize the attenuation effect of optical fiber to message of simulation different length.Fig. 5 is the structural representation of optical attenuation module in the embodiment of the present invention four, and as shown in Figure 5, this optical attenuation module comprises two optical attenuators.TX represents that this optical attenuator is for being communicated with the transmission path of light mouth, and, in the present embodiment, the first test packet that this optical attenuator can be used for receiving carries out signal attenuation processing; RX represents that this optical attenuator is for being communicated with the receiving path of light mouth, and, in the present embodiment, the second test packet that this optical attenuator can be used for receiving carries out signal attenuation processing.In the present embodiment, each light mouth can adopt two optical attenuators to simulate the attenuation effect of two optical fiber to message.
Particularly, in the time that tested port is electricity mouth, the electric attenuation module that control module 12 can be controlled in attenuation module 115 is communicated with the first port gating module 112 and the second port gating module 113, adopts electric attenuation module to realize.In the present embodiment, electric attenuation module can adopt capacitance-resistance structure, and this capacitance-resistance structure comprises adjustable resistance and tunable capacitor.Electric attenuation device can carry out signal attenuation processing to the first test packet receiving, and/or, to the second test packet signal attenuation processing receiving.Electric attenuation device can be used for simulating the attenuation effect of netting twine to message in actual transmissions process.Particularly, can select to have the capacitance-resistance structure of different capacitance-resistance values, to realize the attenuation effect of netting twine to message of simulation different length.Fig. 6 is the structural representation of electric attenuation module in the embodiment of the present invention four, and as shown in Figure 6, this electric attenuation module comprises 4 capacitance-resistance structures, and Fig. 6 describes as an example of a capacitance-resistance structure example.Each capacitance-resistance structure comprises adjustable resistance R1 to R7 and tunable capacitor C1, C2.According to the definition about netting twine in IEEE 802.3, a netting twine comprises independently copper cable of 8 bases, and every two copper cables are one group.Wherein, one group is used for sending message, and one group is used for receiving message.Capacitance-resistance structure in Fig. 6 is for simulating the attenuation effect of one group of copper cable to message.Therefore, the capacitance-resistance structure in four Fig. 6 can be simulated the attenuation effect of a netting twine to message.In Fig. 6, P represents the anodal path of differential signal of electric mouthful that this capacitance-resistance structure is communicated with, and N represents the differential signal negative electrode channel of the electricity mouth of this capacitance-resistance structure connection.This capacitance-resistance structure can be used as signal transmission path or signal receiving path.In the present embodiment, this capacitance-resistance structure can be used for that the first test packet to receiving carries out signal attenuation processing or the second test packet carries out signal attenuation processing.In the present embodiment, each electricity mouthful can adopt four capacitance-resistance structures in Fig. 6 to simulate the attenuation effect of a netting twine to message.
Further, in the present embodiment, this device can also comprise the 3rd external port one 3.The 3rd external port one 3 is connected with control module 12.The 3rd external port one 3 is for connecting all opposite equip.s.In Fig. 3, the 3rd external port one 3 peer end of the connection equipment 1 are to opposite equip. n.
In the present embodiment, in the time that control module 12 receives the first test packet that opposite equip. returns, the 3rd external port one 3 receives the first test packet that opposite equip. sends, and the first test packet is sent to control module 12.In the present embodiment, in the time that control module 12 sends the second test packet to opposite equip., the 3rd external port one 3 receives the second test packet that control module 12 sends, and the second test packet is sent to opposite equip..
In the present embodiment, when control module 12 receives after the first test packet that opposite equip. returns, equate and compare the content of the first test packet returning with opposite equip. to the content of the first test packet of equipment under test transmission when identical when comparing the quantity of the first test packet that the quantity of the first test packet that sends to equipment under test returns with opposite equip., determining the first test result for to test successfully; When comparing, the quantity of the first test packet that sends to equipment under test and the quantity of the first test packet that opposite equip. returns are unequal or compare the content of the first test packet sending to equipment under test when not identical with the content of the first test packet that opposite equip. returns, and determining the first test result is test crash.
In the present embodiment, when control module 12 receives after the second test packet that equipment under test returns, equate and compare the content of the second test packet returning with equipment under test to the content of the second test packet of opposite equip. transmission when identical when comparing the quantity of the second test packet that the quantity of the second test packet that sends to opposite equip. returns with equipment under test, determining the second test result for to test successfully; When comparing, the quantity of the second test packet that sends to opposite equip. and the quantity of the second test packet that equipment under test returns are unequal or compare the content of the second test packet sending to opposite equip. when not identical with the content of the second test packet that equipment under test returns, and determining the second test result is test crash.
Further, control module 12 is to compare the quantity of the first test packet that sends to equipment under test and the quantity of the first test packet that opposite equip. returns unequal or compare the content of the first test packet that content and the opposite equip. of the first test packet sending to equipment under test send when not identical, can also upgrade the first test crash number of times, judge whether the first test crash number of times reaches setting threshold, if so, carry out and determine the step that the first test result is test crash.
Further, control module 12 equates and compares the content of the second test packet returning with equipment under test to the content of the second test packet of opposite equip. transmission when identical in the quantity that compares the second test packet that the quantity of the second test packet that sends to opposite equip. returns with equipment under test, can also upgrade the second test crash number of times, judge whether the second test crash number of times reaches setting threshold, if so, carry out and determine the step that the second test result is test crash.
Further, in the present embodiment, after control module 12 is determined the first test result and is test crash, can record the port numbers of tested port and the reason of test crash of test crash; After control module 12 is determined the second test result and is test crash, can record the port numbers of tested port and the reason of test crash of test crash.
The device of the port test that the present embodiment provides can be used for realizing the method for the port test that above-described embodiment two provides.
The device of the port test that the present embodiment provides, the tested port of equipment under test and opposite equip. are communicated with, send the first test packet to equipment under test, and receive equipment under test by the first test packet of tested port repeat, the first test packet is sent to opposite equip., and receiving the first test packet that opposite equip. returns, the first test packet returning according to the first test packet sending to equipment under test and opposite equip. draws the first test result, send the second test packet to opposite equip., and receive opposite equip. forward the second test packet, the second test packet is sent to equipment under test by tested port, and receive the second test packet that equipment under test returns, draw the second test result according to the second test packet sending to opposite equip. and the second test packet of returning of equipment under test, without adopt cable that the port of equipment under test is connected with opposite equip. by manual type, while having avoided artificial plug cable, there is the inaccurate problem of test result that cable is loosening and cause, thereby draw test result accurately, improve the accuracy rate of test result.Avoid expending a large amount of time when the port of equipment under test connection successively with opposite equip. by manual type, thereby shortened the time of port test, improved the efficiency of port test.Compared with prior art, while adopting the method for the present embodiment to test port without adopting expensive network tester, thereby effectively reduce testing cost.
The embodiment of the present invention five provides a kind of system of port test, and this system comprises: the device of equipment under test, the port test that is connected with equipment under test and the opposite equip. being connected with the device of port test.Wherein, the device of port test can adopt the device of the port test in above-described embodiment three or embodiment tetra-, repeats no more herein.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can complete by the relevant hardware of program command, aforesaid program can be stored in a computer read/write memory medium, this program, in the time carrying out, is carried out the step that comprises said method embodiment; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Finally it should be noted that: above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these amendments or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (17)

1. a method for port test, is characterized in that, comprising:
Carrying out control port module by control module is communicated with the tested port of equipment under test and opposite equip., wherein, described equipment under test can comprise one or more tested port, described opposite equip. can be one or more, when described tested port be multiple and described opposite equip. also when multiple, described tested port is communicated with described opposite equip. successively and carries out continuity testing;
Wherein, described port module comprise first pair of external port, the first port gating module being connected with described first pair of external port and described control module, the second port gating module being connected with described the first port gating module and described control module and second pair of external port being connected with described the second port gating module;
Described port module is communicated with the tested port of equipment under test to comprise with opposite equip.: all tested port that is connected described equipment under test by described first pair of external port; Under the control of described control module, the tested port being connected with described first pair of external port by described the first port gating module gating; By second pair of external port, connect all opposite equip.s; Under the control of described control module, by the second port gating module gating and described second pair of opposite equip. that external port is connected;
Send the first test packet by described control module to described equipment under test, and receive described equipment under test by the first test packet of described tested port repeat by port module, described the first test packet is sent to described opposite equip., and receiving by described control module described the first test packet that described opposite equip. returns, the first test packet returning according to the first test packet sending to described equipment under test and described opposite equip. draws the first test result;
Described port module receives described equipment under test by the first test packet of described tested port repeat, send to described opposite equip. to comprise described the first test packet: to receive described equipment under test by the first test packet of described tested port repeat by described first pair of external port, and described the first test packet is sent to described the first port gating module; By described the first port gating module, described the first test packet is sent to described the second port gating module; By described the second port gating module, the first test packet is sent to described second pair of external port; By described second pair of external port, described the first test packet is sent to described opposite equip.;
And/or,
Send the second test packet by described control module to described opposite equip., and receive by described port module described the second test packet that described opposite equip. forwards, described the second test packet is sent to described equipment under test by described tested port, and receiving by described control module the second test packet that described equipment under test returns, the second test packet returning according to the second test packet sending to described opposite equip. and described equipment under test draws the second test result;
Described port module receives described the second test packet that described opposite equip. forwards, send to described equipment under test to comprise by described tested port described the second test packet: to receive by described second pair of external port described the second test packet that described opposite equip. sends, and described the second test packet is sent to described the second port gating module; By described the second port gating module, described the second test packet is sent to described the first port gating module; By described the first port gating module, described the second test packet is sent to first pair of external port; By described first pair of external port, described the second test packet is sent to described equipment under test by described tested port.
2. method according to claim 1, is characterized in that,
Described described the first test packet receiving is sent to before described opposite equip. and also comprised: described the first test packet is carried out to signal attenuation processing.
3. method according to claim 1, is characterized in that,
Described the second test packet receiving is sent to before described equipment under test and comprised by described tested port: described the second test packet is carried out to signal attenuation processing.
4. method according to claim 1, is characterized in that,
Described the first test packet returning with described opposite equip. according to the first test packet sending to described equipment under test show that the first test result comprises: equate and compare the content of the first test packet returning with described opposite equip. to the content of the first test packet of described equipment under test transmission when identical if compare the quantity of the first test packet that the quantity of the first test packet sending to described equipment under test returns with described opposite equip., determining described the first test result for to test successfully; If it is unequal or compare the content of the first test packet sending to described equipment under test when not identical with the content of the first test packet that described opposite equip. returns to compare the quantity of the first test packet that sends to described equipment under test and the quantity of the first test packet that described opposite equip. returns, determining described the first test result is test crash.
5. method according to claim 1, is characterized in that,
Described the second test packet returning with described equipment under test according to the second test packet sending to described opposite equip. show that the second test result comprises: equate and compare the content of the second test packet returning with described equipment under test to the content of the second test packet of described opposite equip. transmission when identical if compare the quantity of the second test packet that the quantity of the second test packet sending to described opposite equip. returns with described equipment under test, determining described the second test result for to test successfully; If it is unequal or compare the content of the second test packet sending to described opposite equip. when not identical with the content of the second test packet that described equipment under test returns to compare the quantity of the second test packet that sends to described opposite equip. and the quantity of the second test packet that described equipment under test returns, determining described the second test result is test crash.
6. method according to claim 4, is characterized in that,
Described to determine described the first test result be to comprise before test crash: upgrade the first test crash number of times, judge whether described the first test crash number of times reaches setting threshold, if so, described in carrying out, determining described the first test result is test crash.
7. method according to claim 5, is characterized in that,
Described to determine described the second test result be to comprise before test crash: upgrade the second test crash number of times, judge whether described the second test crash number of times reaches setting threshold, if so, described in carrying out, determining described the second test result is test crash.
8. a device for port test, is characterized in that, comprising: port module and control module, and described port module, connects respectively tested port and the opposite equip. of equipment under test; Described control module is connected with described equipment under test, described opposite equip. and described port module respectively, for controlling described port module, the tested port of described equipment under test and described opposite equip. is communicated with;
Wherein, described port module comprise first pair of external port, the first port gating module being connected with described first pair of external port and described control module, the second port gating module being connected with described the first port gating module and described control module and second pair of external port being connected with described the second port gating module;
First pair of external port, for connecting all tested port of described equipment under test; The first port gating module, the tested port being connected with described first pair of external port for gating under the control of described control module; Second pair of external port, for connecting all opposite equip.s; The second port gating module, for gating under the control of described control module and described second pair of opposite equip. that external port is connected;
Described control module is also for sending the first test packet to equipment under test, receive described the first test packet that described opposite equip. returns, and according to the first test packet sending to described equipment under test and described in the first test packet of returning draw the first test result; Described port module passes through the first test packet of described tested port repeat for receiving described equipment under test, and described the first test packet is sent to described opposite equip.;
Described first pair of external port also passed through the first test packet of described tested port repeat for receiving described equipment under test, and described the first test packet is sent to described the first port gating module; Described the first port gating module is also for sending to described the first test packet described the second port gating module; Described the second port gating module is also for sending to the first test packet described second pair of external port; Described second pair of external port is also for sending to described opposite equip. by described the first test packet;
And/or
Described control module is also for sending the second test packet to described opposite equip., receive the second test packet that described equipment under test returns, and draw the second test result according to the second test packet that the second test packet sending to described opposite equip. and described equipment under test return; Described the second test packet that described port module forwards for receiving described opposite equip., and described the second test packet is sent to described equipment under test by described tested port;
Described the second test packet that described second pair of external port also sends for receiving described opposite equip., and described the second test packet is sent to described the second port gating module; Described the second port gating module is also for sending to described the second test packet described the first port gating module; Described the first port gating module is also for sending to first pair of external port by described the second test packet; Described first pair of external port is also for sending to described equipment under test by described the second test packet by described tested port.
9. device according to claim 8, is characterized in that, described port module also comprises the attenuation module being connected with described the first port gating module and described the second port gating module;
Described attenuation module, the first test packet sending for receiving the first port gating module, carries out signal attenuation processing to described the first test packet, and described the first test packet is sent to described the second port gating module.
10. device according to claim 8, is characterized in that, described port module also comprises the attenuation module being connected with described the first port gating module and described the second port gating module;
Described attenuation module, the second test packet also sending for receiving described the second port gating module, carries out signal attenuation processing to described the second test packet, and described the second test packet is sent to described the first port gating module.
11. devices according to claim 8, is characterized in that, also comprise the 3rd pair of external port being connected with described control module, for connecting all opposite equip.s;
The first test packet that described the 3rd pair of external port also sends for receiving described opposite equip., and described the first test packet is sent to described control module.
12. devices according to claim 8, is characterized in that, also comprise the 3rd pair of external port being connected with described control module, for connecting all opposite equip.s;
The second test packet that described the 3rd pair of external port also sends for receiving described control module, and described the second test packet is sent to described opposite equip..
13. devices according to claim 8, is characterized in that,
Described control module, for equating and compare the content of the first test packet returning with described opposite equip. to the content of the first test packet of described equipment under test transmission when identical when comparing the quantity of the first test packet that the quantity of the first test packet sending to described equipment under test returns with described opposite equip., is determined described the first test result for to test successfully; When comparing, the quantity of the first test packet that sends to described equipment under test and the quantity of the first test packet that described opposite equip. returns are unequal or compare the content of the first test packet sending to described equipment under test when not identical with the content of the first test packet that described opposite equip. returns, and determining described the first test result is test crash.
14. devices according to claim 8, is characterized in that,
Described control module, for equating and compare the content of the second test packet returning with described equipment under test to the content of the second test packet of described opposite equip. transmission when identical when comparing the quantity of the second test packet that the quantity of the second test packet sending to described opposite equip. returns with described equipment under test, is determined described the second test result for to test successfully; When comparing, the quantity of the second test packet that sends to described opposite equip. and the quantity of the second test packet that described equipment under test returns are unequal or compare the content of the second test packet sending to described opposite equip. when not identical with the content of the second test packet that described equipment under test returns, and determining described the second test result is test crash.
15. devices according to claim 13, is characterized in that,
Described control module, also for upgrading the first test crash number of times, judges whether described the first test crash number of times reaches setting threshold, and if so, described in carrying out, determining described the first test result is test crash.
16. want the device described in 14 according to right, it is characterized in that,
Described control module, also for upgrading the second test crash number of times, judges whether described the second test crash number of times reaches setting threshold, and if so, described in carrying out, determining described the second test result is test crash.
The system of 17. 1 kinds of port tests, is characterized in that, comprising: the device of equipment under test, the port test that is connected with described equipment under test and the opposite equip. being connected with the device of described port test;
The device of described port test adopts the device of the arbitrary described port test of claim 8 to 16.
CN201010157738.0A 2010-04-26 2010-04-26 Port test method, device and system Expired - Fee Related CN101834679B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010157738.0A CN101834679B (en) 2010-04-26 2010-04-26 Port test method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010157738.0A CN101834679B (en) 2010-04-26 2010-04-26 Port test method, device and system

Publications (2)

Publication Number Publication Date
CN101834679A CN101834679A (en) 2010-09-15
CN101834679B true CN101834679B (en) 2014-08-27

Family

ID=42718625

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010157738.0A Expired - Fee Related CN101834679B (en) 2010-04-26 2010-04-26 Port test method, device and system

Country Status (1)

Country Link
CN (1) CN101834679B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102447593B (en) * 2011-11-21 2014-07-02 福建星网锐捷网络有限公司 Test method and device
CN105450432A (en) * 2014-07-31 2016-03-30 华为技术有限公司 Method for positioning port connection error and associated equipment
CN105207847B (en) * 2015-09-23 2018-10-12 上海斐讯数据通信技术有限公司 A kind of ethernet test system
CN106330604B (en) * 2016-08-23 2019-07-09 杭州迪普科技股份有限公司 A kind of method and device of port connectivity test
CN108282385B (en) * 2018-01-25 2021-03-23 迈普通信技术股份有限公司 Port test method and communication equipment
CN111562490B (en) * 2019-02-14 2023-01-20 深圳市汇顶科技股份有限公司 Test method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1538673A (en) * 2003-10-24 2004-10-20 中兴通讯股份有限公司 U port testing method of ISDN user plate
CN101068369A (en) * 2007-06-01 2007-11-07 华为技术有限公司 Test back plate and single plate testing method
CN101141331A (en) * 2007-10-23 2008-03-12 华为技术有限公司 Local side equipment detecting method and local side equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW524969B (en) * 2002-07-25 2003-03-21 Faztec Optronics Corp Rapid testing system for optical transmission module and the testing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1538673A (en) * 2003-10-24 2004-10-20 中兴通讯股份有限公司 U port testing method of ISDN user plate
CN101068369A (en) * 2007-06-01 2007-11-07 华为技术有限公司 Test back plate and single plate testing method
CN101141331A (en) * 2007-10-23 2008-03-12 华为技术有限公司 Local side equipment detecting method and local side equipment

Also Published As

Publication number Publication date
CN101834679A (en) 2010-09-15

Similar Documents

Publication Publication Date Title
CN101834679B (en) Port test method, device and system
US20180316421A1 (en) Switch matrix system
CN108897647B (en) Test system, test method and device
CN103630331A (en) Multichannel optical fiber insertion and return loss tester and test calibration method
CN103728885A (en) Comprehensive wiring management method based on aviation bus
CN108337017B (en) Power line carrier communication test networking system with flexibly-transformed topological structure
CN106788699A (en) The detecting system and method and ROADM equipment of optical fiber connection status
US9940294B2 (en) Method, apparatus, and system for configuring high-speed serial bus parameter
CN113014339A (en) Quality test method, device and equipment for PCIe external plug-in card receiving channel
CN108964754A (en) Insertion Loss bearing calibration, system and the Insertion Loss measuring system of optic communication device
US7133795B1 (en) Techniques for testing an electronic system using in-line signal distortion
CN115856589B (en) Test circuit and test method for NFC chip power tube transmitting circuit
CN104678983A (en) Traction control unit self-detection circuit
CN203643828U (en) Self-detection circuit of traction control unit
CN107144417B (en) A kind of test method and system of waveguide coaxial converter insertion loss
CN101931462A (en) Testing control method and device for optical transmission network
CN112543070B (en) On-line extraction of channel characteristics
WO2023138037A1 (en) Communication link operation characteristic test system and test method
CN102098186A (en) QSFP (Quad Small Form-factor Pluggable) module detecting system and detecting method
CN110138691B (en) Switch spanning tree protocol anti-loop stability test method and tool
CN203849350U (en) 64k digital channel test device
CN116774020B (en) Chip testing system, method, device and storage medium
CN107070546A (en) A kind of method of testing of smooth transceiver module, apparatus and system
CN102377608A (en) Physical layer fault simulating system and method
CN112966335B (en) Interface simulation device and automatic driving simulation test platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP01 Change in the name or title of a patent holder

Address after: Cangshan District of Fuzhou City, Fujian province 350002 Jinshan Road No. 618 Garden State Industrial Park building 19#

Patentee after: RUIJIE NETWORKS CO., LTD.

Address before: Cangshan District of Fuzhou City, Fujian province 350002 Jinshan Road No. 618 Garden State Industrial Park building 19#

Patentee before: Fujian Xingwangruijie Network Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140827

Termination date: 20200426