CN104007962B - The implementation method of OMCI entities based on Object-oriented Technique - Google Patents
The implementation method of OMCI entities based on Object-oriented Technique Download PDFInfo
- Publication number
- CN104007962B CN104007962B CN201410185863.0A CN201410185863A CN104007962B CN 104007962 B CN104007962 B CN 104007962B CN 201410185863 A CN201410185863 A CN 201410185863A CN 104007962 B CN104007962 B CN 104007962B
- Authority
- CN
- China
- Prior art keywords
- entity
- class
- omci
- entities
- base class
- 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
Links
Abstract
A kind of implementation method of the OMCI entities based on Object-oriented Technique, it is related to GPON technical field of photo communication, it is base class and the deriving custom entities class for inheriting base class that it, which is included OMCI entity divisions, the base class and deriving custom entities class are encapsulated with Object--oriented method respectively, encapsulate the OMCI entities completed, using OMCI inter-entity relations, multiple OMCI entities interconnections are realized, the extension of OMCI entities is realized by the succession of class.The present invention need not increase extra handling process, conveniently extend and existing capability is unaffected.
Description
Technical field
The present invention relates to GPON (Gigabit-Capable PON, broadband passive light Integrated access standard) optical communication technique,
A kind of more particularly to OMCI (ONT Management and Control Interface, ONT pipes based on Object-oriented Technique
Reason and control interface) entity implementation method.
Background technology
GPON systems typically use point-to-multipoint network structure, by local side OLT (Optical Line Terminal,
Optical line terminal), the ONU (Optical Network Unit, optical network unit) and ODN (Optical of user side
Distribution Network, Optical Distribution Network) composition.Wherein, OLT manages ONU by OMCI agreements, and completes mutual
Between communicate.Defined in ITU-TG.988 ME (Managed entity, management entity), ME by entity attribute, entity action,
Notice and inter-entity relation composition, it is the abstract of ONU business and resource.In OMCI, the MIB unrelated with agreement
(Management information base, management information bank) is made up of the example of OMCI entities, is visited by the access to ME
Ask, realize the management to ONU.
In current published OMCI implementations, realized in Chinese patent CN101764647A using embedded database
MIB management modules, pay close attention in inquiry and the realization of more New function to database.Chinese patent CN103354508A is disclosed
A kind of OMCI management methods, it is preferred that emphasis is the interface to be communicated between OLT and ONU.In actual applications, business demand is constantly to become
Change, therefore OMCI entities are also required to constantly be accordingly increased or changed.But in such scheme, it is not described in detail
On the design of OMCI entities, if the design of OMCI entities is unreasonable, then, to OMCI entities carry out increase and
Modification, in addition to the definition of related entities and method, it is also possible to need to increase or change other handling processes, or even to existing work(
It can have an impact, it is impossible to easily meet currently practical business demand.
The content of the invention
For defect present in prior art, it is an object of the invention to provide a kind of based on Object-oriented Technique
The implementation method of OMCI entities, it is not necessary to increase extra handling process, conveniently extend and existing capability is unaffected.
To achieve the above objectives, the present invention adopts the technical scheme that:A kind of OMCI entities based on Object-oriented Technique
Implementation method, including:It is base class and the deriving custom entities class for inheriting base class by OMCI entity divisions, by the base class and derives from real
Body class is encapsulated with Object--oriented method respectively, encapsulates the OMCI entities of completion, using OMCI inter-entity relations, is realized multiple
OMCI entities are interconnected, and the extension of OMCI entities is realized by the succession of class.
On the basis of above-mentioned technical proposal, the OMCI entities include entity attribute, physical operation and inter-entity relation,
Attribute of the entity attribute as class, i.e., entity attribute is as data member;Method of the physical operation as class, i.e., it is real
Gymnastics is used as member function.
On the basis of above-mentioned technical proposal, the common feature of OMCI entities is concluded, constructs a base class, as
The basic framework of other OMCI entity class is constructed, the public attribute of entity is contained in the base class, is realized in the form of Virtual Function
The operation that all entities defined in specification may be supported.
On the basis of above-mentioned technical proposal, the deriving custom entities class is divided into alarm entity base class, performance collection entity base
Class and common solid class.
On the basis of above-mentioned technical proposal, the alarm entity base class is that the basic operation of alarm is abstracted as into one
Class, the parent as all alarm entities.
On the basis of above-mentioned technical proposal, the performance collection entity base class is to be abstracted the basic operation of performance collection
For a class, the parent as all properties collection entity.
On the basis of above-mentioned technical proposal, the succession of the class is inherited from parent including subclass, but subclass is except succession
From outside the method for parent, it is allowed to the method in parent is written over according to demand.
On the basis of above-mentioned technical proposal, the OMCI inter-entity relation includes explicit points relationship and implicit point to is closed
System.
On the basis of above-mentioned technical proposal, the display points relationship is presented as:One attribute of class is to be pointed at reality
The pointer of body, it is associated by referring to for entity, and the entity being pointed at is the entity being pre-created.
On the basis of above-mentioned technical proposal, the implicit points relationship is presented as:Associated entity class has identical
Instance number property value, each entity class will safeguard an associated instance table, and store entity associated with it, create entity
When, it is necessary to check for associated entity, if being added into associated instance table in the presence of if.
The beneficial effects of the present invention are:
1st, scalability.OMCI agreements are to allow extension and customized, therefore when needing to increase new function, are only needed
On the basis of existing system, to increase the definition and realization of new entity, it is possible to subfunction increase is completed, without increasing
Add extra handling process, conveniently extend and existing capability is unaffected.
2nd, it is maintainable.When some function of current system needs modification, due to the encapsulation characteristic of class, it is only necessary to the work(
The attribute and method for the part class that can relate to are modified, and reduce the coupling of system.
3rd, reusability.When chip solution is changed, because OMCI agreements are constant, therefore, by chip
The abstract and stripping of adaption section code, can greatly be multiplexed original code, it might even be possible to pass through volume using same set of code
The control of option is translated to support the equipment of different chip solutions, reaches the purpose for reducing maintenance cost.
Brief description of the drawings
Fig. 1 is the entity class inheritance figure of the present invention;
Fig. 2 is the entity relationship schematic diagram of the present invention.
Reference:
101- base class;111- alerts entity base class;112- performance statistics entity base class;121- alerts entity class;
122- common solid classes;123- performance statistics entity class.
Embodiment
The present invention is described in further detail below in conjunction with drawings and Examples.
Encapsulation is that data are encapsulated as into an entirety with the method for handling the data, is embodied in the abstract of class, is towards right
The key property of elephant.All management amounts have been abstracted into the form of OMCI entities by OMCI agreements, each entity as one by
Management amount turns into OMCI mib informations, therefore each OMCI entities are abstracted as into a class;, will according to the points relationship of inter-entity
Multiple entity class associations, finally realize the establishment of OMCI business models.
A kind of implementation method of the OMCI entities based on Object-oriented Technique, including:Encapsulated with Object--oriented method
OMCI entities, the OMCI entities include entity attribute, physical operation and inter-entity relation, category of the entity attribute as class
Property, i.e., entity attribute is as data member;Method of the physical operation as class, i.e., physical operation is as member function.Tool
Body, it is base class and the deriving custom entities class for inheriting base class by OMCI entity divisions, the common feature of OMCI entities is concluded,
Construct a base class, as the basic framework for constructing other OMCI entity class, contain in the base class entity public attribute, with
The form of Virtual Function realizes the operation that all entities defined in specification may be supported.Example is the difference of same entity
Body, therefore be abstracted using the instantiation of class.The deriving custom entities class may have a variety of sorting techniques, in the present embodiment, institute
State deriving custom entities class and be divided into alarm entity base class, performance collection entity base class and common solid class.It is described alarm entity base class be
The basic operation of alarm is abstracted as a class, the alarm entity base class is inherited from base class, the parent as all alarm entities;
The performance collection entity base class is that the basic operation of performance collection is abstracted as into a class, and performance collection entity base class is inherited
From base class, the parent as all properties collection entity;The common solid class is directly inherited from base class.
The base class and deriving custom entities class are encapsulated with Object--oriented method respectively, encapsulate the OMCI entities of completion, is led to
The extension of OMCI entities is realized in the succession for crossing class, and the succession of class is inherited from parent including subclass, but subclass is removed and is inherited from parent
Method outside, it is allowed to the method in parent is written over according to demand.Also, OMCI inter-entity relations are utilized, are realized multiple
OMCI entities interconnect.OMCI inter-entity relation includes explicit points relationship and implicit points relationship.The display points relationship body
It is now:One attribute of class is the pointer for being pointed at entity, is associated by referring to for entity, and the entity being pointed at will
Create first;The implicit points relationship is presented as:Associated entity class has identical instance number property value, each entity
Class will safeguard an associated instance table, store entity associated with it, when creating entity, it is necessary to check for association in fact
Body, if being added into associated instance table in the presence of if.
In said process, each OMCI entities are abstracted as " class ", are the composition and class of OMCI entities as shown in table 1
The corresponding relation of part:Entity attributes are abstracted as the data member of class;Action and notice are abstracted as the member function of class.
Such as entity MAC bridge port configuration data, the entity include in ITU-TG.988 protocol definitions:
14 attributes such as Managed entity id, Bridge id pointer, this 14 attribute abstractions are its corresponding entity class
Data member;Such supports 4 basic operations Create, delete, get, set, and this 4 operations are abstracted as entity class accordingly
4 member functions;And the entity supports the alarm operations such as Port blocking, then definition is needed to accuse in its entity class
Alert Port blocking detection, the processing function such as report.And the relation of itself and other entities is presented as two kinds, one kind is hidden
Formula associates, and passes through identical Managed entity id property values and other entity associateds;Another kind is explicit associations, such as
Its Bridge id pointer attribute then determines its MAC bridge service profile entity pointed to.
Table 1
As shown in Figure 1, it is the inheritance of OMCI entity class.Because OMCI entities have similar structure, each OMCI
Entity is all made up of entity attribute, instance method and several parts of inter-entity relation, and then in the member function of different entities class
Necessarily having the method for part has similar operation, therefore is directly each one class of OMCI entity structures, can produce a large amount of
Redundant code.And the inheritance of object-oriented adds the reusability of code well, it is by the derivation function embodiment of class, son
Class can directly inherit whole descriptions of its parent, and can modify and expand.Based on above description, design a kind of real
The inheritance hierarchy structure of body class, comprises the following steps:
Step S101:Create base class.Base class 101 is the parent of all OMCI entity class, and it is all entity conventional methods
It is abstract, i.e., by some shared attributes of OMCI entities such as:ME ID are summarized in such middle data member as such;Will
Basic operation specified in OMCI agreements is such as:The operations such as create, delete, set, get are as such member function, with void
The form of function realizes these methods;And the common operating method that may be used inside each entity be summarized in it is such in.
Step S102:Based on the deriving custom entities class of base class 101.It is different according to the function of OMCI entities, OMCI entities are divided into 3
Class is handled:Common solid, the entity containing alarm operation, and performance statistics related entities.Common solid:Common solid class
122 are directly inherited from base class 101, and it, can also be according to the function of itself in addition to the attribute and method that can inherit base class 101
Characteristic, define distinctive attribute and method.Entity containing alarm operation:Compared to common solid, the entity containing alarm operation needs
Carry out the related sequence of operations of alarm.Therefore, the definition alarm entity 111 common parent as alarm operation entity of base class,
Such is directly inherited from base class 101, shares all methods of base class 101, and defines the co-operation of alarm entity:Alarm
The basic operation such as produce, report, eliminating.Alarm entity class 121 is the abstract of entity with alarm operation, and it is alarm
The subclass of entity base class 111, and on this basis, increase the particular attribute of the entity and the definition of method.Performance statistics is related
Entity:Similar with the entity containing alarm operation, the related entity of performance statistics needs to carry out a series of behaviour such as performance collection, statistics
Make.Therefore similar, parent of the performance statistics entity base class 112 as the entity of the function containing performance statistics, in the base of base class 101
Performance collection, the related basic operation of statistics are added on plinth;Performance statistics entity class 123 is the reality for having performance statistics function
Body is abstracted, and it is the subclass of performance statistics entity base class 112, and defines oneself distinctive method and characteristic.Above-mentioned
During, subclass is in addition to the method for being inherited from parent, it is allowed to the method in parent is written over according to demand, so works as transmission
, can be different according to the object for receiving message during one universal information, implement different processing methods.
OMCI business needs to realize jointly by multiple entities, and inter-entity relation is also one of OMCI entity descriptions important
Entity, is associated and constitutes business model by composition by the relation of inter-entity.Relation between entity can be divided into two major classes:
Show points relationship and implicit points relationship.
As shown in Fig. 2 display points relationship:Display points relationship is indicated by means of an arrow, and entity A explicitly points to entity B.Display
Points relationship is presented as that entity A stores the pointer of a sensing entity B in code.Therefore, it should create the reality of entity B first
Example, then creates the example of entity A again, and sets the attribute of entity A to be provided for the pointer of entity B according to OMCI agreements, real
Body is deleted with the order created on the contrary, then in the present embodiment, when deleting the example of entity A, it should first check whether
Delete the example of entity B associated with it.Implicit points relationship:Entity C associates with entity D by the way that instance number is recessive, such as creates
, it is necessary to check for an example with the example identical entity D during entity C example, by this reality if existing
Example is added in its associated instance list.
As long as the process that issues of OMCI business models does not violate above-mentioned entity relationship rule, therefore mode is not unique
, as long as the model issued is complete, then it is assumed that configuration is exactly correct.
The present invention is not limited to the above-described embodiments, for those skilled in the art, is not departing from
On the premise of the principle of the invention, some improvements and modifications can also be made, these improvements and modifications are also considered as the protection of the present invention
Within the scope of.The content not being described in detail in this specification belongs to prior art known to professional and technical personnel in the field.
Claims (5)
- A kind of 1. implementation method of the OMCI entities based on Object-oriented Technique, it is characterised in that including:By OMCI entity divisions For the deriving custom entities class of base class and succession base class, the base class and deriving custom entities class are encapsulated with Object--oriented method respectively, The OMCI entities completed are encapsulated, using OMCI inter-entity relations, multiple OMCI entities interconnections is realized, is realized by the succession of class The extension of OMCI entities;The common feature of OMCI entities is concluded, constructs a base class, as the basic frame for constructing other OMCI entity class Frame, the public attribute of entity is contained in the base class, realizes that all entities defined in specification may in the form of Virtual Function The operation of support;The deriving custom entities class is divided into alarm entity base class, performance collection entity base class and common solid class;The OMCI entities include entity attribute, physical operation and inter-entity relation, attribute of the entity attribute as class, i.e., Entity attribute is as data member;Method of the physical operation as class, i.e., physical operation is as member function;The alarm entity base class is that the basic operation of alarm is abstracted as into a class, the parent as all alarm entities;The performance collection entity base class is that the basic operation of performance collection is abstracted as into a class, is gathered as all properties real The parent of body.
- 2. the implementation method of the OMCI entities based on Object-oriented Technique as claimed in claim 1, it is characterised in that:The class Succession be inherited from parent including subclass, but subclass is in addition to the method for being inherited from parent, it is allowed to according to demand in parent Method is written over.
- 3. the implementation method of the OMCI entities based on Object-oriented Technique as claimed in claim 1, it is characterised in that:It is described OMCI inter-entity relation includes explicit points relationship and implicit points relationship.
- 4. the implementation method of the OMCI entities based on Object-oriented Technique as claimed in claim 3, it is characterised in that:It is described aobvious Formula points relationship is presented as:One attribute of class is the pointer for being pointed at entity, is associated by referring to for entity, and by The entity of sensing is the entity being pre-created.
- 5. the implementation method of the OMCI entities based on Object-oriented Technique as claimed in claim 3, it is characterised in that:It is described hidden Formula points relationship is presented as:Associated entity class has identical instance number property value, and each entity class will safeguard a pass Join example table, store entity associated with it, when creating entity, it is necessary to check for associated entity, if the general in the presence of if It adds associated instance table.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410185863.0A CN104007962B (en) | 2014-05-05 | 2014-05-05 | The implementation method of OMCI entities based on Object-oriented Technique |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410185863.0A CN104007962B (en) | 2014-05-05 | 2014-05-05 | The implementation method of OMCI entities based on Object-oriented Technique |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104007962A CN104007962A (en) | 2014-08-27 |
CN104007962B true CN104007962B (en) | 2017-12-22 |
Family
ID=51368629
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410185863.0A Active CN104007962B (en) | 2014-05-05 | 2014-05-05 | The implementation method of OMCI entities based on Object-oriented Technique |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104007962B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104980308B (en) * | 2015-07-29 | 2018-02-13 | 上海斐讯数据通信技术有限公司 | A kind of OMCI protocol massages method for packing and device |
CN107094271B (en) * | 2017-06-14 | 2021-01-12 | 深圳市飞鸿光电子有限公司 | Method and system for realizing butt joint of optical network unit and optical line terminal |
CN111290808B (en) * | 2020-01-13 | 2023-10-20 | 中国平安财产保险股份有限公司 | Product module display method and device based on data transmission object and storage medium |
CN111786816A (en) * | 2020-06-12 | 2020-10-16 | 芯河半导体科技(无锡)有限公司 | Graphical display method for OMCI configuration result |
CN111901705B (en) * | 2020-06-15 | 2022-05-27 | 烽火通信科技股份有限公司 | OMCI function virtualization system of OLT equipment |
US20210399801A1 (en) * | 2020-06-20 | 2021-12-23 | Core Keepers Investment Inc. | Method for anaylzing omci packets |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101635645A (en) * | 2009-08-28 | 2010-01-27 | 中兴通讯股份有限公司 | Method and device for managing network topology |
CN101795425A (en) * | 2010-03-23 | 2010-08-04 | 上海大亚科技有限公司 | Gigabit passive optical network (GPON) service management system based on OMCI (Operation Management Communication Interface) entity relationship model |
-
2014
- 2014-05-05 CN CN201410185863.0A patent/CN104007962B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101635645A (en) * | 2009-08-28 | 2010-01-27 | 中兴通讯股份有限公司 | Method and device for managing network topology |
CN101795425A (en) * | 2010-03-23 | 2010-08-04 | 上海大亚科技有限公司 | Gigabit passive optical network (GPON) service management system based on OMCI (Operation Management Communication Interface) entity relationship model |
Non-Patent Citations (2)
Title |
---|
10G GPON系统中ONT端OMCI功能的设计与实现;常莹等;《电视技术》;20130131;第37卷(第1期);第2节 * |
面向对象抽象思维与 java 继承机制;曾崇杰;《福建电脑》;20080430(第4期);第2-3节、图1-2 * |
Also Published As
Publication number | Publication date |
---|---|
CN104007962A (en) | 2014-08-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104007962B (en) | The implementation method of OMCI entities based on Object-oriented Technique | |
CN104079436B (en) | A kind of Element management system of striding equipment in the EPON networks of agreement | |
CN104604182B (en) | Service channel collocation method and optical line terminal and EPON | |
US9531469B2 (en) | Collecting status from a partner management domain | |
CN103354508B (en) | A kind of OMCI management methods | |
CN101815003A (en) | Uniform resource model of full service converged network | |
CN101247310B (en) | Virtual local area network filtering configuration method and system | |
CN103746746A (en) | Business system of network device | |
RU2623897C2 (en) | Method and device for management of packages | |
CN100361121C (en) | A universal object modeling method and universal object management system | |
CN109618250A (en) | A kind of fiber optic network node administration method and system | |
CN104469561A (en) | Method and device for controlling access capability of illegal manufacturer ONU in GPON system | |
CN104169930B (en) | resource access method and device | |
CN102412996A (en) | Method for carrying out rapid checking and verification on service information based on XML (extensive makeup language) NE (network element) dynamic script information | |
CN105429789B (en) | A kind of OMCI agreements ME collocation methods and system | |
CN104113438B (en) | A kind of management method and system of the multiple equipment based on MIB | |
CN107147630A (en) | It is a kind of to realize the method and device that OMCI protocol stack codes are automatically generated | |
CN103036715A (en) | Method and device of equipment management and corresponding network management system | |
CN103546833B (en) | Service restoration method and system in GPON | |
CN103577166B (en) | OMCI coding methods and its device | |
CN106789159A (en) | A kind of power communication important service pass effect analysis system | |
CN103152196A (en) | Method for dynamically adding optical line terminal (OLT) into Ethernet passive optical network (EPON) management system | |
CN102868545A (en) | Passive optical network configuration method and element management system | |
CN100433640C (en) | Upper/lower layer grid management data comparative method for telecommunication managerial grid | |
CN110535870A (en) | A kind of sensing data encryption 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 |