CN104007962A - OMCI entity achieving method based on target-oriented technology - Google Patents

OMCI entity achieving method based on target-oriented technology Download PDF

Info

Publication number
CN104007962A
CN104007962A CN201410185863.0A CN201410185863A CN104007962A CN 104007962 A CN104007962 A CN 104007962A CN 201410185863 A CN201410185863 A CN 201410185863A CN 104007962 A CN104007962 A CN 104007962A
Authority
CN
China
Prior art keywords
entity
class
omci
implementation method
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.)
Granted
Application number
CN201410185863.0A
Other languages
Chinese (zh)
Other versions
CN104007962B (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201410185863.0A priority Critical patent/CN104007962B/en
Publication of CN104007962A publication Critical patent/CN104007962A/en
Application granted granted Critical
Publication of CN104007962B publication Critical patent/CN104007962B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention relates to the technical field of GPON optical communication, in particular to an OMCI entity achieving method based on a target-oriented technology. The method comprises the steps that OMCI entities are divided into a base class and a derived entity class inherited from the base class, the base class and the derived entity class are packaged respectively in a target-oriented mode, the OMCI entities are packaged, the relation of the OMCI entities is used, interconnecting of the multiple OMCI is achieved, and OMCI entity extension is achieved by class inheriting. According to the method, an extra processing course is of no need, extension is convenient, and an existing function is not affected.

Description

The implementation method of the OMCI entity based on Object-oriented Technique
Technical field
The present invention relates to GPON (Gigabit-Capable PON, broadband passive light comprehensively accesses standard) optical communication technique, relate in particular to a kind of implementation method of OMCI (ONT Management and Control Interface, ONT management and the control interface) entity based on Object-oriented Technique.
Background technology
The point-to-multipoint network structure of the general employing of GPON system, OLT (Optical Line Terminal by local side, optical line terminal), the ONU of user's side (Optical Network Unit, optical network unit) and ODN (Optical Distribution Network, Optical Distribution Network) form.Wherein, OLT manages ONU by OMCI agreement, and completes mutual communication.In ITU-TG.988, defined ME (Managed entity, management entity), ME is comprised of entity attribute, entity action, notice and inter-entity relation, is the abstract of ONU business and resource.In OMCI, formed by the example of OMCI entity with the MIB (Management information base, management information bank) of protocol-independent, by the access visit to ME, realize the management to ONU.
In current published OMCI implementation, in Chinese patent CN101764647A, adopt embedded database to realize MIB administration module, pay close attention in the realization to the inquiry of database and renewal function.Chinese patent CN103354508A discloses a kind of OMCI management method, focuses on the interface of communicating by letter between OLT and ONU.In actual applications, business demand is constantly to change, so OMCI entity also needs constantly increase accordingly or revise.But in such scheme, do not describe the design proposal about OMCI entity in detail, if the design proposal of OMCI entity is unreasonable, so, OMCI entity is increased and revised, except the definition and method of related entities, also may need to increase or revise other treatment scheme, even existing capability is exerted an influence, can easily not meet current practical business demand.
Summary of the invention
For the defect existing in prior art, the object of the present invention is to provide a kind of implementation method of the OMCI entity based on Object-oriented Technique, do not need to increase extra treatment scheme, convenient expansion and existing capability are unaffected.
For reaching above object, the technical scheme that the present invention takes is: a kind of implementation method of the OMCI entity based on Object-oriented Technique, comprise: by OMCI entity division, be base class and the deriving custom entities class of inheriting base class, described base class and deriving custom entities class are encapsulated by OO method respectively, the OMCI entity having encapsulated, utilize OMCI inter-entity relation, realize a plurality of OMCI entities interconnected, by the succession of class, realize the expansion of OMCI entity.
On the basis of technique scheme, described OMCI entity comprises entity attribute, physical operation and inter-entity relation, and described entity attribute is as the attribute of class, and entity attribute is as data member; Described physical operation is as the method for class, and physical operation is as member function.
On the basis of technique scheme, common feature to OMCI entity is concluded, construct a base class, as the basic framework of other OMCI entity class of structure, the public attribute that has comprised entity in this base class, with the form of Virtual Function, realize the operation that all entities of defining in standard may be supported.
On the basis of technique scheme, described deriving custom entities class is divided into alarm entity base class, performance collection entity base class and common entity class.
On the basis of technique scheme, described alarm entity base class be by the basic operation of alarm abstract be a class, as the parent of all alarm entities.
On the basis of technique scheme, described performance collection entity base class be by the basic operation of performance collection abstract be a class, as all properties, gather the parent of entity.
On the basis of technique scheme, the succession of described class comprises that subclass succession is from parent, but subclass is except inheriting from the method for parent, allows according to demand the method in parent to be rewritten.
On the basis of technique scheme, described OMCI inter-entity relation comprises explicit points relationship and implicit pointing relation.
On the basis of technique scheme, described demonstration points relationship is presented as: a pointer that attribute is directed entity of class, by pointer, entity is carried out to association, and directed entity is the entity being pre-created.
On the basis of technique scheme, described implicit pointing relation is presented as: the entity class being associated has identical instance number property value, each entity class will be safeguarded an associated instance table, store the entity associated with it, when creating entity, need to check whether have associated entity, if exist, added associated instance table.
Beneficial effect of the present invention is:
1, extensibility.OMCI agreement is to allow expansion and self-defining, therefore in the time need to increasing new function, only need to be on the basis of existing system, increase definition and the realization of new entity, just can complete subfunction increases, and not needing to increase extra treatment scheme, convenient expansion and existing capability are unaffected.
2, maintainability.When certain function of current system need to be revised, due to the encapsulation characteristic of class, attribute and the method for the part class that only need to relate to this function are modified, and have reduced the coupling of system.
3, reusability.When chip solution changes, because OMCI agreement is constant, therefore, by to the abstract of chip adaption section code and peeling off, can greatly multiplexing original code, even can use the control of same set of code by compile option to support the equipment of different chip solution, reach the object that reduces maintenance cost.
Accompanying drawing explanation
Fig. 1 is entity class inheritance figure of the present invention;
Fig. 2 is entity relationship schematic diagram of the present invention.
Reference numeral:
101-base class; 111-alarm entity base class; 112-performance statistics entity base class; 121-alarm entity class; The common entity class of 122-; 123-performance statistics entity class.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.
Encapsulation is that the method encapsulation of data and these data of processing is as a whole, is embodied in the abstract of class, is OO key property.OMCI agreement has been abstracted into all management amounts the form of OMCI entity, and each entity becomes OMCI mib information as a managed amount, therefore by each OMCI entity abstract be a class; According to the points relationship of inter-entity, a plurality of entity class are associated, finally realize the establishment of OMCI business model.
A kind of implementation method of the OMCI entity based on Object-oriented Technique, comprise: with OO method encapsulation OMCI entity, described OMCI entity comprises entity attribute, physical operation and inter-entity relation, and described entity attribute is as the attribute of class, and entity attribute is as data member; Described physical operation is as the method for class, and physical operation is as member function.Concrete, by OMCI entity division, be base class and the deriving custom entities class of inheriting base class, common feature to OMCI entity is concluded, construct a base class, as the basic framework of other OMCI entity class of structure, the public attribute that has comprised entity in this base class, with the form of Virtual Function, realize the operation that all entities of defining in standard may be supported.Example is the Different Individual of same entity, therefore adopts the instantiation of class to carry out abstract.Described deriving custom entities class may have multiple sorting technique, and in the present embodiment, described deriving custom entities class is divided into alarm entity base class, performance collection entity base class and common entity class.Described alarm entity base class be by the basic operation of alarm abstract be a class, this alarm entity base class is inherited from base class, as the parent of all alarm entities; Described performance collection entity base class be by the basic operation of performance collection abstract be a class, this performance collection entity base class is inherited from base class, gathers the parent of entity as all properties; Described common entity class is directly inherited from base class.
Described base class and deriving custom entities class are encapsulated by OO method respectively, the OMCI entity having encapsulated, by the succession of class, realize the expansion of OMCI entity, the succession of class comprises that subclass succession is from parent, but subclass, except inheriting from the method for parent, allows according to demand the method in parent to be rewritten.And, utilize OMCI inter-entity relation, realize a plurality of OMCI entities interconnected.OMCI inter-entity relation comprises explicit points relationship and implicit pointing relation.Described demonstration points relationship is presented as: a pointer that attribute is directed entity of class, by pointer, entity is carried out to association, and first directed entity will create; Described implicit pointing relation is presented as: the entity class being associated has identical instance number property value, each entity class will be safeguarded an associated instance table, store the entity associated with it, when creating entity, need to check whether have associated entity, if exist, added associated instance table.
In said process, by each OMCI entity abstract be " class ", as shown in table 1, be the corresponding relation of the composition of OMCI entity and the ingredient of class: the attribute of entity is abstract is the data member of class; Moving and notify abstract is the member function of class.For example at ITU-TG.988 protocol definition entity MAC bridge port configuration data, this entity comprises: 14 attributes such as Managed entity id, Bridge id pointer, and these 14 attributes are abstract is the data member of its corresponding entity class; Such supports 4 basic operation Create, delete, and get, set, these 4 operate accordingly abstract is 4 member functions of entity class; And this entity is supported the alarm operations such as Port blocking, in its entity class, need to define alarm Port blocking detection, report etc. and to process function.And the relation of itself and other entity is presented as two kinds, a kind of is that implicit expression is associated, by identical Managed entity id property value and other entity associated; Another kind is explicit association, and for example its Bridge id pointer attribute has been determined the MAC bridge service profile entity of its sensing.
Table 1
As shown in Figure 1, be the inheritance of OMCI entity class.Because OMCI entity has similar structure, each OMCI entity is comprised of entity attribute, instance method and several parts of inter-entity relation, and then the method that must have part in the member function of different entities class has similar operation, therefore be directly class of each OMCI entity structure, can produce a large amount of redundant codes.And OO inheritance has well increased the reusability of code, it is by the derivation function embodiment of class, and subclass can directly be inherited whole descriptions of its parent, and can modify and expand.Based on above description, design a kind of inheritance hierarchy structure of entity class, comprise the following steps:
Step S101: create base class.Base class 101 is parents of all OMCI entity class, and it is the abstract of all entity conventional methods, and some total attributes that are about to OMCI entity are summarized in this type of data member as such as: ME ID; The basic operation of stipulating in OMCI agreement, if: the operation such as create, delete, set, get is as such member function, is realized to these methods with the form of Virtual Function; And the common method of operating that each entity inside may be used is summarized in this type of.
Step S102: based on base class 101 deriving custom entities classes.Different according to the function of OMCI entity, OMCI entity is divided into 3 classes and processes: common entity, containing the entity of alarm operation, and performance statistics related entities.Common entity: common entity class 122 is directly inherited from base class 101, it can also, according to the functional characteristic of self, define distinctive attribute and method except can inheriting the attribute and method of base class 101.Entity containing alarm operation: compare common entity, the entity that contains alarm operation need to carry out the sequence of operations that alarm is relevant.Therefore, definition alarm entity base class 111 is as the common parent of alarm operation entity, and such is directly inherited from base class 101, all methods of shared base class 101, and define the co-operate of alarm entity: the generation of alarm, report, the basic operation such as elimination.Alarm entity class 121 is the abstract of an entity with alarm operation, and it is the subclass of alarm entity base class 111, and on this basis, increases the particular attribute of this entity and the definition of method.Performance statistics related entities: with containing the entity class of alarm operation seemingly, the entity that performance statistics is relevant need to carry out the sequence of operations such as performance collection, statistics.Therefore similar, performance statistics entity base class 112 is as the parent of the entity containing performance statistics function, increased the relevant basic operation of performance collection, statistics on the basis of base class 101; Performance statistics entity class 123 is entity abstract with performance statistics function, and it is the subclass of performance statistics entity base class 112, and the own distinctive method of definition and characteristic.In above-mentioned process, subclass, except inheriting from the method for parent, allows according to demand the method in parent to be rewritten, and when sending a universal information, can, according to the object difference of receipt message, implement different disposal routes like this.
OMCI service needed realizes jointly by a plurality of entities, and inter-entity relation is also an important composition of OMCI entity description, by the relation of inter-entity, entity is carried out to association and has formed business model.Relation between entity can be divided into two large classes: show points relationship and implicit pointing relation.
As shown in Figure 2, show points relationship: show that points relationship is represented by arrow, the explicit sensing entity B of entity A.Show that points relationship is presented as pointer that points to entity B of entity A storage in code.Therefore, should first create the example of entity B, and then the example of establishment entity A, and the pointer that the attribute that entity A is set is entity B, according to OMCI agreement regulation, entity is deleted and the reversed in order creating, in the present embodiment, when the example of delete entity A, should first check the example of whether deleting the entity B associated with it.Implicit pointing relation: entity C and entity D are recessive associated by instance number, when created the example of entity C, needs to check the example that whether has an entity D number identical with the example, as existence adds this example in its associated instance list.
Only otherwise violate above-mentioned entity relationship rule, so mode is not unique to the process that issues of OMCI business model, as long as the model issuing is complete, thinks that it is exactly correct configuring.
The present invention is not limited to above-mentioned embodiment, for those skilled in the art, under the premise without departing from the principles of the invention, can also make some improvements and modifications, within these improvements and modifications are also considered as protection scope of the present invention.The content not being described in detail in this instructions belongs to the known prior art of professional and technical personnel in the field.

Claims (10)

1. the implementation method of the OMCI entity based on Object-oriented Technique, it is characterized in that, comprise: by OMCI entity division, be base class and the deriving custom entities class of inheriting base class, described base class and deriving custom entities class are encapsulated by OO method respectively, the OMCI entity having encapsulated, utilize OMCI inter-entity relation, realize a plurality of OMCI entities interconnected, by the succession of class, realize the expansion of OMCI entity.
2. the implementation method of the OMCI entity based on Object-oriented Technique as claimed in claim 1, it is characterized in that: described OMCI entity comprises entity attribute, physical operation and inter-entity relation, described entity attribute is as the attribute of class, and entity attribute is as data member; Described physical operation is as the method for class, and physical operation is as member function.
3. the implementation method of the OMCI entity based on Object-oriented Technique as claimed in claim 1, it is characterized in that: the common feature to OMCI entity is concluded, construct a base class, as the basic framework of other OMCI entity class of structure, the public attribute that has comprised entity in this base class, with the form of Virtual Function, realize the operation that all entities of defining in standard may be supported.
4. the implementation method of the OMCI entity based on Object-oriented Technique as claimed in claim 1, is characterized in that: described deriving custom entities class is divided into alarm entity base class, performance collection entity base class and common entity class.
5. the implementation method of the OMCI entity based on Object-oriented Technique as claimed in claim 4, is characterized in that: described alarm entity base class be by the basic operation of alarm abstract be a class, as the parent of all alarm entities.
6. the implementation method of the OMCI entity based on Object-oriented Technique as claimed in claim 4, is characterized in that: described performance collection entity base class be by the basic operation of performance collection abstract be a class, as all properties, gather the parent of entity.
7. the implementation method of the OMCI entity based on Object-oriented Technique as claimed in claim 1, it is characterized in that: the succession of described class comprises that subclass succession is from parent, but subclass, except inheriting from the method for parent, allows according to demand the method in parent to be rewritten.
8. the implementation method of the OMCI entity based on Object-oriented Technique as claimed in claim 1, is characterized in that: described OMCI inter-entity relation comprises explicit points relationship and implicit pointing relation.
9. the implementation method of the OMCI entity based on Object-oriented Technique as claimed in claim 8, it is characterized in that: described demonstration points relationship is presented as: a pointer that attribute is directed entity of class, by pointer, entity is carried out to association, and directed entity is the entity being pre-created.
10. the implementation method of the OMCI entity based on Object-oriented Technique as claimed in claim 8, it is characterized in that: described implicit pointing relation is presented as: the entity class being associated has identical instance number property value, each entity class will be safeguarded an associated instance table, store the entity associated with it, when creating entity, need to check whether have associated entity, if exist, added associated instance table.
CN201410185863.0A 2014-05-05 2014-05-05 The implementation method of OMCI entities based on Object-oriented Technique Active CN104007962B (en)

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 true CN104007962A (en) 2014-08-27
CN104007962B 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)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104980308A (en) * 2015-07-29 2015-10-14 上海斐讯数据通信技术有限公司 OMCI protocol message packaging method and OMCI protocol message packaging device
CN107094271A (en) * 2017-06-14 2017-08-25 深圳市飞鸿光电子有限公司 It is a kind of to realize the method and system that optical network unit is docked with optical line terminal
CN111290808A (en) * 2020-01-13 2020-06-16 中国平安财产保险股份有限公司 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
CN111901705A (en) * 2020-06-15 2020-11-06 烽火通信科技股份有限公司 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)

* Cited by examiner, † Cited by third party
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
常莹等: "10G GPON系统中ONT端OMCI功能的设计与实现", 《电视技术》 *
曾崇杰: "面向对象抽象思维与 java 继承机制", 《福建电脑》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104980308A (en) * 2015-07-29 2015-10-14 上海斐讯数据通信技术有限公司 OMCI protocol message packaging method and OMCI protocol message packaging device
CN104980308B (en) * 2015-07-29 2018-02-13 上海斐讯数据通信技术有限公司 A kind of OMCI protocol massages method for packing and device
CN107094271A (en) * 2017-06-14 2017-08-25 深圳市飞鸿光电子有限公司 It is a kind of to realize the method and system that optical network unit is docked with optical line terminal
CN107094271B (en) * 2017-06-14 2021-01-12 深圳市飞鸿光电子有限公司 Method and system for realizing butt joint of optical network unit and optical line terminal
CN111290808A (en) * 2020-01-13 2020-06-16 中国平安财产保险股份有限公司 Product module display method and device based on data transmission object and storage medium
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
CN111901705A (en) * 2020-06-15 2020-11-06 烽火通信科技股份有限公司 OMCI function virtualization system of OLT equipment
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

Also Published As

Publication number Publication date
CN104007962B (en) 2017-12-22

Similar Documents

Publication Publication Date Title
CN104007962A (en) OMCI entity achieving method based on target-oriented technology
EP1911320B1 (en) Optical network terminal management and control interface (omci) containing a description thereof
US9531469B2 (en) Collecting status from a partner management domain
CN104604182B (en) Service channel collocation method and optical line terminal and EPON
CN103354508A (en) OMCI managing method
CN102480650A (en) Information transmitting method in passive optical network system and passive optical network system
CN103095725A (en) Optical network unit (ONU) managing method based on capability set template
CN103685265A (en) Security detection method and system of passive optical network
CN101989888B (en) Indicating method and system for opening/closing forward error correction coding (FEC) function
CN102761443A (en) Collocation method and device of command lines
CN104469561A (en) Method and device for controlling access capability of illegal manufacturer ONU in GPON system
CN105721963A (en) Method for connecting out-of-limit number of ONUs (Optical Network Units) with EPON-OLT (Ethernet Passive Optical Network-Optical Line Terminal)
CN103036715B (en) Device management method, device and corresponding network management system
CN105429789A (en) ME configuration method and system of OMCI protocols
CN104125099B (en) A kind of EPON system Remote configuration management method
CN104113438B (en) A kind of management method and system of the multiple equipment based on MIB
CN103546833B (en) Service restoration method and system in GPON
Nishimoto et al. DBA dis-aggregation in PON-OLT with scalability enhancement by REPORT/GATE compression
CN106412725B (en) Alarm information processing method and device
CN206596006U (en) For the virtual sub-headend of fiber-to-the-home integration
CN102196324A (en) Method for managing x PON (Passive Optical Network) threshold value alarm
CN101616345B (en) Method and device for bridging ONU in EPON network
US20230103599A1 (en) Methods, apparatuses, and computer readable medium for communication in passive optical network
CN106571872A (en) Intelligent ODN system
US11984930B2 (en) Communication apparatus and communication method

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