CN111082953A - Configuration method, device and related equipment - Google Patents

Configuration method, device and related equipment Download PDF

Info

Publication number
CN111082953A
CN111082953A CN201811224549.3A CN201811224549A CN111082953A CN 111082953 A CN111082953 A CN 111082953A CN 201811224549 A CN201811224549 A CN 201811224549A CN 111082953 A CN111082953 A CN 111082953A
Authority
CN
China
Prior art keywords
configuration
client
target object
server
request
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
CN201811224549.3A
Other languages
Chinese (zh)
Other versions
CN111082953B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201811224549.3A priority Critical patent/CN111082953B/en
Publication of CN111082953A publication Critical patent/CN111082953A/en
Application granted granted Critical
Publication of CN111082953B publication Critical patent/CN111082953B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04L41/0803Configuration setting

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the application discloses a configuration method, a configuration device and related equipment, which are used for reducing service loss. The method in the embodiment of the application comprises the following steps: a server side obtains a configuration request from a client side; the server side carries out resource configuration operation on resources in the network equipment according to the configuration request and obtains an operation result of the resource configuration operation, wherein the operation result indicates success or failure of the resource configuration operation on the resources of the network equipment; and the server generates a target object which adopts a data model language to represent the operation result, and sends the target object to the client.

Description

Configuration method, device and related equipment
Technical Field
The present application relates to the field of network communications, and in particular, to a configuration method, an apparatus, and a related device.
Background
A network device management system is a system for managing network devices. At present, a network management system can not only acquire status data of network devices, but also add, modify or delete resources of the network devices according to configuration data of the network devices. At the software level, the system generally includes a client (client) and a server (server). The client faces to the user and is used for receiving an operation request of the user to the network equipment and sending the operation request to the server; the server faces the network device and is used for carrying out corresponding operation on the network device according to the operation request of the network device.
In current network device management protocols, configuration operations of a network device by a server are asynchronous. The asynchronous means that after receiving a configuration request from a client, a server performs object configuration operation on an object stored in the server according to the configuration request, and sends a response of successful processing to the client after the object configuration operation is successful. The object stored by the server is used for describing the resource of the network equipment. And then, the server side performs resource configuration operation on the resources in the network equipment according to the object for completing the resource configuration operation.
Therefore, the client does not actually know whether the resource configuration operation on the network device is successful or failed, and if the resource configuration operation on the network device fails, the service data generated by the network device based on the original resource is the wrong service data, so that the normal operation of the service is affected.
Disclosure of Invention
The embodiment of the application provides a configuration method, a configuration device and related equipment, which are used for reducing service loss.
In a first aspect, an embodiment of the present application provides a configuration method, which is applied to a server. The method comprises the following steps: the server side obtains a configuration request from the client side. The configuration request is used for carrying out object configuration operation on the objects stored in the server. The objects are used to describe manageable resources in the network device. The objects may be stored in an object database. The server side carries out resource configuration operation on resources in the network equipment according to the configuration request and obtains an operation result of the resource configuration operation, wherein the operation result indicates success or failure of the resource configuration operation on the resources of the network equipment; and the server generates a target object which adopts a data model language to represent the operation result, and sends the target object to the client.
According to the method and the system, the server side generates the target object which adopts the data model language to represent the operation result by acquiring the operation result of resource configuration operation on the resources of the network equipment, and sends the target object to the client side, so that the client side can know whether the resource configuration operation on the resources in the network equipment is successful, and therefore a user can take measures to process in time under the condition that the resource configuration operation on the resources in the network equipment is failed, and loss of services is reduced.
Optionally, as an implementation manner in which the server actively sends the target object to the client, the server stores the target object in an object database of the server; based on storing the target object in the object database, the server sends an announcement to the client, wherein the announcement comprises the target object. The embodiment of the application realizes that the target object is announced to the client by utilizing the existing announcement mechanism.
Optionally, as another implementation manner in which the server passively sends the target object to the client, the method further includes: and the server side sends the storage address of the target object to the client side. Correspondingly, the sending the target object to the client includes: the server side obtains a query request from the client side, wherein the query request carries a storage address of the target object; and the server searches the target object according to the storage address of the target object and sends the target object to the network equipment client.
Optionally, the method further includes: and the server side performs object configuration operation on an object stored in the server side according to the configuration request, wherein the object is used for describing the resources of the network equipment.
Optionally, in order to obtain relevant information about operation results of the resource configuration operation for a user to make a correct decision, the target object is further used to represent at least one of the following data: the configuration data in the configuration request, the storage address of the object at the server, the operation identifier of the object configuration operation, the operation type of the object configuration operation and the operation time of the object configuration operation.
Optionally, the generating, by the server, a target object representing the operation result by using a data model language, and sending the target object to the client includes: and the server generates a target Yang object which adopts Yang language to represent the operation result, and sends the target Yang object to the client.
Optionally, if the operation result is that the resource configuration operation fails, in order to further solve the problem of the resource configuration failure, the method further includes: and the server side acquires a failure processing request from a client side and processes the network equipment according to the processing operation indicated by the failure processing request.
Optionally, the processing operation includes a retry operation, and the retry operation is used to re-execute a resource configuration operation on a resource of the network device.
In a second aspect, an embodiment of the present application further provides a configuration apparatus, where the apparatus deploys a server, and the apparatus includes: a request acquisition unit, configured to acquire a configuration request from a client; a resource allocation unit, configured to perform a resource allocation operation on a resource in a network device according to the allocation request, and obtain an operation result of the resource allocation operation, where the operation result indicates success or failure of the resource allocation operation on the resource of the network device; and the object sending unit is used for generating a target object which adopts a data model language to represent the operation result and sending the target object to the client.
Optionally, the sending the target object to the client includes: storing the target object in an object database of the server; based on storing the target object in the object database, sending an announcement to the client, the announcement including the target object.
Optionally, the apparatus further comprises: an address sending unit, configured to send a storage address of the target object to the client;
the sending the target object to the client comprises: acquiring a query request from the client, wherein the query request carries a storage address of the target object; and searching the target object according to the storage address of the target object, and sending the target object to the network equipment client.
Optionally, the apparatus further comprises: and the object configuration unit is used for carrying out object configuration operation on the object stored in the server according to the configuration request, wherein the object is used for describing the resources of the network equipment.
Optionally, the target object is further configured to represent at least one of the following data: the configuration data in the configuration request, the storage address of the object at the server, the operation identifier of the object configuration operation, the operation type of the object configuration operation and the operation time of the object configuration operation.
Optionally, the object sending unit is configured to generate a target Yang object that represents the operation result by using a Yang language, and send the target Yang object to the client.
Optionally, the apparatus further comprises: and the processing unit is used for acquiring the failure processing request from the client and processing the network equipment according to the processing operation indicated by the failure processing request.
Optionally, the processing operation includes a retry operation, and the retry operation is used to re-execute a resource configuration operation on a resource of the network device.
In a third aspect, an embodiment of the present application further provides a configuration device, including a processor and a memory, where the memory is used to store machine-readable instructions, and when the processor executes the machine-readable instructions in the memory, the configuration device executes the configuration method executed by the server.
Drawings
Fig. 1 is a block diagram of a configuration system according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a configuration method according to an embodiment of the present application;
fig. 3 is a schematic diagram of an ethernet architecture according to an embodiment of the present application;
fig. 4 is a block diagram of a configuration apparatus according to an embodiment of the present disclosure;
fig. 5 is a hardware architecture diagram of a configuration device according to an embodiment of the present application.
Detailed Description
In an existing network device management protocol, such as a RESTCONF protocol and a network configuration (NETCONF) protocol, a Yang model may be established in a server through a Yang language, and a Yang object in the Yang model is used to describe a manageable resource in a network device. The REST conf protocol is used to provide a hypertext transfer protocol (HTTP) interface conforming to the representational state transfer (REST) principle, and is compatible with the NETCONF data storage model. Yang is a data model language for modeling configuration data, state data, remote invocation instructions and notifications.
When the server performs configuration operation on the network device, firstly, object configuration operation is performed on the Yang object according to a configuration request sent by the client, and the object configuration operation generally comprises deleting, updating and creating the Yang object. And after the object configuration operation is successful, a response of successful processing is sent to the client. And then, the server performs resource configuration operation on the resources in the network equipment according to the Yang object after the object configuration operation. Resource configuration operations generally include deleting, updating, and creating resources. That is to say, at present, the configuration operation performed by the server on the network device is an asynchronous operation, and after receiving a successful response, the client considers that the success of the object configuration operation on the object may be regarded as the success of the resource configuration operation on the resource in the network device, but actually, the resource configuration operation on the resource in the network device may be failed, and since the client cannot know, once the resource configuration operation on the resource in the network device fails, the normal operation of the service may be affected.
In order to overcome the technical problem, embodiments of the present application provide a configuration system, a configuration method, and a configuration device, which are described in detail below with reference to the accompanying drawings.
First, an application scenario is taken as an example to describe the configuration system provided by the embodiment of the present application.
Referring to fig. 1, the figure is a block diagram of a configuration system provided in an embodiment of the present application.
The configuration system provided by the embodiment of the present application includes a server 101, a Software Defined Network (SDN) controller 102, and a network device 103. The server 101 is connected to the SDN controller 102, and the SDN controller 102 is connected to the network device 103.
A client may be deployed in server 101, and a server may be deployed in SDN controller 102. The client may be, for example, a client implementing the RESTCONF protocol or the NETCONF protocol; the server may be, for example, a server implementing the RESTCONF protocol or the NETCONF protocol.
The network device 103 may be, for example, an Internet Protocol (IP) network device, a Wavelength Division Multiplexing (WDM) network device, an Optical Transport Network (OTN) network device, and other types of network devices, which are not specifically limited in this embodiment of the present application.
The number of network devices 103 may be one or more.
The server 101 is configured to generate a configuration request in response to an operation by a user. Specifically, the client in the server 101 may generate a configuration request in response to an operation of a user, where the configuration request is used to perform an object configuration operation on an object in the server, for example, to create, update, or delete one or more objects.
The SDN controller 102 is configured to receive a configuration request from the server 101, perform an object configuration operation on an object stored in an object database according to the configuration request, and send a processing result to the server 101.
The SDN controller 102 is further configured to, after sending the processing result, perform a resource configuration operation on the resource in the network device 103 according to the configuration data, and obtain an operation result of performing the resource configuration operation on the network device 103, where the operation result indicates whether the resource configuration operation performed on the resource in the network device succeeds or fails.
The SDN controller 102 is further configured to generate a target object representing an operation result in a data model language, and send the target object to the server 101.
In the embodiment of the present application, the SDN controller 102 generates a target object representing an operation result by using a data model language through obtaining an operation result of performing a resource configuration operation on a resource of the network device 103, and sends the target object to the server 101, so that the server 101, in which the client is deployed, can know whether the resource configuration operation on the resource in the network device 103 is successful, and thus a user can take measures to process the resource configuration operation on the resource in the network device 103 in time when the resource configuration operation on the resource in the network device 103 fails, thereby reducing service loss.
It should be noted that, in addition to being deployed in the SDN controller 102 independent of the network device 103, the network device server may also be deployed directly in the network device 103, that is, in another embodiment, the configuration system may only include the server 101 and the network device 103. The network device client may be deployed in different hardware from the network device server as shown in fig. 1, or may be deployed in the same hardware, for example, both are deployed in the server 101, both are deployed in the SDN controller 102, or both are deployed in the network device 103, which is not specifically limited in this application.
Referring to fig. 2, the figure is a flowchart of a configuration method provided in an embodiment of the present application.
The configuration method provided by the embodiment of the application can be applied to a server, an SDN controller or network equipment with a server deployed, and specifically comprises the following steps:
s101: the server side obtains a configuration request from the client side.
In the embodiment of the present application, the server may receive a configuration request of the client, where the configuration request may be, for example, an HTTP request. The configuration request is used for carrying out object configuration operation on the objects stored in the server. Objects (e.g., Yang objects) are used to describe manageable resources in a network device, such as business objects, topological network objects, and the like. The object may be stored in an object database (e.g., Yang database). The resource manageable in the network device is, for example, a playlist of songs, and the object stored in the server may be a playlist embodied in the form of an object.
In an embodiment of the present application, the configuration request includes an operation type of the object configuration operation. For example, Yang patch (Yang-patch) operation, POST operation, PUT operation, Delete operation, and the like. Yang-patch operations may be used to create, delete, or update objects; POST operations may be used to create objects; PUT operations may be used to update objects; a Delete operation may be used to Delete an object. The update object may include, for example, an insert object, a merge object, a replace object, and the like.
For some configuration requests, the configuration data is also included, and is used for carrying out object configuration operation on the objects stored in the server. For example, the POST operation includes created content, and the PUT operation includes content for updating, which may be referred to as configuration data, according to which a new object may be created in the server or an original object may be updated. Assuming that the object stored in the server may be a playlist embodied in the form of an object, the configuration data may be used to add information of a song, such as a name of the song and a name of an artist, to the playlist embodied in the form of an object, for example.
After obtaining the configuration request, the server may analyze the configuration request to obtain configuration data in the configuration request. After the server side obtains the configuration data, syntax checking can be performed on the configuration data first, and whether the configuration data conforms to syntax rules or not is judged. Specifically, if the configuration data is expressed by the Yang model, the syntax of the configuration data may be checked based on the syntax rule of the Yang model. If the syntax rules are met, the object configuration operation can be carried out on the objects in the object database according to the configuration request, and a response of successful processing can be sent to the client after the object configuration is successful, so that the client knows that the object configuration operation is successful. And if the syntax rule is not met, not performing object configuration operation on the objects in the object database according to the configuration request, and simultaneously sending a response of processing failure to the client. Or, even if the object configuration operation fails according to the grammar rule, a response of processing failure may be sent to the client so that the client knows that the object configuration operation failed.
For example, assume that one of the grammar rules of the Yang model is: the bytes of the song title do not exceed 64 bytes. Then, if the server determines that the byte of the song name in the configuration data is less than or equal to 64 bytes, the configuration data is considered to be in accordance with the grammar rule, the step of performing object configuration operation on the object can be executed, and a response of successful processing is sent to the client. And if the server judges that the byte of the song name in the configuration data is larger than 64 bytes, the configuration data is considered not to conform to the grammar rule, and in the case, a response of processing failure is directly sent to the client without executing the step of carrying out object configuration operation on the object.
The configuration request may also include a storage address of an object performing the object configuration operation. The storage address of the object may be, for example, a Uniform Resource Identifier (URI) of the object. If the configuration request is used to create an object, the object may be created in the URI of the object. If the configuration request is for deleting an object, the object stored in the URI may be deleted. If the configuration request is for updating an object, the object stored in the URI may be updated.
In addition, it is understood that one configuration request may include one or more operation identifiers, and the operation identifiers and the configuration operations are in one-to-one correspondence, so that one configuration request may be used to perform one or more configuration operations. In order to identify different configuration operations, the configuration request may also carry an operation identifier (operation ID) of the configuration operation. When the target object is subsequently sent to the client, the target object may include a mapping relationship between the operation identifier of the configuration operation and the operation result of the configuration operation, so that the client can know which configuration operation has a problem.
S102: and the server side performs resource configuration operation on the resources in the network equipment according to the configuration request and acquires an operation result of the resource configuration operation.
In this embodiment, the network device may be a device independent of hardware where the server is located, or may be a device where the server is located. If the network device is a device where the server is located, the network device may be an SDN controller, or may be other types of network devices, such as a router, a switch, and the like.
In the embodiment of the application, after the server sends the response of successful processing to the client, the server may perform resource configuration operation on the resource of the network device according to the configuration request.
Specifically, firstly, the configuration request may be subjected to service verification, and whether the configuration request meets the service rule is checked.
For example, assume that one of the business rules is that the number of songs stored does not exceed 100. If the number of the song information (each song corresponds to one piece of song information) stored in the Yang database is less than or equal to 100 after the configuration data, namely the song information in the foregoing is stored in the Yang database, the configuration request is considered to be in accordance with the business rule, and the business verification result is successful; and if the number of the song information stored in the Yang database is more than 100, the configuration request is considered to be not in accordance with the business rule, and the business verification result is failure.
After the check result is that the service rule is met, configuration data for performing resource configuration operation on the resource of the network device can be generated according to the configuration request, so that the resource configuration operation on the resource in the network device is completed by using the configuration data for performing the resource configuration operation on the resource in the network device.
For example, see fig. 3, which is a schematic diagram of an ethernet architecture. In the figure, there are a source node X, a destination node Z, and four intermediate nodes, including intermediate node a, intermediate node B, intermediate node C, and intermediate node D. The source node X is connected with an intermediate node A, the intermediate node A is respectively connected with an intermediate node B and a relay node D, and the intermediate node B and the intermediate node D are both connected with an intermediate node C. The intermediate node C is connected to the destination node Z.
Assume that ethernet traffic is currently required to be established between node X and node Z. The client may send a configuration request to the server, where the configuration request includes the name of the service source node (e.g., intermediate node a) transmitting the ethernet service, and parameters of an ingress port (e.g., port 1), the name of the service sink node (e.g., intermediate node C) and an egress port (e.g., port 6), the type of service signal (i.e., ethernet service), the name of the service (e.g., client _1), and so on.
After receiving the configuration request, the server may perform object configuration operation on the object stored in the server according to the configuration data in the configuration request, and then convert the configuration data used for the object configuration operation into configuration data used for performing resource configuration operation on resources in each node. And determining that the service path of the Ethernet service is intermediate node A, intermediate node B and intermediate node C through network path calculation, so that the server generates configuration data of resource configuration operation for the three nodes. Wherein the configuration data of the intermediate node a comprises: the type of port signal (e.g., ethernet traffic), the name of the traffic (e.g., client _1), and the port numbers (port 1 and port 2) that are crossed; the configuration data of the intermediate node B includes: the type of port signal (e.g., ethernet traffic), the name of the traffic (e.g., client _1), and the port numbers (port 3 and port 4) that are crossed; the configuration data of the intermediate node C includes: the type of port signal (e.g., ethernet traffic), the name of the traffic (e.g., client _1), and the port numbers (port 5 and port 6) that are crossed. After the intermediate node a performs the resource configuration operation according to the configuration data of the intermediate node a, the ethernet service flow named client _1 from the source node X may be received from the port 1 of the intermediate node a and output from the port 2 of the intermediate node a. After the intermediate node B performs the resource configuration operation according to the configuration data of the intermediate node B, the ethernet traffic flow named client _1 from the intermediate node a may be received from the port 3 of the intermediate node B and output from the port 4 of the intermediate node B. After the intermediate node C performs the resource configuration operation according to the configuration data of the intermediate node C, the ethernet service flow named client _1 from the intermediate node B may be received from the port 5 of the intermediate node C, and output from the port 6 of the intermediate node C, and finally reach the destination node Z.
It should be noted that, if the server is not deployed in the network device, the configuration data for performing the resource configuration operation on the resource in the network device needs to be sent to the corresponding network device, so that the corresponding network device completes the resource configuration operation according to the received configuration data.
In this process, failures may occur in three links: a checking link, a sending link and a configuration link. The checking link is the link for checking the configured data; the sending link is a link for sending configuration data for performing resource configuration operation on resources of the network equipment to the network equipment; the configuration link is a link for executing resource configuration operation by the network device according to the configuration data for performing resource configuration operation on the network device. If all three links are available, the operation result of the network equipment is failed as long as one link of the three links is wrong; only if the three links are normal, the operation result of the network equipment is successful. Of course, in practical applications, there may be no transmission link and/or no verification link.
S103: and the server generates a target object which adopts a data model language to express an operation result, and sends the target object to the client.
When the operation result of the network device is failure, the client needs to be informed, so that the user can take corresponding measures to solve the problem that the configuration of the network device is unsuccessful. The client may also be notified if the result of the operation of the network device is successful.
In the embodiment of the application, the target object which adopts the data model language to represent the operation result is generated, and the target object is sent to the client, so that the purpose of informing the client is achieved. Alternatively, the target object may be a target Yang object or other type of object.
The operation result in the target object may be represented by a preset field. For example, 01 indicates success and 00 indicates failure. The operation result may include, in addition to a field indicating the operation result on the network device, the operation identifier of the aforementioned object configuration operation, so that the client knows which configuration operation is problematic.
It should be noted that, for some types of object configuration operations, for example, Yang-patch operations, an operation request corresponding to the object configuration operation generally carries an operation identifier of the object configuration operation, and then a target object may be generated directly according to the operation identifier of the object configuration operation and an operation result of the resource configuration operation.
For other types of object configuration operations, such as POST operation, PUT operation, and Delete operation, corresponding operation requests do not generally carry operation identifiers of the object configuration operations, and then the server may generate corresponding operation identifiers for the object configuration operations, so as to generate target objects according to the generated operation identifiers of the object configuration operations and operation results of the resource configuration operations.
In addition, in practical applications, there are various ways to send the target object to the client, and these ways can be divided into two ways, one is active sending and the other is passive sending.
Active transmission can be implemented in two ways: as one possible implementation manner, the target object is directly sent to the client after being generated, and the target object does not pass through the object database. As another possible implementation manner, after the target object is generated, the target object may be stored in an object database, and then based on the target object stored in the object database, the server sends a notification (notification) to the client, where the notification carries the target object.
The passive mode can be as follows: firstly, an inquiry request from the client is obtained, wherein the inquiry request carries a storage address of a target object. And then, searching the target object according to the storage address of the target object, and sending the searched target object to the network equipment client. It can be understood that, before receiving the query request, the server needs to send the storage address of the target object to the client, so that the query request can carry the storage address of the target object.
If the target object is stored in the object database, the storage address of the target object may be the storage address of the target object in the object database. For example, if the target object is a target Yang object, the address of the target Yang object may include a URI of a Yang model where the target Yang object is located, and the URI of the Yang model where the target Yang object is located may be regarded as a storage address of the target Yang object in the Yang database.
Of course, the three implementation manners described above do not constitute limitations to the technical solution of the present application, and a person skilled in the art may design the implementation manners according to actual situations.
In addition, in order to enable a user to obtain relevant information about operation results of resource configuration operations so that the user can make a correct decision, the target object is further used for representing the configuration data, a storage address of an object performing the object configuration operations at a server, an operation identifier of the object configuration operations, an operation type of the object configuration operations, and operation time of the object configuration operations.
According to the method and the system, the server side generates the target object which adopts the data model language to represent the operation result by acquiring the operation result of resource configuration operation on the resources of the network equipment, and sends the target object to the client side, so that the client side can know whether the resource configuration operation on the resources in the network equipment is successful, and therefore a user can take measures to process in time under the condition that the resource configuration operation on the resources in the network equipment is failed, and loss of services is reduced.
In addition, if the client receives an operation result of a failure of the resource configuration operation on the resource in the network device, the client may send a failure processing request to the server, so that the server performs corresponding processing on the network device with the failure of the configuration operation. The failure handling request may be generated based on a user trigger or may be automatically generated.
And the server side acquires the failure processing request from the client side and processes the network equipment according to the processing operation indicated by the failure processing request. The processing operation may be, for example, a retry (retry) operation. The retry operation refers to re-performing a resource configuration operation on a resource in the network device.
Referring to fig. 4, an embodiment of the present application further provides a configuration device, where the device deploys a server, and may implement the function of the server in the embodiment shown in fig. 2. The device comprises: a request acquisition unit 201, a resource configuration unit 202, and an object transmission unit 203. The request obtaining unit 201 is configured to execute S101 in the embodiment shown in fig. 2, the resource configuring unit 202 is configured to execute S102 in the embodiment shown in fig. 2, and the object sending unit 203 is configured to execute S103 in the embodiment shown in fig. 2. In particular, the method comprises the following steps of,
a request acquisition unit 201, configured to acquire a configuration request from a client;
a resource configuration unit 202, configured to perform a resource configuration operation on a resource in a network device according to the configuration request, and obtain an operation result of the resource configuration operation, where the operation result indicates success or failure of the resource configuration operation performed on the resource of the network device;
an object sending unit 203, configured to generate a target object that represents the operation result in a data model language, and send the target object to the client.
According to the method and the system, the server side generates the target object which adopts the data model language to represent the operation result by acquiring the operation result of resource configuration operation on the resources of the network equipment, and sends the target object to the client side, so that the client side can know whether the resource configuration operation on the resources in the network equipment is successful, and therefore a user can take measures to process in time under the condition that the resource configuration operation on the resources in the network equipment is failed, and loss of services is reduced.
Referring to fig. 5, the figure is a block diagram of a configuration device according to an embodiment of the present application.
The configuration device 300 provided in the embodiment of the present application may implement the function of the server in the embodiment shown in fig. 2.
The configuration device 300 includes: a processor 301 and a memory 302. The memory 302 is used for storing machine-readable instructions, and when the processor 301 executes the machine-readable instructions in the memory 302, the configuration method executed by the server in the above embodiments is executed.
The processor 301, the memory 302, and the communication unit 303 are connected to each other by a bus 304; the bus 304 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
In particular implementations, the memory 302 may include a request acquisition unit 3021, a resource configuration unit 3022, and an object transmission unit 3023, storing computer readable instructions for implementing the request acquisition unit 201, the resource configuration unit 202, and the object transmission unit 203, respectively, shown in fig. 4. Accordingly, the processor 301 specifically realizes the function of the request acquisition unit 201 by executing the instruction in the request acquisition unit 3021, the function of the resource configuration unit 202 by executing the instruction of the resource configuration unit 3022, and the function of the object transmission unit 203 by executing the instruction of the object transmission unit 3023.
The processor 301 may be, for example, a Central Processing Unit (CPU), a general purpose processor, a Digital Signal Processor (DSP), an application-specific integrated circuit (ASIC), a Field Programmable Gate Array (FPGA), other programmable logic devices (FPGAs), a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. A processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, a DSP and a microprocessor, or the like. Processor 301 may represent only one processor or may represent multiple processors.
The memory 302 may be a random-access memory (RAM), a flash memory (flash), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a register (register), a hard disk, a removable hard disk, a CD-ROM, or any other form of storage medium known to those skilled in the art. The memory 302 may represent only one memory or may represent a plurality of memories.
The communication unit 703 may be, for example, an I/O interface, a LAN interface, a WAN interface, or the like.
When the configuration device 300 is capable of executing the configuration method executed by the server in the embodiment corresponding to fig. 2, the object database may be included in the configuration device 300. The object database may be stored in the memory 302 or other hardware storage medium in the configuration device 300. Furthermore, the object database may be located in another hardware device different from the configuration device 300. For the client in the embodiment corresponding to fig. 2, it may be implemented by the configuration device 300, or may be implemented by another hardware device. Both the server and the client may refer to software functional entities based on a processor, a memory, and computer readable instructions in the memory.
Embodiments of the present application further provide a computer-readable storage medium, which includes instructions that, when executed on a computer, cause the computer to perform the above configuration method applied to configure a device server.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in this invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The above-described embodiments are intended to explain the objects, aspects and advantages of the present invention in further detail, and it should be understood that the above-described embodiments are merely exemplary embodiments of the present invention.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (17)

1. A method of configuration, the method comprising:
a server side obtains a configuration request from a client side;
the server side carries out resource configuration operation on resources in the network equipment according to the configuration request and obtains an operation result of the resource configuration operation, wherein the operation result indicates success or failure of the resource configuration operation on the resources of the network equipment;
and the server generates a target object which adopts a data model language to represent the operation result, and sends the target object to the client.
2. The method of claim 1, wherein sending the target object to the client comprises:
the server stores the target object in an object database of the server;
based on storing the target object in the object database, the server sends an announcement to the client, wherein the announcement comprises the target object.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
the server side sends the storage address of the target object to the client side;
the sending the target object to the client comprises:
the server side obtains a query request from the client side, wherein the query request carries a storage address of the target object;
and the server searches the target object according to the storage address of the target object and sends the target object to the network equipment client.
4. The method according to any one of claims 1-3, further comprising:
and the server side performs object configuration operation on an object stored in the server side according to the configuration request, wherein the object is used for describing the resources of the network equipment.
5. The method of claim 4, wherein the target object is further configured to represent at least one of:
the configuration data in the configuration request, the storage address of the object at the server, the operation identifier of the object configuration operation, the operation type of the object configuration operation and the operation time of the object configuration operation.
6. The method according to any one of claims 1-5, wherein the server generates a target object representing the operation result in a data model language, and sending the target object to the client comprises:
and the server generates a target Yang object which adopts Yang language to represent the operation result, and sends the target Yang object to the client.
7. The method according to any one of claims 1-6, further comprising:
and the server side acquires a failure processing request from a client side and processes the network equipment according to the processing operation indicated by the failure processing request.
8. The method of claim 7, wherein the processing operation comprises a retry operation, and wherein the retry operation is used to re-perform a resource configuration operation on a resource of the network device.
9. A configuration apparatus, wherein the apparatus deploys a server, the apparatus comprising:
a request acquisition unit, configured to acquire a configuration request from a client;
a resource allocation unit, configured to perform a resource allocation operation on a resource in a network device according to the allocation request, and obtain an operation result of the resource allocation operation, where the operation result indicates success or failure of the resource allocation operation on the resource of the network device;
and the object sending unit is used for generating a target object which adopts a data model language to represent the operation result and sending the target object to the client.
10. The apparatus of claim 9, wherein the sending the target object to the client comprises:
storing the target object in an object database of the server; based on storing the target object in the object database, sending an announcement to the client, the announcement including the target object.
11. The apparatus of claim 9 or 10, further comprising:
an address sending unit, configured to send a storage address of the target object to the client;
the sending the target object to the client comprises:
acquiring a query request from the client, wherein the query request carries a storage address of the target object; and searching the target object according to the storage address of the target object, and sending the target object to the network equipment client.
12. The apparatus according to any one of claims 9-11, further comprising:
and the object configuration unit is used for carrying out object configuration operation on the object stored in the server according to the configuration request, wherein the object is used for describing the resources of the network equipment.
13. The apparatus of claim 12, wherein the target object is further configured to represent at least one of:
the configuration data in the configuration request, the storage address of the object at the server, the operation identifier of the object configuration operation, the operation type of the object configuration operation and the operation time of the object configuration operation.
14. The apparatus according to any one of claims 9 to 13,
and the object sending unit is used for generating a target Yang object which adopts Yang language to represent the operation result and sending the target Yang object to the client.
15. The apparatus according to any one of claims 9-14, further comprising:
and the processing unit is used for acquiring the failure processing request from the client and processing the network equipment according to the processing operation indicated by the failure processing request.
16. The apparatus of claim 15, wherein the processing operation comprises a retry operation, and wherein the retry operation is configured to re-perform a resource configuration operation on a resource of the network device.
17. A configuration device comprising a processor and a memory, wherein the memory is configured to store machine-readable instructions, and when the processor executes the machine-readable instructions in the memory, the configuration device performs the configuration method performed by the server according to any one of claims 1 to 8.
CN201811224549.3A 2018-10-19 2018-10-19 Configuration method, device and related equipment Active CN111082953B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811224549.3A CN111082953B (en) 2018-10-19 2018-10-19 Configuration method, device and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811224549.3A CN111082953B (en) 2018-10-19 2018-10-19 Configuration method, device and related equipment

Publications (2)

Publication Number Publication Date
CN111082953A true CN111082953A (en) 2020-04-28
CN111082953B CN111082953B (en) 2022-11-22

Family

ID=70309618

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811224549.3A Active CN111082953B (en) 2018-10-19 2018-10-19 Configuration method, device and related equipment

Country Status (1)

Country Link
CN (1) CN111082953B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113794583A (en) * 2021-08-15 2021-12-14 新华三信息安全技术有限公司 Configuration method and device
CN114006812A (en) * 2021-10-30 2022-02-01 杭州迪普信息技术有限公司 Configuration method and device of network equipment
CN116056240A (en) * 2023-04-03 2023-05-02 阿里巴巴(中国)有限公司 Resource allocation system, method and equipment
CN116389593A (en) * 2023-04-17 2023-07-04 阿里巴巴(中国)有限公司 Resource configuration method, system and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100333104A1 (en) * 2009-06-26 2010-12-30 Microsoft Corporation Service-Based Endpoint Discovery for Client-Side Load Balancing
CN102148817A (en) * 2010-12-08 2011-08-10 华为技术有限公司 Network equipment configuration method, client, server and network system
CN102368716A (en) * 2011-11-29 2012-03-07 迈普通信技术股份有限公司 Data acquisition method of network configuration protocol and network configuration server
CN102427409A (en) * 2012-01-31 2012-04-25 迈普通信技术股份有限公司 Configuration data submission method based on network configuration (NETCONF) protocol and server thereof
CN106301956A (en) * 2016-09-27 2017-01-04 北京交通大学 A kind of network equipments configuration management method based on NETCONF
CN108200165A (en) * 2017-12-29 2018-06-22 广东欧珀移动通信有限公司 Ask Transmission system, method, apparatus and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100333104A1 (en) * 2009-06-26 2010-12-30 Microsoft Corporation Service-Based Endpoint Discovery for Client-Side Load Balancing
CN102148817A (en) * 2010-12-08 2011-08-10 华为技术有限公司 Network equipment configuration method, client, server and network system
CN102368716A (en) * 2011-11-29 2012-03-07 迈普通信技术股份有限公司 Data acquisition method of network configuration protocol and network configuration server
CN102427409A (en) * 2012-01-31 2012-04-25 迈普通信技术股份有限公司 Configuration data submission method based on network configuration (NETCONF) protocol and server thereof
CN106301956A (en) * 2016-09-27 2017-01-04 北京交通大学 A kind of network equipments configuration management method based on NETCONF
CN108200165A (en) * 2017-12-29 2018-06-22 广东欧珀移动通信有限公司 Ask Transmission system, method, apparatus and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113794583A (en) * 2021-08-15 2021-12-14 新华三信息安全技术有限公司 Configuration method and device
CN113794583B (en) * 2021-08-15 2023-12-29 新华三信息安全技术有限公司 Configuration method and device
CN114006812A (en) * 2021-10-30 2022-02-01 杭州迪普信息技术有限公司 Configuration method and device of network equipment
CN116056240A (en) * 2023-04-03 2023-05-02 阿里巴巴(中国)有限公司 Resource allocation system, method and equipment
CN116389593A (en) * 2023-04-17 2023-07-04 阿里巴巴(中国)有限公司 Resource configuration method, system and electronic equipment
CN116389593B (en) * 2023-04-17 2024-01-23 阿里巴巴(中国)有限公司 Resource configuration method, system and electronic equipment

Also Published As

Publication number Publication date
CN111082953B (en) 2022-11-22

Similar Documents

Publication Publication Date Title
CN111082953B (en) Configuration method, device and related equipment
EP3806405B1 (en) Method and network node for sending network performance parameter and calculating network performance
US11258667B2 (en) Network management method and related device
CN110582760B (en) Method, system and computer readable medium for providing message encoding/decoding as a service
KR101562155B1 (en) Service process control method and network device
CN111259072B (en) Data synchronization method, device, electronic equipment and computer readable storage medium
CN110166299B (en) SDN controller configuration recovery method and device
CN113015165A (en) Internet of things platform device access method, device and system
JP2019525604A (en) Network function NF management method and NF management apparatus
CN110912727B (en) System and method for non-intrusive network performance monitoring
CN110971438A (en) Method and device for configuring data
CN115516840A (en) Information processing method, device, system, medium, chip and program
US10182132B2 (en) Method, apparatus and system for communication between OpenFlow device and IP network device
CN111614580A (en) Data forwarding method, device and equipment
WO2015168981A1 (en) Attribute operating method and apparatus
CN110602234B (en) Block chain network node management method, device, equipment and storage medium
EP3128715B1 (en) Resource creation method and apparatus
CN113868367A (en) Method, device and system for constructing knowledge graph and computer storage medium
WO2020010906A1 (en) Method and device for operating system (os) batch installation, and network device
EP4224369A1 (en) Method, apparatus and system for managing machine learning model
US10511494B2 (en) Network control method and apparatus
JP2019511172A (en) System, method and device for securely managing network connection
CN115996187A (en) Routing information processing method and device, routing information interaction system and routing equipment
CN108141406B (en) Method, device and equipment for processing service fault
KR20190114126A (en) Software-defined network controller for controlling message transmission to switch based on processing completion delay time of message and method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant