CN101702661B - Method and device for obtaining diagnostic information - Google Patents

Method and device for obtaining diagnostic information Download PDF

Info

Publication number
CN101702661B
CN101702661B CN2009102384166A CN200910238416A CN101702661B CN 101702661 B CN101702661 B CN 101702661B CN 2009102384166 A CN2009102384166 A CN 2009102384166A CN 200910238416 A CN200910238416 A CN 200910238416A CN 101702661 B CN101702661 B CN 101702661B
Authority
CN
China
Prior art keywords
diagnostic
points
module
diagnosis process
master control
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
CN2009102384166A
Other languages
Chinese (zh)
Other versions
CN101702661A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2009102384166A priority Critical patent/CN101702661B/en
Publication of CN101702661A publication Critical patent/CN101702661A/en
Application granted granted Critical
Publication of CN101702661B publication Critical patent/CN101702661B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The invention discloses a method for obtaining diagnostic information. The method comprises the following steps: establishing a diagnosis procedure respectively on a main control single plate and each service single plate and realizing the interaction of a diagnosis command and diagnostic information between the main control single plate and each service single plate by the communication between the diagnosis procedures so as to realize the unified management of diagnosis points on the main control single plate and each service single plate and the diagnostic information by logging on an OAM interface on the main control single plate. The invention also discloses a device for obtaining the diagnostic information, which comprises an establishing module, a main control single plate and service single plates. By the method and the device, the problems that the diagnostic information of communication equipment can not be obtained by remote operation and the diagnostic information generated when a fault occurs can not be obtained can be solved.

Description

A kind of acquisition methods of diagnostic message and device
Technical field
The present invention relates to the communications field, relate in particular to the diagnostic techniques in the communications field.
Background technology
Communication equipment comprises: master control veneer and one or a plurality of service board, for example, router comprises service boards such as master control veneer and network board, Network Process Unit.The acquisition methods of traditional diagnostic message to communication equipment is: insert the code that is used to obtain diagnostic message in the business module on master control veneer, each service board; During business module work; The code that being used to wherein obtained diagnostic message also moves; Write down the diagnostic message such as transmitting-receiving message amount, packet loss quantity of this business module, and information recorded is stored on the master control veneer or service board under this business module.There is following shortcoming in the acquisition methods of this diagnostic message:
During communication equipment fault, land master control veneer or each service board, read diagnostic message current on it and carry out fault location through the serial ports that supplies debugging usefulness on master control veneer, each service board, can't remote operation; When carrying out fault location, the diagnostic message that can get access to is current diagnostic message, can not obtain the diagnostic message in the moment of breaking down, and is unfavorable for fault location.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of acquisition methods and device of diagnostic message, and can solve can't be through the diagnostic message of remote operation obtaining communication equipment and the problem that can not obtain the diagnostic message in the moment of breaking down.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of acquisition methods of diagnostic message, this method comprises:
Call back function is set respectively in each business module;
In each business module, select one or more insertion points, insert diagnostic points in each insertion point; Said diagnostic points comprises the caller of call back function.
During the communication equipment initialization, master control veneer, each service board are created the diagnosis process respectively, and generate corresponding diagnosis process number;
Master control veneer is landed at operation management maintain (OAM) interface through master control veneer, and input is during diagnostic command, and the diagnosis process of master control veneer is issued to this diagnostic command the diagnosis process of each service board that each cpu node that this diagnostic command carries number identified;
The diagnosis process of said each service board disposes and opens corresponding diagnostic points, obtains diagnostic message and carries out handled through the diagnosis process of master control veneer.
Further, when carrying out fault location, this method further comprises:
Land the OAM interface of master control veneer, input diagnosis querying command, the diagnostic message that meets this diagnosis querying command of storing on the diagnosis process inquiry master control veneer of master control veneer is also passed through the output of OAM interface.
Further, when the communication equipment initialization, this method further comprises: each diagnostic points of each business module the diagnosis process of service board registration under self respectively is specially:
Each diagnostic points of each business module is the diagnosis process of service board transmission register requirement under self respectively;
Said diagnosis process is the address of sending the call back function that is provided with on diagnostic points distribution diagnostic points ID, structure space and this diagnostic points business module of living in of register requirement;
The address of the call back function that is provided with on the ID of said diagnostic points and the business module of living in is stored in the structure space that distributes into this diagnostic points.
Further, said diagnostic command carries diagnosis process number, cpu node number, configuration information and the indication of diagnostic points switch;
Said diagnostic points switch indication comprises: open indication or close indication;
Accordingly, the diagnostic command that each said diagnosis process receives according to self is respectively disposed and is opened corresponding diagnostic points, obtains diagnostic message and carries out the storage of diagnostic message, demonstration in real time through the diagnosis process of master control veneer;
The diagnostic command that each diagnosis process receives is carried when closing indication, closes corresponding diagnostic points.
Further, said configuration information is: test case data, conditional parameter, filtercondition and diagnostic message type, perhaps, conditional parameter, filtercondition and diagnostic message type;
Accordingly, when configuration information comprises test case data in the diagnostic command that receives, said configuration and open corresponding diagnostic points before, this method also comprises:
Each diagnosis process is with corresponding each business module of test case data substitution;
The corresponding diagnostic points of said configuration is:
The address of the call back function of being stored in the structure space according to corresponding diagnostic points obtains the call back function that is provided with on this diagnostic points business module of living in and calls;
Get conditional parameter, filtercondition and the diagnostic message type of this diagnostic points in the configuration information, the conditional parameter substitution conditional parameter of being got is extracted function, the filtercondition substitution filter function of being got; Obtain the output information of function according to diagnostic message type configuration data extracting function, Debugging message.
Further, said configuration and open corresponding diagnostic points after, saidly obtain diagnostic message and the storage of the diagnosis process through master control veneer comprises:
Business process is the caller of this diagnostic points part as its business module of living in, in company with the caller of this diagnostic points of the operation of the business module under it, obtains diagnostic message and sends to the diagnosis process of opening this diagnostic points with the ID of this diagnostic points; On the ID and the described service board of corresponding buffer memory to this diagnosis process of diagnostic message of said diagnosis process with the diagnostic points that receives;
The diagnosis process that the diagnosis process of each service board reports master control veneer with the ID and the diagnostic message of the diagnostic points of corresponding buffer memory on this service board; The diagnosis process of master control veneer is stored in the ID and the diagnostic message of the diagnostic points that receives on the master control veneer.
Further, after the diagnosis process registration of service board under self, this method also comprises each diagnostic points of said each business module respectively:
Be the corresponding configuration diagnostics group of each operation flow of communication equipment, in the corresponding diagnostic bank of each operation flow, write the ID of the diagnostic points in each business module of realizing this operation flow;
Said unlatching indication comprises: open the diagnostic bank indication, perhaps, diagnostic bank is provided with the ID of indication and one or more diagnostic points; Closing indication comprises: close the diagnostic bank indication;
Accordingly, the diagnostic points switch of the diagnostic command that receives is designated as when opening indication, and said configuration is also opened corresponding diagnostic points and is specially:
During for the indication of unlatching diagnostic bank, dispose and open each diagnostic points that indicated diagnostic bank comprises;
When for diagnostic bank indication being set with the ID of one or more diagnostic points, the configuration diagnostics group writes the diagnostic bank of setting with the ID of these one or more diagnostic points, and configuration is also opened each diagnostic points that the diagnostic bank of setting comprises;
Be designated as when closing indication at the diagnostic points switch of received diagnostic command, saidly close corresponding diagnostic points and be specially: close each diagnostic points that indicated diagnostic bank comprises.
The present invention also provides a kind of deriving means of diagnostic message, and this device comprises: create module, master control veneer and service board; Wherein,
Create module, be used for respectively inserting diagnostic points at each business module of master control veneer and each service board;
Said establishment module further comprises: module and input module are set;
The said module that is provided with is used at each business module call back function being set respectively;
Said input module is used for inserting diagnostic points in one or more insertion points that each business module is selected; Said diagnostic points comprises the caller of call back function.
Master control veneer when being used for initialization, is used to create the diagnosis process of self, and generates corresponding diagnosis process number;
Service board when being used for initialization, is used to create the diagnosis process of self, and generates corresponding diagnosis process number;
Wherein,
Master control veneer is provided with the OAM interface, is used to provide the interface of landing master control veneer, receives the diagnostic command of user's input;
The diagnosis process of master control veneer is used for the diagnosis process that diagnostic command that the OAM interface with master control veneer receives is issued to each service board that each cpu node that this diagnostic command carries number identified;
The diagnosis process of service board is used for disposing and open corresponding diagnostic points according to the diagnostic command that receives, and obtains diagnostic message and carries out handled through the diagnosis process of master control veneer.
Further, the diagnosis process of said master control veneer comprises: master control transceiver module and master control memory module; Wherein,
The master control transceiver module is used for said diagnostic command is issued to the diagnosis process of each service board that each cpu node that this diagnostic command carries number identified; And the diagnostic message sent of the diagnosis process that receives service board;
The master control memory module is used for the diagnostic message that the diagnosis process of storage service veneer is sent.
Further, said OAM interface also is used to receive the diagnosis querying command that the user imports; Output meets the diagnostic message of said diagnosis querying command;
The diagnosis process of said master control veneer also comprises enquiry module, is used to inquire about the diagnostic message that meets said diagnosis querying command of storing on the master control veneer and sends to the OAM interface.
Further, the diagnosis process of said service board comprises: professional receiver module and service management module; Wherein,
Professional receiver module is used for the diagnostic message of obtaining is sent to the diagnosis process of master control veneer;
The service management module is used for according to the diagnostic command that receives, disposes and opens corresponding diagnostic points, obtains diagnostic message and send to the diagnosis process of master control veneer, perhaps, closes corresponding diagnostic points.
Further, said diagnostic points, the diagnosis process that is used for service board under self is sent register requirement;
The diagnosis process of said service board also comprises the service log-on module, is used to be respectively the address that the diagnostic points of sending register requirement is distributed the call back function that is provided with on diagnostic points ID and structure space and this diagnostic points business module of living in; The address of the call back function that is provided with on the ID of each diagnostic points and the business module of living in is stored in the structure space that distributes into this diagnostic points.
Further, said diagnostic command carries diagnosis process number, cpu node number, configuration information and the indication of diagnostic points switch;
Said diagnostic points switch indication comprises: open indication or close indication;
Said configuration information is: test case data, conditional parameter, filtercondition and diagnostic message type, perhaps, conditional parameter, filtercondition and diagnostic message type;
Said service management module comprises service resolution module, business configuration module, professional acquisition module, professional sending module and professional closing module; Wherein,
The service resolution module is used to be resolved to the diagnostic command that receives and carries when opening indication, triggers the business configuration module; Be resolved to the diagnostic command that receives and carry when closing indication, trigger professional closing module;
The business configuration module is used to call call back function; Get conditional parameter, filtercondition and the diagnostic message type of this diagnostic points in the configuration information, the conditional parameter substitution conditional parameter of being got is extracted function, the filtercondition substitution filter function of being got; Obtain the output information of function according to diagnostic message type configuration data extracting function, Debugging message; And when configuration information comprises test case data in the diagnostic command that receives, with corresponding each business module of test case data substitution; Afterwards, open corresponding diagnostic points;
Professional acquisition module is used to obtain diagnostic message;
Professional sending module is used to send the diagnostic message that said professional acquisition module obtains;
Professional closing module is used to close corresponding diagnostic points.
Further; This device also comprises business process; Be used for the caller of this diagnostic points a part as its business module of living in; In company with the caller of this diagnostic points of the business module under it operation, obtain diagnostic message and send to the diagnosis process of the service board of opening this diagnostic points with the ID of this diagnostic points;
Said professional acquisition module comprises: professional receiver module and service buffer module; Wherein,
Professional receiver module is used to receive the business process on the service board is sent under self the diagnostic message and the ID of diagnostic points;
Service buffer module, the corresponding buffer memory of the ID of the diagnostic points that is used for said professional receiver module is received and the diagnostic message service board under self.
Further; Said service management module comprises that also professional diagnostic bank is provided with module; Be used to the corresponding configuration diagnostics group of each operation flow on the business board, and write the ID of the diagnostic points in each business module of realizing this operation flow in the diagnostic bank of each operation flow correspondence on business board.
The acquisition methods of diagnostic message provided by the present invention and device; Create the diagnosis process respectively on master control veneer, each service board; Mutual through diagnostic command and diagnostic message between the Communication Realization master control veneer between the diagnosis process, each service board; And then realize that having solved can't be through the diagnostic message of remote operation obtaining communication equipment and the problem that can not obtain the diagnostic message in the moment of breaking down through landing the OAM interface unified management master control veneer on the master control veneer, diagnostic points and the diagnostic message on each service board.
Description of drawings
Fig. 1 is the realization flow figure of the acquisition methods of embodiment of the invention diagnostic message;
Fig. 2 is the structural representation of the deriving means of embodiment of the invention diagnostic message;
Fig. 3 is the structural representation of the diagnosis process of embodiment of the invention service board.
Embodiment
The realization flow of the acquisition methods of embodiment of the invention diagnostic message is as shown in Figure 1, may further comprise the steps:
Step 101: the user inserts diagnostic points respectively in each business module;
Here, said insertion diagnostic points is specially:
Step a1, user are provided with call back function respectively in each business module;
Step b1, user select one or more insertion points in each business module, insert diagnostic points in each insertion point; Said diagnostic points comprises the caller of call back function, is used to call the call back function that is provided with on the residing service node of this diagnostic points; Wherein,
Said insertion point can be at beginning, ending and the beginning of the program that realizes business module and any place between ending; The key point that realizes operation flow in the general option program is as the insertion point; For example; In the forwarding process, select to be used to receive behind the block of message as an insertion point, the block previous crops of selecting to be used to E-Packet is another insertion point;
Said call back function comprises: conditional parameter extraction function, filter function, data grasp function, Debugging message obtains function; Wherein,
Conditional parameter extracts function and is used to extract the message of eligible parameter of self insertion point of living in of flowing through; For example; Conditional parameter is a destination address 000001, and then to extract the destination address that function extracts himself insertion point of living in of flowing through be 000001 message to conditional parameter;
Filter function is used for according to filtercondition, filters said conditional parameter and extracts the message that function extracts;
Data grasp function, when the filter function filtration obtains meeting the message of filtercondition, grasp this message;
Debugging message obtains function, when the filter function filtration obtains meeting the message of filtercondition, obtains self current Debugging message in insertion point of living in.
Step 102: during the communication equipment initialization, master control veneer, each service board are created the diagnosis process respectively, and generate corresponding diagnosis process number; Each diagnostic points of each business module the diagnosis process of service board registration under self respectively.Wherein, the diagnosis process number is used to identify the diagnosis process;
Wherein, each diagnostic points of said each business module respectively under self the diagnosis process of service board registration be specially:
Each diagnostic points of step a2, each business module is the diagnosis process of service board transmission register requirement under self respectively;
Step b2, said diagnosis process are the address of sending the call back function that is provided with on diagnostic points distribution diagnostic points ID, structure space and this diagnostic points business module of living in of register requirement;
Wherein, the address of said call back function is used to indicate the position of said call back function; The ID of the cpu node of a service board number+diagnostic points can uniquely confirm a diagnostic points, master control veneer of a said cpu node unique identification or service board.
Step c2, said diagnosis process are stored in the address of the call back function that is provided with on the ID of each diagnostic points and the business module of living in the structure space that distributes into this diagnostic points.
In the embodiment of the invention; Step 102 can also comprise: each diagnosis process is the corresponding configuration diagnostics group of each operation flow of communication equipment; In the corresponding diagnostic bank of each operation flow, write the ID of the diagnostic points in each business module of realizing this operation flow; That is, be diagnostic bank of each operation flow configuration, the ID of each diagnostic points in this diagnostic bank is the ID of the diagnostic points in each business module of realizing this operation flow.
Step 103: master control veneer is landed at operation management maintain (OAM, the Operation Administration and Maintenance) interface through master control veneer, the input diagnostic command; The diagnosis process of master control veneer is resolved diagnostic command, obtains each cpu node that this diagnostic command carries number, this diagnostic command is issued to the diagnosis process of each service board that each cpu node of obtaining number identified;
Wherein, said diagnostic command carries diagnosis process number, cpu node number, configuration information and the indication of diagnostic points switch;
Said diagnosis process number is used for indication the diagnosis process is sent in this diagnostic command, but not sends to other process except that the diagnosis process, for example, and business process etc.
Said configuration information is: test case data, conditional parameter, filtercondition and diagnostic message type, perhaps, conditional parameter, filtercondition and diagnostic message type; Wherein,
Said diagnostic points switch indication comprises: open indication or close indication; Wherein, open indication and be specially: open the diagnostic bank indication, perhaps, diagnostic bank is provided with the ID of indication and one or more diagnostic points, perhaps, opens the diagnostic points indication; Closing indication is specially: close the diagnostic bank indication, perhaps, close the diagnostic points indication.
Further; Mutual between the diagnosis process through the realization of the communications conduit between process on the communication equipment; Promptly, here, this diagnostic command is issued to other diagnosis process except that self of respectively diagnosing the process number sign that obtains is specially with the form interactive information of message between different boards:
The cpu node of service board under process number and this diagnosis process of said other diagnosis process number is write the message header of message between different boards; Said message between different boards is write the message body of this message between different boards, send said other diagnosis process of this message between different boards to corresponding veneer.
Step 104: receive the diagnostic command that each diagnosis process of diagnostic command receives according to self respectively, dispose and open corresponding diagnostic points, obtain diagnostic message and carry out handled through the diagnosis process of master control veneer.
Be specially:
The diagnostic command that each diagnosis process receives is carried when opening indication, disposes and open corresponding diagnostic points; The diagnostic command that each diagnosis process receives is carried when closing indication, closes corresponding diagnostic points.
Here, be designated as when opening indication at the diagnostic points switch of received diagnostic command, said configuration is also opened corresponding diagnostic points and is specially:
During for the indication of unlatching diagnostic bank, dispose and open whole diagnostic points that indicated diagnostic bank comprises, the diagnostic points of the ID of each diagnostic points sign in the promptly indicated diagnostic bank;
When for diagnostic bank indication being set with the ID of one or more diagnostic points, the configuration diagnostics group writes the diagnostic bank of setting with the ID of these one or more diagnostic points, and configuration and open whole diagnostic points that the diagnostic bank of setting comprises;
During for the indication of unlatching diagnostic points, dispose and open indicated diagnostic points.
Be designated as when closing indication at the diagnostic points switch of received diagnostic command, saidly close corresponding diagnostic points and be specially:
For closing diagnostic bank when indication, close whole diagnostic points that indicated diagnostic bank comprises; For closing diagnostic points when indication, close indicated diagnostic points.
Further, when configuration information comprises test case data in the diagnostic command that receives, said configuration and open corresponding diagnostic points before, step 104 also comprises:
Each diagnosis process is with corresponding each business module of test case data substitution; Here, during the current off-duty of general business module to be measured, configuration information comprises test case data in the diagnostic command, is used for the running environment of analog service module.
Further, the corresponding diagnostic points of said configuration is:
The address of the call back function of being stored in step a3, the structure space according to corresponding diagnostic points obtains the call back function that is provided with on this diagnostic points business module of living in and calls;
Step b3, the conditional parameter of getting this diagnostic points in the configuration information, filtercondition and diagnostic message type are extracted function with the conditional parameter substitution conditional parameter of being got, with the filtercondition substitution filter function of being got; Obtain the output information of function according to diagnostic message type configuration data extracting function, Debugging message.
Further, saidly obtain diagnostic message and the storage of the diagnosis process through master control veneer comprises:
Step a4, business process are with the caller of this diagnostic points part as its business module of living in; In company with the caller of this diagnostic points of the business module under it operation, obtain diagnostic message and send to the diagnosis process of opening this diagnostic points with the ID of this diagnostic points; On the ID and the service board under corresponding buffer memory to this diagnosis process of diagnostic message of said diagnosis process with the diagnostic points that receives;
Wherein, said caller in company with this diagnostic points of the operation of the business module under it is specially:
During business module to this residing insertion point of diagnostic points under it of business process operation, move the caller of this diagnostic points, afterwards, then move the program of the business module behind the insertion point.
Wherein, the ID of the said diagnostic points that receives and diagnostic message correspondence are buffered in the high memory of each master control veneer or service board, and after guaranteeing that communication equipment is restarted, the said diagnostic message of buffer memory can not lost;
Accordingly, the embodiment of the invention also comprises: adopt the adaptive optimal control method to manage the high memory of each service board respectively, manage being specially of high memory of certain service board:
Step a41, the free block in the high memory is linked according to from small to large order, obtain the free block chain;
The caller of step a42, operational diagnostics point; When getting access to diagnostic message, the ID of this diagnostic points and the diagnostic message of being obtained as a record, are traveled through said free block chain; Up to finding first to be not less than the free block of this record length; From said free block chain, delete the free block that is found, this record is write the free block that is found, at this moment; If the free block that is found also has free space, then this free space is linked in the said free block chain as a free block;
Step a43, when the record of buffer memory is reported the diagnosis process of master control veneer or is stored on the master control veneer; Whether discharge the memory headroom that this record takies and obtain free space, it is idle to inquire about the memory headroom adjacent with this free space physical address, if; After this free space and adjacent with it memory headroom merged; As a free block and be linked in the said free block chain,, improve the high memory utilization rate to avoid producing memory fragmentation; If not, this free space is linked in the said free block chain as a free block.
The diagnosis process that the diagnosis process of step b4, each service board reports master control veneer with the ID and the diagnostic message of the diagnostic points of corresponding buffer memory on this service board; The diagnosis process of master control veneer is stored in the ID and the diagnostic message of the diagnostic points of the ID of the diagnostic points that receives and diagnostic message and self buffer memory on the master control veneer.
Here; After said diagnostic message with buffer memory on this service board reported the diagnosis process failure of master control veneer, step b4 also comprised: report again, exceed predefined retransmission threshold value up to times of reporting again; Do not report success yet; Then finish this report flow, wait for the new diagnostic message of buffer memory, return and carry out the operation that said diagnostic message with buffer memory on this service board reports the diagnosis process of master control veneer.
Wherein, said diagnostic message with the buffer memory diagnosis process that is sent to master control veneer is specially:
The cpu node of the process number of the diagnosis process of master control veneer and master control veneer number is write the message header of message between different boards, the record of buffer memory is write the message body of this message between different boards, the diagnosis process of sending this message between different boards to master control veneer.
Here, said diagnostic message is stored on the master control veneer is specially:
Step b41, the cpu node number of the service board of diagnostic message is sent in inquiry in the veneer concordance list;
Step b42, the cpu node that in the veneer concordance list, retrieves of inquiry number the diagnostic points concordance list of corresponding pointed;
Step b43, in the diagnostic points concordance list ID of the corresponding diagnostic points of inquiry diagnostic message; The pointer that the ID that inquiry inquires in the diagnostic points concordance list is corresponding;
Step b44, said diagnostic message is stored in the diagnosis information system of the corresponding pointed of said ID.
During failure diagnosis, execution in step 105:
Step 105: land the OAM interface of master control veneer, input diagnosis querying command, the diagnostic message that meets this diagnosis querying command of storing on the diagnosis process inquiry master control veneer of master control veneer is also passed through the output of OAM interface.
The structure of the deriving means of embodiment of the invention diagnostic message is as shown in Figure 2, comprising: create module, master control veneer and service board; Wherein,
Create module, be used for respectively inserting diagnostic points at each business module of master control veneer and each service board;
Master control veneer when being used for initialization, is used to create the diagnosis process of self, and generates corresponding diagnosis process number;
Service board when being used for initialization, is used to create the diagnosis process of self, and generates corresponding diagnosis process number;
Wherein,
Master control veneer is provided with the OAM interface, is used to provide the interface of landing master control veneer, receives the diagnostic command of user's input;
The diagnosis process of master control veneer is used for the diagnosis process that diagnostic command that the OAM interface with master control veneer receives is issued to each service board that each cpu node that this diagnostic command carries number identified;
The diagnosis process of service board is used for disposing and open corresponding diagnostic points according to the diagnostic command that receives, and obtains diagnostic message and carries out handled through the diagnosis process of master control veneer.
Further, the diagnosis process of said master control veneer comprises: master control transceiver module and master control memory module; Wherein,
The master control transceiver module is used for said diagnostic command is issued to the diagnosis process of each service board that each cpu node that this diagnostic command carries number identified; And the diagnostic message sent of the diagnosis process that receives service board;
The master control memory module is used for the diagnostic message that the diagnosis process of storage service veneer is sent.
Further, said OAM interface also is used to receive the diagnosis querying command that the user imports; Output meets the diagnostic message of said diagnosis querying command;
The diagnosis process of said master control veneer also comprises enquiry module, is used to inquire about the diagnostic message that meets said diagnosis querying command of storing on the master control veneer and sends to the OAM interface.
Further, said establishment module comprises: module and input module are set; Wherein,
Module is set, is used for call back function being set respectively at each business module;
Input module is used for inserting diagnostic points in one or more insertion points that each business module is selected; Said diagnostic points comprises the caller of call back function.
Further, the structure of the diagnosis process of said service board is as shown in Figure 3, comprising: professional receiver module and service management module; Wherein,
Professional receiver module is used for the diagnostic message of obtaining is sent to the diagnosis process of master control veneer;
The service management module is used for according to the diagnostic command that receives, disposes and opens corresponding diagnostic points, obtains diagnostic message and send to the diagnosis process of master control veneer, perhaps, closes corresponding diagnostic points.
Further, said diagnostic points, the diagnosis process that is used for service board under self is sent register requirement;
The diagnosis process of said service board also comprises the service log-on module, is used to be respectively the address that the diagnostic points of sending register requirement is distributed the call back function that is provided with on diagnostic points ID and structure space and this diagnostic points business module of living in; The address of the call back function that is provided with on the ID of each diagnostic points and the business module of living in is stored in the structure space that distributes into this diagnostic points.
Further, said diagnostic command carries diagnosis process number, cpu node number, configuration information and the indication of diagnostic points switch;
Said diagnostic points switch indication comprises: open indication or close indication;
Said configuration information is: test case data, conditional parameter, filtercondition and diagnostic message type, perhaps, conditional parameter, filtercondition and diagnostic message type;
Said service management module comprises service resolution module, business configuration module, professional acquisition module, professional sending module and professional closing module; Wherein,
The service resolution module is used to be resolved to the diagnostic command that receives and carries when opening indication, triggers the business configuration module; Be resolved to the diagnostic command that receives and carry when closing indication, trigger professional closing module;
The business configuration module is used to call call back function; Get conditional parameter, filtercondition and the diagnostic message type of this diagnostic points in the configuration information, the conditional parameter substitution conditional parameter of being got is extracted function, the filtercondition substitution filter function of being got; Obtain the output information of function according to diagnostic message type configuration data extracting function, Debugging message; And when configuration information comprises test case data in the diagnostic command that receives, with corresponding each business module of test case data substitution; Afterwards, open corresponding diagnostic points;
Professional acquisition module is used to obtain diagnostic message;
Professional sending module is used to send the diagnostic message that said professional acquisition module obtains;
Professional closing module is used to close corresponding diagnostic points.
Further; The said device of the embodiment of the invention also comprises business process; Be used for the caller of this diagnostic points a part as its business module of living in; In company with the caller of this diagnostic points of the business module under it operation, obtain diagnostic message and send to the diagnosis process of the service board of opening this diagnostic points with the ID of this diagnostic points;
Accordingly, said professional acquisition module comprises: professional receiver module and service buffer module; Wherein,
Professional receiver module is used to receive the business process on the service board is sent under self the diagnostic message and the ID of diagnostic points;
Service buffer module, the corresponding buffer memory of the ID of the diagnostic points that is used for said professional receiver module is received and the diagnostic message service board under self.
Further; Said service management module comprises that also professional diagnostic bank is provided with module; Be used to the corresponding configuration diagnostics group of each operation flow on the business board, and write the ID of the diagnostic points in each business module of realizing this operation flow in the diagnostic bank of each operation flow correspondence on business board.
The above is merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.

Claims (15)

1. the acquisition methods of a diagnostic message is characterized in that, this method comprises:
Call back function is set respectively in each business module;
In each business module, select one or more insertion points, insert diagnostic points in each insertion point, said diagnostic points comprises the caller of call back function;
During the communication equipment initialization, master control veneer, each service board are created the diagnosis process respectively, and generate corresponding diagnosis process number;
Master control veneer is landed at operation management maintain OAM interface through master control veneer, and input is during diagnostic command, and the diagnosis process of master control veneer is issued to this diagnostic command the diagnosis process of each service board that each cpu node that this diagnostic command carries number identified;
The diagnosis process of said each service board disposes and opens corresponding diagnostic points, obtains diagnostic message and carries out handled through the diagnosis process of master control veneer.
2. according to the acquisition methods of the said diagnostic message of claim 1, it is characterized in that when carrying out fault location, this method further comprises:
Land the OAM interface of master control veneer, input diagnosis querying command, the diagnostic message that meets this diagnosis querying command of storing on the diagnosis process inquiry master control veneer of master control veneer is also passed through the output of OAM interface.
3. according to the acquisition methods of claim 1 or 2 said diagnostic messages, it is characterized in that when the communication equipment initialization, this method further comprises: each diagnostic points of each business module the diagnosis process of service board registration under self respectively is specially:
Each diagnostic points of each business module is the diagnosis process of service board transmission register requirement under self respectively;
Said diagnosis process is the address of sending the call back function that is provided with on diagnostic points distribution diagnostic points ID, structure space and this diagnostic points business module of living in of register requirement;
The address of the call back function that is provided with on the ID of said diagnostic points and the business module of living in is stored in the structure space that distributes into this diagnostic points.
4. according to the acquisition methods of the said diagnostic message of claim 3, it is characterized in that said diagnostic command carries diagnosis process number, cpu node number, configuration information and the indication of diagnostic points switch;
Said diagnostic points switch indication comprises: open indication or close indication;
Accordingly, the diagnostic command that each said diagnosis process receives according to self is respectively disposed and is opened corresponding diagnostic points, obtains diagnostic message and carries out the storage of diagnostic message, demonstration in real time through the diagnosis process of master control veneer;
The diagnostic command that each diagnosis process receives is carried when closing indication, closes corresponding diagnostic points.
5. according to the acquisition methods of the said diagnostic message of claim 4, it is characterized in that said configuration information is: test case data, conditional parameter, filtercondition and diagnostic message type, perhaps, conditional parameter, filtercondition and diagnostic message type;
Accordingly, when configuration information comprises test case data in the diagnostic command that receives, said configuration and open corresponding diagnostic points before, this method also comprises:
Each diagnosis process is with corresponding each business module of test case data substitution;
The corresponding diagnostic points of said configuration is:
The address of the call back function of being stored in the structure space according to corresponding diagnostic points obtains the call back function that is provided with on this diagnostic points business module of living in and calls;
Get conditional parameter, filtercondition and the diagnostic message type of this diagnostic points in the configuration information, the conditional parameter substitution conditional parameter of being got is extracted function, the filtercondition substitution filter function of being got; Obtain the output information of function according to diagnostic message type configuration data extracting function, Debugging message.
6. according to the acquisition methods of the said diagnostic message of claim 5, it is characterized in that, said configuration and open corresponding diagnostic points after, saidly obtain diagnostic message and the storage of the diagnosis process through master control veneer comprises:
Business process is the caller of this diagnostic points part as its business module of living in, in company with the caller of this diagnostic points of the operation of the business module under it, obtains diagnostic message and sends to the diagnosis process of opening this diagnostic points with the ID of this diagnostic points; On the ID and the described service board of corresponding buffer memory to this diagnosis process of diagnostic message of said diagnosis process with the diagnostic points that receives;
The diagnosis process that the diagnosis process of each service board reports master control veneer with the ID and the diagnostic message of the diagnostic points of corresponding buffer memory on this service board; The diagnosis process of master control veneer is stored in the ID and the diagnostic message of the diagnostic points that receives on the master control veneer.
7. according to the acquisition methods of the said diagnostic message of claim 4, it is characterized in that after the diagnosis process registration of service board under self, this method also comprises each diagnostic points of said each business module respectively:
Be the corresponding configuration diagnostics group of each operation flow of communication equipment, in the corresponding diagnostic bank of each operation flow, write the ID of the diagnostic points in each business module of realizing this operation flow;
Said unlatching indication comprises: open the diagnostic bank indication, perhaps, diagnostic bank is provided with the ID of indication and one or more diagnostic points; Closing indication comprises: close the diagnostic bank indication;
Accordingly, the diagnostic points switch of the diagnostic command that receives is designated as when opening indication, and said configuration is also opened corresponding diagnostic points and is specially:
During for the indication of unlatching diagnostic bank, dispose and open each diagnostic points that indicated diagnostic bank comprises;
When for diagnostic bank indication being set with the ID of one or more diagnostic points, the configuration diagnostics group writes the diagnostic bank of setting with the ID of these one or more diagnostic points, and configuration is also opened each diagnostic points that the diagnostic bank of setting comprises;
Be designated as when closing indication at the diagnostic points switch of received diagnostic command, saidly close corresponding diagnostic points and be specially: close each diagnostic points that indicated diagnostic bank comprises.
8. the deriving means of a diagnostic message is characterized in that, this device comprises: create module, master control veneer and service board; Wherein,
Create module, be used for respectively inserting diagnostic points at each business module of master control veneer and each service board;
Said establishment module further comprises: module and input module are set;
The said module that is provided with is used at each business module call back function being set respectively;
Said input module is used for inserting diagnostic points in one or more insertion points that each business module is selected; Said diagnostic points comprises the caller of call back function;
Master control veneer when being used for initialization, is used to create the diagnosis process of self, and generates corresponding diagnosis process number;
Service board when being used for initialization, is used to create the diagnosis process of self, and generates corresponding diagnosis process number;
Wherein,
Master control veneer is provided with the OAM interface, is used to provide the interface of landing master control veneer, receives the diagnostic command of user's input;
The diagnosis process of master control veneer is used for the diagnosis process that diagnostic command that the OAM interface with master control veneer receives is issued to each service board that each cpu node that this diagnostic command carries number identified;
The diagnosis process of service board is used for disposing and open corresponding diagnostic points according to the diagnostic command that receives, and obtains diagnostic message and carries out handled through the diagnosis process of master control veneer.
9. the deriving means of said diagnostic message according to Claim 8 is characterized in that the diagnosis process of said master control veneer comprises: master control transceiver module and master control memory module; Wherein,
The master control transceiver module is used for said diagnostic command is issued to the diagnosis process of each service board that each cpu node that this diagnostic command carries number identified; And the diagnostic message sent of the diagnosis process that receives service board;
The master control memory module is used for the diagnostic message that the diagnosis process of storage service veneer is sent.
10. according to the deriving means of the said diagnostic message of claim 9, it is characterized in that said OAM interface also is used to receive the diagnosis querying command that the user imports; Output meets the diagnostic message of said diagnosis querying command;
The diagnosis process of said master control veneer also comprises enquiry module, is used to inquire about the diagnostic message that meets said diagnosis querying command of storing on the master control veneer and sends to the OAM interface.
11. according to Claim 8, the deriving means of 9 or 10 said diagnostic messages, it is characterized in that the diagnosis process of said service board comprises: professional receiver module and service management module; Wherein,
Professional receiver module is used for the diagnostic message of obtaining is sent to the diagnosis process of master control veneer;
The service management module is used for according to the diagnostic command that receives, disposes and opens corresponding diagnostic points, obtains diagnostic message and send to the diagnosis process of master control veneer, perhaps, closes corresponding diagnostic points.
12. the deriving means according to the said diagnostic message of claim 11 is characterized in that, said diagnostic points, and the diagnosis process that is used for service board under self is sent register requirement;
The diagnosis process of said service board also comprises the service log-on module, is used to be respectively the address that the diagnostic points of sending register requirement is distributed the call back function that is provided with on diagnostic points ID and structure space and this diagnostic points business module of living in; The address of the call back function that is provided with on the ID of each diagnostic points and the business module of living in is stored in the structure space that distributes into this diagnostic points.
13. the deriving means according to the said diagnostic message of claim 12 is characterized in that, said diagnostic command carries diagnosis process number, cpu node number, configuration information and the indication of diagnostic points switch;
Said diagnostic points switch indication comprises: open indication or close indication;
Said configuration information is: test case data, conditional parameter, filtercondition and diagnostic message type, perhaps, conditional parameter, filtercondition and diagnostic message type;
Said service management module comprises service resolution module, business configuration module, professional acquisition module, professional sending module and professional closing module; Wherein,
The service resolution module is used to be resolved to the diagnostic command that receives and carries when opening indication, triggers the business configuration module; Be resolved to the diagnostic command that receives and carry when closing indication, trigger professional closing module;
The business configuration module is used to call call back function; Get conditional parameter, filtercondition and the diagnostic message type of this diagnostic points in the configuration information, the conditional parameter substitution conditional parameter of being got is extracted function, the filtercondition substitution filter function of being got; Obtain the output information of function according to diagnostic message type configuration data extracting function, Debugging message; And when configuration information comprises test case data in the diagnostic command that receives, with corresponding each business module of test case data substitution; Afterwards, open corresponding diagnostic points;
Professional acquisition module is used to obtain diagnostic message;
Professional sending module is used to send the diagnostic message that said professional acquisition module obtains;
Professional closing module is used to close corresponding diagnostic points.
14. deriving means according to the said diagnostic message of claim 13; It is characterized in that; This device also comprises business process; Be used for the caller of this diagnostic points a part,, obtain diagnostic message and send to the diagnosis process of the service board of opening this diagnostic points with the ID of this diagnostic points in company with the caller of this diagnostic points of the operation of the business module under it as its business module of living in;
Said professional acquisition module comprises: professional receiver module and service buffer module; Wherein,
Professional receiver module is used to receive the business process on the service board is sent under self the diagnostic message and the ID of diagnostic points;
Service buffer module, the corresponding buffer memory of the ID of the diagnostic points that is used for said professional receiver module is received and the diagnostic message service board under self.
15. deriving means according to the said diagnostic message of claim 13; It is characterized in that; Said service management module comprises that also professional diagnostic bank is provided with module; Be used to the corresponding configuration diagnostics group of each operation flow on the business board, and write the ID of the diagnostic points in each business module of realizing this operation flow in the diagnostic bank of each operation flow correspondence on business board.
CN2009102384166A 2009-11-19 2009-11-19 Method and device for obtaining diagnostic information Expired - Fee Related CN101702661B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102384166A CN101702661B (en) 2009-11-19 2009-11-19 Method and device for obtaining diagnostic information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102384166A CN101702661B (en) 2009-11-19 2009-11-19 Method and device for obtaining diagnostic information

Publications (2)

Publication Number Publication Date
CN101702661A CN101702661A (en) 2010-05-05
CN101702661B true CN101702661B (en) 2012-06-13

Family

ID=42157556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102384166A Expired - Fee Related CN101702661B (en) 2009-11-19 2009-11-19 Method and device for obtaining diagnostic information

Country Status (1)

Country Link
CN (1) CN101702661B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023709A (en) * 2011-09-21 2013-04-03 中兴通讯股份有限公司 Method and device for obtaining diagnostic information of wire card of network element
CN103138996A (en) * 2011-11-25 2013-06-05 中兴通讯股份有限公司 State detecting method of distributed system and distributed system
CN105187278B (en) * 2015-09-21 2018-09-04 盛科网络(苏州)有限公司 The chip implementing method of the detection OAM mistakes of no loss
CN112019370B (en) * 2019-05-31 2022-07-15 烽火通信科技股份有限公司 Equipment fault processing method and system
CN112838944B (en) * 2020-07-29 2022-08-12 中兴通讯股份有限公司 Diagnosis and management, rule determination and deployment method, distributed device, and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744055A (en) * 2004-09-04 2006-03-08 华为技术有限公司 Software test method
CN101540706A (en) * 2009-04-23 2009-09-23 中兴通讯股份有限公司 Method and system for realizing remote debugging

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744055A (en) * 2004-09-04 2006-03-08 华为技术有限公司 Software test method
CN101540706A (en) * 2009-04-23 2009-09-23 中兴通讯股份有限公司 Method and system for realizing remote debugging

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开平7-239357A 1995.09.12

Also Published As

Publication number Publication date
CN101702661A (en) 2010-05-05

Similar Documents

Publication Publication Date Title
CN101702661B (en) Method and device for obtaining diagnostic information
CN101257694B (en) Mobile communication network managing intelligent sending method based on information support system
CN102546221B (en) Service configuration method and system for optical network unit
CN101482987B (en) Central control and management method for outdoor communication machine room door based on communication network
CN101534460B (en) Method for identifying remote ONU down-linked terminal equipment in PON system automatically
CN101127611B (en) Billing information integration method and system for IMS network elements and system and billing method and system
CN100395987C (en) Method and system for realizing telecommunication network universal performance management
CN101667934B (en) Centralized supervision device and supervision method of USB interface equipment networking
CN102053962B (en) Lightweight middleware-based networking RFID system and data interaction method
CN103095498B (en) Bill record collection method and system
CN100571422C (en) Value-added service collocation method and increment service system based on assembly
CN205230113U (en) Gun intelligent management system
CN103905237A (en) Telecom exchange network management system and management method
CN105447539B (en) A kind of MODF building method and its network management system based on RFID technique
CN109450922A (en) A kind of communication data analytic method, device and relevant device
CN102157037B (en) Automatic test method and system for software and module
CN101482960A (en) Method and system for marketing in bank hall
CN110335003A (en) A kind of port resource management method and device
CN103810094A (en) Executing method and device for test case and test tool
CN112073326B (en) Intelligent substation process layer network data flow control method
CN101982949B (en) Detection system of intelligent network equipment and method
CN104506939A (en) Information reporting method and television terminal
CN102088376B (en) Communication monitoring system and method for integrated avionics system
CN107426008A (en) Integrated wireless manages interchanger
CN106330567A (en) Server management control method and server management control system for server cluster

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
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: 20120613

Termination date: 20171119