The processing method of broadband device fault position request and device
Technical field:
The present invention relates to a kind of processing method and device of broadband device fault position request.
Background technology:
Along with the development of the Internet and broadband network, bandwidth constantly expands, and the network host performance also strengthens greatly, and number of users also grows with each passing day.Be widely used in the Internet and broadband network such as ecommerce, video request program, long-distance education, tele-medicine or the like system, thereupon brought problem the network user lines maintenance management.
In the daily line upkeep work of broadband device, the diagnosis of line fault is undoubtedly an important link.In numerous troubleshooting is single, how to concentrate the operating efficiency of handling and correctly diagnosing line fault rapidly, improve the plant maintenance personnel effectively to become an important problem.
Particularly in large-scale network, various network failures can occur, how diagnose these faults rapidly, just mean and to fix a breakdown fast.In traditional operation way, in artificial mode, in each machine room, broadband device is carried out the inspection of line, but be difficult to the correct positioning fault by common webmastering software.And testing equipment also is distributed in each office point, the problem of the process user feedback that can't concentrate, fault location is fixed a breakdown usually and is expended great amount of manpower and time, bring greatly inconvenience for large-scale network failure management, this also directly influences the time of utilizing to network.
Summary of the invention:
At the existing problem and shortage of existing broadband device fault location, the purpose of this invention is to provide a kind of can be quickly and easily to the processing method and the device of the broadband device fault position request of network equipment failure location.
The present invention is achieved in that a kind of processing method of broadband device fault position request, may further comprise the steps:
After testing server receives test command, the common test task queue of having stored according to the IP address search of the specified testing equipment of this test command, if the existing test command that contains the IP address information of described testing equipment, then the test command that this is newly received is stored in this task queue; If do not contain the test command of the IP address information of described testing equipment, then create new common test task queue, new test command is stored in the common test task queue of described new establishment;
After the test assignment processor receives test command in the described common test task queue, start two pairs of threads, be respectively applied for and the communicating by letter of broadband device to be measured and testing equipment, after described broadband device to be measured receives the order of described test assignment processor, line capture module is provided, circuit to be tested is taken described testing equipment, described testing equipment detects automatically to described circuit to be measured, be converted to the ordinary file form after test result analyzed, and store.
Further, this method also comprises and the described common test task queue fixed time test task queue of storage side by side, special-purpose monitoring thread is monitored at any time to described fixed time test task queue, if there is test command to arrive the test execution time, then by whether containing the test assignment formation identical in the task queue of testing server retrieval common test with the testing equipment IP address of this fixed time test order indication, if have then this fixed time test demanded storage arrived this common test task queue, if do not have, then create new common test task queue, and with this fixed time test demanded storage in this newly-built common test task queue.
Further, described fixed time test command prioritization is lower than the common test order.
Further, contain IP address, user name and the password of Devices to test in the described test command, IP address, user name and the password of testing equipment, circuit essential information to be tested.
Further, the described circuit essential information to be tested TL1 protocol format that is standard.
Further, but the different common test task queue of described test assignment processor concurrent testing, and a certain test assignment formation is finished, and discharges its two couples test thread.
A kind of processing unit of broadband device fault position request includes testing server, memory module and input/output module, and described testing server includes:
Test assignment is distributed module, is used for determining the character of test command, promptly determines that it is fixed time test order or common test order, and these two kinds of different test commands are stored in the different test assignment formations;
Whether monitoring thread module, the fixed time test order that is used for monitoring the fixed time test task queue to the time of implementation, if to then with this fixed time test demanded storage in corresponding common test task queue;
Test task process module is carried out the test command in the common test task queue, and Devices to test is tested;
The ordinary file pattern is analyzed and be converted to the interpretation of result processing module to test result;
Test command is imported by described input/output module, described test assignment is distributed module and is judged its character, it is stored to respectively in the different test assignment formations, after described test task process module receives test command, start two pairs of test threads, be respectively applied for and the communicating by letter of broadband device to be measured and testing equipment, Devices to test is tested, by described interpretation of result processing module analytical test result, store described memory module into after being converted into ordinary file, and by described input/output module output.
Further, described test assignment formation is the set of the identical test command of indication testing equipment, and described fixed time test command prioritization is lower than the common test order.
Further, contain IP address, user name and the password of Devices to test in the described test command, IP address, user name and the password of testing equipment, circuit essential information to be tested.
Further, but the different common test task queue of described test task process module concurrent testing, and a certain test assignment formation is finished, and discharges its two couples test thread.
After broadband device receives test command, test command is judged, and, store by the testing equipment of indication in the order again, and task queue is monitored to fixed time test its classification, put it into during to the testing time in the common test task queue, after test is finished, behind test result analysis, be converted to storage of ordinary file form and output, like this, the ordinary person just can position fault.The present invention focuses on distribution with all problems, and all test results are focused on the analysis feedback.Can accept test assignment by unified interface, also can initiate test assignment by the domestic consumer interface.Thereby realized the unification of fault position request in the catenet is focused on, carried out fault location easily.
Description of drawings:
Below in conjunction with accompanying drawing, the present invention is made detailed description.
Fig. 1 is a structural representation of the present invention;
Fig. 2 is an application structure schematic diagram of the present invention;
Fig. 3 is a schematic flow sheet of the present invention.
Embodiment:
As shown in Figure 1, the present invention includes testing server, memory module and input/output module, wherein testing server is used for finishing the test to Devices to test, treats the survey line road and tests and monitor, to store behind the test result analysis, and export by input/output module.As shown in Figure 2, testing server of the present invention includes test assignment and distributes module, the monitoring thread module, test task process module, test thread and interpretation of result processing module, wherein, test assignment is distributed the character that module is used for determining test command, after the user sends test command, import by input/output module, test assignment is distributed module and is received this order, read the effective information in it, it is judged, promptly determine that it is fixed time test order or common test order, these two kinds of different test commands are stored in the different test assignment formations; If fixed time test order, then browse the timed task formation in the memory module, if contain the formation of IP address information of the testing equipment of this test command indication, this test command is stored in this timed task formation, then do not create new timed task formation and with this test command storage if having; If common test order, in like manner, then browse the common task formation in the memory module, if contain the formation of IP address information of the testing equipment of this test command indication, this test command is stored in this common task formation, does not then create new common task formation also with this test command storage if having.The monitoring thread module is connected with the timed task formation, and at any time to timed task formation monitor, if to the testing time, then with this fixed time test demanded storage in the common task formation, during storage, browse the common task formation, if contain the formation of IP address information of the testing equipment of this test command indication, this test command is stored in this common task formation, does not then create new common task formation also with this test command storage if having.Here, all contain IP address, user name and the password of Devices to test in two kinds of test commands, IP address, user name and the password of testing equipment, information such as line information to be tested; Accept above information and can pass through UDP (User Datagram Protocol, User Datagram Protoco (UDP)) reception, also can receive by formulating other standard interfaces.Test task process module is carried out the test command in the common test task queue, and Devices to test is tested, and starts two pairs of threads during test, and promptly two pairs of transmitting-receiving threads carry out communication with testing equipment and Devices to test respectively.Its communications protocol is used the communications protocol of standard, can guarantee that so any testing equipment can both correctly communicate by letter with Devices to test, fault position request in a formation all disposes, two pairs of threads of its correspondence will withdraw from and Free up Memory immediately, if withdrawing from unusually, thread will restart thread, and, preserve remaining data in the formation with error logging.After test finished, the output result of system was a series of Serial No., had only by the interpretation of result processing module it is parsed into useful results, and different sequences was compared the place of analysis ability problem identificatioin.At last, analysis result is converted to graphic file or other ordinary files are shown to the user, can sees and the normal data differences between samples, do not need the professional knowledge just can problem identificatioin.
The present invention is as long as guaranteeing external testing equipment is connected with the equipment of circuit to be tested, and this Devices to test can provide line capture module, that is to say and the circuit that needs are tested can be taken on the tester.It is grabbed the line operation and finishes by software command, and detailed process is as follows:
1, logs on DSLAM equipment by the TELNET agreement;
2, carry out to issue orders:
Product_test//enter and grab the line command mode
The line operation is grabbed in snap port slot:port//execution
Here, slot represents slot number, and port is a port numbers, as: snap port 15:1
3, wait for the end signal of test assignment;
4, receive the signal of EOT, carry out the unwrapping wire operation:
Snapport off//execution unwrapping wire operation
Quit//withdraw from telnet to operate
So far pick-and-place line EO.
As shown in Figure 3, specific implementation process of the present invention is as follows:
The user starts user interface earlier, system prompt user input authentication information (usemame/password), and after authentication, the user can operate accordingly according to the authority of oneself.The actuating logic program is carried out scope check after receiving user's authentication information, and uses the interface according to the authority generation system, and the operation information of recording user is in database, i.e. log.If the user has the test authority, then can carry out dependence test.Test interface in system, the user is as long as which test the information (being used to locate equipment under test) of input broadband device and test instruction (have been carried out), submitting to the actuating logic program then tests, the actuating logic program is sent the information of test command and Devices to test to testing equipment, testing equipment detects Devices to test by above-mentioned test process, and the relevant information of the current test of record is in database.Actuating logic program recording operation result and returns to user interface with test result by the communications reception program in database.The user sends the request that logs off after executing test, log off.