CN100589411C - Proxy layer response method for communication devices - Google Patents

Proxy layer response method for communication devices Download PDF

Info

Publication number
CN100589411C
CN100589411C CN200710129489A CN200710129489A CN100589411C CN 100589411 C CN100589411 C CN 100589411C CN 200710129489 A CN200710129489 A CN 200710129489A CN 200710129489 A CN200710129489 A CN 200710129489A CN 100589411 C CN100589411 C CN 100589411C
Authority
CN
China
Prior art keywords
veneer
message
replying
response
response message
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
CN200710129489A
Other languages
Chinese (zh)
Other versions
CN101145961A (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.)
WUHAN ZHONGXING SOFTWARE CO., LTD.
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 CN200710129489A priority Critical patent/CN100589411C/en
Publication of CN101145961A publication Critical patent/CN101145961A/en
Application granted granted Critical
Publication of CN100589411C publication Critical patent/CN100589411C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention relates to an agent layer response method of communication equipment, which comprises storing an agent layer receiving command and information corresponding to a plurality of download subcommands by using a data structure and recording corresponding response or condition of each subcommand; calculating the length of a buffer region needed to be requested according to the record statistics response failure number; and constructing a success message uploading management layer if the response failure number is zero, otherwise requesting and using the buffer region with the length, integrating the response, constructing the failure condition message and uploading the management layer. According to the method, the agent layer can accurately collect response messages uploaded synchronously or asynchronously by the operation single board, integrate the messages to one and upload to the management layer.

Description

A kind of proxy layer response method for communication devices
Technical field
The present invention relates to the communication apparatus remote side administration, be specifically related to a kind of proxy layer response method for communication devices.
Background technology
At present, the structure of communication system devices generally is divided into three layers, and these three layers are respectively management level, Agent layer and operation layer.Management level are by the veneer of Agent layer management service layer.Generally, management level can have a plurality of administrator administers Agent layer, simultaneously, and a plurality of service boards of the proxy server management service layer of Agent layer.In the communication apparatus of reality, often exist this situation, management level issue one and order Agent layer, Agent layer is split as many subcommands with this order, and every subcommand sends to a plurality of veneers again simultaneously, after service board receives orders, according to the implementation status of order, reply to Agent layer.Behind the management level transmitting order to lower levels, hope can access each service board to every strip process of commands situation, for example, makes mistakes if service board is handled, and management level need be known the concrete error message that the service board processing makes mistakes.In the entire process process, because the order that management level issue is one, Agent layer also should be replied an order and be given management level, at this moment, just need Agent layer correctly to collect replying of operation layer, and replying of operation layer be integrated into a message, reply management level, and do not have such technology or such technology to be disclosed at present to correspondence.
Chinese invention patent " a kind of implementation method of device far end management ", the patent No. is CN01140062, described the forwarding answer techniques of a kind of Agent layer to order, the shortcoming of this technology also is can not guarantee correctly to collect replying of operation layer, integrates and replys the unified management level of issuing.
Summary of the invention
The technical issues that need to address of the present invention provide a kind of proxy layer response method for communication devices, make Agent layer can correctly collect the message that service board is asynchronous or report synchronously, and report management level after being integrated into a message.
Above-mentioned technical problem of the present invention solves like this, and a kind of proxy layer response method for communication devices is provided, and may further comprise the steps:
1.1) utilize data structure to preserve Agent layer receiving management layer order and reply or correspondence is replied situation to the correspondence that the operation layer correspondence issues the information of many subcommands and writes down each bar subcommand operation layer veneer; Described data structure is a command information node chained list, each command information node wherein by timeout interval, reply parameter and point to a last command information node and the pointer of next command information node is formed; The described parameter of replying is made up of the pointer that the condition of replying, command process call back function pointer and preservation manager issue data; The described condition of replying comprises that subcommand array and veneer that command code, management level sign, management level message identification, Agent layer downward message sign number, veneer that the manager issues report message identification number, Agent layer to issue reply structure list; Described veneer replys message identification that structure list comprises that Agent layer issues, need report the veneer number of replying, reported the veneer number of replying, reported veneer message buffering regional address, need report the veneer address list of replying, reported the veneer address list of replying; It is corresponding response message that described correspondence is replied, and the described correspondence situation of replying comprises and overtimely not responding;
1.2) thereby calculate the buffer length of needs application according to described record statistics answer failed number;
1.3) be zero to be successfully constructed the message reporting management level according to described answer failed number, otherwise application and utilize the buffering area of described length that failure scenarios message reporting management level are integrated and constructed to described replying.
According to answer method provided by the invention, the structure of described buffering area comprises the veneer address of response message, the error code that veneer is replied, the length of veneer response message and the pointer of sensing veneer response message.
According to answer method provided by the invention, described answer failed comprises that response result is in the response message " failure " and does not overtimely respond.
According to answer method provided by the invention, described step 1.2) comprises the described data structure of traversal.
According to answer method provided by the invention, described step 1.3) comprise corresponding informance is copied into described buffering area from described data structure.
According to answer method provided by the invention, described step 1.3) construct described failure scenarios message according to described buffer contents.
According to answer method provided by the invention, described data structure comprises the veneer address of response message, the error code that veneer is replied, the length of veneer response message and the pointer of sensing veneer response message.
According to answer method provided by the invention, overtime when not responding, the length of the veneer response message of corresponding record is zero in the described data structure.
A kind of proxy layer response method for communication devices provided by the invention, each the subcommand response message that utilizes the keeping records of command information node chained list to integrate, after correctly collecting the asynchronous or message that reports synchronously of service board, be integrated into a success or failure scenarios message reporting and give management level.
Description of drawings
Further the present invention is described in detail below in conjunction with the drawings and specific embodiments.
Fig. 1 is an information node list structure schematic diagram of the present invention.
Fig. 2 is the buffering area structural representation.
Fig. 3 is that Agent layer statistical service veneer answer failed is counted schematic flow sheet.
Fig. 4 is that schematic flow sheet is replied in the integration of Agent layer veneer reporting information.
Embodiment
At first, key of the present invention is described:
(1) data structure (information node chained list) of definition hold-over command information node
This structure is used to preserve the command information that Agent layer receives and sends, all need integrate a chained list of command information node composition of replying management in the Agent layer, each node structure as shown in Figure 1, by timeout interval, the pointer composition of replying parameter and pointing to a last command information node and next command node; Wherein:
Replying parameter is made up of the pointer that the condition of replying, command process call back function pointer and preservation manager issue data;
The command code that the condition of replying is issued by the manager, management level sign, management level message identification, Agent layer downward message sign number, veneer report subcommand array that message identification number, Agent layer issue and veneer to reply structure list etc. to form;
Veneer replys message identification that structure list issues by Agent layer, need report the veneer number of replying, reported the veneer number of replying, reported veneer message buffering regional address, need report the veneer address list of replying, reported the veneer address list of replying etc. to form.
(2) the buffering area structure of definition record veneer response message
This structure is mainly used in buffer memory need integrate the command information of replying, and according to the information of this structure, can calculate the length that sends to the management level message, thus the length of decision application message buffer.The buffering area structure comprises following four fields as shown in Figure 2:
Veneer address: the veneer address of response message
Error code: the error code that veneer is replied, error code is " 0 " during success
Message length: the length of veneer response message
Veneer response message: the pointer that points to the veneer response message
(3) integrate response steps
The main responsible command information integration that will reply the administration module collection is replied in integration becomes an order, and replys management level.Begin to integrate reply processing before, the command information node is filled in the order that order that Agent layer need issue according to management level and service board are replied.Having collected behind the service board or (having produced) in the time in appointment from the order information node, the command information node is taken off from chained list, import the integration responder module into.
The process that integration is replied was divided into for two steps: the first step: the answer failed number of statistical service veneer, so that calculate the buffer length that needs application, as shown in Figure 3; Second step: the application buffering area, replying of service board to be integrated, structure is replied the message of management level, replys management level, sees Fig. 4.Integrating responder module, that veneer is replied the detailed step of integrating is as follows:
The first step (as Fig. 3):
301) the subcommand sign indicating number is replied in taking-up from " the subcommand array that Agent layer issues " of replying node; If all subcommand arrays have traveled through fully, forwarded for second step to.
302) if subcommand is invalid, the subcommand that this position of array does not have storage to issue is described, forward step 301 to); Subcommand is effective, forwards step 303 to).
303) reply the civilian identification list of transmitting messages from the veneer of subcommand correspondence, take out the veneer response message from " veneer reports message buffer ", take out veneer plate address from " need report the veneer address list of replying ", if the array traversal in the message instruction tabulation fully, forward step 301 to), continue to handle replying of next bar subcommand; Otherwise forward step 304 to).
304) if the veneer response message is empty, forward step 305 to); Otherwise from response message, take out response result,, veneer answer failed number is added " 1 " if reply to failure; No matter response result success or not all forwards step 303 to), continue to handle replying of next piece veneer.
305) if the veneer address is effective, illustrate that this veneer do not reply in the time of appointment, veneer is replied overtime, and veneer answer failed number is added " 1 ".No matter whether the veneer address is effective, all forwards step 303 to), continue to handle replying of next piece veneer.
Second step (as Fig. 4):
If the failure answer number is 0, the subcommand that all Agent layer are issued is described, service board has all been replied success, and structure is replied the successful message to webmaster; The failure answer number is not 0, and application veneer answer failed is counted the failure structured buffer pool of size.Copy step 301)~305), from reply node parameter, take out failure message, from failure message, take out failure information, copy in the buffering area.
According to the content in the failure information buffering area, structure is replied the message of management level.
Secondly, further specify the present invention in conjunction with concrete the application:
A webmaster (management level) issues many subcommands to a plurality of veneers (operation layer) via an Agent layer AGENT in the transmission equipment.Webmaster issues one and orders AGENT, the command code that issues is MNGR_CMD_AGENT, by AGENT this order is split as two subcommand AGENT_CMDA_MCU, AGENT_CMDB_MCU, these two subcommands all will be issued to veneer MCUADRSA1 and MCUADRSA2 respectively.MCUADRSA1 replys successfully subcommand AGENT_CMDA_MCU, to subcommand AGENT_CMDB_MCU answer failed; MCUADRSA2 replys successfully subcommand AGENT_CMDA_MCU, subcommand AGENT_CMDB_MCU is not done reply.
Tell about below in the top examples of implementation situation, AGENT how with service board reply integration after reply to management level.
1, AGENT finishes the collection of command information node in the time of appointment, enters the integration responder module;
2, the AGENT traversal is replied the subcommand array of node, at first find subcommand AGENT_CMDA_MCU, the veneer that travels through subcommand AGENT_CMDA_MCU correspondence is then replied identification list, take out first and reply data in the array, the MCUADRS2 response message is not empty, and response result adds 1 for failure with veneer answer failed number; In like manner, to AGENT_CMDB_MCU, MCUADRS2 does not reply, and veneer answer failed number is added 1.After the subcommand array had traveled through, veneer answer failed number was 2.
3, this moment, veneer answer failed number was not 0, applied for the buffering area of 2 failure structure size.Copy step 2, traversal command information node arrives buffering area with the failure information assignment.
4, reply the message of webmaster according to the buffering area structure, reply webmaster.

Claims (8)

1, a kind of proxy layer response method for communication devices is characterized in that, may further comprise the steps:
1.1) utilize data structure to preserve that Agent layer receives order and corresponding many correspondences that issue the information of subcommand and write down each bar subcommand are replied or correspondence is replied situation; Described data structure is a command information node chained list, each command information node wherein by timeout interval, reply parameter and point to a last command information node and the pointer of next command information node is formed; The described parameter of replying is made up of the pointer that the condition of replying, command process call back function pointer and preservation manager issue data; The described condition of replying comprises that subcommand array and veneer that command code, management level sign, management level message identification, Agent layer downward message sign number, veneer that the manager issues report message identification number, Agent layer to issue reply structure list; Described veneer replys message identification that structure list comprises that Agent layer issues, need report the veneer number of replying, reported the veneer number of replying, reported veneer message buffering regional address, need report the veneer address list of replying, reported the veneer address list of replying; It is corresponding response message that described correspondence is replied, and the described correspondence situation of replying comprises and overtimely not responding;
1.2) thereby calculate the buffer length of needs application according to described record statistics answer failed number;
1.3) be zero to be successfully constructed the message reporting management level according to described answer failed number, otherwise application and utilize the buffering area of described length that failure scenarios message reporting management level are integrated and constructed to described replying.
According to the described answer method of claim 1, it is characterized in that 2, the structure of described buffering area comprises the veneer address of response message, the error code that veneer is replied, the length of veneer response message and the pointer of sensing veneer response message.
According to the described answer method of claim 1, it is characterized in that 3, described answer failed comprises that response result is in the response message " failure " and overtimely do not respond.
4, according to the described answer method of claim 1, it is characterized in that described step 1.2) comprise the traversal described data structure.
5, according to the described answer method of claim 1, it is characterized in that described step 1.3) comprise corresponding informance is copied into described buffering area from described data structure.
6, according to the described answer method of claim 5, it is characterized in that described step 1.3) construct described failure scenarios message according to described buffer contents.
According to claim 1 or 5 described answer methods, it is characterized in that 7, described data structure comprises the veneer address of response message, the error code that veneer is replied, the length of veneer response message and the pointer of sensing veneer response message.
8, described according to Claim 8 answer method is characterized in that, and is overtime when not responding, and the length of the veneer response message of corresponding record is zero in the described data structure.
CN200710129489A 2007-07-19 2007-07-19 Proxy layer response method for communication devices Active CN100589411C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710129489A CN100589411C (en) 2007-07-19 2007-07-19 Proxy layer response method for communication devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710129489A CN100589411C (en) 2007-07-19 2007-07-19 Proxy layer response method for communication devices

Publications (2)

Publication Number Publication Date
CN101145961A CN101145961A (en) 2008-03-19
CN100589411C true CN100589411C (en) 2010-02-10

Family

ID=39208275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710129489A Active CN100589411C (en) 2007-07-19 2007-07-19 Proxy layer response method for communication devices

Country Status (1)

Country Link
CN (1) CN100589411C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819458B (en) * 2011-06-07 2017-09-26 南京中兴新软件有限责任公司 A kind of processing method and system of distributed operation order

Also Published As

Publication number Publication date
CN101145961A (en) 2008-03-19

Similar Documents

Publication Publication Date Title
CN102081611B (en) Method and device for synchronizing databases of master network management system and standby network management system
CN106647586A (en) Virtual machine room visualization monitoring management system based on B/S architecture and realization method
CN101478684B (en) Method and system for detecting integrity of stored video data
CN103064731A (en) Device and method for improving message queue system performance
CN102567185B (en) Monitoring method of application server
CN103167265B (en) Based on method for processing video frequency and the system of intelligent image identification
CN103530066B (en) A kind of date storage method, Apparatus and system
CN104104734A (en) Log analysis method and device
CN104156300A (en) Log management system and log management method
CN104199625A (en) Method, device and system for converting and outputting print data
CN107272669B (en) A kind of airborne Fault Management System
CN102917005A (en) Method and device supporting massive memory access to transactions
CN1971599A (en) Error monitoring method and system of software application
CN209496412U (en) A kind of punch card system
CN109983749A (en) It is transmitted using the faster data of Remote Direct Memory access communication
CN100589411C (en) Proxy layer response method for communication devices
CN110020305A (en) Webpage loading method, device, computer equipment and storage medium
CN114818218A (en) Cable laying path determining method, device and storage medium
KR100775982B1 (en) Guaranteed distribution control system
DE112006001543T5 (en) Response planning for a memory channel
CN105468502A (en) Log collection method, device and system
CN103944779A (en) WAP service performance monitoring method and system
CN102088376B (en) Communication monitoring system and method for integrated avionics system
CN111026566A (en) Client service error scene three-dimensional monitoring method and device
CN106095891A (en) A kind of magnitude of the operation identification statistical method being applicable to foreground personnel

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
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20151118

Address after: 430223 East Lake Wuhan New Technology Development Zone Hua Hua Road, Optics Valley Industrial Park, ZTE building, building No. 3, building

Patentee after: WUHAN ZHONGXING SOFTWARE CO., LTD.

Address before: 518057 Nanshan District high tech Industrial Park, Guangdong, South Road, science and technology, ZTE building, legal department

Patentee before: ZTE Corporation