CN104394042B - A kind of method of MIB tests ONU system upgrades - Google Patents

A kind of method of MIB tests ONU system upgrades Download PDF

Info

Publication number
CN104394042B
CN104394042B CN201410789148.8A CN201410789148A CN104394042B CN 104394042 B CN104394042 B CN 104394042B CN 201410789148 A CN201410789148 A CN 201410789148A CN 104394042 B CN104394042 B CN 104394042B
Authority
CN
China
Prior art keywords
mib
message
onu
tables
system upgrades
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410789148.8A
Other languages
Chinese (zh)
Other versions
CN104394042A (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.)
Shenzhen Superelectron Technology Co ltd
Original Assignee
Shanghai Feixun Data Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201410789148.8A priority Critical patent/CN104394042B/en
Publication of CN104394042A publication Critical patent/CN104394042A/en
Application granted granted Critical
Publication of CN104394042B publication Critical patent/CN104394042B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of method of MIB tests ONU system upgrades, use the process of packet simulation tool simulation MIB Browser operation MIB nodes, the setting message for needing to carry out value setting is sent using packet simulation tool and needs to read the reading message of nodal operation result, and judges whether test result meets technical requirements according to the interaction of packet;And when testing different ONU, it need to only change and message is set and reads respective field in message, then reuse tool mould of giving out a contract for a project and send out bag.The method tester of the MIB test ONU system upgrades of the present invention need not understand the application method of MIB Browser instruments, reduce the dependence that document is described to MIB nodes, tester need not grasp MIB logic setting order, simplify test process, eliminate the time that node one by one is set manually, and second directly use instrument of giving out a contract for a project when testing tested, without manual test again, suitable for different authentication ID ONU upgradings.

Description

A kind of method of MIB tests ONU system upgrades
Technical field
The present invention relates to a kind of Simple Network Management Protocol (Simple Network Management Protocol, SNMP the method that management information bank (Management Information Base, MIB) carries out functional test in), is particularly related to A kind of and method of MIB testing optical networks unit (Optical Network Unit, ONU) system upgrade.
Background technology
SNMP is the rule of communication between management equipment and managed devices in network.Utilize SNMP, a management work Standing can be with all network equipment for supporting this agreements of remote management, including supervision network state, modification network equipments configuration, connects Receive network event warning etc..There are three elements in snmp management model:Manager (Manager), acted on behalf of by pipe And management information bank (MIB) (Agent).
The realization of real Network Management Function, is resided in network management workstation.Regard Internet resources as object, then Each object actually represents the variable for a feature being managed, and the set that these variables are formed is exactly MIB.MIB The management parameters of report objects are deposited, MIB functions provide the accessing points from management work station to agency.Management work station passes through Multivalue by changing the value of mib object realizes various Network Management Functions to realizing detection function in inquiry MIB.
Each mib object is uniquely identified with object identifier (Object ID, OID), and this is with being defined on Tree in ASN.1 grammers carrys out the available information of tissue.Wherein each available information is the node of a tape label, each Node numeral and character two ways are shown.Object identifier OID is the one group of integer separated by fullstop, that is, from root section Point leads to its path, and it is named node and indicates its accurate location in ASN.1 trees.
The conventional instrument of test MIB nodes is exactly MIB Browser at present, and mib file is imported by the instrument, then right Correlation function node carries out value setting and value read operation to reach message interaction purpose.MIB tests ONU system upgrades The setting of following three tables is carried out successively:FxFMDevFileServTable tables (7 nodes need to set, totally 7 step), FxFMDevFileTransTable tables (4 nodes need set, 1 node needs to read, totally 5 step) and FxFMCpeUpgradeTable tables (6 nodes need to set, totally 11 step).Wherein, fxFMDevFileServTable tables are mainly born The setting of file server is blamed, fxFMDevFileTransTable tables are mainly responsible for transmitting file to optical line terminal In (Optical Line Terminal, OLT), fxFMCpeUpgradeTable tables mainly upload upgrade file from OLT Transport on ONU and activate ONU upgradings.Every table is required for carrying out node setting and reading according to the description order of MIB documents, And the value set also refers to the data type and scope described in MIB documents.Therefore, MIB test to MIB design documentations according to It is bad stronger, and during second of test ONU upgrade function, more than setting three tables manually are needed again again.
Therefore, the method for existing MIB tests ONU system upgrades includes following shortcoming:
(1) application method of MIB Browser instruments in itself need to be grasped;
(2) MIB nodes need to be relied on and describes document;
(3) MIB logic setting order need to be grasped;
(4) operating procedure is complicated, and the MIB operations of 23 steps need to be carried out by completing an ONU system upgrades test;
(5) test is required for setting three tables manually again every time, and efficiency is low.
The content of the invention
In view of the above the shortcomings that prior art, it is an object of the invention to provide a kind of MIB to test ONU system upgrades Method, overcome testing tool is not known about, node logical order is unfamiliar with, complex operation, the series such as each duplication of labour Problem, the testing time is effectively shortened, improve testing efficiency.
In order to achieve the above objects and other related objects, the present invention provides a kind of method of MIB tests ONU system upgrades, Comprise the following steps:Step S1, server and OLT are communicatively coupled;Step S2, according to Wireshark software analysis, choosing Selecting needs the network interface card of packet capturing, starts packet capturing;Step S3, each node in three MIB tables is set manually;Step S4, current survey is judged Whether as before try ONU;If it is, it is transferred to step S6;If not, it is transferred to step S5;Step S5, to setting request message Modified with read requests message, by the index modification that the object identifier for setting request message and read requests message is last For the ID for the ONU that need to be tested;Step S6, after the completion for the treatment of ONU upgradings, packet capturing is stopped, and export message;Step S7, will be exported Message imported into again in instrument of giving out a contract for a project, after incoherent SNMP messages are filtered out, will include and request message and reading are set The bag of request message is taken to send to OLT;Step S8, continue packet capturing, check OLT to each setting request message and read requests message Response message;Step S9, the return value of the object identifier corresponding node of each response message and each node in MIB tables are judged Whether arranges value is consistent;If it is inconsistent, the response message for showing to return reports an error, ONU system upgrades can not be normally carried out; It is if consistent, then it represents that for all response messages without reporting an error, ONU system upgrades are successful.
According to the method for above-mentioned MIB test ONU system upgrades, wherein:In the step S1, the server passes through English Special net is communicatively coupled with the OLT so that the server being capable of OLT described in normal management.
According to the method for above-mentioned MIB test ONU system upgrades, wherein:In the step S3, by server MIB Browser, each node in three MIB tables is set manually.
Further, the method that ONU system upgrades are tested according to above-mentioned MIB, wherein:Three MIB tables are respectively FxFMDevFileServTable tables, fxFMDevFileTransTable tables and fxFMCpeUpgradeTable tables.
According to the method for above-mentioned MIB test ONU system upgrades, wherein:In the step S7, incoherent SNMP is filtered During message, leave behind and request message and read requests message are set, filter out the response message of each node.
According to the method for above-mentioned MIB test ONU system upgrades, wherein:In the step S8, according to setting request message And the request ID of read requests message and the object identifier of response message carry out the identification of corresponding response message.
As described above, the method for the MIB test ONU system upgrades of the present invention, has the advantages that:
(1) tester need not understand the application method of MIB Browser instruments;
(2) dependence that document is described to MIB nodes is reduced;
(3) tester need not grasp MIB logic setting order;
(4) test process is simplified, eliminates the time that node one by one is set manually;
(5) second directly use instrument of giving out a contract for a project when testing is tested, without manual test again;
(6) upgrade suitable for different authentication ID ONU.
Brief description of the drawings
Fig. 1 is shown as the flow chart of the method for the MIB test ONU system upgrades of the present invention;
Fig. 2 is shown as the topological structure schematic diagram of the MIB test ONU system upgrades of the present invention.
Embodiment
Illustrate embodiments of the present invention below by way of specific instantiation, those skilled in the art can be by this specification Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through specific realities different in addition The mode of applying is embodied or practiced, the various details in this specification can also be based on different viewpoints with application, without departing from Various modifications or alterations are carried out under the spirit of the present invention.
It should be noted that the diagram provided in the present embodiment only illustrates the basic conception of the present invention in a schematic way, Then the component relevant with the present invention is only shown in schema rather than is painted according to component count, shape and the size during actual implement System, kenel, quantity and the ratio of each component can be a kind of random change during its actual implementation, and its assembly layout kenel also may be used Can be increasingly complex.
The method of the MIB test ONU system upgrades of the present invention uses the simulation MIB Browser operations of packet simulation tool The process of MIB nodes, the setting request message for needing to carry out value setting is sent using packet simulation tool and needs to read section The read requests message of point operating result, and judge whether test result meets technical requirements according to the interaction of packet; And when testing different ONU, need to only change and message is set and reads respective field in message, then reuse instrument of giving out a contract for a project and simulate Give out a contract for a project.
ONU system upgrades include file server setting, file transmission is set and ONU upgradings set these three processes.Its In, server sets the setting for including server ip, server account, password;File transmission, which is set, will upgrade software from file Server is uploaded to OLT;ONU upgradings, which are set, to be reached ONU by the upgrade file on OLT and activates upgrading.Therefore, it is of the invention The method of MIB test ONU system upgrades simulates real file server and sends setting request message, text by software of giving out a contract for a project Part transmission sets request message, ONU upgradings to set request message, meanwhile, the response message that crawl corresponding requests ID is returned, and root Judge whether ONU updating operations succeed according to node arranges value corresponding to each OID in message and reading result.
Wherein, file server is set, file transmission is set and ONU upgradings set these three processes to relate separately to This three, fxFMDevFileServTable tables, fxFMDevFileTransTable tables and fxFMCpeUpgradeTable tables MIB tables.During test, by sending setting request message and read requests message to OLT, OLT can be carried out after receiving request message Response, finally judges whether ONU system upgrades succeed according to the response message of return.
Reference picture 1, the method for MIB of the invention test ONU system upgrades comprise the following steps:
Step S1, server and OLT are communicatively coupled.
Specifically, server 1 is communicatively coupled by internet 2 and OLT3 so that server 1 being capable of normal management OLT3, as shown in Figure 2.
Step S2, the network interface card of packet capturing is needed according to Wireshark software analysis, selection, starts packet capturing.
Specifically, select to want the network interface card of packet capturing by the network package analysis software Wireshark on server, start Packet capturing.
Step S3, each node in three MIB tables is set manually.
Specifically, the MIB Browser on server are opened, three MIB tables are set manually: FxFMDevFileServTable tables, fxFMDevFileTransTable tables and fxFMCpeUpgradeTable tables.
Wherein, each nodes of MIB are respectively as table 1, table 2 and table 3 are configured.
Table 1, fxFMDevFileServTable tables node are set
Table 2, fxFMDevFileTransTable tables node are set
The fxFMCpeUpgradeTable tables node of table 3 is set
Step S4, judge whether current test ONU is as before;If it is, it is transferred to step S6;If not, it is transferred to step Rapid S5.
Step S5, in instrument of giving out a contract for a project to setting request message and read requests message to modify, request report will be set The ID that the last index modification of the object identifier of text and read requests message is the ONU that need to be tested.
Preferably, to setting request message and read requests message to modify in instrument of giving out a contract for a project.
Step S6, after the completion for the treatment of ONU upgradings, packet capturing is stopped, and export message.
Wherein, the test of message later stage can reuse derived from institute.
Step S7, message derived from institute is imported into instrument of giving out a contract for a project again, after incoherent SNMP messages are filtered out, Bag comprising setting request message and read requests message is sent to OLT.
Specifically, when filtering incoherent SNMP messages, leave behind setting request message described by table one to table three and Read requests message, filter out the response message of each node.
Step S8, continue packet capturing, check OLT to each setting request message and the response message of read requests message.
Wherein, entered according to setting request message and the request ID of read requests message and the object identifier of response message The identification of the corresponding response message of row.
Specifically, using network package analysis software Wireshark packet capturings on the server, check OLT in step S7 To each setting request message and the response message of read requests message.
Step S9, judge that the return value of the object identifier corresponding node of each response message is set with each node in MIB tables Whether consistent put value;If it is inconsistent, the response message for showing to return reports an error, ONU system upgrades can not be normally carried out;Such as Fruit is consistent, then it represents that for all response messages without reporting an error, ONU system upgrades are successful.
From the foregoing, it will be observed that the method for the MIB test ONU system upgrades of the present invention focuses on setting for server analogue data bag Put and the capture and analysis of OLT returned data bags.
It should be noted that the MIB method of testings of the present invention are not limited solely to the test of ONU system upgrades, at other Can also effectively it be used during MIB functional module test.
In summary, the method tester of MIB of the invention test ONU system upgrades need not understand MIB Browser The application method of instrument, reduces the dependence that document is described to MIB nodes, and the logic setting that tester need not grasp MIB is suitable Sequence, simplify test process, when eliminating the time that node one by one is set manually, and testing for second directly use give out a contract for a project work Tool is tested, and without manual test again, is upgraded suitable for different authentication ID ONU.So the present invention effectively overcome it is existing Various shortcoming in technology and have high industrial utilization.
The above-described embodiments merely illustrate the principles and effects of the present invention, not for the limitation present invention.It is any ripe Know the personage of this technology all can carry out modifications and changes under the spirit and scope without prejudice to the present invention to above-described embodiment.Cause This, those of ordinary skill in the art is complete without departing from disclosed spirit and institute under technological thought such as Into all equivalent modifications or change, should by the present invention claim be covered.

Claims (6)

  1. A kind of 1. method of MIB tests ONU system upgrades, it is characterised in that:Comprise the following steps:
    Step S1, server and OLT are communicatively coupled;
    Step S2, the network interface card of packet capturing is needed according to Wireshark software analysis, selection, starts packet capturing;
    Step S3, each node in three MIB tables is set manually;
    Step S4, judge whether current test ONU is as before;If it is, it is transferred to step S6;If not, it is transferred to step S5;
    Step S5, to setting request message and read requests message to modify, will request message and read requests message be set The last index modification of object identifier be the ONU that need to be tested ID;
    Step S6, after the completion for the treatment of ONU upgradings, packet capturing is stopped, and export message;
    Step S7, message derived from institute is imported into instrument of giving out a contract for a project again, after incoherent SNMP messages are filtered out, will wrapped Sent containing the bag of request message and read requests message is set to OLT;
    Step S8, continue packet capturing, check OLT to each setting request message and the response message of read requests message;
    Step S9, the return value and the arranges value of each node in MIB tables of the object identifier corresponding node of each response message are judged It is whether consistent;If it is inconsistent, the response message for showing to return reports an error, ONU system upgrades can not be normally carried out;If one Cause, then it represents that for all response messages without reporting an error, ONU system upgrades are successful.
  2. 2. the method for MIB tests ONU system upgrades according to claim 1, it is characterised in that:In the step S1, institute State server to be communicatively coupled by internet and the OLT so that the server being capable of OLT described in normal management.
  3. 3. the method for MIB tests ONU system upgrades according to claim 1, it is characterised in that:In the step S3, lead to The MIB Browser crossed on server, each node in three MIB tables is set manually.
  4. 4. the method for MIB tests ONU system upgrades according to claim 3, it is characterised in that:Three MIB tables point It is not fxFMDevFileServTable tables, fxFMDevFileTransTable tables and fxFMCpeUpgradeTable tables;Its In, fxFMDevFileServTable tables are responsible for the setting of file server, and fxFMDevFileTransTable tables are responsible for text Part is transmitted into optical line terminal, and upgrade file is uploaded and transports on ONU and swash by fxFMCpeUpgradeTable tables from OLT ONU upgradings living.
  5. 5. the method for MIB tests ONU system upgrades according to claim 1, it is characterised in that:In the step S7, mistake When filtering incoherent SNMP messages, leave behind and request message and read requests message are set, filter out the response report of each node Text.
  6. 6. the method for MIB tests ONU system upgrades according to claim 1, it is characterised in that:In the step S8, root Corresponding response message is carried out according to request message and the request ID of read requests message and the object identifier of response message is set Identification.
CN201410789148.8A 2014-12-17 2014-12-17 A kind of method of MIB tests ONU system upgrades Active CN104394042B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410789148.8A CN104394042B (en) 2014-12-17 2014-12-17 A kind of method of MIB tests ONU system upgrades

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410789148.8A CN104394042B (en) 2014-12-17 2014-12-17 A kind of method of MIB tests ONU system upgrades

Publications (2)

Publication Number Publication Date
CN104394042A CN104394042A (en) 2015-03-04
CN104394042B true CN104394042B (en) 2018-01-02

Family

ID=52611878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410789148.8A Active CN104394042B (en) 2014-12-17 2014-12-17 A kind of method of MIB tests ONU system upgrades

Country Status (1)

Country Link
CN (1) CN104394042B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105656701A (en) * 2016-04-01 2016-06-08 浪潮电子信息产业股份有限公司 Testing method based on windows system SNMP (simple network management protocol)
CN106899451B (en) * 2017-02-22 2020-04-17 广州市诚毅科技软件开发有限公司 Method and device for testing MIB (management information base)
CN108111929B (en) * 2017-11-17 2020-11-27 深圳市飞鸿光电子有限公司 Python-based automatic test method, system and test terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1658579A (en) * 2004-02-16 2005-08-24 华为技术有限公司 Method for set-up artificial equipment agency
CN101616022A (en) * 2008-06-26 2009-12-30 艾默生网络能源系统北美公司 A kind of intelligent device management method and system based on snmp protocol
CN104104546A (en) * 2014-07-23 2014-10-15 浪潮电子信息产业股份有限公司 SNMP network management system based on scripts

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8850197B2 (en) * 2009-07-31 2014-09-30 Futurewei Technologies, Inc. Optical network terminal management control interface-based passive optical network security enhancement
AU2012374062B2 (en) * 2012-03-19 2016-04-21 Assia Spe, Llc System for diagnosing and optimizing vectored DSL line

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1658579A (en) * 2004-02-16 2005-08-24 华为技术有限公司 Method for set-up artificial equipment agency
CN101616022A (en) * 2008-06-26 2009-12-30 艾默生网络能源系统北美公司 A kind of intelligent device management method and system based on snmp protocol
CN104104546A (en) * 2014-07-23 2014-10-15 浪潮电子信息产业股份有限公司 SNMP network management system based on scripts

Also Published As

Publication number Publication date
CN104394042A (en) 2015-03-04

Similar Documents

Publication Publication Date Title
CN109218139B (en) Gateway test system
EP1530847B1 (en) Method and system for configuration control in telecommunications networks
US9426284B2 (en) Methods, systems, and computer readable media for call flow analysis using comparison level indicators
CN106961362B (en) Automated testing method and mobile cloud test system
CN107589952A (en) Intelligent upgrade method, device and system
CN103731205B (en) A kind of optical network unit automated testing method
WO2002071779A1 (en) Method and system for checking the configuration of nodes in a telecommunications network
US11405302B1 (en) Methods, systems, and computer readable media for network testing using configurable test infrastructure
CN104394042B (en) A kind of method of MIB tests ONU system upgrades
CN105141441B (en) A kind of method that IP network graphically configures
CN106656562B (en) A kind of OLT batch issues the detection method and device of ONU configuration
CN106357457A (en) Warning test method, warning test apparatus and warning test system
CN103746840B (en) Method and system for automatic checking of software version information of network equipment
CN112860676B (en) Data cleaning method applied to big data mining and business analysis and cloud server
CN107193917A (en) Whole station CONFIG.SYS lossless data update method based on IID
CN106569951A (en) Web test method independent of page
CN108989067A (en) The method of calibration and equipment of configuration file consistency
CN104427547A (en) Business and network association test method, device and system
CN110196800A (en) Distributed transaction test method, apparatus and system
WO2008000143A1 (en) Method for equipment quality check, method and device for automatically adapting quality check data
CN115150377A (en) Method and device for calling and processing simulation interface
CN107579879A (en) A kind of network simulation method of testing, emulation server and storage medium
CN105550103B (en) A kind of automated testing method based on self-defined test script
US10310962B2 (en) Infrastructure rule generation
US9329960B2 (en) Methods, systems, and computer readable media for utilizing abstracted user-defined data to conduct network protocol testing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201103

Address after: 318015 no.2-3167, zone a, Nonggang City, no.2388, Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province

Patentee after: Taizhou Jiji Intellectual Property Operation Co.,Ltd.

Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230421

Address after: Room 403 and 404, No. 8, Yongtai Taixing Road, Yongping Street, Baiyun District, Guangzhou City, Guangdong Province, 510000

Patentee after: Guangzhou Mudi Information Technology Co.,Ltd.

Address before: 318015 no.2-3167, area a, nonggangcheng, 2388 Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province

Patentee before: Taizhou Jiji Intellectual Property Operation Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230718

Address after: 518000 5th floor, building 7, huidebao Industrial Park, south side of great outer ring road, Baihua community, Guangming Street, Guangming New District, Shenzhen City, Guangdong Province

Patentee after: SHENZHEN SUPERELECTRON TECHNOLOGY Co.,Ltd.

Address before: Room 403 and 404, No. 8, Yongtai Taixing Road, Yongping Street, Baiyun District, Guangzhou City, Guangdong Province, 510000

Patentee before: Guangzhou Mudi Information Technology Co.,Ltd.

TR01 Transfer of patent right