WO2015131760A1 - 加载网元对象的方法和装置及存储网元信息的方法和装置 - Google Patents

加载网元对象的方法和装置及存储网元信息的方法和装置 Download PDF

Info

Publication number
WO2015131760A1
WO2015131760A1 PCT/CN2015/073049 CN2015073049W WO2015131760A1 WO 2015131760 A1 WO2015131760 A1 WO 2015131760A1 CN 2015073049 W CN2015073049 W CN 2015073049W WO 2015131760 A1 WO2015131760 A1 WO 2015131760A1
Authority
WO
WIPO (PCT)
Prior art keywords
network element
information
storage unit
pointer
storage
Prior art date
Application number
PCT/CN2015/073049
Other languages
English (en)
French (fr)
Inventor
袁瑞宏
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015131760A1 publication Critical patent/WO2015131760A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements

Definitions

  • the present invention relates to the field of telecommunication network operation and maintenance, and in particular, to a method and device for loading a network element object and a method and device for storing network element information.
  • a storage structure based on a table structure generally defines a corresponding database table for each type of network element device. Since the attributes of different network element devices are very different, the data structure of the defined network element table is also very different, and there is basically no commonality in the structure of different data tables. As network element devices are constantly changing and constantly developing, new network element devices are constantly being used. Some old network element devices are continuously being phased out, and a large number of normal network element devices are also upgraded. Therefore, The workload of defining and maintaining these network element table structures is cumbersome and cumbersome. Therefore, the changes involved in the system upgrade are almost impossible tasks.
  • the technical problem to be solved by the embodiments of the present invention is to provide a method and device for loading a network element object and a method and device for storing network element information.
  • an embodiment of the present invention provides a method for loading a network element object, including:
  • the identifier of the first network element is a sequence number of the first network element.
  • the network element information of the first network element includes: attribute information of the first network element and/or information of at least one associated network element associated with the first network element;
  • the network element information pointer storage address stores: an attribute address pointer indicating a storage unit start address of the attribute information of the first network element and/or a storage unit start address indicating information of at least one of the associated network elements Associated network element address pointer;
  • the step of reading the attribute information of the first network element according to the network element information pointer includes:
  • the step of reading the attribute information of the first network element according to the attribute address pointer includes:
  • the storage information of the second storage unit is used as the attribute information of the first network element.
  • the step of reading information about the associated network element according to the associated network element address pointer includes:
  • Reading the storage information of the third storage unit except the specified byte and the fourth storage when the storage information at the specified byte in the third storage unit is an address pointer of the fourth storage unit The storage information of the unit as the information of the associated network element;
  • the method before the step of acquiring the identifier of the first network element to be loaded, the method further includes:
  • a method for storing network element information including:
  • the network element information of the first network element includes: attribute information of the first network element and/or information of at least one associated network element associated with the first network element;
  • the step of storing the network element information of the first network element in the storage unit includes:
  • the step of storing the attribute information of the first network element includes:
  • the determination result is no, acquiring a second storage unit, storing address pointer information of the second storage unit at a specified byte of the first storage unit; and in the first storage unit The attribute information of the first network element is stored in the specified byte and in the second storage unit.
  • the step of storing information of the at least one associated network element includes:
  • the determination result is no, acquiring a fourth storage unit, storing address pointer information of the fourth storage unit at a specified byte of the third storage unit; and dividing the third storage unit
  • the information of the at least one of the associated network elements is stored in the specified byte and in the fourth storage unit.
  • an apparatus for loading a network element object including:
  • the first obtaining module is configured to obtain an identifier of the first network element to be loaded
  • the second obtaining module is configured to obtain a network element information pointer storage address corresponding to the identifier, and store, at the network element information pointer storage address, a storage unit start address indicating the network element information of the first network element Network element information pointer;
  • the reading module is configured to read the network element information of the first network element according to the network element information pointer;
  • the loading module is configured to load the network element information of the first network element.
  • the network element information of the first network element includes: attribute information of the first network element and/or information of at least one associated network element associated with the first network element;
  • the network element information pointer storage address stores: an attribute address pointer indicating a storage unit start address of the attribute information of the first network element and/or a storage unit start indicating information of at least one of the associated network elements The associated network element address pointer of the address;
  • the reading module includes:
  • a first reading submodule configured to read attribute information of the first network element according to the attribute address pointer;
  • a second reading submodule configured to read at least one location according to the associated network element address pointer The information about the associated network element.
  • the device further includes:
  • a first storage module configured to store network element information of the first network element in the at least one storage unit
  • a third acquiring module configured to acquire a network element information pointer that stores a starting address of a storage unit that indicates network element information of the first network element
  • a second storage module configured to store the network element information pointer
  • a fourth acquiring module configured to acquire a network element information pointer storage address for storing the network element information pointer
  • an apparatus for storing information of a network element including:
  • a first storage module configured to store network element information of the first network element in the storage unit
  • a first acquiring module configured to acquire a network element information pointer that stores a starting address of a storage unit that indicates network element information of the first network element
  • a second storage module configured to store the network element information pointer
  • a second acquiring module configured to acquire a network element information pointer storage address storing the network element information pointer
  • the network element information of the first network element includes: attribute information of the first network element and/or information of at least one associated network element associated with the first network element;
  • the first storage module includes:
  • a first storage submodule configured to store attribute information of the first network element
  • the second storage submodule is configured to store information of at least one of the associated network elements.
  • a computer readable storage medium storing program instructions that, when executed, implement the methods described above.
  • the network element data storage method according to the embodiment of the present invention, the storage address of the network element information is stored
  • the unit is stored so that the data structure becomes generic. In the subsequent process, for any type of network element and internal attribute changes, the definition and modification of the table data structure are not involved, and a large amount of human and material resources are freed from the maintenance work of the network element data.
  • FIG. 1 is a schematic flowchart of a method for storing network element information according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for loading a network element object according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a data structure of an application scenario of storing network element information according to an embodiment of the present invention
  • FIG. 4 is a flowchart of an application scenario of a method for loading a network element object according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of connection of an apparatus for loading a network element object according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of connection of an apparatus for storing network element information according to an embodiment of the present invention.
  • the memory has three regions. They are the network element storage area, the associated network element storage area, and the attribute storage area.
  • the attribute storage area is used to store the attribute information of the network element; the associated network element storage area uses the associated network element information of the first network element (for example, the network elements 1, 2, and 3 in FIG. 3).
  • the network element storage area is used to store an information pointer of the network element, and the information pointer of the network element includes an attribute address pointer and an associated network element address pointer.
  • the attribute address pointer is used to indicate: the storage unit start address of the attribute information of each network element in the attribute storage area.
  • the associated network element address pointer is used to indicate that the associated network element information of each first network element is in the storage unit start address in the associated network element storage area.
  • a method for storing network element information includes:
  • Step 11 The network element information of the first network element is stored in the at least one storage unit.
  • the network element information of the first network element includes: attribute information of the first network element and/or associated with the first network element. At least one information about the associated network element. As shown in FIG. 3, the step is to store the attribute information of the first network element in the attribute storage area, and store the associated network element information of the first network element in the associated network element storage area.
  • Step 12 Acquire a storage unit starting address that stores network element information indicating the first network element. As shown in FIG. 3, this step is to obtain the address of the storage unit of the network element 1 attribute a as the attribute address pointer 1 of the information element of the network element 1 and obtain the storage of the network element 1 associated network element a. The address of the unit is used as the associated network element pointer 1 of the network element 1 information pointer.
  • Step 13 Store the network element information pointer.
  • the step is: storing the attribute address pointer 1 and the associated network element pointer 1 in the network element storage area.
  • Step 14 Acquire a network element information pointer storage address for storing the network element information pointer; in FIG. 3, the network element information pointer storage address is a first to a thirteenth bit of the network element storage area.
  • Step 15 Establish a correspondence between the storage address of the network element information pointer and the identifier of the first network element.
  • the step is: establishing a correspondence between the network element 1 and the bits from the 1st to the 16th bits.
  • Each network element has a lifetime-unique unique identifier value (equivalent to the network element identifier above).
  • the network element identifier is corresponding to the storage address of the network element information pointer.
  • the identifier value may be numbered in the storage order of the network element storage, and the number is specifically defined as: the first stored network element number is 1, In order, 2, 3, 4, and so on.
  • the step 11 includes:
  • Step 111 Store attribute information of the first network element.
  • Step 112 Store information of at least one of the associated network elements.
  • Step 111 includes:
  • Step 1111 Acquire a first storage unit.
  • Step 1112 Determine whether the byte length of the first storage unit is longer than the byte length required to store the attribute information of the first network element, and generate a determination result.
  • Step 1113 if the determination result is yes, storing a first end identifier at a specified byte of the first storage unit, and storing the first in the first storage unit except the specified byte Attribute information of a network element;
  • Step 1114 if the determination result is no, acquiring a second storage unit, storing address pointer information of the second storage unit at a specified byte of the first storage unit; and in the first storage unit The attribute information of the first network element is stored in the specified byte and in the second storage unit.
  • each storage unit specifies a byte (for example, the last 8 bytes) indicating whether to jump. For example, when the value is -1, it indicates that the storage unit ends; when it is other data values, it indicates a jump.
  • the address pointer to the next location of the memory That is, if the attribute value of a network element cannot be stored in an "attribute storage unit", the position pointer that jumps to the next "attribute storage unit” is recorded at the end of its unit. In this way, the attribute storage of one network element is completed by a plurality of (greater than or equal to 2) unit chains.
  • the attribute of each network element is composed of one or more "attribute storage units" depending on its attribute information. For example, in FIG. 3, the storage unit of "network element 1 attribute a" is connected to "network element 1 attribute b", and the storage unit of "network element 1 attribute b" is connected to "network element 1 attribute c".
  • Step 112 includes:
  • Step 1121 acquiring a third storage unit
  • Step 1122 determining whether the byte length of the third storage unit is longer than the byte length required to store the information of the at least one of the associated network elements, and generating a determination result; the number of reservations above and the The number of reservations can be 1.
  • Step 1123 if the result of the determination is yes, storing a second end identifier at a specified byte of the third storage unit, storing the at least one of the third storage unit except the specified byte Information about the associated network element;
  • Step 1124 if the determination result is no, acquiring a fourth storage unit, storing address pointer information of the fourth storage unit at a specified byte of the third storage unit; and in the third storage unit And storing information of the at least one of the associated network elements in the specified byte and the fourth storage unit.
  • a method for loading a network element object according to an embodiment of the present invention is performed after the step in the foregoing embodiment. Therefore, the method includes the steps of the foregoing embodiment of FIG.
  • Step 21 Obtain an identifier of the first network element to be loaded.
  • the identifier of the first network element is a sequence number of the first network element.
  • the step is, for example, obtaining the identifier “1” of the first network element to be loaded.
  • the memory has three regions. They are the network element storage area, the associated network element storage area, and the attribute storage area.
  • the attribute storage area is used to store the attribute information of the network element; the associated network element storage area uses the associated network element information of the first network element (for example, the network elements 1, 2, and 3 in FIG. 3).
  • the network element storage area is used to store an information pointer of the network element, and the information pointer of the network element includes an attribute address pointer and an associated network element address pointer.
  • the attribute address pointer is used to indicate that the attribute information of each network element is in the attribute storage area.
  • the associated network element address pointer is used to indicate that the associated network element information of each first network element is in the storage unit start address in the associated network element storage area.
  • Step 22 Obtain a network element information pointer storage address corresponding to the identifier, and store, at the network element information pointer storage address, a network element information pointer indicating a storage unit start address of the network element information of the first network element.
  • the network element information of the first network element includes: attribute information of the first network element and/or information of at least one associated network element associated with the first network element; the network element information pointer storage address is stored : an attribute address pointer indicating a storage unit start address of the attribute information of the first network element and/or an associated network element address pointer indicating a storage unit start address of information of at least one of the associated network elements.
  • Each network element has a lifetime-unique unique identifier value (equivalent to the network element identifier above).
  • the network element identifier is corresponding to the storage address of the network element information pointer.
  • the identifier value may be numbered in the storage order of the network element storage, and the number is specifically defined as: the first stored network element number is 1, In order, 2, 3, 4, and so on.
  • a network element information pointer indicating the start address of the storage unit indicating the network element information of the network element 1 (including: attribute address pointer 1 and Associated network element address pointer 1).
  • Step 23 Read network element information of the first network element according to the network element information pointer.
  • Step 24 Load network element information of the first network element.
  • Step 23 includes:
  • Step 131 Read attribute information of the first network element according to the attribute address pointer. For example, in FIG. 3, the attribute of the network element 1 is read according to the attribute address pointer 1.
  • Step 132 Read information of at least one of the associated network elements according to the associated network element address pointer. For example, in FIG. 3, the network element 1 associated network element data 1 is read according to the associated network element address pointer 1.
  • Step 231 includes:
  • Step 2311 Find the first storage unit according to the attribute address pointer; for example, in FIG. 3, find the storage unit of "storage network element attribute 1" according to the attribute address pointer 1.
  • Step 2313 when the storage information at the specified byte in the first storage unit is the first end identifier, reading the storage information of the first storage unit except the specified byte, as the Attribute information of a network element;
  • Step 2314 when the storage information at the specified byte in the first storage unit is an address pointer of the second storage unit, reading the storage information of the first storage unit except the specified byte and
  • the storage information of the second storage unit is used as attribute information of the first network element.
  • each storage unit specifies a byte (for example, the last 8 bytes) indicating whether to jump. For example, when the value is -1, it indicates that the memory cell ends; when it is another data value, it indicates the address pointer of the next memory cell that jumps to the memory. That is, if the attribute value of a network element cannot be stored in an "attribute storage unit", the position pointer that jumps to the next "attribute storage unit" is recorded at the end of its unit.
  • the attribute storage of one network element is completed by means of multiple unit chains.
  • the attribute of each network element is composed of one or more "attribute storage units” depending on its attribute information. For example, in FIG. 3, the storage unit of "network element 1 attribute a" is connected to “network element 1 attribute b", and the storage unit of "network element 1 attribute b" is connected to "network element 1 attribute c".
  • Step 232 includes:
  • Step 2321 Find a third storage unit according to the associated network element address pointer.
  • Step 2322 when the storage information at the specified byte in the third storage unit is an address pointer of the fourth storage unit, reading the storage information of the third storage unit except the specified byte and The storage information of the fourth storage unit is used as the information of the associated network element;
  • Step 2323 when the storage information at the specified byte in the third storage unit is the second end identifier, reading the storage information of the third storage unit except the specified byte, as the Information about the associated network element.
  • the method further includes: a step of storing the network element information, the step comprising:
  • the network element data information storage system in this application scenario includes:
  • the network element memory is set to save basic information of each network element object.
  • the network element memory is equivalent to at least one of the storage units indicated by the network element information pointer storage address above.
  • the length of the storage unit storing each network element object information is fixed to 16 bytes (the present invention is not limited thereto). Divided into two 8-bit bytes, the first 8-bit byte holds the address pointer value on the "property memory" where its attribute is located (equivalent to the attribute address pointer above), and the second octet is saved.
  • the value refers to an address pointer value (corresponding to the associated network element address pointer above) that stores information associated with other network elements in the "associated network element memory".
  • Each network element has a lifetime-unique unique identifier value (equivalent to the network element identifier above).
  • the network element identifier is corresponding to the storage address of the network element information pointer.
  • the identifier value may be numbered in the storage order of the network element storage, and the number is specifically defined as: the first stored network element number is 1, In order, 2, 3, 4, and so on.
  • the attribute memory is set to save the attribute information of the network element object.
  • Each network element object locates the storage location of the network element in the storage area by using the first octet value of the network element stored in the network element storage (the present invention does not limit the byte length).
  • the attribute storage area can be divided into an infinite number of fixed-length "attribute storage units" (Note: the present invention does not limit the length value of the "attribute storage unit", nor the specific structure of the attribute storage), and each storage unit specifies a byte. (For example, the last 8 bytes) indicates a jump, which takes -1 to indicate the end of the memory location, and other data values indicate the address pointer to the next location of the memory.
  • Meta attribute storage The specific attribute of each network element, depending on its attributes, consists of one or more "attribute storage units”.
  • each network element object needs to be associated with a considerable number of other network element objects in the working state.
  • This relationship value is stored in the "associated network element memory".
  • Each network element object locates the associated network element storage location of the network element in the storage area by using the octet value of the network element stored in the network element storage. Similar to the attribute storage area, the storage area is innumerable in a fixed number of “relational storage units” (Note: this patent does not limit the length value of the storage unit), if the gateway is associated with many network element objects, one storage unit cannot When the storage is completed, it is recorded at the end of its unit. Jump to the location pointer of the next "storage unit", and complete the associated network element storage of one network element by means of multiple unit chains.
  • the stored content is a unique identification value of the associated network element in the "network element storage", and each identification value occupies an 8-bit length.
  • FIG. 4 The application scenario of the method for loading a network element object in the embodiment of the present invention is described below with reference to FIG. 4, which includes the following processes:
  • Step 1 The user provides the device with the network element identifier value to be loaded, and calculates its position in the “network element memory”, and the calculation formula is: the identifier value *16. Loading a value of 16 bytes at this position, the first 8 bits are the address pointer value of the network element on the "attribute memory”, and the last 8 bits are the address pointer value of the network element on the "associated network element memory” .
  • Step 2 The network element attribute is loaded from the attribute memory according to the pointer value on the attribute memory obtained in the second step.
  • the present invention does not define the network element attribute storage and loading process, and is implemented as needed according to the situation.
  • Step 3 Loading data from the associated network element memory according to the pointer value on the associated network element memory obtained in the second step. If there is a jump pointer at the end of the loaded storage unit, the next storage unit and its storage chain are to be used. All the data on it is merged together and loaded as an overall associated network metadata.
  • Step 4 Read the associated network element data obtained in the third step, and each 8 bytes is a pointer value of an associated network element object, and use the value to load the associated network element object on the “network element storage” (repeating the above 1 to 3 steps).
  • an apparatus for loading a network element object includes:
  • the first obtaining module 51 is configured to obtain an identifier of the first network element to be loaded.
  • the second obtaining module 52 is configured to obtain a network element information pointer storage address corresponding to the identifier, and store, at the network element information pointer storage address, a network indicating a storage unit start address of the network element information of the first network element. Meta information pointer;
  • the reading module 53 reads the network element information of the first network element according to the network element information pointer
  • the loading module 54 loads the network element information of the first network element.
  • the network element information of the first network element includes: attribute information of the first network element and/or information of at least one associated network element associated with the first network element;
  • the network element information pointer storage address is stored with: indicating attribute information of the first network element An attribute address pointer of a storage unit start address and/or an associated network element address pointer indicating a storage unit start address of information of at least one of the associated network elements;
  • the reading module 53 includes:
  • the first reading submodule reads the attribute information of the first network element according to the attribute address pointer; and/or,
  • the second reading submodule reads information of at least one of the associated network elements according to the associated network element address pointer.
  • the device further includes:
  • the first storage module stores the network element information of the first network element in the at least one storage unit
  • a third acquiring module configured to acquire a network element information pointer that is used to store a starting address of a storage unit of the network element information of the first network element
  • a fourth obtaining module configured to acquire a network element information pointer storage address that stores the network element information pointer
  • an apparatus for storing information of a network element includes:
  • the first storage module 61 stores the network element information of the first network element in the storage unit
  • the first obtaining module 62 is configured to acquire a network element information pointer that stores a start address of a storage unit that indicates network element information of the first network element.
  • the second storage module 63 stores the network element information pointer
  • the second obtaining module 64 is configured to obtain a network element information pointer storage address that stores the network element information pointer.
  • the establishing module 65 is configured to establish a correspondence between the storage address of the network element information pointer and the identifier of the first network element.
  • the network element information of the first network element includes: attribute information of the first network element and/or information of at least one associated network element associated with the first network element;
  • the first storage module 61 includes:
  • a first storage submodule storing attribute information of the first network element
  • the second storage submodule stores information of at least one of the associated network elements.
  • the embodiment of the invention provides a storage method and a loading method for information processing of a network element device, which can be It is applied to the storage aspect of telecom network metadata.
  • Embodiments of the present invention have the following beneficial effects:
  • the embodiment of the present invention does not need to define the data structure of the network element in advance. For the network management system with tens of thousands of device types, the workload of daily work maintenance is greatly reduced without the constraint of the data structure.
  • the storage system does not need to be upgraded.
  • the highly dangerous upgrade operation will be eliminated, reducing the cost of daily use of the project.
  • the information storage of the network element device does not use professional database technology, and the production platform does not need to purchase a professional database, thereby reducing the cost of the production and use of the price.
  • the embodiment of the present invention proposes a new network element data storage method. For any type of network element and internal attribute changes, no definition or modification of the table data structure is involved, and a large amount of human and material resources are maintained from the network element data. Freed from work.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • each device/function module/functional unit in the above embodiment When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the network element data storage method according to the embodiment of the present invention, the storage address of the network element information is stored
  • the unit is stored so that the data structure becomes generic. In the subsequent process, for any type of network element and internal attribute changes, the definition and modification of the table data structure are not involved, and a large amount of human and material resources are freed from the maintenance work of the network element data.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

一种加载网元对象的方法和装置及存储网元信息的方法和装置。所述加载网元对象的方法,包括:获取待加载的第一网元的标识;获取所述标识对应的网元信息指针存储地址,在所述网元信息指针存储地址处存储有指示所述第一网元的网元信息的存储单元起始地址的网元信息指针;根据所述网元信息指针,读取所述第一网元的网元信息;加载所述第一网元的网元信息。

Description

加载网元对象的方法和装置及存储网元信息的方法和装置 技术领域
本发明涉及电信网络运维领域,尤其涉及一种加载网元对象的方法和装置及存储网元信息的方法和装置。
背景技术
目前,通讯设备上有大量的各种类型的设备。为了对这些设备及其工作状态进行管理,需要通过软件定义出相关的网元设备对象,构成程序运行工作。软件程序启动需要加载各种网元设备的数据信息,就需要所管理的网元数据支持持久化存储。当前相关软件使用数据库表结构的方式对网元数据进行存储。
基于表结构的存储结构,通常是为每种类型的网元设备分别定义出对应的数据库表。由于不同网元设备之间的属性差别很大,所以定义出的网元表数据结构差异也很大,不同的数据表结构上基本上没有共性。由于网元设备在不断地变化,不断的发展,新的网元设备不断上线使用了,一些老旧的网元设备不断被淘汰,并且,大量正常使用的网元设备也会升级换代,所以,定义和维护这些网元表结构的工作量繁琐而巨大。因此,系统升级所涉及的变动几乎是不可能完成的任务。
发明内容
本发明实施例要解决的技术问题是,提供一种加载网元对象的方法和装置及存储网元信息的方法和装置。
一方面,本发明实施例提供一种加载网元对象的方法,包括:
获取待加载的第一网元的标识;
获取所述标识对应的网元信息指针存储地址,在所述网元信息指针存储地址处存储有指示所述第一网元的网元信息的存储单元起始地址的网元信息指针;
根据所述网元信息指针,读取所述第一网元的网元信息;
加载所述第一网元的网元信息。
可选地,所述第一网元的标识为所述第一网元的序号。
可选地,所述第一网元的网元信息包括:第一网元的属性信息和/或与所述第一网元关联的至少一个关联网元的信息;
所述网元信息指针存储地址存储有:指示所述第一网元的属性信息的存储单元起始地址的属性地址指针和/或指示至少一个所述关联网元的信息的存储单元起始地址的关联网元地址指针;
所述根据所述网元信息指针读取所述第一网元的属性信息的步骤包括:
根据所述属性地址指针,读取所述第一网元的属性信息;和/或,根据所述关联网元地址指针,读取至少一个所述关联网元的信息。
可选地,所述根据所述属性地址指针,读取所述第一网元的属性信息的步骤包括:
根据所述属性地址指针,查找到第一存储单元;
当所述第一存储单元中指定字节处的存储信息为第一结束标识时,读取所述第一存储单元的除所述指定字节处以外的存储信息,作为所述第一网元的属性信息;
当所述第一存储单元中所述指定字节处的存储信息为第二存储单元的地址指针时,读取所述第一存储单元除所述指定字节处以外的存储信息和所述第二存储单元的存储信息,作为所述第一网元的属性信息。
可选地,所述根据所述关联网元地址指针,读取所述关联网元的信息的步骤包括:
根据所述关联网元地址指针,查找到第三存储单元;
当所述第三存储单元中所述指定字节处的存储信息为第四存储单元的地址指针时,读取所述第三存储单元除所述指定字节处以外的存储信息和第四存储单元的存储信息,作为所述关联网元的信息;
当所述第三存储单元中指定字节处的存储信息为第二结束标识时,则读取所述第三存储单元的除所述指定字节处以外的存储信息,作为所述关联网元的信息。
可选地,所述获取待加载的第一网元的标识的步骤之前,所述方法还包括:
在存储单元中存储第一网元的网元信息;
获取存储指示所述第一网元的网元信息的存储单元起始地址的网元信息指针;
存储所述网元信息指针;
获取存储所述网元信息指针的网元信息指针存储地址;
建立所述网元信息指针存储地址和所述第一网元的标识的对应关系。
一方面,提供一种存储网元信息的方法,包括:
在至少一个存储单元中存储第一网元的网元信息;
获取存储指示所述第一网元的网元信息的存储单元起始地址的网元信息指针;
存储所述网元信息指针;
获取存储所述网元信息指针的网元信息指针存储地址;
建立所述网元信息指针存储地址和所述第一网元的标识的对应关系。
可选地,所述第一网元的网元信息包括:第一网元的属性信息和/或与所述第一网元关联的至少一个关联网元的信息;
所述在存储单元中存储第一网元的网元信息的步骤包括:
存储所述第一网元的属性信息;和/或存储至少一个所述关联网元的信息。
可选地,所述存储所述第一网元的属性信息的步骤包括:
获取第一存储单元;
判断第一存储单元的字节长度是否比存储所述第一网元的属性信息所需的字节长度长预订数量的字节,生成判断结果;
如果所述判断结果为是,在所述第一存储单元的指定字节处存储第一结束标识,并在所述第一存储单元中的除所述指定字节处存储所述第一网元的属性信息;
如果所述判断结果为否,获取第二存储单元,在所述第一存储单元的指定字节处存储所述第二存储单元的地址指针信息;并在所述第一存储单元的 除所述指定字节处和第二存储单元中存储所述第一网元的属性信息。
可选地,所述存储至少一个所述关联网元的信息的步骤包括:
获取第三存储单元;
判断第三存储单元的字节长度是否比存储所述至少一个所述关联网元的信息所需的字节长度长预订数量的字节,生成判断结果;
如果所述判断结果为是,在所述第三存储单元的指定字节处存储第二结束标识,在所述第三存储单元中的除所述指定字节处存储所述至少一个所述关联网元的信息;
如果所述判断结果为否,获取第四存储单元,在所述第三存储单元的指定字节处存储所述第四存储单元的地址指针信息;并在所述第三存储单元中的除所述指定字节处和第四存储单元中存储所述至少一个所述关联网元的信息。
另一方面,提供一种加载网元对象的装置,包括:
第一获取模块,设置为获取待加载的第一网元的标识;
第二获取模块,设置为获取所述标识对应的网元信息指针存储地址,在所述网元信息指针存储地址处存储有指示所述第一网元的网元信息的存储单元起始地址的网元信息指针;
读取模块,设置为根据所述网元信息指针,读取所述第一网元的网元信息;
加载模块,设置为加载所述第一网元的网元信息。
可选地,所述第一网元的网元信息包括:第一网元的属性信息和/或与所述第一网元关联的至少一个关联网元的信息;
所述网元信息指针存储地址处存储有:指示所述第一网元的属性信息的存储单元起始地址的属性地址指针和/或指示至少一个所述关联网元的信息的存储单元起始地址的关联网元地址指针;
可选地,所述读取模块包括:
第一读取子模块,设置为根据所述属性地址指针,读取所述第一网元的属性信息;和/或,
第二读取子模块,设置为根据所述关联网元地址指针,读取至少一个所 述关联网元的信息。
可选地,所述的装置,还包括:
第一存储模块,设置为在至少一个存储单元中存储第一网元的网元信息;
第三获取模块,设置为获取存储指示所述第一网元的网元信息的存储单元起始地址的网元信息指针;
第二存储模块,设置为存储所述网元信息指针;
第四获取模块,设置为获取存储所述网元信息指针的网元信息指针存储地址;
建立模块,设置为建立所述网元信息指针存储地址和所述第一网元的标识的对应关系。
一方面,提供一种存储网元的信息的装置,包括:
第一存储模块,设置为在存储单元中存储第一网元的网元信息;
第一获取模块,设置为获取存储指示所述第一网元的网元信息的存储单元起始地址的网元信息指针;
第二存储模块,设置为存储所述网元信息指针;
第二获取模块,设置为获取存储所述网元信息指针的网元信息指针存储地址;
建立模块,设置为建立所述网元信息指针存储地址和所述第一网元的标识的对应关系。
可选地,所述第一网元的网元信息包括:第一网元的属性信息和/或与所述第一网元关联的至少一个关联网元的信息;
所述第一存储模块包括:
第一存储子模块,设置为存储所述第一网元的属性信息;和/或
第二存储子模块,设置为存储至少一个所述关联网元的信息。
一种计算机可读存储介质,存储有程序指令,当该程序指令被执行时可实现上面所述的方法。
本发明实施例所述的网元数据存储方法,网元信息的存储地址通过存储 单元进行存储,这样,使得数据结构变得通用。后续过程中,对于任何类型的网元和内部属性变动,都不涉及表数据结构的定义与修改,将大量的人力物力从网元数据的维护工作中解脱出来。
附图概述
图1是本发明实施例所述的存储网元信息的方法的流程示意图;
图2是本发明实施例所述的加载网元对象的方法的流程示意图;
图3是本发明实施例所述的存储网元信息的应用场景的数据结构示意图;
图4是本发明实施例所述的加载网元对象的方法的应用场景的流程图。
图5是本发明实施例所述的加载网元对象的装置的连接示意图;
图6是本发明实施例所述的存储网元信息的装置的连接示意图。
本发明的较佳实施方式
下面将结合附图对本发明的实施例进行详细描述。
为便于理解,首先描述存储网元信息的方法。
首先,简单描述图3。图3中,存储器具有三个区域。分别为网元存储区、关联网元存储区、以及属性存储区。属性存储区用于存储网元的属性信息;关联网元存储区用第一网元(例如图3中的网元1、2、3)的关联网元信息。网元存储区用于存储网元的信息指针,网元的信息指针包括属性地址指针和关联网元地址指针。属性地址指针用于指示:每个网元的属性信息在属性存储区中的存储单元起始地址。关联网元地址指针用于指示:每个第一网元的关联网元信息在关联网元存储区中的存储单元起始地址。
如图1所示,为本发明实施例所述的一种存储网元信息的方法,包括:
步骤11,在至少一个存储单元中存储第一网元的网元信息;所述第一网元的网元信息包括:第一网元的属性信息和/或与所述第一网元关联的至少一个关联网元的信息。结合图3来看,该步骤为分别在属性存储区中存储第一网元的属性信息,在关联网元存储区中存储第一网元的关联网元信息。
步骤12,获取存储指示所述第一网元的网元信息的存储单元起始地址的 网元信息指针;结合图3来看,该步骤为获取“网元1属性a”存储单元的地址作为网元1信息指针的属性地址指针1,获取“网元1关联网元数据a”存储单元的地址作为网元1信息指针的关联网元指针1。
步骤13,存储所述网元信息指针;图3中,该步骤为:在网元存储区中存储属性地址指针1和关联网元指针1。
步骤14,获取存储所述网元信息指针的网元信息指针存储地址;图3中,为网元信息指针存储地址为网元存储区的从第1到-第16比特位。
步骤15,建立所述网元信息指针存储地址和所述第一网元的标识的对应关系。图3中,该步骤为:建立网元1和从第1到-第16比特位的对应关系。每个网元拥有一个终身不变的唯一标识值(相当于上文的网元标识)。网元标识与网元信息指针存储地址对应,在该应用场景中,该标识值可以为其在网元存储器上的存储顺序编号,编号具体定义为:第一个存储的网元编号为1,依次为2、3、4,以此类推。
所述步骤11包括:
步骤111,存储所述第一网元的属性信息;和/或
步骤112,存储至少一个所述关联网元的信息。
步骤111包括:
步骤1111,获取第一存储单元;
步骤1112,判断第一存储单元的字节长度是否比存储所述第一网元的属性信息所需的字节长度长预订数量的字节,生成判断结果;
步骤1113,如果所述判断结果为是,在所述第一存储单元的指定字节处存储第一结束标识,并在所述第一存储单元中的除所述指定字节处存储所述第一网元的属性信息;
步骤1114,如果所述判断结果为否,获取第二存储单元,在所述第一存储单元的指定字节处存储所述第二存储单元的地址指针信息;并在所述第一存储单元的除所述指定字节处和第二存储单元中存储所述第一网元的属性信息。
其中:每个存储单元指定字节(例如为最后8个字节)表示是否跳转。例如,当该值取-1时,表示该存储单元结束;当为其它数据值时,表示跳转 到该存储器的下一个存储单元的地址指针。也就是说,如果一个网元的属性值在一个“属性存储单元”中不能完成存储,则在其单元尾部记录跳转到下一个“属性存储单元”的位置指针。这样,通过多个(大于或者等于2个)单元链的方式,完成一个网元的属性存储。每个网元的属性,视其属性信息的多少,由一个或多个“属性存储单元”组成。例如,图3中,通过“网元1属性a”的存储单元连接到“网元1属性b”,通过“网元1属性b”的存储单元连接到“网元1属性c”。
步骤112包括:
步骤1121,获取第三存储单元;
步骤1122,判断第三存储单元的字节长度是否比存储所述至少一个所述关联网元的信息所需的字节长度长预订数量的字节,生成判断结果;上文的预订数量和此处的预订数量可以为1。
步骤1123,如果所述判断结果为是,在所述第三存储单元的指定字节处存储第二结束标识,在所述第三存储单元中的除所述指定字节处存储所述至少一个所述关联网元的信息;
步骤1124,如果所述判断结果为否,获取第四存储单元,在所述第三存储单元的指定字节处存储所述第四存储单元的地址指针信息;并在所述第三存储单元中的除所述指定字节处和第四存储单元中存储所述至少一个所述关联网元的信息。
如图2所示,为本发明实施例所述的一种加载网元对象的方法,该实施例在上述实施例中的步骤之后执行,因此,包括上述图1实施例的步骤,还包括:
步骤21,获取待加载的第一网元的标识;可选的,所述第一网元的标识为所述第一网元的序号。结合图3来看,该步骤例如为获取待加载的第一网元的标识“1”。图3中,存储器具有三个区域。分别为网元存储区、关联网元存储区、以及属性存储区。属性存储区用于存储网元的属性信息;关联网元存储区用第一网元(例如图3中的网元1、2、3)的关联网元信息。网元存储区用于存储网元的信息指针,网元的信息指针包括属性地址指针和关联网元地址指针。属性地址指针用于指示:每个网元的属性信息在属性存储区 中的存储单元起始地址。关联网元地址指针用于指示:每个第一网元的关联网元信息在关联网元存储区中的存储单元起始地址。
步骤22,获取所述标识对应的网元信息指针存储地址,在所述网元信息指针存储地址处存储有指示所述第一网元的网元信息的存储单元起始地址的网元信息指针;所述第一网元的网元信息包括:第一网元的属性信息和/或与所述第一网元关联的至少一个关联网元的信息;所述网元信息指针存储地址存储有:指示所述第一网元的属性信息的存储单元起始地址的属性地址指针和/或指示至少一个所述关联网元的信息的存储单元起始地址的关联网元地址指针。
每个网元拥有一个终身不变的唯一标识值(相当于上文的网元标识)。网元标识与网元信息指针存储地址对应,在该应用场景中,该标识值可以为其在网元存储器上的存储顺序编号,编号具体定义为:第一个存储的网元编号为1,依次为2、3、4,以此类推。
结合图3来看,步骤2例如为:标识值*16,即,1*16=16,所述标识“1”对应的网元信息指针存储地址为从第1到第16个比特位。在所述网元信息指针存储地址处(从第1到第16个比特位)存储有指示网元1的网元信息的存储单元起始地址的网元信息指针(包括:属性地址指针1和关联网元地址指针1)。
步骤23,根据所述网元信息指针,读取所述第一网元的网元信息。
步骤24,加载所述第一网元的网元信息。
步骤23包括:
步骤131,根据所述属性地址指针,读取所述第一网元的属性信息;例如,图3中,根据属性地址指针1读取网元1属性。
和/或,
步骤132,根据所述关联网元地址指针,读取至少一个所述关联网元的信息。例如,图3中,根据关联网元地址指针1读取网元1关联网元数据1。
步骤231包括:
步骤2311,根据所述属性地址指针,查找到第一存储单元;例如,在图3,根据属性地址指针1查找到“存储网元属性1”的存储单元。
步骤2313,当所述第一存储单元中指定字节处的存储信息为第一结束标识时,读取所述第一存储单元的除所述指定字节处以外的存储信息,作为所述第一网元的属性信息;
步骤2314,当所述第一存储单元中所述指定字节处的存储信息为第二存储单元的地址指针时,读取所述第一存储单元除所述指定字节处以外的存储信息和所述第二存储单元的存储信息,作为所述第一网元的属性信息。具体来讲:每个存储单元指定字节(例如为最后8个字节)表示是否跳转。例如,当该值取-1时,表示该存储单元结束;当为其它数据值时,表示跳转到该存储器的下一个存储单元的地址指针。也就是说,如果一个网元的属性值在一个“属性存储单元”中不能完成存储,则在其单元尾部记录跳转到下一个“属性存储单元”的位置指针。这样,通过多个单元链的方式,完成一个网元的属性存储。每个网元的属性,视其属性信息的多少,由一个或多个“属性存储单元”组成。例如,图3中,通过“网元1属性a”的存储单元连接到“网元1属性b”,通过“网元1属性b”的存储单元连接到“网元1属性c”。
步骤232包括:
步骤2321,根据所述关联网元地址指针,查找到第三存储单元;
步骤2322,当所述第三存储单元中所述指定字节处的存储信息为第四存储单元的地址指针时,读取所述第三存储单元除所述指定字节处以外的存储信息和第四存储单元的存储信息,作为所述关联网元的信息;
步骤2323,当所述第三存储单元中指定字节处的存储信息为第二结束标识时,则读取所述第三存储单元的除所述指定字节处以外的存储信息,作为所述关联网元的信息。
在该实施例中,步骤21之前,所述方法还包括:存储网元信息的步骤,该步骤包括:
在存储单元中存储第一网元的网元信息;
获取存储指示所述第一网元的网元信息的存储单元起始地址的网元信息指针;
存储所述网元信息指针;
获取存储所述网元信息指针的网元信息指针存储地址;
建立所述网元信息指针存储地址和所述第一网元的标识的对应关系。
以下结合图3描述本发明实施例的应用场景。
本应用场景中的网元数据信息存储系统包括:
网元存储器,设置为保存每个网元对象的基本信息。网元存储器等同于上文的网元信息指针存储地址所指示的至少一个存储单元。存储每个网元对象信息的存储单元的长度固定为16个字节(本发明不限于此)。分为两个8位字节,第一个8位字节保存其属性所在的“属性存储器”上的地址指针值(相当于上文的属性地址指针),第二个8位字节保存的值,是指在“关联网元存储器”中存储与其它网元相关联的信息的地址指针值(相当于上文的关联网元地址指针)。每个网元拥有一个终身不变的唯一标识值(相当于上文的网元标识)。网元标识与网元信息指针存储地址对应,在该应用场景中,该标识值可以为其在网元存储器上的存储顺序编号,编号具体定义为:第一个存储的网元编号为1,依次为2、3、4,以此类推。
属性存储器,设置为保存网元对象的属性信息。每个网元对象,通过“网元存储器”中存储的该网元前8位字节值(本发明不限制字节长度),在本存储区中定位到该网元的存储位置。属性存储区内部可以分为无数个固定长度的“属性存储单元”(注:本发明不限定“属性存储单元”的长度值,也不限定属性存储的具体结构),每个存储单元指定字节(例如为最后8个字节)表示跳转,该值取-1,表示该存储单元结束,其它数据值就表示跳转到该存储器的下一个存储单元的地址指针。如果一个网元的属性值在一个“属性存储单元”中不能完成存储,则在其单元尾部记录下跳转到下一个“属性存储单元”的位置指针,通过多个单元链的方式完成一个网元的属性存储。每个网元的具体属性,视其属性的多少,由一个或多个“属性存储单元”组成。
关联网元存储器,每个网元对象在工作状态下,需要与相当多的其它网元对象发生关系,这个关系值保存在“关联网元存储器”中。每个网元对象,通过“网元存储器”中存储的该网元后8位字节值,在本存储区中定位到该网元的关联网元存储位置。与属性存储区类似,存储区内部分为无数个固定长度的“关系存储单元”(注:本专利不限定该存储单元的长度值),如果该网关关联的网元对象很多,一个存储单元不能完成存储,则在其单元尾部记录下 跳转到下一个“存储单元”的位置指针,通过多个单元链的方式完成一个网元的关联网元存储。存储的内容是关联网元在“网元存储器”中的唯一标识值,每个标识值占用8位字节长度。
以下结合图4,描述本发明实施例的加载网元对象的实现方法的应用场景,包括下列过程:
步骤1,使用者向本装置提供要加载的网元标识值,计算出其在“网元存储器”的位置,其计算公式为:标识值*16。在此位置上加载16个字节的值,前8位值是该网元在“属性存储器”上的地址指针值,后8位是该网元在“关联网元存储器”上的地址指针值。
步骤2,根据第二步中得到的属性存储器上的指针值,从属性存储器上加载该网元属性,本发明并不定义网元属性存储和加载过程,根据情况按需实现。
步骤3,根据第二步中得到的关联网元存储器上的指针值,从关联网元存储器上加载数据,如果加载的存储单元尾部存在跳转指针,则要将下一个存储单元以及其存储链上的所有数据合并在一起,作为一个总体的关联网元数据进行加载。
步骤4,读取第三步得到的关联网元数据,每8个字节为一个关联网元对象的指针值,使用该值在“网元存储器”上加载关联网元对象(重复以上1到3步)。
如图5所示,为本发明实施例的一种加载网元对象的装置,包括:
第一获取模块51,获取待加载的第一网元的标识;
第二获取模块52,获取所述标识对应的网元信息指针存储地址,在所述网元信息指针存储地址处存储有指示所述第一网元的网元信息的存储单元起始地址的网元信息指针;
读取模块53,根据所述网元信息指针,读取所述第一网元的网元信息;
加载模块54,加载所述第一网元的网元信息。
所述第一网元的网元信息包括:第一网元的属性信息和/或与所述第一网元关联的至少一个关联网元的信息;
所述网元信息指针存储地址处存储有:指示所述第一网元的属性信息的 存储单元起始地址的属性地址指针和/或指示至少一个所述关联网元的信息的存储单元起始地址的关联网元地址指针;
所述读取模块53包括:
第一读取子模块,根据所述属性地址指针,读取所述第一网元的属性信息;和/或,
第二读取子模块,根据所述关联网元地址指针,读取至少一个所述关联网元的信息。
所述的装置,还包括:
第一存储模块,在至少一个存储单元中存储第一网元的网元信息;
第三获取模块,获取存储指示所述第一网元的网元信息的存储单元起始地址的网元信息指针;
第二存储模块,存储所述网元信息指针;
第四获取模块,获取存储所述网元信息指针的网元信息指针存储地址;
建立模块,建立所述网元信息指针存储地址和所述第一网元的标识的对应关系。
如图6所示,为本发明实施例的一种存储网元的信息的装置,包括:
第一存储模块61,在存储单元中存储第一网元的网元信息;
第一获取模块62,获取存储指示所述第一网元的网元信息的存储单元起始地址的网元信息指针;
第二存储模块63,存储所述网元信息指针;
第二获取模块64,获取存储所述网元信息指针的网元信息指针存储地址;
建立模块65,建立所述网元信息指针存储地址和所述第一网元的标识的对应关系。
所述第一网元的网元信息包括:第一网元的属性信息和/或与所述第一网元关联的至少一个关联网元的信息;
所述第一存储模块61包括:
第一存储子模块,存储所述第一网元的属性信息;和/或
第二存储子模块,存储至少一个所述关联网元的信息。
本发明实施例提供一种网元设备信息化的存储方法以及加载方法,可 应用于电信网元数据的存储方面。本发明实施例具有以下有益效果:
1、本发明实施例无需预先定义网元的数据结构,对于拥有上万种设备类型的网管系统而言,没有数据结构的约束后,将大大减轻日常工作维护的工作量。
2、本发明实施例中,当网元设备的结构变化时,也无需对存储系统进行升级改造。将取消危险性极高的升级操作,降低工程日常使用的成本。
3、本发明实施例中,网元设备的信息存储没有使用专业的数据库技术,生产平台不需要采购专业的数据库,降低价生产使用的成本。
4、本发明实施例提出一种全新的网元数据存储方法,对于任何类型的网元和内部属性变动,都不涉及表数据结构的定义与修改,将大量的人力物力从网元数据的维护工作中解脱出来。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
工业实用性
本发明实施例所述的网元数据存储方法,网元信息的存储地址通过存储 单元进行存储,这样,使得数据结构变得通用。后续过程中,对于任何类型的网元和内部属性变动,都不涉及表数据结构的定义与修改,将大量的人力物力从网元数据的维护工作中解脱出来。

Claims (16)

  1. 一种加载网元对象的方法,包括:
    获取待加载的第一网元的标识;
    获取所述标识对应的网元信息指针存储地址,在所述网元信息指针存储地址处存储有指示所述第一网元的网元信息的存储单元起始地址的网元信息指针;
    根据所述网元信息指针,读取所述第一网元的网元信息;
    加载所述第一网元的网元信息。
  2. 根据权利要求1所述的方法,其中,所述第一网元的标识为所述第一网元的序号。
  3. 根据权利要求1所述的方法,其中,
    所述第一网元的网元信息包括:第一网元的属性信息和/或与所述第一网元关联的至少一个关联网元的信息;
    所述网元信息指针存储地址存储有:指示所述第一网元的属性信息的存储单元起始地址的属性地址指针和/或指示至少一个所述关联网元的信息的存储单元起始地址的关联网元地址指针;
    所述根据所述网元信息指针读取所述第一网元的属性信息的步骤包括:
    根据所述属性地址指针,读取所述第一网元的属性信息;和/或,根据所述关联网元地址指针,读取至少一个所述关联网元的信息。
  4. 根据权利要求3所述的方法,其中,所述根据所述属性地址指针,读取所述第一网元的属性信息的步骤包括:
    根据所述属性地址指针,查找到第一存储单元;
    当所述第一存储单元中指定字节处的存储信息为第一结束标识时,读取所述第一存储单元的除所述指定字节处以外的存储信息,作为所述第一网元 的属性信息;
    当所述第一存储单元中所述指定字节处的存储信息为第二存储单元的地址指针时,读取所述第一存储单元除所述指定字节处以外的存储信息和所述第二存储单元的存储信息,作为所述第一网元的属性信息。
  5. 根据权利要求3所述的方法,其中,所述根据所述关联网元地址指针,读取所述关联网元的信息的步骤包括:
    根据所述关联网元地址指针,查找到第三存储单元;
    当所述第三存储单元中所述指定字节处的存储信息为第四存储单元的地址指针时,读取所述第三存储单元除所述指定字节处以外的存储信息和第四存储单元的存储信息,作为所述关联网元的信息;
    当所述第三存储单元中指定字节处的存储信息为第二结束标识时,则读取所述第三存储单元的除所述指定字节处以外的存储信息,作为所述关联网元的信息。
  6. 根据权利要求1所述的方法,其中,所述获取待加载的第一网元的标识的步骤之前,所述方法还包括:
    在存储单元中存储第一网元的网元信息;
    获取存储指示所述第一网元的网元信息的存储单元起始地址的网元信息指针;
    存储所述网元信息指针;
    获取存储所述网元信息指针的网元信息指针存储地址;
    建立所述网元信息指针存储地址和所述第一网元的标识的对应关系。
  7. 一种存储网元信息的方法,包括:
    在至少一个存储单元中存储第一网元的网元信息;
    获取存储指示所述第一网元的网元信息的存储单元起始地址的网元信息 指针;
    存储所述网元信息指针;
    获取存储所述网元信息指针的网元信息指针存储地址;
    建立所述网元信息指针存储地址和所述第一网元的标识的对应关系。
  8. 根据权利要求7所述的方法,其中,
    所述第一网元的网元信息包括:第一网元的属性信息和/或与所述第一网元关联的至少一个关联网元的信息;
    所述在存储单元中存储第一网元的网元信息的步骤包括:
    存储所述第一网元的属性信息;和/或存储至少一个所述关联网元的信息。
  9. 根据权利要求8所述的方法,其中,所述存储所述第一网元的属性信息的步骤包括:
    获取第一存储单元;
    判断第一存储单元的字节长度是否比存储所述第一网元的属性信息所需的字节长度长预订数量的字节,生成判断结果;
    如果所述判断结果为是,在所述第一存储单元的指定字节处存储第一结束标识,并在所述第一存储单元中的除所述指定字节处存储所述第一网元的属性信息;
    如果所述判断结果为否,获取第二存储单元,在所述第一存储单元的指定字节处存储所述第二存储单元的地址指针信息;并在所述第一存储单元的除所述指定字节处和第二存储单元中存储所述第一网元的属性信息。
  10. 根据权利要求8所述的方法,其中,所述存储至少一个所述关联网元的信息的步骤包括:
    获取第三存储单元;
    判断第三存储单元的字节长度是否比存储所述至少一个所述关联网元的信息所需的字节长度长预订数量的字节,生成判断结果;
    如果所述判断结果为是,在所述第三存储单元的指定字节处存储第二结束标识,在所述第三存储单元中的除所述指定字节处存储所述至少一个所述关联网元的信息;
    如果所述判断结果为否,获取第四存储单元,在所述第三存储单元的指定字节处存储所述第四存储单元的地址指针信息;并在所述第三存储单元中的除所述指定字节处和第四存储单元中存储所述至少一个所述关联网元的信息。
  11. 一种加载网元对象的装置,包括:
    第一获取模块,设置为获取待加载的第一网元的标识;
    第二获取模块,设置为获取所述标识对应的网元信息指针存储地址,在所述网元信息指针存储地址处存储有指示所述第一网元的网元信息的存储单元起始地址的网元信息指针;
    读取模块,设置为根据所述网元信息指针,读取所述第一网元的网元信息;以及
    加载模块,设置为加载所述第一网元的网元信息。
  12. 根据权利要求11所述的装置,其中,
    所述第一网元的网元信息包括:第一网元的属性信息和/或与所述第一网元关联的至少一个关联网元的信息;
    所述网元信息指针存储地址处存储有:指示所述第一网元的属性信息的存储单元起始地址的属性地址指针和/或指示至少一个所述关联网元的信息的存储单元起始地址的关联网元地址指针;
    所述读取模块包括:
    第一读取子模块,设置为根据所述属性地址指针,读取所述第一网元的 属性信息;和/或,
    第二读取子模块,设置为根据所述关联网元地址指针,读取至少一个所述关联网元的信息。
  13. 根据权利要求11所述的装置,还包括:
    第一存储模块,设置为在至少一个存储单元中存储第一网元的网元信息;
    第三获取模块,设置为获取存储指示所述第一网元的网元信息的存储单元起始地址的网元信息指针;
    第二存储模块,设置为存储所述网元信息指针;
    第四获取模块,设置为获取存储所述网元信息指针的网元信息指针存储地址;以及
    建立模块,设置为建立所述网元信息指针存储地址和所述第一网元的标识的对应关系。
  14. 一种存储网元的信息的装置,包括:
    第一存储模块,设置为在存储单元中存储第一网元的网元信息;
    第一获取模块,设置为获取存储指示所述第一网元的网元信息的存储单元起始地址的网元信息指针;
    第二存储模块,设置为存储所述网元信息指针;
    第二获取模块,设置为获取存储所述网元信息指针的网元信息指针存储地址;以及
    建立模块,设置为建立所述网元信息指针存储地址和所述第一网元的标识的对应关系。
  15. 根据权利要求14所述的装置,其中,
    所述第一网元的网元信息包括:第一网元的属性信息和/或与所述第一网元关联的至少一个关联网元的信息;
    所述第一存储模块包括:
    第一存储子模块,设置为存储所述第一网元的属性信息;和/或
    第二存储子模块,设置为存储至少一个所述关联网元的信息。
  16. 一种计算机可读存储介质,存储有程序指令,当该程序指令被执行时可实现权利要求1-10任一项所述的方法。
PCT/CN2015/073049 2014-10-16 2015-02-13 加载网元对象的方法和装置及存储网元信息的方法和装置 WO2015131760A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410550334.6 2014-10-16
CN201410550334.6A CN105515814A (zh) 2014-10-16 2014-10-16 加载网元对象的方法和装置及存储网元信息的方法和装置

Publications (1)

Publication Number Publication Date
WO2015131760A1 true WO2015131760A1 (zh) 2015-09-11

Family

ID=54054587

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/073049 WO2015131760A1 (zh) 2014-10-16 2015-02-13 加载网元对象的方法和装置及存储网元信息的方法和装置

Country Status (2)

Country Link
CN (1) CN105515814A (zh)
WO (1) WO2015131760A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116136852A (zh) * 2021-11-17 2023-05-19 中兴通讯股份有限公司 一种用户数据查询的方法、系统、管理设备和网元设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621405A (zh) * 2009-07-07 2010-01-06 中兴通讯股份有限公司 分布式管理监控系统及其监控方法、创建方法
CN101707533A (zh) * 2009-10-30 2010-05-12 北京讯风光通信技术开发有限责任公司 一种多业务pcm光接入网络中基于链路状态的网络控制方法及系统
CN102833105A (zh) * 2012-08-27 2012-12-19 华为技术有限公司 一种获取从属网元性能指标配置数据的方法及设备
CN103369660A (zh) * 2012-03-26 2013-10-23 大唐联诚信息系统技术有限公司 网元数据同步方法和网元设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621405A (zh) * 2009-07-07 2010-01-06 中兴通讯股份有限公司 分布式管理监控系统及其监控方法、创建方法
CN101707533A (zh) * 2009-10-30 2010-05-12 北京讯风光通信技术开发有限责任公司 一种多业务pcm光接入网络中基于链路状态的网络控制方法及系统
CN103369660A (zh) * 2012-03-26 2013-10-23 大唐联诚信息系统技术有限公司 网元数据同步方法和网元设备
CN102833105A (zh) * 2012-08-27 2012-12-19 华为技术有限公司 一种获取从属网元性能指标配置数据的方法及设备

Also Published As

Publication number Publication date
CN105515814A (zh) 2016-04-20

Similar Documents

Publication Publication Date Title
US11550769B2 (en) Data processing method, apparatus, and system
CN105279278B (zh) 文件的搜索方法及装置
CN107918612B (zh) 键值存储系统数据结构的实现方法和装置
CN110162526B (zh) 一种块链式账本中数据记录的查询方法、装置及设备
CN110704398A (zh) 从MySQL到Oracle的数据库迁移方法、装置及计算机设备
WO2020244239A1 (zh) 一种基于业务标识的索引创建方法、装置及设备
CN113726751B (zh) 一种块链式账本中的权重管理方法、装置及设备
CN110825737A (zh) 索引创建和数据查询方法、装置及设备
JP2010524060A (ja) 分散コンピューティングにおけるデータマージング
WO2016169237A1 (zh) 数据处理方法及装置
CN103927607A (zh) 数据处理方法及装置
DE602007007820D1 (de) Verfahren und vorrichtung zur abwicklung der speicherung von benutzerdaten in digitalen zellularen 3g-telekommunikationssystemen
CN104298687B (zh) 一种哈希分区管理方法及装置
CN103514229A (zh) 用于在分布式数据库系统中处理数据库数据的方法和装置
CN108009296A (zh) 一种基于Hbase的SQL查询方法、系统及相关装置
WO2021057164A1 (zh) 一种块链式账本中的查询方法、装置及设备
CN111078672A (zh) 数据库的数据对比方法及装置
CN107102995B (zh) 一种sql执行计划的确定方法及装置
CN109145625A (zh) 保单信息的处理方法、装置及区块链数据存储系统
WO2021057127A1 (zh) 一种基于多条业务属性的数据存储方法、装置及设备
CN107239568B (zh) 分布式索引实现方法及装置
WO2015131760A1 (zh) 加载网元对象的方法和装置及存储网元信息的方法和装置
CN110851343A (zh) 一种基于决策树的测试方法和装置
US10146822B1 (en) Automated script generator for processing storage system data files
CN107463618B (zh) 一种索引创建方法和装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15758214

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15758214

Country of ref document: EP

Kind code of ref document: A1