CN104185096A - ONU registration authorization method and system - Google Patents

ONU registration authorization method and system Download PDF

Info

Publication number
CN104185096A
CN104185096A CN201410466341.8A CN201410466341A CN104185096A CN 104185096 A CN104185096 A CN 104185096A CN 201410466341 A CN201410466341 A CN 201410466341A CN 104185096 A CN104185096 A CN 104185096A
Authority
CN
China
Prior art keywords
call back
event
module
back function
onu
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
Application number
CN201410466341.8A
Other languages
Chinese (zh)
Other versions
CN104185096B (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.)
Huzhou Yinglie Intellectual Property Operation Co ltd
Original Assignee
Shanghai Feixun Data Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201410466341.8A priority Critical patent/CN104185096B/en
Publication of CN104185096A publication Critical patent/CN104185096A/en
Application granted granted Critical
Publication of CN104185096B publication Critical patent/CN104185096B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides an ONU registration authorization method and system. The ONU registration authorization method comprises the steps that when an event happens, a registration authorization module calls a callback function to perform relevant processing on the event, wherein received parameters of the callback function include an event type; the callback function is implemented in a callback function implementation module; the callback function sends the event type to the callback function implementation module in a message mode; the callback function implementation module receives the message and completes corresponding processing according to the event type. By the adoption of the scheme, the speed for processing the event by the registration authorization module can be greatly increased, and meanwhile the independence between the modules is improved.

Description

A kind of ONU registed authorization method and system
Technical field
The present invention relates to a kind of network technology, particularly relate to a kind of ONU registed authorization method and system.
Background technology
At existing PON (Passive Optical Network, passive optical-fiber network) generally include an OLT (Optical Line Terminal who is installed on console for centralized control in network, optical line terminal), and a collection of supporting ONU that is installed on customer site (Optical Network Unit, optical network unit).OLT equipment wherein comprises ONU registed authorization module, ONU registed authorization module can realize ONU registration, go registration and authorize, go authorize.Authorize or when the event such as reach the standard grade/roll off the production line occurs, conventionally need to carry out some relevant processing authorizing/go.In modular design, these relevant processing normally realize in other modules.
In the prior art, a kind of implementation of ONU registed authorization module is to complete some relevant processing by calling call back function by other each modules.Call back function is exactly a function calling by function pointer.If you pass to another function using the pointer of function (address) as parameter, in the time that this pointer is used to call its function pointed, this is just called call back function.Call back function is not directly to be called by the realization side of this function, but called by an other side in the time of specific event or condition generation, for this event or condition are responded.While generation as ONU mandate event, can call a call back function ONU is carried out to some basic default configuration (this call back function is in ONU Configuration Manager), the interface that the completing of these basic default configuration need to be called driving issues hardware handles.
Under this implementation, ONU registed authorization module need to be waited for returning of call back function, the call back function of each module is directly to process in the time receiving message, in fact or carry out in registed authorization module processing procedure, is equivalent to the time still calculate in registed authorization module.So the processing speed of call back function has just affected the operating rate of registed authorization module greatly like this.And registed authorization module has a significant impact the performance of OLT equipment, the slow words of registed authorization resume module will affect the overall rate of OLT equipment, and the operating rate of OLT equipment is reduced.Therefore, how to improve ONU registed authorization speed and become the problem that urgently process this area.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of ONU registed authorization method and system, for solving prior art because the processing speed of call back function causes the low problem of ONU registed authorization module efficiency.
For achieving the above object and other relevant objects, the invention provides a kind of ONU registed authorization method, described ONU registed authorization method comprises: in the time that an event occurs, registed authorization module is called call back function described event is carried out to relevant treatment, and the parameter that described call back function receives comprises described event type; Described call back function is realized in module and being realized at call back function; Described call back function sends to described call back function to realize module with message mode described event type; Described call back function is realized module and is received described message and complete corresponding processing according to described event type.
Alternatively, in the time that an event occurs, described registed authorization module is called multiple call back functions and is carried out the relevant treatment to described event, and described multiple call back functions are realized respectively in multiple described call back functions are realized module.
Alternatively, described event comprises mandate event, removes mandate event, registered events and removes any one event in registered events.
Alternatively, described event type correspondence has event id.
Alternatively, described call back function is realized module and is comprised ONU Configuration Manager.
The invention provides a kind of ONU registed authorization system, described ONU registed authorization system comprises: registed authorization module, for in the time that an event occurs, to call call back function described event is carried out to relevant treatment, the parameter that described call back function receives comprises described event type; Call back function is realized module, for realizing the call back function of described registed authorization module; Described call back function sends to described call back function to realize module with message mode described event type; Described call back function is realized module also for receiving described message and completing corresponding processing according to described event type.
Alternatively, described registed authorization module, in the time that an event occurs, is called multiple call back functions and is carried out the relevant treatment to described event, and described multiple call back functions are realized respectively in multiple described call back functions are realized module.
Alternatively, described event comprises mandate event, removes mandate event, registered events and removes any one event in registered events.
Alternatively, described event type correspondence has event id.
Alternatively, described call back function is realized module and is comprised ONU Configuration Manager.
As mentioned above, a kind of ONU registed authorization method and system of the present invention, there is following beneficial effect: process and affect registed authorization resume module speed for the call back function of each module in equipment, adopt the method for message queue to be optimized, what be that the processing function of the call back function of each module in ONU registed authorization only need to do is exactly that the task that this message is sent to this module is processed accordingly, the concrete processing completing by former cause call back function, by the mode of message, allows call back function realize module design task and completes.The processing speed that so just can not affect registed authorization module, improves the speed of registed authorization, thereby improves the operating rate of whole equipment.The solution of the present invention is carried out the processing of call back function by the mode of message queue, call back function is processed function only need to send a message, the object of doing is like this exactly to reduce the impact of other modules on registed authorization module, accomplish that modules is separate, thereby improve the performance of registed authorization module, and then promote the performance of whole system.
Brief description of the drawings
Fig. 1 is shown as the schematic flow sheet of ONU registed authorization method of the present invention one embodiment.
Fig. 2 is shown as the module diagram of ONU registed authorization system of the present invention one embodiment.
Element numbers explanation
1 ONU registed authorization system
11 registed authorization modules
12 call back functions are realized module
S1~S3 step
Embodiment
Below, by specific instantiation explanation embodiments of the present invention, those skilled in the art can understand other advantages of the present invention and effect easily by the disclosed content of this specification.The present invention can also be implemented or be applied by other different embodiment, and the every details in this specification also can be based on different viewpoints and application, carries out various modifications or change not deviating under spirit of the present invention.
It should be noted that, the diagram providing in the present embodiment only illustrates basic conception of the present invention in a schematic way, satisfy and only show with assembly relevant in the present invention in graphic but not component count, shape and size drafting while implementing according to reality, when its actual enforcement, kenel, quantity and the ratio of each assembly can be a kind of random change, and its assembly layout kenel also may be more complicated.
The invention provides a kind of ONU registed authorization method.As shown in Figure 1, in one embodiment, described ONU registed authorization method comprises:
Step S1, in the time that an event occurs, registed authorization module is called call back function described event is carried out to relevant treatment, and the parameter that described call back function receives comprises described event type.Particularly, registed authorization module can first be stated used call back function, and the parameter that described call back function receives comprises event type; And in the time that event occurs, registed authorization module is called stated call back function, and input parameter using the type of described event (event type) as call back function.Described call back function is for realizing the relevant treatment to described event.In one embodiment, the call back function that described registed authorization module is called has multiple, each call back function is in order to realize the part processing relevant to described event, these call back functions define respectively in other modules, and multiple call back functions are realized in multiple other modules (can be described as call back function and realize module).In one embodiment, described event comprises mandate event, removes mandate event, registered events and removes any one event in registered events.Described event type correspondence has event id, and the value of described event type can be the event id of different event, identifies different event type by different event ID.Mandate event is authorized event also referred to as ONU, goes mandate event to go mandate event also referred to as ONU, and registered events, also referred to as ONU registered events, goes registered events to remove registered events also referred to as ONU.Described event can also comprise ONU up/down line event.
Step S2, described call back function is realized in module and being realized at call back function; Described call back function sends to described call back function to realize module with message mode described event type.Particularly, described call back function is realized in other modules, and we call call back function the module that realizes call back function and realize module.In call back function, the described event type in the parameter of reception is sent in the mode of message after this module (being that call back function is realized module) completing, return.That is to say, in telegram in reply function body, only realize the described event type in the parameter of reception is sent to this module in the mode of message, complete this operation after call back function complete.Like this, the processing speed of call back function just becomes very fast.In one embodiment, described call back function has multiple, realizes respectively in different call back functions is realized module.In one embodiment, described event is that ONU authorizes event, and the call back function A that at this moment registed authorization module is called is for realizing some the basic default configuration to ONU, and this interface that need to call driving issues hardware and processes.This call back function A realizes in ONU Configuration Manager, and this ONU Configuration Manager is also considered to a call back function and realizes modules A.This call back function A authorizes event type (ONU authorizes event id) to send to this module (being ONU Configuration Manager) with message mode ONU.Described registed authorization module also may be called other call back functions, as call back function B, call back function B does not realize in ONU Configuration Manager, can realize module B at call back function and realize, this call back function B authorizes event type (ONU authorizes event id) to send to this module (being that call back function is realized module B) with message mode ONU.
Step S3, described call back function is realized module and is received described message and complete corresponding processing according to described event type.Particularly, described call back function is realized module and is received the message that the call back function in this module sends, and obtains described event type from message, then processes accordingly according to event type.In one embodiment, it is ONU Configuration Manager that described call back function is realized module, event type is that ONU authorizes event type (ONU authorizes event id), it is that ONU authorizes after the message of event id that described ONU Configuration Manager receives described event type, authorize event id to process accordingly according to ONU, realize some basic default configuration of ONU.
The invention provides a kind of ONU registed authorization system.In one embodiment, as shown in Figure 2, described ONU registed authorization system 1 comprises: registed authorization module 11 and call back function are realized module 12.Wherein:
Registed authorization module 11, in the time that an event occurs, calls call back function described event is carried out to relevant treatment, and the parameter that described call back function receives comprises described event type.Particularly, registed authorization module 11 call back function that first statement is used, the parameter that described call back function receives comprises event type; And in the time that event occurs, registed authorization module 11 is called stated call back function, and input parameter using the type of described event as call back function.Described call back function is for realizing the relevant treatment to described event.In one embodiment, the call back function that described registed authorization module 11 is called has multiple, each call back function is in order to realize the part processing relevant to described event, these call back functions define respectively in other modules, and multiple call back functions are realized in multiple other modules (can be described as call back function and realize module 12).In one embodiment, described event comprises mandate event, removes mandate event, registered events and removes any one event in registered events.Described event type correspondence has event id, and the value of described event type can be the event id of different event, identifies different event type by different event ID.Mandate event is authorized event also referred to as ONU, goes mandate event to go mandate event also referred to as ONU, and registered events, also referred to as ONU registered events, goes registered events to remove registered events also referred to as ONU.
Call back function is realized module 12, for realizing the call back function of described registed authorization module 11; Described call back function sends to described call back function to realize module 12 with message mode described event type; Described call back function is realized module 12 also for receiving described message and completing corresponding processing according to described event type.Realize in module 12 complete definition that has comprised call back function or realization at call back function.In the definition of call back function or realizing, call back function sends to the described event type in the parameter of reception after this module (being that call back function is realized module) completing in the mode of message, return.That is to say, in call back function body, only realize the described event type in the parameter of reception is sent to this module in the mode of message, complete this operation after call back function complete.Like this, the processing speed of call back function just becomes very fast.In one embodiment, described call back function has multiple, realizes in module 12 and realizing respectively at different call back functions.In one embodiment, described event is that ONU authorizes event, and the call back function A that at this moment registed authorization module 11 is called is for realizing some the basic default configuration to ONU, and this interface that need to call driving issues hardware and processes.This call back function A realizes in ONU Configuration Manager, and this ONU Configuration Manager is also considered to a call back function and realizes module 12, can be described as call back function and realizes modules A.This call back function A authorizes event type (ONU authorizes event id) to send to this module (being ONU Configuration Manager) with message mode ONU.Described registed authorization module also may be called other call back functions, as call back function B, call back function B does not realize in ONU Configuration Manager, can realize in module 12 and to realize at another call back function, and another call back function is realized module 12 and be can be described as call back function and realize module B.This call back function B authorizes event type (ONU authorizes event id) to send to this module (being that call back function is realized module B) with message mode ONU.Described call back function is realized module 12 and is received the message that the call back function in this module sends, and described call back function is realized module 12 operations message queue Processing tasks.Described message queue Processing tasks takes out message and obtains described event type from message queue, then processes accordingly according to event type.In one embodiment, described call back function is realized module 12 for ONU Configuration Manager, event type is that ONU authorizes event type (ONU authorizes event id), it is that ONU authorizes after the message of event id that described ONU Configuration Manager 12 receives described event type, authorize event id to process accordingly according to ONU, realize some basic default configuration of ONU.
In sum, in the scheme of a kind of ONU registed authorization of the present invention method and system, registed authorization module adopts call back function mode to complete the processing to event, shown in call back function in other modules, realize, and the content of call back function is only for to send to this module by described event type message mode, received after this message by this module, then process accordingly for the event type in message.Adopt this programme, can allow registed authorization module in the processing completing fast event, mainly comprise the calling of call back function, in call back function, send corresponding event type message.Call back function realize module to the processing of event message in, the concrete processing that the event that completes is relevant.Like this, greatly improve the processing speed of registed authorization module to event, meanwhile, also improved the independence between module.Now, other modules to the relevant concrete processing of event to registed authorization module and have no effect.Improve the speed of registed authorization module to events such as ONU registed authorizations in OLT equipment, and then just improved the operating rate of whole OLT equipment.So the present invention has effectively overcome various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all can, under spirit of the present invention and category, modify or change above-described embodiment.Therefore, such as in affiliated technical field, have and conventionally know that the knowledgeable, not departing from all equivalence modifications that complete under disclosed spirit and technological thought or changing, must be contained by claim of the present invention.

Claims (10)

1. an ONU registed authorization method, is characterized in that, described ONU registed authorization method comprises:
In the time that an event occurs, registed authorization module is called call back function described event is carried out to relevant treatment, and the parameter that described call back function receives comprises described event type;
Described call back function is realized in module and being realized at call back function; Described call back function sends to described call back function to realize module with message mode described event type;
Described call back function is realized module and is received described message and complete corresponding processing according to described event type.
2. ONU registed authorization method according to claim 1, it is characterized in that: in the time that an event occurs, described registed authorization module is called multiple call back functions and is carried out the relevant treatment to described event, and described multiple call back functions are realized respectively in multiple described call back functions are realized module.
3. ONU registed authorization method according to claim 1, is characterized in that: described event comprises mandate event, removes mandate event, registered events and removes any one event in registered events.
4. ONU registed authorization method according to claim 1, is characterized in that: described event type correspondence has event id.
5. ONU registed authorization method according to claim 1, is characterized in that: described call back function is realized module and comprised ONU Configuration Manager.
6. an ONU registed authorization system, described ONU registed authorization system comprises:
Registed authorization module, in the time that an event occurs, calls call back function described event is carried out to relevant treatment, and the parameter that described call back function receives comprises described event type;
Call back function is realized module, for realizing the call back function of described registed authorization module; Described call back function sends to described call back function to realize module with message mode described event type; Described call back function is realized module also for receiving described message and completing corresponding processing according to described event type.
7. ONU registed authorization system according to claim 6, it is characterized in that: in the time that an event occurs, described registed authorization module is called multiple call back functions and is carried out the relevant treatment to described event, and described multiple call back functions are realized in multiple described call back functions are realized module.
8. ONU registed authorization system according to claim 6, is characterized in that: described event comprises mandate event, removes mandate event, registered events and removes any one event in registered events.
9. ONU registed authorization system according to claim 6, is characterized in that: described event type correspondence has event id.
10. ONU registed authorization system according to claim 6, is characterized in that: described call back function is realized module and comprised ONU Configuration Manager.
CN201410466341.8A 2014-09-12 2014-09-12 A kind of ONU registed authorization method and system Active CN104185096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410466341.8A CN104185096B (en) 2014-09-12 2014-09-12 A kind of ONU registed authorization method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410466341.8A CN104185096B (en) 2014-09-12 2014-09-12 A kind of ONU registed authorization method and system

Publications (2)

Publication Number Publication Date
CN104185096A true CN104185096A (en) 2014-12-03
CN104185096B CN104185096B (en) 2019-07-02

Family

ID=51965781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410466341.8A Active CN104185096B (en) 2014-09-12 2014-09-12 A kind of ONU registed authorization method and system

Country Status (1)

Country Link
CN (1) CN104185096B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104469559A (en) * 2014-12-10 2015-03-25 上海斐讯数据通信技术有限公司 Authentication method of optical network units
CN105426754A (en) * 2015-11-13 2016-03-23 上海斐讯数据通信技术有限公司 Permission management method and permission management system
CN109254855A (en) * 2018-08-29 2019-01-22 北京奇艺世纪科技有限公司 A kind of register method, device and the electronic equipment of parameter transport protocol
CN109412840A (en) * 2018-10-08 2019-03-01 郑州云海信息技术有限公司 A kind of data capture method and SDN controller
CN111464887A (en) * 2020-03-06 2020-07-28 烽火通信科技股份有限公司 ONU registration authorization management method and device applied to PON system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1571483A (en) * 2004-05-09 2005-01-26 上海高清数字技术创新中心 A method for improving event transmission and processing in digital television receiving equipment
CN102215243A (en) * 2010-04-12 2011-10-12 华为技术有限公司 Event synchronization method, system, client and server
CN102693163A (en) * 2012-04-28 2012-09-26 杭州格畅科技有限公司 Response communication method in application on on-line application platform and on-line application platform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1571483A (en) * 2004-05-09 2005-01-26 上海高清数字技术创新中心 A method for improving event transmission and processing in digital television receiving equipment
CN102215243A (en) * 2010-04-12 2011-10-12 华为技术有限公司 Event synchronization method, system, client and server
CN102693163A (en) * 2012-04-28 2012-09-26 杭州格畅科技有限公司 Response communication method in application on on-line application platform and on-line application platform

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104469559A (en) * 2014-12-10 2015-03-25 上海斐讯数据通信技术有限公司 Authentication method of optical network units
CN105426754A (en) * 2015-11-13 2016-03-23 上海斐讯数据通信技术有限公司 Permission management method and permission management system
CN105426754B (en) * 2015-11-13 2018-04-27 上海斐讯数据通信技术有限公司 A kind of right management method and system
CN109254855A (en) * 2018-08-29 2019-01-22 北京奇艺世纪科技有限公司 A kind of register method, device and the electronic equipment of parameter transport protocol
CN109412840A (en) * 2018-10-08 2019-03-01 郑州云海信息技术有限公司 A kind of data capture method and SDN controller
CN111464887A (en) * 2020-03-06 2020-07-28 烽火通信科技股份有限公司 ONU registration authorization management method and device applied to PON system

Also Published As

Publication number Publication date
CN104185096B (en) 2019-07-02

Similar Documents

Publication Publication Date Title
CN104185096A (en) ONU registration authorization method and system
CN105468441A (en) Processing method and apparatus for task process
CN101599987A (en) message queue management method and device
CN109408209A (en) Task executing method and device
CN108008992A (en) One kind input operation processing method, processing unit and computer-readable recording medium
CN104571893A (en) Method and device for handling notices in notification bar
CN104954894A (en) Video traffic guiding method and device as well as electronic equipment
CN103019848B (en) Method for realizing peripheral component interconnect (PCI) bus non-vector interrupt
CN108536530A (en) A kind of multithreading method for scheduling task and device
CN105389176B (en) Skin processing method and device based on application
CN105245408A (en) Synchronous data monitoring method and device
CN110457119A (en) Asynchronous process callback method and device
CN104144212B (en) A kind of virtual desktop image transfer method, apparatus and system
CN104778003B (en) A kind of input trajectory recognition methods and its wearable device
CN105024904A (en) Message sending processing method
CN105391776A (en) Communication method and system for long connection message
CN104978202A (en) Activity attribute extension method and apparatus
CN112650706A (en) Method for realizing high situation perception capability under big data technology system
CN105159690B (en) A kind of method and device of automatic synchronization user interface UI thread
CN109104334B (en) Management method and device for nodes in monitoring system
CN110266529A (en) Extensive individualized intelligent service customization method based on Internet of Things
CN102915256B (en) Message transmission method and device under multi-core browser
CN102902900B (en) Method and system for changing operation authority of outgoing file
CN105446732A (en) Operation realization method, device and system of 64-bit program
CN104660500A (en) Signal processing method and device

Legal Events

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

Effective date of registration: 20201203

Address after: 313021 industrial function area of Donglin Town, Huzhou City, Zhejiang Province

Patentee after: ZHEJIANG YUANTE NEW MATERIAL Co.,Ltd.

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

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

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210521

Address after: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

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

Address before: 313021 industrial functional zone, Donglin Town, Huzhou City, Zhejiang Province

Patentee before: ZHEJIANG YUANTE NEW MATERIAL Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221230

Address after: 313000 room 1019, Xintiandi commercial office, Yishan street, Wuxing District, Huzhou, Zhejiang, China

Patentee after: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Address before: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

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