Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method, an apparatus and a system for processing network element resources, which can issue information of manageable resources of a network element by using a standard protocol, and increase the universality of a network architecture for processing the information of the network element resources.
To solve the above technical problem, embodiments of the present invention provide the following technical solutions:
in one aspect, a method for processing network element resources is provided, including:
the network element resource processing device acquires first information of at least one manageable resource of a network element from the network element;
the network element resource processing device generates a first standard format document according to the first information of the manageable resource;
and the network element resource processing device issues the first standard format document through a standard issuing protocol.
The network element resource processing method further includes:
the network element resource processing device receives a processing instruction aiming at the first standard format document from a terminal;
and the network element resource processing device processes the first information of the manageable resource according to the processing instruction.
The step of the network element resource processing device receiving the processing instruction aiming at the first standard format document from the terminal is as follows:
the network element resource processing device receives a get reading instruction from a terminal;
the step of processing the first information of the manageable resource by the network element resource processing device according to the processing instruction is as follows:
the network element resource processing device sends the first standard format document to the terminal according to the get reading instruction;
or,
the step of the network element resource processing device receiving the processing instruction aiming at the first standard format document from the terminal is as follows:
the network element resource processing device receives an updating instruction from a terminal, wherein the updating instruction carries second information of the manageable resource;
the step of processing the first information of the manageable resource by the network element resource processing device according to the processing instruction is as follows:
the network element resource processing device acquires the second information of the manageable resource from the updating instruction;
and the network element resource processing device updates the first information of the manageable resource by using the second information of the manageable resource.
The update instruction includes: put establish instruction, post modify instruction, delete instruction.
The first standard format document is a first extensible markup language XML document, and the standard issuing protocol is an Atom issuing protocol; or
The first standard format document is a first WSDL document, and the standard issuing protocol is an Atom issuing protocol.
When the first standard format document is a first extensible markup language (XML) document and the standard issuing protocol is an Atom issuing protocol, the step of generating the first standard format document by the network element resource processing device according to the first information of the manageable resource comprises the following steps:
the network element resource processing device generates an Atom Feed seed document according to the first information of the manageable resource and an Atom joint format;
the network element resource processing device links the Atom seed documents to form the first XML document;
the step of the network element resource processing device issuing the first standard format document through a standard issuing protocol is as follows:
and the network element resource processing device issues the first XML document through an Atom issuing protocol.
The step that the network element resource processing device generates the Atom seed document according to the Atom joint format and the first information of the manageable resource comprises the following steps:
the network element resource processing device establishes a corresponding relation between first information of the table entry of the manageable resource and the record entry of the Atom seed document;
and the network element resource processing device generates an Atom seed document according to the corresponding relation and an Atom joint format.
The manageable resources include: configuration information, network performance parameters, network element data and alarm information.
In another aspect, an apparatus for processing network element resources is provided, including:
an obtaining unit, configured to obtain, from a network element, first information of at least one manageable resource of the network element;
the generating unit is used for generating a first standard format document according to the first information of the manageable resource;
and the issuing unit is used for issuing the first standard format document through a standard issuing protocol.
The network element resource processing apparatus further includes:
a receiving unit configured to receive a processing instruction for the first standard format document from a terminal;
and the processing unit is used for processing the first information of the manageable resource according to the processing instruction.
In another aspect, a network element resource processing system is provided, including: network element resource processing device and network element, network element resource processing device includes:
an obtaining unit, configured to obtain, from a network element, first information of at least one manageable resource of the network element;
the generating unit is used for generating a first standard format document according to the first information of the manageable resource;
and the issuing unit is used for issuing the first standard format document through a standard issuing protocol.
The network element resource processing system further includes: the terminal is connected to the network,
the network element resource processing device further comprises:
a receiving unit configured to receive a processing instruction for the first standard format document from a terminal;
and the processing unit is used for processing the first information of the manageable resource according to the processing instruction.
The embodiment of the invention has the following beneficial effects:
in the above solution, a network element resource processing device obtains first information of at least one manageable resource of a network element from the network element; the network element resource processing device generates a standard format document according to the first information of the manageable resource; and the network element resource processing device issues the first standard format document through a standard issuing protocol. Because the information of the manageable resources of the network element is released by adopting the standard protocol, the universality of a network architecture for processing the information of the network element resources is improved.
Detailed Description
In order to make the technical problems, technical solutions and advantages to be solved by the embodiments of the present invention clearer, the following detailed description will be given with reference to the accompanying drawings and specific embodiments.
The embodiment of the invention provides a network element resource processing method, a device and a system, aiming at the problem that the realization model of a distributed network system structure in the prior art adopts a private protocol and can not be used universally.
As shown in fig. 1, an embodiment of a network element resource processing method according to the present invention includes:
step 11, the network element resource processing device obtains first information of at least one manageable resource of the network element from the network element;
step 12, the network element resource processing device generates a first standard format document according to the first information of the manageable resource;
step 13, the network element resource processing device issues the first standard format document through a standard issuing protocol.
The manageable resources include: configuration information, network performance parameters, network element data and alarm information.
The first standard format document may be a first XML (Extensible Markup Language) document, and the standard publishing protocol may be an Atom publishing protocol; or
The first standard format document may be a first WSDL (web services Description Language) document, and the standard publishing protocol may be an Atom atomic publishing protocol.
Those skilled in the art will appreciate that the document may be a standard format document in other formats and the publication protocol may be other standard publication protocols.
In the above scheme, because the information of the manageable resources of the network element is released by adopting the standard release protocol, the universality of a network architecture for processing the information of the network element resources is increased.
As shown in fig. 2, another embodiment of the network element resource processing method according to the present invention includes:
step 21, the network element resource processing device obtains first information of at least one manageable resource of the network element from the network element; the manageable resources include: configuration information, network performance parameters, network element data and alarm information.
Step 22, the network element resource processing device generates a first standard format document according to the first information of the manageable resource;
step 23, the network element resource processing device issues the first standard format document through a standard issuing protocol.
Step 24, the network element resource processing device receives a processing instruction aiming at the first standard format document from a terminal;
and step 25, the network element resource processing device processes the first information of the manageable resource according to the processing instruction.
The first standard format document is a first extensible markup language XML document, and the standard issuing protocol is an Atom issuing protocol; or the first standard format document is a first WSDL document, and the standard issuing protocol is an Atom issuing protocol. Those skilled in the art will appreciate that the document may be a standard format document in other formats and the publication protocol may be other standard publication protocols.
Step 24 may specifically be:
the network element resource processing device receives a get reading instruction from a terminal;
corresponding to the step 24, the step 25 may specifically be: the network element resource processing device sends the first standard format document to the terminal according to the get reading instruction;
alternatively, step 24 may specifically be:
the network element resource processing device receives an updating instruction from a terminal, wherein the updating instruction carries second information of the manageable resource;
corresponding to the step 24, the step 25 may specifically include: the network element resource processing device acquires the second information of the manageable resource from the updating instruction;
and the network element resource processing device updates the first information of the manageable resource by using the second information of the manageable resource.
The update instruction includes: put establish instruction, post modify instruction, delete instruction.
In this way, the network element manager can send an instruction to the network element resource processing device through the terminal, and modify, delete or add the first information of the manageable resource of the network element through the processing instruction, and update the first information into the second information of the manageable resource.
Another embodiment of the method for processing network element resources according to the present invention is described below by taking, as an example, the first standard format document as a first extensible markup language XML document and the standard publishing protocol as an Atom publishing protocol, and as shown in fig. 3, the method includes:
step 31, the network element resource processing device obtains first information of at least one manageable resource of the network element from the network element; the manageable resources include: configuration information, network performance parameters, network element data and alarm information.
Step 32, the network element resource processing device generates a first XML (Extensible Markup Language) document according to the first information of the manageable resource;
wherein, the step 32 may specifically be:
step 321, the network element resource processing device generates an Atom Feed seed document according to the Atom union format and the first information of the manageable resource;
step 322, the network element resource processing device links the Atom seed document to form the first XML document;
step 321 specifically includes:
step 3211, the network element resource processing device establishes a correspondence between the first information of the entry of the manageable resource and the record entry of the Atom seed document;
step 3212, the network element resource processing device generates an Atom seed document according to the corresponding relationship and an Atom union format.
Step 33, said network element resource processing device issues said first XML document through Atom issuing protocol. Step 33 may specifically be: and the network element resource processing device issues the first XML document in an e-mail form or a webpage form.
Step 34, the network element resource processing device receives a processing instruction aiming at the first XML document from a terminal;
and step 35, the network element resource processing device processes the first information of the manageable resource according to the processing instruction.
Step 34 specifically comprises:
the network element resource processing device receives a get reading instruction from a terminal;
corresponding to step 345 above, step 35 is specifically:
the network element resource processing device sends the first standard format document to the terminal according to the get reading instruction; in this way, the user can obtain first information of the network element resource.
Alternatively, step 34 specifically includes:
the network element resource processing device receives an updating instruction from a terminal, wherein the updating instruction carries second information of the manageable resource;
corresponding to step 345 above, step 35 specifically includes:
step 351, the network element resource processing device obtains the second information of the manageable resource from the update instruction;
in step 352, the network element resource processing apparatus updates the first information of the manageable resource by using the second information of the manageable resource.
The corresponding relation between the first information of the table entry of the manageable resource and the record of the Atom Feed document is the same as the corresponding relation between the second information of the table entry of the manageable resource and the record of the Atom Feed document, so that the second information of the manageable resource can be extracted from the second XML document; the first information of the manageable resource is then updated using the second information of the manageable resource.
The update instruction includes: put establish instruction, post modify instruction, delete instruction.
The network element manager can send an instruction to the network element resource processing device through the terminal, and modify, delete or add the first information of the manageable resources of the network element to be updated into the second information through the updating instruction.
In addition, the mature resource Publishing mechanism of the Atom Publishing Protocol (APP) is used, so that the system development cost is reduced. The APP protocol is used for releasing the information of the manageable resources of the network element, and the network element user is facilitated to manage the network element resources according to personalized needs. The network element administrator can also subscribe the XML document in an e-mail or webpage mode, so that the network element administrator can know the latest condition of the managed network element resources in time.
The following describes an application scenario of the network element resource processing method according to the present invention. The method comprises the following steps:
step one, managing protocol definition
Management protocols are defined for different types of management resources in a network element, each of which is a simple standardized XML data format, and specifically relates to a Common configuration Protocol (Common configuration Protocol), a Common Performance Protocol (Common Performance Protocol), a Common Security Protocol (Common Security Protocol), and a Common alarm Protocol (Common Alert Protocol), which respectively correspond to configuration information, network Performance parameters, network element data, and alarm information in manageable resources.
Step two, generating a resource document
The following takes routing table management as an example.
The network element resource processing device extracts one table entry from the routing table each time, the table entries are in the format of a target network, a next hop address and a measure, and the process is executed circularly until the extraction of all the N routing table entries is completed. And the network element resource processing device generates an Atom Feed document from all the collected routing table entries.
The document can be generated in one of two ways according to the resource type:
the first method comprises the following steps: the document is generated regularly according to the period of the fixed event, the document can be stored according to the time stamp in a history way, and only the latest document information can be stored in a covering way;
the second method is as follows: and generating according to the occurrence time sequence of the events, and storing all the events.
Since the routing table configuration information is relatively simple, the specific content thereof is directly defined by the content element of the record (entry) in the Atom summary document, as shown in the following example:
<entry>
< title > Route 1</title > (the code represents Route 1)
< ID > urn: uuid:1225c695-cfb8-4ebb-aaaa ] (the code represents a physical ID)
Identification)
< updated >2008-12-29T13:30:55Z </updated > (the code represents the update time)
<content type=″text″>{target_network}{next_hop}{matric}</content>
(the code represents the target network, the next hop address, and the measure for route 1)
</entry>
Each Atom Feed document in the network element corresponds to a manageable resource, for example, a routing table, an access control table or an interface table corresponds to an Atom Feed document respectively. The network element resource processing device synthesizes all Atom Feed documents, generates APP service documents according to an APP protocol, namely generates XML documents according to an Atom joint format.
Each set in the APP service document corresponds to a type of resource (i.e., an Atom Feed document). Each record in the AtomFeed document corresponds to an entry in the corresponding resource, such as a record in the AtomFeed document representing a routing table corresponding to a route in the routing table.
Step three, information publishing
And the network element resource processing device maps the generated Atom Feed document to one set of APP resource documents, so that the generated resource document is published. And the network element resource processing device issues the generated resource document.
Step four, managing resource information
A network element manager acquires APP Resource documents of each network element through a URL (Uniform Resource Location) or through a customized email, and then manages the network element resources by using four standardized operations, namely a get reading instruction, a put establishing instruction, a post modifying instruction, and a delete deleting instruction. In this embodiment, four standardized operations, i.e., get, put, post, and delete, may be used to perform management operations such as reading, creating, modifying, and deleting on the routing table.
get is used for inquiring and reading operation put is used for uploading data; post is used for creating objects and inserting data; delete is used to delete objects and existing data records.
As shown in fig. 4, an embodiment of a network element resource processing apparatus 4 according to the present invention includes:
an obtaining unit 41, configured to obtain, from a network element, first information of at least one manageable resource of the network element;
a generating unit 42, configured to generate a first standard format document according to the first information of the manageable resource;
the issuing unit 43 is configured to issue the first standard format document through a standard issuing protocol.
The manageable resources comprise configuration information, network performance parameters, network element data and alarm information.
The first standard format document may be a first extensible markup language, XML, document, and the standard publishing protocol may be an Atom publishing protocol; or
The first standard format document may be a first WSDL document and the standard publishing protocol may be an Atom publishing protocol.
When the first standard format document is a first extensible markup language XML document and the standard publishing protocol is Atom publishing protocol, the generating unit 42 includes:
a generating subunit, configured to generate an Atom Feed seed document according to an Atom union format according to the first information of the manageable resource; specifically, the method comprises the following steps: the generating subunit establishes a corresponding relation between the first information of the table entry of the manageable resource and the record entry of the Atom Feed document; and generating the Atom Feed document according to the corresponding relation.
And the link subunit is used for linking the Atom Feed document to form the first XML document.
In the above scheme, because the information of the manageable resources of the network element is released by adopting the standard protocol, the universality of a network architecture for processing the information of the network element resources is increased.
When the first standard format document is a first extensible markup language XML document and the standard Publishing Protocol is an Atom Publishing Protocol, a mature resource Publishing mechanism of the Atom Publishing Protocol (APP) is used, and the system development cost is reduced. The APP protocol is used for releasing the information of the manageable resources of the network element, and the network element user is facilitated to manage the network element resources according to personalized needs. The network element administrator can also subscribe the XML document in an e-mail or webpage mode, so that the network element administrator can know the latest condition of the managed network element resources in time.
As shown in fig. 5, another embodiment of the network element resource processing apparatus 4 according to the present invention further includes:
a receiving unit 44 configured to receive a processing instruction for the first standard format document from a terminal;
and the processing unit 45 is configured to process the first information of the manageable resource according to the processing instruction.
The processing instruction is as follows: get read instruction or update instruction.
When the processing instruction is a get read instruction, the processing unit 45 includes: and the sending subunit is used for sending the first standard format document to the terminal. Thus, the network element manager can send a reading instruction to the network element resource processing device through the terminal, and obtain the first information of the manageable resource of the network element through the reading instruction.
When the processing instruction is an updating instruction, the updating instruction carries second information of the manageable resource; the processing unit 45 includes:
the acquiring subunit is configured to acquire the second information of the manageable resource from the update instruction;
and the updating subunit is used for updating the first information of the manageable resource by using the second information of the manageable resource.
The update instruction includes: put establish instruction, post modify instruction, delete instruction.
In this way, the network element manager can send an instruction to the network element resource processing device through the terminal, and modify, delete or add the first information of the manageable resource of the network element through the updating instruction, so as to update the first information of the manageable resource to the second information of the manageable resource.
As shown in fig. 6, an embodiment of a network element resource processing system 10 according to the present invention includes: network element resource handling means 40 and a network element 30.
The network element resource processing device 40 includes:
an obtaining unit 41, configured to obtain, from a network element, first information of at least one manageable resource of the network element;
a generating unit 42, configured to generate a first standard format document according to the first information of the manageable resource;
the issuing unit 43 is configured to issue the first standard format document through a standard issuing protocol.
Wherein, the network element processing means 40 may be disposed on the network element 30.
In the above scheme, because the information of the manageable resources of the network element is released by adopting the standard protocol, the universality of a network architecture for processing the information of the network element resources is increased.
In addition, the mature resource Publishing mechanism of the Atom Publishing Protocol (APP) is used, so that the system development cost is reduced. The APP protocol is used for releasing the information of the manageable resources of the network element, and the network element user is facilitated to manage the network element resources according to personalized needs. The network element administrator can also subscribe the XML document in an e-mail or webpage mode, so that the network element administrator can know the latest condition of the managed network element resources in time.
As shown in fig. 7, another embodiment of the network element resource processing system 10 according to the present invention further includes: and a terminal 50.
The network element resource processing apparatus 40 further includes:
a receiving unit 44 configured to receive a processing instruction for the first standard format document from a terminal;
and the processing unit 45 is configured to process the first information of the manageable resource according to the processing instruction.
In this way, the network element manager can send an instruction to the network element resource processing device through the terminal, and modify, delete or add the first information of the manageable resource of the network element to be updated into the second information through the updating instruction.
The invention provides a method for publishing and managing network element resources by using an identifier publishing protocol, such as an Atom publishing protocol, in a distributed network management system based on Web Service. The Atom publishing protocol is a mechanism for issuing and managing resources on network elements using basic HTTP GET, POST, PUT, and DELETE operation instructions. The invention applies the mechanism which is originally designed to release new articles to web blog (website blog) software in network element resource management, designs a network element resource management model, and realizes the release and management of configuration information, network performance parameters and data and alarm information in network elements by defining a standardized XML format.
The XML document may also be a WSDL (Web Services description language) document, which is an XML-based language. It will be appreciated by those skilled in the art that other formats of documents based on XML documents are possible.
The embodiment of the invention can adopt an independent system structure, the client and the server of the distributed network system do not need to be closely coupled, and the invention overcomes the defect of protocol universality existing in the realization model of the existing distributed network system structure and is suitable for the network environment with strong isomerism.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by a program, and the program may be stored in a readable storage medium of a mobile terminal, and when executed, the program includes the steps of the above method embodiments, the storage medium, and the like.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.