CN102984016A - Asynchronous processing method of management protocol - Google Patents
Asynchronous processing method of management protocol Download PDFInfo
- Publication number
- CN102984016A CN102984016A CN2012105684272A CN201210568427A CN102984016A CN 102984016 A CN102984016 A CN 102984016A CN 2012105684272 A CN2012105684272 A CN 2012105684272A CN 201210568427 A CN201210568427 A CN 201210568427A CN 102984016 A CN102984016 A CN 102984016A
- Authority
- CN
- China
- Prior art keywords
- local side
- configuration information
- terminal equipment
- side configuration
- thread
- 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.)
- Granted
Links
Images
Abstract
The invention discloses an asynchronous processing method of a management protocol, and belongs to a network equipment management technology. The processing method is applicable to data processing between terminal equipment and local equipment and comprises the following steps that a terminal equipment system starts a resident process; the terminal equipment system starts a management protocol host process and opens a thread under the management protocol host process for receiving local configuration information sent by the local equipment according to the management protocol; the terminal equipment receives the local configuration information by the thread; the thread hands the local configuration information over the resident process and replies to the local equipment as operation success when the local configuration information is determined as an overtime message; and the resident process forwards the local configuration information to a target process for processing and receives feedback of the target process. The processing method has the technical benefits that the problem that the operation fails or the communication has an error due to the dead thread possibly caused by multithreading overtime protocol data processing can be solved effectively, and the stability of the system is improved.
Description
Technical field
The present invention relates to a kind of network device management technology, relate in particular to a kind of management agreement asynchronous processing method.
Background technology
At Netowrk tape to people in a large number simultaneously easily, the management of the network equipment also becomes a difficult problem.Because the huge quantity of the network equipment, and the distribution of catenet, if one one controlled by the local management interface, that is very unpractical.So NMP miscellaneous arises at the historic moment.As: SNMP, TR069, OMCI, OAM etc.But above these agreements all are faced with overtime problem.Such as SNMP and TR069, their time-out time is long, thus as controlled person, have sufficient time to complete operation, then with operation result uploading.Meanwhile, for the agreement as OAM and OMCI, they are stricter for the requirement of time, such as in China Telecom's defined " EPON of China Telecom equipment and technology require V3.0_201104 ", just clearly having write " in order to guarantee correct operation; after receiving standard OAMPDU or expansion OAMPDU; ONU should finish corresponding operation (such as the reading of property value, setting, Action comes into force and wrapped state change etc.) in 500ms, and sends the OAMPDU that replys." but in fact, such requirement is unlikely to realize.In the process of practical operation, many times can not in 500ms, finish all actions, allow the network port of an equipment enable such as hope, when being subject to this instruction, just need to power on to target port so, then load corresponding the driving.These operations all are need to be time-consuming, thereby the time that causes replying must be above the stand-by period of agreement, and agreement just can't be passed through like this.
To this, a kind of method is exactly to consult with the R﹠D team of local side, and the time-out time with these operations elongates separately, can more perfectly solve current predicament like this.But this method also exists limitation, and the producer in the whole world is very many after all, and interoperability was exactly a very large problem originally, may not guarantee that each manufacturer can elongate the time of these agreements to guarantee down to hang standby normal operation.
Another kind method is to take the processing method of multithreading to solve this problem, and after equipment was received instruction, system's thread of direct pull-up was processed this operation, simultaneously, directly replys local side apparatus and operates successfully.But its problem is, management agreement can issue a large amount of configurations when registration is finished, the indices that is used for initialization apparatus, hypothesis at short notice like this, equipment receives that (replied operation because of the front finishes a plurality of operation requests, the nature local side apparatus will issue next instruction), the treatment progress of management agreement will be processed this operation by the corresponding a plurality of thread of pull-up so, so in concurrent system, because first operation is just taking system resource, so all can be ossified less than resource because of distributing at thereafter thread, thereby cause the operation failure of follow-up thread.In addition, when equipment receives that backward other processes of local side configuration send message, because the inter-process communication mechanisms of BCM is based on process, it does not relate to the processing of communicating by letter between multithreading yet simultaneously, if be not fine so obstruction mechanism itself writes, so just may cause message sink to be made mistakes, if also needing to send message, the purpose process solves this problem, the robustness of system will be poorer so, and the probability that goes wrong also can be larger.
Summary of the invention
For the technical problem that exists in the above prior art, the invention provides a kind of management agreement asynchronous processing method, to solve the technical problem that concurrent resource is fought for and multithreading causes interprocess communication to make mistakes.
Concrete technical scheme is as follows:
A kind of management agreement asynchronous processing method, wherein, the data that described processing method is applicable between terminal equipment and the local side apparatus are processed, and comprise the steps:
The described terminal equipment of step 1. system starts a Resident Process;
The described terminal equipment of step 2. system starts the management agreement host process, and opens thread under described management agreement host process, is used for receiving the local side configuration information that described local side apparatus sends according to described management agreement;
The described terminal equipment of step 3. receives described local side configuration information by described thread;
Step 4. when described local side configuration information when determining overtime message, described thread is given described Resident Process with described local side configuration information, and replys described local side apparatus and operate successfully;
The described Resident Process of step 5. is transmitted to target process with described local side configuration information and processes, and receives described target process feedback.
Above-mentioned management agreement asynchronous processing method wherein, also comprises:
When step 6. is definite not overtime message when described local side configuration file, described thread sends to corresponding purpose process with described local side configuration file, the described purpose process backward described thread feedback of finishing dealing with, and reply described local side apparatus by described thread and operate successfully.
Above-mentioned management agreement asynchronous processing method, wherein, described management agreement host process receives local control message, and is transmitted to corresponding purpose process.
Above-mentioned management agreement asynchronous processing method, wherein,
Also comprise in the described step 1: the described Resident Process of the described terminal equipment of step 1.1 system is set to blocked state;
Also comprise in the described step 4: when step 4.1 was definite overtime message when described local side configuration information, described terminal equipment For Solutions of Systems was except the blocked state of described Resident Process, and described thread is given described Resident Process with described local side configuration information; The described Resident Process of step 4.2 is transmitted to target process with described local side configuration information and processes, and after receiving described target process feedback, the described Resident Process of described terminal equipment system is set to blocked state.
Above-mentioned management agreement asynchronous processing method, wherein, described terminal equipment determines that by the type of described management agreement described local side configuration information is for determining overtime message or determining not overtime message.
The invention has the beneficial effects as follows: by a system residence process is set, be used for receiving the local side configuration information of determining that meeting is overtime, can effectively avoid having improved Systems balanth owing to taking multithreading to process the problem that the ossified interprocess communication that operation failure or multithreading are caused of thread that overtime protocol data may cause makes mistakes.
Description of drawings
Fig. 1 is the schematic flow sheet of a kind of management agreement asynchronous processing method of the present invention embodiment.
Embodiment
The invention will be further described below in conjunction with the drawings and specific embodiments, but not as limiting to the invention.
Be illustrated in figure 1 as the schematic flow sheet of a kind of management agreement asynchronous processing method of the present invention, wherein, the data that processing method is applicable between terminal equipment and the local side apparatus are processed, and comprise the steps:
Step 1. terminal equipment system starts a Resident Process;
Step 2. terminal equipment system starts the management agreement host process, and opens thread under the management agreement host process, is used for receiving the local side configuration information that local side apparatus sends according to management agreement;
Step 3. terminal equipment receives the local side configuration information by thread;
When step 4. was definite overtime message when the local side configuration information, thread was given Resident Process with the local side configuration information, and the answer local side apparatus operates successfully;
Step 5. Resident Process is transmitted to target process with the local side configuration information and processes, and the receiving target progress feedback.
Know-why of the present invention is: introduce a brand-new Resident Process in the system, this process has the priority the same with other processes.When the management agreement process is received the message that needs long time treatment, operational order is transmitted so far process, then again message is forwarded to target process by this process.Like this, just can the solution process have transmitted the problem of makeing mistakes, because this moment, each process only has a place at messaging, just is not easy the situation of the message gimmick confusion that occurs mentioning in the prior art.Secondly, another advantage of this scheme is to utilize the formation characteristic of message itself to solve, and sequence problem between multithreading avoids concurrent process to take simultaneously same resource, causes the locked problem of only processing a process that reaches of system.
In a kind of specific embodiment of the present invention, comprise that also step 6. is when the local side configuration file is definite not overtime message, thread sends to corresponding purpose process with the local side configuration file, the purpose process backward thread feedback of finishing dealing with, and reply local side apparatus by thread and operate successfully.
In a kind of specific embodiment of the present invention, the management agreement host process receives local control message, and is transmitted to corresponding purpose process.
In a kind of specific embodiment of the present invention, also comprise in the step 1: step 1.1 terminal equipment system Resident Process is set to blocked state; Also comprise in the step 4: when step 4.1 was definite overtime message when the local side configuration information, the terminal equipment For Solutions of Systems was except the blocked state of Resident Process, and thread is given Resident Process with the local side configuration information; Step 4.2 Resident Process is transmitted to target process with the local side configuration information and processes, and after receiving the target process feedback, terminal equipment system Resident Process is set to blocked state.Be set to blocked state by this Resident Process, can effectively prevent when management agreement when processing local control information, make two processes produce the situation of crosstalking, and cause operation failure, only have after receiving the local side configuration information, just remove the blocked state of Resident Process.And receive the feedback of respective objects process when Resident Process after, Resident Process enters into again blocked state, circulates with this.
Above-mentioned management agreement asynchronous processing method, wherein, terminal equipment determines that by the type of management agreement the local side configuration information is for determining overtime message or determining not overtime message.Be difficult to the management agreement of avoiding overtime in SNMP, TR069, the such reality of OMCI, OAM for being similar to, its message information just can be confirmed as according to the type of its corresponding management agreement determining overtime message, distinguish with this.
The short time of agreement defined and the time of practical operation itself just exist contradiction objectively, so this problem is insurmountable essentially.So the present invention is conceived to the interoperability between the network equipment, by the multi-process settlement mechanism, thereby reach as much as possible agreement to temporal requirement, guarantee the intercommunication between each manufacturer.
The above only is preferred embodiment of the present invention; be not so restriction embodiments of the present invention and protection range; to those skilled in the art; should recognize that being equal to that all utilizations specification of the present invention and diagramatic content done replace and the resulting scheme of apparent variation, all should be included in protection scope of the present invention.
Claims (5)
1. a management agreement asynchronous processing method is characterized in that, the data that described processing method is applicable between terminal equipment and the local side apparatus are processed, and comprise the steps:
The described terminal equipment of step 1. system starts a Resident Process;
The described terminal equipment of step 2. system starts a management agreement host process, and opens thread under described management agreement host process, is used for receiving the local side configuration information that described local side apparatus sends according to described management agreement;
The described terminal equipment of step 3. receives described local side configuration information by described thread;
Step 4. when described local side configuration information when determining overtime message, described thread is given described Resident Process with described local side configuration information, and replys described local side apparatus and operate successfully;
The described Resident Process of step 5. is transmitted to a target process with described local side configuration information and processes, and receives described target process feedback.
2. management agreement asynchronous processing method as claimed in claim 1 is characterized in that, also comprises:
When step 6. is definite not overtime message when described local side configuration information, described thread sends to corresponding target process with described local side configuration file, the described target process backward described thread feedback of finishing dealing with, and reply described local side apparatus by described thread and operate successfully.
3. management agreement asynchronous processing method as claimed in claim 1 is characterized in that, described management agreement host process receives local control message, and is transmitted to corresponding target process.
4. management agreement asynchronous processing method as claimed in claim 1 is characterized in that,
Also comprise in the described step 1: the described Resident Process of the described terminal equipment of step 1.1 system is set to blocked state;
Also comprise in the described step 4: when step 4.1 was definite overtime message when described local side configuration information, described terminal equipment For Solutions of Systems was except the blocked state of described Resident Process, and described thread is given described Resident Process with described local side configuration information; The described Resident Process of step 4.2 is transmitted to target process with described local side configuration information and processes, and after receiving described target process feedback, the described Resident Process of described terminal equipment system is set to blocked state.
5. management agreement asynchronous processing method as claimed in claim 1 or 2 is characterized in that, described terminal equipment determines that by the type of described management agreement described local side configuration information is for determining overtime message or determining not overtime message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210568427.2A CN102984016B (en) | 2012-12-24 | 2012-12-24 | A kind of management agreement asynchronous processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210568427.2A CN102984016B (en) | 2012-12-24 | 2012-12-24 | A kind of management agreement asynchronous processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102984016A true CN102984016A (en) | 2013-03-20 |
CN102984016B CN102984016B (en) | 2017-07-25 |
Family
ID=47857777
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210568427.2A Active CN102984016B (en) | 2012-12-24 | 2012-12-24 | A kind of management agreement asynchronous processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102984016B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105245413A (en) * | 2015-09-24 | 2016-01-13 | 成都广达新网科技股份有限公司 | Method for acquiring control information response of terminal by central office of Ethernet over coax (EOC) equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050152322A1 (en) * | 2003-10-17 | 2005-07-14 | Kabushiki Kaisha Toshiba | Reconfigurable signal processing module |
CN101114994A (en) * | 2006-07-28 | 2008-01-30 | 中兴通讯股份有限公司 | Method for detecting connectivity of multi-protocol label switching virtual private network |
CN101141474A (en) * | 2007-09-27 | 2008-03-12 | 中兴通讯股份有限公司 | Hypertext transfer protocol based communication system and method |
CN101290668A (en) * | 2008-06-16 | 2008-10-22 | 中国移动通信集团湖北有限公司 | Time sharing operation dynamic dispatching method and device |
-
2012
- 2012-12-24 CN CN201210568427.2A patent/CN102984016B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050152322A1 (en) * | 2003-10-17 | 2005-07-14 | Kabushiki Kaisha Toshiba | Reconfigurable signal processing module |
CN101114994A (en) * | 2006-07-28 | 2008-01-30 | 中兴通讯股份有限公司 | Method for detecting connectivity of multi-protocol label switching virtual private network |
CN101141474A (en) * | 2007-09-27 | 2008-03-12 | 中兴通讯股份有限公司 | Hypertext transfer protocol based communication system and method |
CN101290668A (en) * | 2008-06-16 | 2008-10-22 | 中国移动通信集团湖北有限公司 | Time sharing operation dynamic dispatching method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105245413A (en) * | 2015-09-24 | 2016-01-13 | 成都广达新网科技股份有限公司 | Method for acquiring control information response of terminal by central office of Ethernet over coax (EOC) equipment |
CN105245413B (en) * | 2015-09-24 | 2018-07-13 | 成都广达新网科技股份有限公司 | A kind of method that EOC equipment local side obtains terminal control message response |
Also Published As
Publication number | Publication date |
---|---|
CN102984016B (en) | 2017-07-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3748908B1 (en) | Method, system, network device, storage medium for creating a network slice | |
CN101159714B (en) | Instant communication method and device | |
CA2980911C (en) | Systems and methods for guaranteeing delivery of pushed data to remote clients | |
US9894166B2 (en) | Registration method and system for common service entity | |
CN105610938A (en) | Logging status synchronization method and system | |
US20220100609A1 (en) | Data Replication Method, Apparatus, and System | |
CN103677988B (en) | The multi-process means of communication and system for software systems | |
CN102970071B (en) | The method and system of the fast quick-recovery of business after a kind of 10G EPON system power-off restarting | |
CN109361525B (en) | Method, device, control terminal and medium for restarting distributed deployment of multiple services | |
CN105553682B (en) | Event notification method and the system notified for event | |
CN111083576A (en) | Equipment control method and device and storage medium | |
CN104516334A (en) | Closed-loop control system and method for positive and reverse isolators | |
CN106375103B (en) | Alarm data acquisition and transmission method | |
CN103685083A (en) | Communication method in asynchronous management network | |
CN104601376B (en) | Heartbeat message sending method and device | |
EP2036263B1 (en) | Method and device for the creation of a communication system based on can communication controllers featuring an increased data throughput | |
JP2006261827A (en) | Network apparatus, management apparatus thereof, network connection method, and network connection management method thereof | |
CN102984016A (en) | Asynchronous processing method of management protocol | |
AT512665A1 (en) | Method and apparatus for forming software fault containment units in a distributed real-time system | |
US20180219971A1 (en) | Service Processing Method and Device | |
CN102510398A (en) | Request concurrent processing method and device, and server | |
CN105049261A (en) | Processing method and system for dual-computer hot-standby data | |
CN105282235B (en) | A method of solution RPC upgrades unstable in double-PON port ONU | |
Cisco | Message Structure Overview | |
CN103457959A (en) | Equipment configuration method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PP01 | Preservation of patent right |
Effective date of registration: 20180313 Granted publication date: 20170725 |
|
PP01 | Preservation of patent right | ||
PD01 | Discharge of preservation of patent |
Date of cancellation: 20210313 Granted publication date: 20170725 |
|
PD01 | Discharge of preservation of patent | ||
PP01 | Preservation of patent right |
Effective date of registration: 20210313 Granted publication date: 20170725 |
|
PP01 | Preservation of patent right |