WO2023071717A1 - Operation and maintenance operation method and system, and network device - Google Patents

Operation and maintenance operation method and system, and network device Download PDF

Info

Publication number
WO2023071717A1
WO2023071717A1 PCT/CN2022/123609 CN2022123609W WO2023071717A1 WO 2023071717 A1 WO2023071717 A1 WO 2023071717A1 CN 2022123609 W CN2022123609 W CN 2022123609W WO 2023071717 A1 WO2023071717 A1 WO 2023071717A1
Authority
WO
WIPO (PCT)
Prior art keywords
maintenance
network device
message
maintenance operation
parameter
Prior art date
Application number
PCT/CN2022/123609
Other languages
French (fr)
Chinese (zh)
Inventor
张丽雅
杜佐钱
宋玮
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023071717A1 publication Critical patent/WO2023071717A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/16Time-division multiplex systems in which the time allocation to individual channels within a transmission cycle is variable, e.g. to accommodate varying complexity of signals, to vary number of channels transmitted
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/16Time-division multiplex systems in which the time allocation to individual channels within a transmission cycle is variable, e.g. to accommodate varying complexity of signals, to vary number of channels transmitted
    • H04J3/1605Fixed allocated frame structures
    • H04J3/1652Optical Transport Network [OTN]
    • 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/14Network analysis or design
    • 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/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/06Testing, supervising or monitoring using simulated traffic

Definitions

  • the present application relates to the field of network operation and maintenance, and in particular to an operation and maintenance operation method, system and network equipment.
  • Operators can automate network operation and maintenance management through the operation support system (OSS).
  • network operation and maintenance management may have multiple scenarios. This is because the operation and maintenance operation of the same network management function can be realized through various technologies, such as network connectivity test operation, loop back (LB) through operation administration and maintenance (OAM) of Ethernet (ethernet) ) commands, link trace (LT) commands, and connectivity check (CC) commands can all be implemented, but there are differences in the command lines or docking interfaces corresponding to the same operation and maintenance operations on network devices in different fields. For example, there are differences between the network connectivity test commands of the access domain and the network connectivity test commands of the transport domain.
  • network devices in different network domains or from different manufacturers have different input parameters, output parameters, and coordination parameters for the command line or interface of the same operation and maintenance operation.
  • a network includes network devices of multiple network domain types, it will result in the need to customize interfaces for various operation and maintenance operations on the network operation and maintenance system or OSS system. This leads to more complex implementation of operation and maintenance operations, and lower performance of its operation methods. Therefore, there is an urgent need for a general operation and maintenance operation method.
  • the present application provides an operation and maintenance operation method, system and network equipment, which are used to improve the operational performance of the operation and maintenance operation.
  • the present application provides an operation and maintenance operation method.
  • the method may be performed by the network device provided by the present application (the network device provided by the third aspect), and the method includes:
  • the first network device obtains a first message, the first message indicates a first operation and maintenance operation, and the first operation and maintenance operation includes a second operation and maintenance operation that needs to be performed by the second network device;
  • the second network device sends a second message, the second message instructs the second network device to perform the second operation and maintenance operation, and the second operation and maintenance operation is based on the first operation and maintenance operation and the operation and maintenance operation
  • the operation and maintenance template includes an operation and maintenance operation identifier and a conversion model, the operation and maintenance operation identifier indicates the first operation and maintenance operation, and the conversion model indicates the relationship between the first operation and maintenance operation and the second operation and maintenance operation. The conversion relationship of operation and maintenance operations.
  • the conversion model between the first operation and maintenance operation and the second operation and maintenance operation is realized according to the conversion model and the operation and maintenance operation identifier defined in the operation template.
  • Conversion so that no matter which operation and maintenance scenario is aimed at, the conversion between the first operation and maintenance operation and the second operation and maintenance operation can be realized through the conversion model, so that the first network device can send the second operation and maintenance operation to the second network device Two messages, using the second message to instruct the second network device to perform the second operation and maintenance operation, so as to provide a general operation and maintenance operation method in the network.
  • the conversion model includes a parameter model
  • the parameter model indicates a conversion relationship between a first input parameter of the first operation and maintenance operation and a second input parameter of the second operation and maintenance operation.
  • the conversion model includes a parameter model
  • the conversion of the first input parameter and the second input parameter can be realized through the parameter model, so that the conversion can be realized in advance when the second operation and maintenance operation needs input parameters, so that the operation and maintenance operation method more efficient.
  • the parameter model further indicates a conversion relationship between the first input parameter of the first operation and maintenance operation and the second message.
  • the first network device when it obtains the first input parameter, it can send a second message to the second network and device, thereby instructing the second network device, so that the operation and maintenance operation method is applicable Stronger.
  • the parameter model further indicates a conversion relationship between the first output parameter of the first operation and maintenance operation and the second output parameter of the second operation and maintenance operation.
  • the conversion model includes a parameter model
  • the conversion between the first output parameter of the first operation and maintenance operation and the second output parameter of the second operation and maintenance operation can be realized through the parameter model, further making the operation and maintenance operation method is more efficient.
  • the method further includes: the first network device obtains a response message of the second message, and the response message includes A second output parameter: the first network device obtains the first output parameter according to the parameter model and the second output parameter.
  • the first network device after obtaining the response message of the second message, obtains the first output parameter according to the parameter model and the second output parameter, so that the first operation can be realized through the parameter model.
  • the operation and maintenance template includes an operation and maintenance operation mode.
  • the operation and maintenance operation is further limited in the operation and maintenance template, and the accuracy of the operation and maintenance operation is increased.
  • the operation mode of operation and maintenance includes a synchronous mode or an asynchronous mode.
  • the operation mode of operation and maintenance includes a synchronous mode or an asynchronous mode
  • the synchronous mode or the asynchronous mode can be selected according to the characteristics of the operation and maintenance operation, thereby improving the flexibility of the operation and maintenance operation.
  • the method further includes: the first network device according to the operation and maintenance The operation policy determines that the operation and maintenance operation that can be performed by the second network device includes the second operation and maintenance operation.
  • the first network device determines, according to the operation and maintenance operation policy, that the operation and maintenance operations executable by the second network device include the second operation and maintenance operation, and then sends a second message to the second network device after the determination is made, Therefore, the application-level operation and maintenance operation strategy is judged in advance, and the application scope of the operation and maintenance operation method is controlled, thereby improving the flexibility of the operation and maintenance operation method.
  • the first network device is a top-level controller
  • the second network device is a domain controller or an intra-domain device under the first network device.
  • the second message is used to call a first application programming interface API of the second network device, and the first API is used for the second network device to perform the second operation and maintenance operation .
  • the first API may be called directly through the second message, so that the second network device performs the second operation and maintenance operation, thereby improving the efficiency of the operation and maintenance operation.
  • the present application provides an operation and maintenance operation method.
  • the method may be performed by the network device provided in the present application (the network device provided in the fourth aspect), and the method includes:
  • the second network device obtains a second message from the first network device, the second message instructs the second network device to perform a second operation and maintenance operation, and the second operation and maintenance operation is based on the first operation and maintenance operation and the operation and maintenance operation.
  • the first operation and maintenance operation is the operation and maintenance operation indicated by the first message obtained by the first network device, and the first operation and maintenance operation includes the first operation and maintenance operation that needs to be performed by the second network device.
  • Two operation and maintenance operations, the operation and maintenance template includes an operation and maintenance operation identifier and a conversion model, the operation and maintenance operation identifier indicates the first operation and maintenance operation, and the conversion model indicates the relationship between the first operation and maintenance operation and the second operation and maintenance operation 2. Conversion relationship of operation and maintenance operations;
  • the second network device executes the second operation and maintenance operation.
  • the conversion model includes a parameter model, where the parameter model indicates a conversion relationship between a first output parameter of the first operation and maintenance operation and a second output parameter of the second operation and maintenance operation, and the second After the network device performs the second operation and maintenance operation, it also includes:
  • the second network device obtains a response message of the second message, the response message includes a second output parameter, and the second output parameter is used by the first network device according to the parameter model and the second output parameter, get the first output parameter.
  • the present application provides a network device, and the network device includes:
  • Get the module It is used to obtain a first message, the first message indicates a first operation and maintenance operation, and the first operation and maintenance operation includes a second operation and maintenance operation that needs to be performed by the second network device;
  • a sending module configured to send a second message to the second network device, the second message instructing the second network device to perform the second operation and maintenance operation, the second operation and maintenance operation is based on the first Obtained from an operation and maintenance operation and an operation and maintenance template, the operation and maintenance template includes an operation and maintenance operation identifier and a conversion model, the operation and maintenance operation identifier indicates the first operation and maintenance operation, and the conversion model indicates the first operation and maintenance operation A conversion relationship between the maintenance operation and the second operation and maintenance operation.
  • the conversion model includes a parameter model
  • the parameter model indicates a conversion relationship between the first input parameter of the first operation and maintenance operation and the second input parameter of the second operation and maintenance operation.
  • the parameter model further indicates a conversion relationship between the first input parameter of the first operation and maintenance operation and the second message.
  • the parameter model further indicates a conversion relationship between the first output parameter of the first operation and maintenance operation and the second output parameter of the second operation and maintenance operation.
  • the method further includes: the first network device obtains a response message of the second message, and the response message includes a second output parameter; the first network device obtains the first output parameter according to the parameter model and the second output parameter.
  • the operation and maintenance template includes an operation and maintenance operation mode.
  • the operation mode of operation and maintenance includes synchronous mode or asynchronous mode.
  • the sending module is further configured to: determine according to the operation and maintenance operation policy that the operation and maintenance operations executable by the second network device include the second operation and maintenance operation.
  • the first network device is a top-level controller
  • the second network device is a domain controller or an intra-domain device under the first network device.
  • the second message is used to call a first application programming interface API of the second network device, and the first API is used for the second network device to perform the second operation and maintenance operation.
  • the present application provides a network device, which includes:
  • An acquisition module configured to acquire a second message from the first network device, the second message instructs the second network device to perform a second operation and maintenance operation, and the second operation and maintenance operation is performed by the first network device according to the first
  • the operation and maintenance operation and the operation and maintenance template are obtained, the first operation and maintenance operation is the operation and maintenance operation indicated by the first message obtained by the first network device, and the first operation and maintenance operation includes the operation and maintenance operation that requires the second
  • the second operation and maintenance operation performed by the network device the operation and maintenance template includes an operation and maintenance operation identifier and a conversion model, the operation and maintenance operation identifier indicates the first operation and maintenance operation, and the conversion model indicates the first operation and maintenance operation A conversion relationship between the operation and the second operation and maintenance operation;
  • a processing module configured to execute the second operation and maintenance operation.
  • the conversion model includes a parameter model
  • the parameter model indicates a conversion relationship between the first output parameter of the first operation and maintenance operation and the second output parameter of the second operation and maintenance operation
  • the processing module It is also used for: sending a response message of the second message to the first network device, where the response message includes the second output parameter, and the second output parameter is used by the first network device according to the The parameter model and the second output parameters are used to obtain the first output parameters.
  • an operation and maintenance operating system which includes:
  • the first network device is configured to obtain a first message, the first message indicates a first operation and maintenance operation, and the first operation and maintenance operation includes a second operation and maintenance operation that needs to be performed by the second network device;
  • the first network device is further configured to send a second message to the second network device, the second message instructs the second network device to perform the second operation and maintenance operation, and the second operation and maintenance operation It is obtained according to the first operation and maintenance operation and the operation and maintenance template, the operation and maintenance template includes an operation and maintenance operation identifier and a conversion model, the operation and maintenance operation identifier indicates the first operation and maintenance operation, and the conversion model indicates The conversion relationship between the first operation and maintenance operation and the second operation and maintenance operation;
  • the second network device is configured to acquire a second message from the first network device, and execute the second operation and maintenance operation.
  • an electronic device used as a first network device includes: a memory including instructions; a processor, when the processor executes the instructions, the electronic device realizes the above-mentioned The method of any one of the first aspects.
  • an electronic device used as a second network device includes: a memory including instructions; a processor, when the processor executes the instructions, the electronic device realizes the above-mentioned The method of any one of the second aspects.
  • a computer-readable storage medium is provided, and computer instructions are stored on the computer-readable storage medium.
  • the processor implements the above-mentioned first or second aspect. any one of the methods described.
  • a computer program product including computer instructions. When the computer instructions are executed, the method according to any one of the first aspect or the second aspect is implemented.
  • FIG. 1 is a schematic diagram of a system architecture applicable to operation and maintenance operations provided by an embodiment of the present application
  • Fig. 2 is a kind of operation and maintenance operation provided by the embodiment of the present application under the PING operation scenario between the PON domain and the OTN domain Applicable specific architecture schematic diagram;
  • FIG. 3 is a schematic diagram of a software architecture of a top-level controller provided in an embodiment of the present application
  • FIG. 4 is a schematic diagram of an implementation process of an operation and maintenance operation method provided in an embodiment of the present application.
  • FIG. 5 is a schematic flow chart of the steps of an operation and maintenance operation method provided in the embodiment of the present application.
  • FIG. 6 is a schematic flowchart of specific steps of an operation and maintenance operation method provided in an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a network device provided in an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a network device provided in an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • references to "one embodiment” or “some embodiments” or the like in this specification means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically stated otherwise.
  • the terms “including”, “comprising”, “having” and variations thereof mean “including but not limited to”, unless specifically stated otherwise.
  • multiple in the embodiments of the present application refers to two or more than two. In view of this, “multiple” can also be understood as “at least two” in the embodiments of the present application. "At least one” can be understood as One or more, such as being understood as one, two or more. For example, including at least one means including one, two or more, and does not limit which several are included. For example, including A, At least one of B and C, then it may include A, B, C, A and B, A and C, B and C, or A and B and C. Similarly, for "at least one" and other descriptions Understanding is also similar.
  • ordinal numerals such as “first” and “second” mentioned in the embodiments of the present application are used to distinguish multiple objects, and are not used to limit the order, timing, priority or importance of multiple objects.
  • FIG. 1 it is a schematic diagram of a system architecture to which an operation and maintenance operation method provided in the embodiment of the present application can be applied.
  • the system architecture may include: an operation support system (operation support system, OSS), a first network device, and a second network device.
  • the first network device takes a top-level controller (top-level controller, TC) as an example
  • the second network device takes a domain controller (domain controller, DC) or an in-domain device (in-domain device, DD) as an example for illustration.
  • the architecture can select the devices in the architecture according to specific scenarios.
  • the devices in the architecture can only include TC, DC, and DD, or can include OSS, TC, DC, and DD, and can also include OSS running devices (TC is a component of OSS) , DC and DD.
  • the "domain” in the above description refers to a network area divided by a certain standard, such as a network area that uniformly uses a certain technology, then the network devices in this network area can achieve efficient intercommunication between network devices because there are no technical barriers.
  • the functions of each device in the architecture may be: the OSS is used to deploy network services.
  • the OSS may deliver a service deployment request to the top-level controller by sending an OSS operation request to the top-level controller.
  • Network services include network operation and maintenance services, such as connectivity detection services, which are used to detect connectivity between network devices.
  • the top-level controller obtains the service request to be deployed by obtaining the first message.
  • the first message may come from the service deployment configuration input by the user on the top-level controller interface.
  • the first message may also come from a service request sent by a third-party system, for example, an OSS operation request sent by the OSS.
  • the first message may be in the form of a message, such as a northbound interface message sent by the OSS.
  • the first message indicates a first operation and maintenance operation
  • the OSS requires the top-level controller to perform an operation and maintenance operation of path connectivity detection.
  • the top-level controller needs to send multiple operation and maintenance operations to multiple domain controllers and/or multiple intra-domain network devices under the top-level controller.
  • the operation and maintenance operation of the path connectivity detection can be realized only after the above multiple operation and maintenance operations are executed.
  • the first operation and maintenance operation includes the operation and maintenance operation that needs to be performed by the domain controller or the device in the domain.
  • the first message acquisition method may be obtained according to the OSS operation request sent by the OSS running device, or may be obtained according to the local input information of the top-level controller.
  • the top-level controller needs to deploy operation and maintenance operations to the above-mentioned domain controllers or devices in the domain according to the operation and maintenance operation commands or interfaces.
  • the top-level controller converts the first operation and maintenance operation into the second message according to the conversion relationship between the first operation and maintenance operation and the operation and maintenance template.
  • the second message may be in the form of a message, which may be called a southbound operation command or a southbound interface message.
  • the first message includes the first input parameter, converting the first input parameter into a second input parameter of an operation command specifying a domain.
  • the second message includes a second input parameter.
  • the top-level controller is also used to send the second message to a domain controller or an intra-domain device.
  • the second message is used to invoke the domain controller of the specified domain to invoke an application programming interface (application programming interface, API) to execute the operation and maintenance operation corresponding to the API.
  • the second message can also be used to deliver operation and maintenance operation configurations to domain controllers or devices in the domain based on network operation and maintenance protocols.
  • Network operation and maintenance protocols include Netconf, SNMP, etc. or proprietary protocols, which are not limited here.
  • the domain controller of the designated domain is configured to receive the second message and execute the operation and maintenance operation indicated by the second message.
  • the domain controller of the designated domain is further configured to send the second message to the devices in the designated domain, and the devices in the domain implement service functions according to the second message.
  • the controller of the designated domain after the controller of the designated domain executes the operation and maintenance operation indicated by the second message, it will send a response message of the second message to the top-level controller.
  • the top-level controller obtains the response message and determines the execution status of the operation and maintenance operation according to the information carried in the corresponding message.
  • the response message includes the second output parameter
  • the top-level controller converts the second output parameter into the first output parameter according to the operation and maintenance template.
  • each device in the above architecture is only examples, and the specific functions of each device can be flexibly adjusted according to actual application scenarios.
  • the first output parameter may not be involved and the second output parameter, that is, after the device in the domain executes the operation command according to the second input parameter, it does not need to obtain the second output parameter, and the response message does not need to include the second output parameter.
  • the operation and maintenance template corresponding to any operation and maintenance operation is pre-arranged.
  • the conversion relationship required in various scenarios is defined.
  • the operation and maintenance template includes the conversion relationship between the first input parameter and the second input parameter, and the conversion relationship between the first output parameter and the second output parameter.
  • the top-level controller converts the first message into the second message
  • the second message can be executed directly when it arrives at the device in the domain, so that the device in the domain can implement operation and maintenance operations.
  • the second network device involved can preload the second operation and maintenance operation, so that the second network device (such as a device in the domain) can receive the corresponding second operation and maintenance operation , it can be determined that it is the second operation and maintenance operation of pre-mounting, and then the second operation and maintenance operation can be executed.
  • the services realized by the above architecture can be intra-domain services or cross-domain services.
  • intra-domain services intra-domain devices performing service functions only involve intra-domain devices in one network area; for cross-domain services, intra-domain devices performing service functions need to involve intra-domain devices in multiple network areas.
  • the OSS outputs an OSS operation request for connectivity detection to the top-level controller
  • the top-level controller converts the first input parameter of the connectivity detection in the OSS operation request into connectivity by executing the OSS operation request.
  • the second input parameter detected, and then the domain controller sends the second input parameter of connectivity detection to the devices in the local area network, and the second input parameter is included in the second message of connectivity detection, then the devices in the local area network will According to the second input parameter, the operation command of connectivity detection can be successfully executed; for cross-domain services, such as Internet packets between passive optical network (passive optical network, PON) and optical transport network (optical transport network, OTN)
  • the explorer (packet internet groper, PING) operation can be realized through the link trace (LT) technology, then it is necessary to mount the respective second operation and maintenance operation (LT operation command) in both the PON domain and the OTN domain , so that the execution of the second O&M operation in both the PON domain and the OTN domain is legal.
  • the OSS When the OSS needs to perform link tracking between the PON domain and the OTN domain, it will issue the second Second operation and maintenance operation (may include the corresponding second input parameter of LT), the intra-domain devices in the PON domain and OTN domain execute the corresponding link tracking operation command to realize the link tracking function between the PON domain and the OTN domain.
  • the second Second operation and maintenance operation may include the corresponding second input parameter of LT
  • the top-level controller can include the following software modules:
  • the service designer is used to bind the operation and maintenance template and the business model, and generate operation application strategies, which are used to control network operation and maintenance operations in different situations.
  • the business model is the model of the encapsulated network operation and maintenance function, which is used to realize the general network operation and maintenance function.
  • the business model can combine different application scenarios of an operation and maintenance operation together.
  • a northbound application programming interface (application programming interface, API) is used to receive the first message, such as an OSS operation request, and trigger the operation executor to generate the first operation and maintenance operation according to the operation application policy.
  • API application programming interface
  • a business graphical user interface (graphical user interface, GUI) is configured to receive a first message, such as a user operation request, and trigger an operation executor to execute and generate a first operation and maintenance operation according to an operation application policy.
  • a first message such as a user operation request
  • an operation executor to execute and generate a first operation and maintenance operation according to an operation application policy.
  • Logic processor used to perform business logic processing according to the set business logic.
  • the operation designer is used to generate operation and maintenance templates according to operation requirements, and manage operation and maintenance templates through the operation and maintenance template library.
  • the operation and maintenance template library is used to maintain the operation and maintenance template, wherein the maintenance includes storing, modifying, querying and adding the operation and maintenance template, etc.
  • the operation executor is used to generate the second message according to the operation and maintenance template, display the input interface and output interface, receive the request, and display the processing result, and is also used to analyze the content of the first message according to the definition of the parameter model in the operation and maintenance template
  • the parameters are input and passed to the southbound adapter module, distributed to each domain controller, and used to parse and display the return of each domain controller according to the definition of the output parameter model in the operation and maintenance template.
  • FIG. 4 A schematic diagram of an implementation process of an operation and maintenance operation method provided by an embodiment of the present application will be described in detail below with reference to FIG. 4 . As shown in Figure 4, the specific steps of the implementation process are as follows:
  • Step 401 Arranging an operation and maintenance template for operation and maintenance operations.
  • Step 402 Bind the operation and maintenance template of the operation and maintenance operation to the business object, and set the operation application strategy.
  • Step 403 Execute operation and maintenance operations.
  • the operation and maintenance operation is a PING operation from the PON device to the OTN device, and the PING operation can be implemented by using the LT technology.
  • the O&M template includes: O&M operation identifier, operation application policy, and basic operation information.
  • the operation and maintenance operation identifier is used to indicate the operation and maintenance operation, and also identifies an operation and maintenance template.
  • the operation and maintenance operation identifier includes but is not limited to the name of the operation and maintenance operation, the sequence number of the operation and maintenance operation, etc.
  • the operation application strategy refers to the situation where the operation is applicable.
  • the operation application strategy can include the operation and maintenance operation mode.
  • the operation and maintenance operation mode refers to the execution flow mode of the operation and maintenance operation, including synchronous mode, asynchronous mode and reporting mode.
  • the network equipment for maintenance operation needs to wait for the response message (response message) of the operation message (second message) until it receives the response message before performing other operation and maintenance operations; in asynchronous mode, the operation and maintenance operation
  • the network device can execute other operation and maintenance operations asynchronously while waiting for the response message of the operation message; Need to wait for the response message.
  • the operation application policy can also include a business object, which specifies the equipment for which the operation and maintenance template takes effect; the operation application policy can also include information such as the type of equipment, the version of the operation and maintenance operation, and other operational adaptation situations.
  • the basic operation information refers to the basic model of the operation, which may include an operation name and a conversion model, wherein the conversion model is used to indicate the conversion relationship between the first operation and maintenance operation and the second operation and maintenance operation; the conversion model may include a parameter model, parameter A model can include an input model and an output model.
  • the input parameter model includes a southbound model and a northbound model defining the input parameters of the operation
  • the northbound model of the input parameters is the message body model of the input parameters
  • the southbound model of the input parameters is used to indicate the first operation and maintenance operation
  • the conversion relationship between an input parameter and the second message, such as the model of the input parameter to the specified message body of the external system, for example, in the top-level controller, the first input received by the top-level controller can be realized based on the mapping file
  • the parameter conversion is to satisfy the second input parameter of the domain controller, that is, the output message of the top-level controller, and the format of the output message is to meet the specified format required by the input message of the domain controller (that is, the format of the second input parameter ); correspondingly, the output parameter model is similar to the input parameter model, and the output parameter model can refer to the description of the input parameter model, and the output parameter model is used to indicate that the first output parameter of the first operation and maintenance operation is different from the second operation and maintenance operation
  • the operation and maintenance template of the operation and maintenance operation can only have the input model but no output model, and some operation and maintenance operation templates can also only have the output model. Participating in the model but not in the participating model, or both, and neither, there is no limitation here, and it needs to be designed according to the operational characteristics of the operation and maintenance operation.
  • Both the input parameter model and the output parameter model can flexibly select the specific data definition format, such as the JsonSchema definition format, or the mapping file, which can map the input operation message to the second input parameter in the format specified by the domain controller.
  • the mapping file can be Implemented using FreeMarker extended syntax.
  • the design of the operation and maintenance template can be completed through the online system, and stored in the operation and maintenance template library, the validity of the operation and maintenance template can be verified, and the operation and maintenance template can be released.
  • the PON device and the OTN device need to define two O&M templates respectively, and use different operation and application strategies to control the application of different O&M templates in different technical fields.
  • the operation name is PING
  • both OSS and GUI perceive the PING operation of the common interface.
  • the operation and maintenance template can be defined through the Json file, and the structure of the operation and maintenance template can be as follows:
  • Template identifier (id), operation application strategy (commandRestraint), and basic operation information (commandBasciInfo); the basic operation information includes: operation name (operationName), input parameter model (commandConfigure) and output parameter model (commandStatus).
  • a sample of the O&M template is as follows:
  • variables described with “ ⁇ ” and ⁇ or “[]” after the variable indicates the specific definition of a variable can also be nested Variables, that is, variables described with “ ⁇ ” and ⁇ or “[]” can also include variables described with “ ⁇ ” and ⁇ or “[]”, such as “rootRestraints” and “applyObjects” in commandRestraint , and each variable defined in “ ⁇ ” and ⁇ or “[]", the scope of its value is only within the " ⁇ ” and ⁇ or “[]”, such as “value in "commandConfigure” ", its scope is only in “commandConfigure”, the scope of "value” in "commandStatus” is only in “commandStatus”, the Chinese characters in the above template samples are all code comments.
  • id is the template identifier of the O&M template.
  • the value of id is "NCEFANEthernetOamLTCommandTemplate ID"
  • description is the description of the O&M template, which is used to describe the operation and maintenance template The business function realized
  • operStatus is the release status of the operation and maintenance template, which can be deployed (deployed) or undeployed (undeployed)
  • commandRestraint is the operation application strategy, in which rootRestraints defines the applicable application scenarios of the operation and maintenance operation, "scenario ":"OTN_P2MP" indicates that the operation and maintenance template is applied to the OTN domain and the point-to-multipoint master (point 2 multiple point, P2MP) technology, "subScenario”:”TP” indicates Termination Point, and the description of this operation is for the port level Yes, vendors is the manufacturer, device type and version information that the operation and maintenance operation can run, processMode is the operation
  • commandBasicinfo is the basic information of the operation
  • operationName is the general operation name.
  • the manufacturer’s connectivity detection operation is Ethernet OAM LT operation, but the operation name (operationName) is uniformly packaged as PING (transmission, access, and data communication), and the operationName can be "PING" at this time
  • commandConfigure is an input parameter model, and "name" in commandConfigure points to the name of a specific input parameter model.
  • the input model is implemented through the input definition component and component mapping file, and the "value" in commandConfigure is the unique ID corresponding to the input template.
  • an example of defining a component structure can be as follows:
  • Defining the component structure may include two parts: a component template and a component mapping file, wherein the component template describes the input and constraints of parameters through JsonSchema.
  • component templates are as follows:
  • Component mapping file it is to translate the first message (northbound interface message) into the second message (southbound interface message) input to the domain controller.
  • the sample fragment is as follows:
  • the input parameter model is defined through commandConfigure
  • the output parameter model is defined through commandStatus
  • the northbound interface component name points to a northbound interface component and mapping file defined by JsonSchema.
  • the JsonSchema defines the necessary input parameters for the PING operation, such as the identity of the source end maintenance entity group end point (MEP), the time to live (Time To Live, TTL) and other values; the "name” in the output parameter model (commandStatus) ", "value” are similar to commandConfigure, you can refer to the description of the input parameter model.
  • any operation and maintenance operation can be abstracted into a scalable general operation and maintenance template, and the development workload of operation and maintenance operations can be greatly reduced by arranging operation and maintenance templates in real time. This is because the situation in each scenario is abstracted through the operation and maintenance template, and the interface, input parameters, output parameters, and different operation modes in different scenarios will be automatically generated in the operation and maintenance template, without repeated arrangement in each scenario, so The workload will be reduced.
  • the operation mode can be abstracted into a synchronous interface for general operations and an asynchronous interface for operations.
  • the application logic obtains the process mode from the operation and maintenance template, calls the unified synchronous interface or asynchronous interface, and uses the mapping file of the bound business object in the unified interface.
  • the first input parameter is converted into the second input parameter
  • the second output parameter is converted into the first output parameter.
  • the service object may include each access point (for example, two access points) realizing the service connection and a network path between the access points.
  • each access point for example, two access points
  • the operation and maintenance template of the operation and maintenance operation is directly bound to the business object, then since the operation and maintenance operation of a business requires the cooperation of each access point, the operation and maintenance operation will be decomposed into operation commands on each access point, O&M operations need to be performed on each access point.
  • each access point is specifically a designated PON device in the PON domain and a designated OTN device in the OTN domain.
  • the operation and maintenance operation is a node activation operation, and the node activation operation is to register a node in a designated network area. In this example, If you specify a PON device and a designated OTN device, when the node activation operation is executed, the corresponding node activation commands need to be executed synchronously on the designated PON device and the designated OTN device respectively.
  • the business object can also be only the access point, so the operation and maintenance operation can only be initiated by a certain access point without synchronous execution.
  • the delay detection command (southbound operation command) can be initiated from the specified PON device, and the specified
  • the PON device side only needs to wait for the response from the designated OTN device, and can initiate a delay detection command (southbound operation command) from the designated OTN device, and the designated OTN device side only needs to wait for the response from the designated PON device.
  • the operation and maintenance operation strategy of the operation and maintenance template also includes business objects.
  • one end and multiple ends can be specified, and the operation and maintenance operation strategy can also specify the effective device type, the effective version of the specified operation command, etc., which can be flexibly designed according to the specific operation and maintenance operation; among them, for the division of source and sink
  • One-segment business one-segment validation can be effective at the source end and the sink end, and multi-terminal activation can be effective at both ends.
  • the operation and maintenance operation strategy can be defined through the Json file.
  • the operation and maintenance operation strategy can be as follows:
  • CommandTemplate is the operation and maintenance template identifier, which is used to bind the operation and maintenance template name
  • CommandOperateName is the name of the operation command displayed corresponding to the operation and maintenance operation
  • GUIHookPoint is the interface hanging node, which is used to indicate the business object mounted by the operation and maintenance operation
  • ValidObjectCfg is the operation validation strategy, specifying the source to take effect
  • BindingBusinessObjects is the application object, which is used to control which business objects the operation and maintenance template takes effect on, and fdName is specifically the name of the bound business object.
  • An example of an operation and maintenance operation policy is as follows, which may specifically include the following fields:
  • the following takes the first network device as the top-level controller as an example and the second network device as the domain controller as an example to describe in detail the process of step 403 when the top-level controller controls any designated domain to perform operation and maintenance operations.
  • the top-level controller controls any designated domain to perform operation and maintenance operations.
  • FIG. 5 is a specific flowchart for performing operation and maintenance operations.
  • Step 501 The top-level controller obtains the first message.
  • the first operation and maintenance operation may be an operation in a single domain or a cross-domain operation
  • the first message indicates the first operation and maintenance operation
  • the first operation and maintenance operation includes the need for the second network device
  • the second operation and maintenance operation is performed, the second operation and maintenance operation is obtained according to the first operation and maintenance operation and the operation and maintenance template, and the execution of the second operation and maintenance operation by the second network device can be performed by the second
  • the message indicates that the operation and maintenance template includes an operation and maintenance operation identifier and a conversion model
  • the operation and maintenance operation identifier indicates the first operation and maintenance operation
  • the conversion model indicates the relationship between the first operation and maintenance operation and the second operation and maintenance operation.
  • the first message may include the first input parameter. If the operation and maintenance template corresponding to the operation and maintenance operation includes the input parameter model, then the first input parameter needs to be obtained according to the specification in the input parameter model.
  • the operation interface of the client may be generated according to the input model in the operation and maintenance template of the operation and maintenance operation, and the first input parameter of the operation and maintenance operation may be determined according to the input information of the operation interface of the client.
  • a Json operation interface can be generated to obtain the input information of the Json operation interface, or the top-level controller can also extract operation
  • the first input parameter of the dimension operation; step 501 can be implemented by the operation executor in FIG. 3 .
  • Step 502 The top-level controller determines whether the operation and maintenance operations executable by the domain controller include the second operation and maintenance operation according to the operation and maintenance operation policy.
  • Step 503 the top-level controller generates a second message according to the first message, and determines the operation mode in the operation and maintenance template.
  • the first message is an OSS operation request, which is directly converted into a Json message according to the input parameter model model.
  • the details of the Json message can be as follows:
  • commandConfigure is the input parameter model
  • PONEthernetOamLTCfg indicates that
  • remoteMepId indicates the ID of the remote MEP point
  • TTL indicates that the lifetime is 62 milliseconds (ms).
  • the top-level controller can convert the first input parameter into the second input parameter according to the mapping file of the input parameter model in the operation and maintenance template, and according to the second input parameter A southbound interface message is generated, and the format of the second input parameter in the southbound interface message is the specified format required by the domain controller for input parameters; step 502 can be implemented by the operation executor in FIG. 3 .
  • step 504 If the operation mode is synchronous mode, execute step 504; if the operation mode is asynchronous mode, execute step 505; step 503 can be implemented by the logical processor in FIG. 3 .
  • Step 504 the top-level controller sends the southbound interface message to the designated domain controller, and waits for a response message of the southbound interface message.
  • Step 505 the top-level controller sends the southbound interface message to the designated domain controller, and obtains the task identifier.
  • the task identifier is used to mark the domain controller as a task for processing southbound interface packets.
  • Step 506 The top-level controller waits for the response message of the southbound interface message according to the task identifier.
  • step 506 the top-level controller may also execute other operations in parallel.
  • Step 507 The top-level controller performs further processing according to the response message.
  • the devices in the domain will get the second output parameter. If the operation and maintenance template of the operation and maintenance operation includes the input and output parameter model, the devices in the domain can get the second output according to the second input parameter parameter, in this case, the response message will include the second output parameter, then the top-level controller can convert the second output parameter output by the domain controller into the first northbound output parameter according to the mapping file of the output parameter model, The format of the first output parameter conforms to the specified format required by the OSS, so that the first output parameter can be returned to the OSS or the operation interface output of the client.
  • the operation and maintenance operation is the PING operation from the PON device to the OTN device on the PON device.
  • the PING operation can be realized through the LT command.
  • the operation and maintenance template of the PING operation includes an input parameter model and an output parameter model. .
  • the specific steps can be shown in Figure 6, specifically as follows:
  • Step 601 The top-level controller obtains the northbound interface message of the PING operation.
  • the top-level controller can generate a Json view interface of the client according to the JsonSchema definition of the input parameter model of the PING operation, and directly convert the input information of the client's operation interface into a northbound interface message in Json format, and the northbound interface
  • the message includes the first input parameter.
  • Step 602 The top-level controller converts the northbound interface packet into the southbound interface packet.
  • the top-level controller converts the first input parameter into the second input parameter through the mapping file of the input parameter model.
  • the second input parameter is the format of the input parameter required by the domain where the PON device is located.
  • the second input parameter is included in the to the interface message.
  • Step 603 The top-level controller determines that the operation mode defined in the operation and maintenance template of the PING operation is a synchronous mode.
  • step 604 it is determined that the operation mode defined by the PING operation is the synchronous mode, and then step 604 is executed. If the defined operation mode is not the synchronous mode, there may be other branches.
  • Step 604 The top-level controller sends the converted southbound interface message to the domain controller where the PON device is located through the southbound adaptation module, and waits to obtain a response message.
  • Step 605 the domain controller sends the southbound interface message to the PON device.
  • step 605 it is pre-determined that the PING operation is the operation and maintenance operation on the PON device, so step 605 is executed.
  • the domain controller may also determine that the southbound interface report If the operation and maintenance operation corresponding to the document is the operation and maintenance operation on the domain controller, then the southbound interface packet is directly executed to realize the operation and maintenance operation on the domain controller.
  • Step 606 The PON device executes the southbound interface message, and obtains the second output parameter according to the second input parameter.
  • the second output parameter is included in the response message.
  • Step 607 the PON device sends the response packet to the domain controller.
  • Step 608 the domain controller sends the response packet to the top-level controller.
  • Step 609 The top-level controller converts the second output parameter into the first output parameter according to the mapping file of the output parameter model of the PING operation.
  • the top-level controller may convert the first output parameter into OSS or output it on the operation interface of the client.
  • the above method only needs to update the operation and maintenance template to realize the online expansion function of the operation and maintenance operation, without reloading the program package, and realizes version-free release.
  • the above method implements a technology for building an ecology. OSS and clients do not need to understand complex processing logic. They only need to arrange operation and maintenance templates according to this kernel framework to obtain various operation and maintenance functions of cross-domain business, thereby solving cross-technical domain
  • the end-to-end operation and maintenance function can quickly adapt to the special requirements of different technical domains, and solve the current cross-technical end-to-end operation and maintenance shortcomings.
  • the present application provides a network device, the network device includes:
  • Obtain module 701 It is used to obtain a first message, the first message indicates a first operation and maintenance operation, and the first operation and maintenance operation includes a second operation and maintenance operation that needs to be performed by the second network device;
  • a sending module 702 configured to send a second message to the second network device, the second message instructing the second network device to perform the second operation and maintenance operation, the second operation and maintenance operation is based on the
  • the first operation and maintenance operation is obtained from an operation and maintenance template
  • the operation and maintenance template includes an operation and maintenance operation identifier and a conversion model
  • the operation and maintenance operation identifier indicates the first operation and maintenance operation
  • the conversion model indicates the first operation and maintenance operation A conversion relationship between the operation and maintenance operation and the second operation and maintenance operation.
  • the conversion model includes a parameter model
  • the parameter model indicates a conversion relationship between the first input parameter of the first operation and maintenance operation and the second input parameter of the second operation and maintenance operation.
  • the parameter model further indicates a conversion relationship between the first input parameter of the first operation and maintenance operation and the second message.
  • the parameter model further indicates a conversion relationship between the first output parameter of the first operation and maintenance operation and the second output parameter of the second operation and maintenance operation.
  • the method further includes: the first network device obtains a response message of the second message, and the response message includes a second output parameter; the first network device obtains the first output parameter according to the parameter model and the second output parameter.
  • the operation and maintenance template includes an operation and maintenance operation mode.
  • the operation mode of operation and maintenance includes synchronous mode or asynchronous mode.
  • the sending module 702 is further configured to: determine according to the operation and maintenance operation policy that the operation and maintenance operations that can be performed by the second network device include the second operation and maintenance operation.
  • the first network device is a top-level controller
  • the second network device is a domain controller or an intra-domain device under the first network device.
  • the second message is used to call a first application programming interface API of the second network device, and the first API is used for the second network device to perform the second operation and maintenance operation.
  • the present application provides a network device, the network device includes:
  • the obtaining module 801 is configured to obtain a second message from the first network device, the second message instructs the second network device to perform a second operation and maintenance operation, and the second operation and maintenance operation is performed by the first network device according to the first Obtained from an operation and maintenance operation and an operation and maintenance template, the first operation and maintenance operation is the operation and maintenance operation indicated by the first message obtained by the first network device, and the first operation and maintenance operation includes the operation and maintenance operation that requires the first
  • the second operation and maintenance operation performed by the second network device, the operation and maintenance template includes an operation and maintenance operation identifier and a conversion model, the operation and maintenance operation identifier indicates the first operation and maintenance operation, and the conversion model indicates the first operation and maintenance operation The conversion relationship between the maintenance operation and the second operation and maintenance operation;
  • the processing module 802 is configured to execute the second operation and maintenance operation.
  • the conversion model includes a parameter model
  • the parameter model indicates a conversion relationship between the first output parameter of the first operation and maintenance operation and the second output parameter of the second operation and maintenance operation
  • the processing module 802 is further configured to: send a response message of the second message to the first network device, where the response message includes the second output parameter, and the second output parameter is used by the first network device according to the The parameter model and the second output parameter are used to obtain a first output parameter.
  • the embodiment of the present application also provides an electronic device.
  • the electronic device may have the structure shown in FIG. 9 .
  • the electronic device may be a computer device, or it may support the computer device to implement the operation and maintenance operation method provided in the embodiment of the present application.
  • a chip or chip system, the electronic device can be used not only as the first network device, but also as the second network device.
  • the electronic device shown in FIG. 9 may include at least one processor 901, and the at least one processor 901 is used to be coupled with a memory, read and execute instructions in the memory to implement the operation and maintenance operation provided by the embodiment of the present application method steps.
  • the electronic device may further include a communication interface 902, configured to support the electronic device in receiving or sending signaling or data.
  • the communication interface 902 in the electronic device can be used to realize interaction with other electronic devices.
  • the processor 901 may be configured to enable the electronic device to execute the steps in the operation method for operation and maintenance provided in the embodiment of the present application.
  • the electronic device may also include a memory 903, in which computer instructions are stored, and the memory 903 may be coupled with the processor 901 and/or the communication interface 902, and is used to support the processor 901 to call the computer instructions in the memory 903 to implement The steps in the operation and maintenance operation method provided by the embodiment of the present application; in addition, the memory 903 can also be used to store the data involved in the method embodiment of the present application, for example, to store the data and instructions necessary to support the communication interface 902 to realize interaction , and/or, used to store configuration information necessary for the electronic device to execute the method described in the embodiment of the present application.
  • the embodiment of the present application also provides a computer-readable storage medium.
  • Computer instructions are stored on the computer-readable storage medium. When these computer instructions are called and executed by a computer, the computer can complete any one of the above-mentioned method embodiments and method embodiments. methods involved in a possible design.
  • the computer-readable storage medium is not limited, for example, it may be RAM (random-access memory, random access memory), ROM (read-only memory, read-only memory), etc.
  • the present application also provides a chip, which may include a processor and an interface circuit, for completing the methods involved in any of the above method embodiments and any possible implementation of the method embodiments, wherein "coupling" means Two parts are coupled to each other directly or indirectly, and this coupling can be fixed or movable.
  • the embodiment of the present application also provides a computer program product, including computer instructions.
  • the computer instructions When the computer instructions are executed, the method involved in the above method embodiment and any possible design of the method embodiment can be realized.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software it may be implemented in whole or in part in the form of computer instructions.
  • the computer instructions When the computer instructions are loaded and executed on the computer, the procedures or functions according to the embodiments of the present invention will be generated in whole or in part.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber) or wireless (eg, infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, a data center, etc. integrated with one or more available media.
  • the available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (Solid State Disk, SSD)), etc.
  • a magnetic medium such as a floppy disk, a hard disk, or a magnetic tape
  • an optical medium such as a DVD
  • a semiconductor medium such as a solid state disk (Solid State Disk, SSD)
  • the steps of the method or algorithm described in the embodiments of the present application may be directly embedded in hardware, a software unit executed by a processor, or a combination of both.
  • the software unit may be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM or any other storage medium in the art.
  • the storage medium can be connected to the processor, so that the processor can read information from the storage medium, and can write information to the storage medium.
  • the storage medium can also be integrated into the processor.
  • the processor and the storage medium can be set in the ASIC, and the ASIC can be set in the terminal device.
  • the processor and the storage medium may also be disposed in different components in the terminal device.
  • These computer instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are performed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device Steps are provided for implementing the functions specified in the flow chart or flow charts and/or block diagram block or blocks.

Abstract

Disclosed in the present invention are an operation and maintenance operation method and system, and a network device. The method comprises: a first network device obtains a first message, the first message indicating a first operation and maintenance operation, and the first operation and maintenance operation comprising a second operation and maintenance operation needing to be executed by a second network device; the first network device sends a second message to the second network device, the second message instructing the second network device to execute the second operation and maintenance operation, the second operation and maintenance operation being obtained according to the first operation and maintenance operation and an operation and maintenance template, the operation and maintenance template comprising an operation and maintenance operation identifier and a conversion model, the operation and maintenance operation identifier indicating the first operation and maintenance operation, and the conversion model indicating a conversion relationship between the first operation and maintenance operation and the second operation and maintenance operation, such that there is no need to design different methods for each operation and maintenance scenario, and regardless of the scenario, the conversion between the first operation and maintenance operation and the second operation and maintenance operation can be implemented by means of the conversion model, thereby providing a universal operation and maintenance operation method in a network.

Description

一种运维操作方法、系统及网络设备An operation and maintenance operation method, system and network equipment
相关申请的交叉引用Cross References to Related Applications
本申请要求在2021年10月28日提交中国专利局、申请号为202111261486.0、申请名称为“一种运维操作方法、系统及网络设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202111261486.0 and the application title "An operation and maintenance operation method, system and network equipment" filed with the China Patent Office on October 28, 2021, the entire contents of which are incorporated by reference in this application.
技术领域technical field
本申请涉及网络运维领域,尤其涉及一种运维操作方法、系统及网络设备。The present application relates to the field of network operation and maintenance, and in particular to an operation and maintenance operation method, system and network equipment.
背景技术Background technique
运营商可以通过运营支撑系统(operation support system,OSS)自动化地进行网络运维管理。然而,网络运维管理可能会出现多种场景。这是因为同一网络管理功能的运维操作可以通过各种技术实现,如网络连通性测试操作,通过以太网(ethernet)操作管理维护(operation administration and maintenance,OAM)的环回(loop back,LB)命令、链路跟踪(link trace,LT)命令以及连通性监测(connectivity check,CC)命令均可以实现,而相同运维操作在不同领域的网络设备上对应的命令行或对接接口存在差异,如接入域的网络连通性测试命令与传输域的网络连通性测试命令之间存在差异。Operators can automate network operation and maintenance management through the operation support system (OSS). However, network operation and maintenance management may have multiple scenarios. This is because the operation and maintenance operation of the same network management function can be realized through various technologies, such as network connectivity test operation, loop back (LB) through operation administration and maintenance (OAM) of Ethernet (ethernet) ) commands, link trace (LT) commands, and connectivity check (CC) commands can all be implemented, but there are differences in the command lines or docking interfaces corresponding to the same operation and maintenance operations on network devices in different fields. For example, there are differences between the network connectivity test commands of the access domain and the network connectivity test commands of the transport domain.
例如,不同网络域中或不同厂商的网络设备对同一个运维操作的命令行或接口的输入参数、输出参数和协同参数不同。如果一个网络包括了多中网络域类型的网络设备,那么就会导致需要在网络运维系统或OSS系统上定制多种运维操作的接口。这便导致了运维操作的实现较为复杂,其操作方式性能较低。因此,亟需一种通用的运维操作方法。For example, network devices in different network domains or from different manufacturers have different input parameters, output parameters, and coordination parameters for the command line or interface of the same operation and maintenance operation. If a network includes network devices of multiple network domain types, it will result in the need to customize interfaces for various operation and maintenance operations on the network operation and maintenance system or OSS system. This leads to more complex implementation of operation and maintenance operations, and lower performance of its operation methods. Therefore, there is an urgent need for a general operation and maintenance operation method.
发明内容Contents of the invention
本申请提供一种运维操作方法、系统及网络设备,用于提升运维操作的操作性能。The present application provides an operation and maintenance operation method, system and network equipment, which are used to improve the operational performance of the operation and maintenance operation.
第一方面,本申请提供一种运维操作方法。该方法可以由本申请提供的网络设备(第三方面提供的网络设备)执行,该方法包括:In a first aspect, the present application provides an operation and maintenance operation method. The method may be performed by the network device provided by the present application (the network device provided by the third aspect), and the method includes:
第一网络设备获取第一消息,所述第一消息指示第一运维操作,所述第一运维操作包括需要第二网络设备执行的第二运维操作;所述第一网络设备向所述第二网络设备发送第二消息,所述第二消息指示所述第二网络设备执行所述第二运维操作,所述第二运维操作是根据所述第一运维操作和运维模板获得的,所述运维模板包括运维操作标识和转换模型,所述运维操作标识指示所述第一运维操作,所述转换模型指示所述第一运维操作与所述第二运维操作的转换关系。The first network device obtains a first message, the first message indicates a first operation and maintenance operation, and the first operation and maintenance operation includes a second operation and maintenance operation that needs to be performed by the second network device; The second network device sends a second message, the second message instructs the second network device to perform the second operation and maintenance operation, and the second operation and maintenance operation is based on the first operation and maintenance operation and the operation and maintenance operation The operation and maintenance template includes an operation and maintenance operation identifier and a conversion model, the operation and maintenance operation identifier indicates the first operation and maintenance operation, and the conversion model indicates the relationship between the first operation and maintenance operation and the second operation and maintenance operation. The conversion relationship of operation and maintenance operations.
上述方式下,通过操作模板,所以无论是哪一类场景,都根据所述操作模板中定义的转换模型以及运维操作标识,实现所述第一运维操作与所述第二运维操作的转换,从而无论针对哪种运维场景,都可以通过转换模型实现第一运维操作与所述第二运维操作的转换,使得所述第一网络设备可以向所述第二网络设备发送第二消息,用第二消息指示所述第二网络设备执行所述第二运维操作,从而提供一种通用的网络中的运维操作方法。In the above manner, through the operation template, no matter what kind of scenario it is, the conversion model between the first operation and maintenance operation and the second operation and maintenance operation is realized according to the conversion model and the operation and maintenance operation identifier defined in the operation template. Conversion, so that no matter which operation and maintenance scenario is aimed at, the conversion between the first operation and maintenance operation and the second operation and maintenance operation can be realized through the conversion model, so that the first network device can send the second operation and maintenance operation to the second network device Two messages, using the second message to instruct the second network device to perform the second operation and maintenance operation, so as to provide a general operation and maintenance operation method in the network.
一种可能的设计中,所述转换模型包括参数模型,所述参数模型指示所述第一运维操作的第一输入参数与所述第二运维操作的第二输入参数的转换关系。In a possible design, the conversion model includes a parameter model, and the parameter model indicates a conversion relationship between a first input parameter of the first operation and maintenance operation and a second input parameter of the second operation and maintenance operation.
上述方式下,由于转换模型包括参数模型,从而可以通过参数模型实现第一输入参数和第二输入参数的转换,从而可以在第二运维操作需要输入参数时实现预先转换,使得运维操作方法的效率更高。In the above method, since the conversion model includes a parameter model, the conversion of the first input parameter and the second input parameter can be realized through the parameter model, so that the conversion can be realized in advance when the second operation and maintenance operation needs input parameters, so that the operation and maintenance operation method more efficient.
一种可能的设计中,所述参数模型还指示所述第一运维操作的第一输入参数和所述第二消息的转换关系。In a possible design, the parameter model further indicates a conversion relationship between the first input parameter of the first operation and maintenance operation and the second message.
上述方式下,通过参数模型,当第一网络设备获得了第一输入参数后,便可以向第二网络和设备发送第二消息,从而对第二网络设备进行指示,使得运维操作方法的适用性更强。In the above manner, through the parameter model, when the first network device obtains the first input parameter, it can send a second message to the second network and device, thereby instructing the second network device, so that the operation and maintenance operation method is applicable Stronger.
一种可能的设计中,所述参数模型还指示所述第一运维操作的第一输出参数与所述第二运维操作的第二输出参数的转换关系。In a possible design, the parameter model further indicates a conversion relationship between the first output parameter of the first operation and maintenance operation and the second output parameter of the second operation and maintenance operation.
上述方式下,由于转换模型包括参数模型,从而可以通过参数模型实现所述第一运维操作的第一输出参数与所述第二运维操作的第二输出参数的转换,进一步使得运维操作方法的效率更高。In the above manner, since the conversion model includes a parameter model, the conversion between the first output parameter of the first operation and maintenance operation and the second output parameter of the second operation and maintenance operation can be realized through the parameter model, further making the operation and maintenance operation method is more efficient.
一种可能的设计中,所述第一网络设备向所述第二网络设备发送第二消息之后,还包括:所述第一网络设备获取所述第二消息的响应消息,所述响应消息包括第二输出参数;所述第一网络设备根据所述参数模型和所述第二输出参数,获得所述第一输出参数。In a possible design, after the first network device sends the second message to the second network device, the method further includes: the first network device obtains a response message of the second message, and the response message includes A second output parameter: the first network device obtains the first output parameter according to the parameter model and the second output parameter.
上述方式下,第一网络设备获取所述第二消息的响应消息后,根据述参数模型和所述第二输出参数,获得所述第一输出参数,从而可以通过参数模型实现所述第一运维操作的第一输出参数与所述第二运维操作的第二输出参数的转换,所以能够在第二运维操作执行完毕后,直接转换为第一运维操作的第一输出参数,进一步使得运维操作方法的效率更高。In the above manner, after obtaining the response message of the second message, the first network device obtains the first output parameter according to the parameter model and the second output parameter, so that the first operation can be realized through the parameter model. The conversion between the first output parameter of the operation and maintenance operation and the second output parameter of the second operation and maintenance operation, so after the second operation and maintenance operation is completed, it can be directly converted into the first output parameter of the first operation and maintenance operation, further Make the operation and maintenance operation method more efficient.
一种可能的设计中,所述运维模板包括运维操作模式。In a possible design, the operation and maintenance template includes an operation and maintenance operation mode.
上述方式下,通过在运维模板中引入运维操作模式,从而在运维模板中进一步限定运维操作,增加运维操作的准确性。In the above manner, by introducing the operation and maintenance operation mode into the operation and maintenance template, the operation and maintenance operation is further limited in the operation and maintenance template, and the accuracy of the operation and maintenance operation is increased.
一种可能的设计中,所述运维操作模式包括同步模式或异步模式。In a possible design, the operation mode of operation and maintenance includes a synchronous mode or an asynchronous mode.
上述方式下,由于运维操作模式中包括同步模式或异步模式,从而可以根据运维操作的特性选择同步模式或异步模式,提升运维操作的灵活性。In the above manner, since the operation mode of operation and maintenance includes a synchronous mode or an asynchronous mode, the synchronous mode or the asynchronous mode can be selected according to the characteristics of the operation and maintenance operation, thereby improving the flexibility of the operation and maintenance operation.
一种可能的设计中,所述第一网络设备获取第一消息之后,所述第一网络设备向所述第二网络设备发送第二消息之前,还包括:所述第一网络设备根据运维操作策略确定所述第二网络设备可执行的运维操作包括第二运维操作。In a possible design, after the first network device acquires the first message and before the first network device sends the second message to the second network device, the method further includes: the first network device according to the operation and maintenance The operation policy determines that the operation and maintenance operation that can be performed by the second network device includes the second operation and maintenance operation.
上述方式下,所述第一网络设备根据运维操作策略确定所述第二网络设备可执行的运维操作包括第二运维操作,确定之后再向所述第二网络设备发送第二消息,从而通过应用级的运维操作策略先行判断,控制运维操作方法的应用范围,从而提升了运维操作方法的灵活性。In the above manner, the first network device determines, according to the operation and maintenance operation policy, that the operation and maintenance operations executable by the second network device include the second operation and maintenance operation, and then sends a second message to the second network device after the determination is made, Therefore, the application-level operation and maintenance operation strategy is judged in advance, and the application scope of the operation and maintenance operation method is controlled, thereby improving the flexibility of the operation and maintenance operation method.
一种可能的设计中,所述第一网络设备为顶层控制器,所述第二网络设备为所述第一网络设备下的域控制器或域内设备。In a possible design, the first network device is a top-level controller, and the second network device is a domain controller or an intra-domain device under the first network device.
当本申请提供的运维方法应用于上述场景时,由于顶层控制器的运维操作可以影响全局多个域的域控制器和域内设备,所以可以增强大范围网络设备的运维操作效率。When the operation and maintenance method provided by this application is applied to the above scenario, since the operation and maintenance operation of the top-level controller can affect domain controllers and devices in multiple global domains, the operation and maintenance operation efficiency of large-scale network devices can be enhanced.
一种可能的设计中,所述第二消息用于调用所述第二网络设备的第一应用编程接口 API,所述第一API用于所述第二网络设备执行所述第二运维操作。In a possible design, the second message is used to call a first application programming interface API of the second network device, and the first API is used for the second network device to perform the second operation and maintenance operation .
上述方式下,可以直接通过第二消息调用第一API,使得第二网络设备执行所述第二运维操作,从而提升了运维操作的效率。In the above manner, the first API may be called directly through the second message, so that the second network device performs the second operation and maintenance operation, thereby improving the efficiency of the operation and maintenance operation.
第二方面,本申请提供一种运维操作方法。该方法可以由本申请提供的网络设备(第四方面提供的网络设备)执行,该方法包括:In a second aspect, the present application provides an operation and maintenance operation method. The method may be performed by the network device provided in the present application (the network device provided in the fourth aspect), and the method includes:
第二网络设备获取来自第一网络设备的第二消息,所述第二消息指示所述第二网络设备执行第二运维操作,所述第二运维操作是根据第一运维操作和运维模板获得的,所述第一运维操作为所述第一网络设备获取到的第一消息所指示的运维操作,所述第一运维操作包括需要所述第二网络设备执行的第二运维操作,所述运维模板包括运维操作标识和转换模型,所述运维操作标识指示所述第一运维操作,所述转换模型指示所述第一运维操作与所述第二运维操作的转换关系;The second network device obtains a second message from the first network device, the second message instructs the second network device to perform a second operation and maintenance operation, and the second operation and maintenance operation is based on the first operation and maintenance operation and the operation and maintenance operation. The first operation and maintenance operation is the operation and maintenance operation indicated by the first message obtained by the first network device, and the first operation and maintenance operation includes the first operation and maintenance operation that needs to be performed by the second network device. Two operation and maintenance operations, the operation and maintenance template includes an operation and maintenance operation identifier and a conversion model, the operation and maintenance operation identifier indicates the first operation and maintenance operation, and the conversion model indicates the relationship between the first operation and maintenance operation and the second operation and maintenance operation 2. Conversion relationship of operation and maintenance operations;
所述第二网络设备执行所述第二运维操作。The second network device executes the second operation and maintenance operation.
可选的,所述转换模型包括参数模型,所述参数模型指示所述第一运维操作的第一输出参数与所述第二运维操作的第二输出参数的转换关系,所述第二网络设备执行所述第二运维操作之后,还包括:Optionally, the conversion model includes a parameter model, where the parameter model indicates a conversion relationship between a first output parameter of the first operation and maintenance operation and a second output parameter of the second operation and maintenance operation, and the second After the network device performs the second operation and maintenance operation, it also includes:
所述第二网络设备获取所述第二消息的响应消息,所述响应消息包括第二输出参数,所述第二输出参数用于所述第一网络设备根据所述参数模型和所述第二输出参数,获得第一输出参数。The second network device obtains a response message of the second message, the response message includes a second output parameter, and the second output parameter is used by the first network device according to the parameter model and the second output parameter, get the first output parameter.
第三方面,本申请提供一种网络设备,该网络设备包括:In a third aspect, the present application provides a network device, and the network device includes:
获取模块。用于获取第一消息,所述第一消息指示第一运维操作,所述第一运维操作包括需要第二网络设备执行的第二运维操作;Get the module. It is used to obtain a first message, the first message indicates a first operation and maintenance operation, and the first operation and maintenance operation includes a second operation and maintenance operation that needs to be performed by the second network device;
发送模块,用于向所述第二网络设备发送第二消息,所述第二消息指示所述第二网络设备执行所述第二运维操作,所述第二运维操作是根据所述第一运维操作和运维模板获得的,所述运维模板包括运维操作标识和转换模型,所述运维操作标识指示所述第一运维操作,所述转换模型指示所述第一运维操作与所述第二运维操作的转换关系。A sending module, configured to send a second message to the second network device, the second message instructing the second network device to perform the second operation and maintenance operation, the second operation and maintenance operation is based on the first Obtained from an operation and maintenance operation and an operation and maintenance template, the operation and maintenance template includes an operation and maintenance operation identifier and a conversion model, the operation and maintenance operation identifier indicates the first operation and maintenance operation, and the conversion model indicates the first operation and maintenance operation A conversion relationship between the maintenance operation and the second operation and maintenance operation.
可选的,所述转换模型包括参数模型,所述参数模型指示所述第一运维操作的第一输入参数与所述第二运维操作的第二输入参数的转换关系。Optionally, the conversion model includes a parameter model, and the parameter model indicates a conversion relationship between the first input parameter of the first operation and maintenance operation and the second input parameter of the second operation and maintenance operation.
可选的,所述参数模型还指示所述第一运维操作的第一输入参数和所述第二消息的转换关系。Optionally, the parameter model further indicates a conversion relationship between the first input parameter of the first operation and maintenance operation and the second message.
可选的,所述参数模型还指示所述第一运维操作的第一输出参数与所述第二运维操作的第二输出参数的转换关系。Optionally, the parameter model further indicates a conversion relationship between the first output parameter of the first operation and maintenance operation and the second output parameter of the second operation and maintenance operation.
可选的,所述第一网络设备向所述第二网络设备发送第二消息之后,还包括:所述第一网络设备获取所述第二消息的响应消息,所述响应消息包括第二输出参数;所述第一网络设备根据所述参数模型和所述第二输出参数,获得所述第一输出参数。Optionally, after the first network device sends the second message to the second network device, the method further includes: the first network device obtains a response message of the second message, and the response message includes a second output parameter; the first network device obtains the first output parameter according to the parameter model and the second output parameter.
可选的,所述运维模板包括运维操作模式。Optionally, the operation and maintenance template includes an operation and maintenance operation mode.
可选的,所述运维操作模式包括同步模式或异步模式。Optionally, the operation mode of operation and maintenance includes synchronous mode or asynchronous mode.
可选的,所述发送模块还用于:根据运维操作策略确定所述第二网络设备可执行的运维操作包括第二运维操作。Optionally, the sending module is further configured to: determine according to the operation and maintenance operation policy that the operation and maintenance operations executable by the second network device include the second operation and maintenance operation.
可选的,所述第一网络设备为顶层控制器,所述第二网络设备为所述第一网络设备下的域控制器或域内设备。Optionally, the first network device is a top-level controller, and the second network device is a domain controller or an intra-domain device under the first network device.
可选的,所述第二消息用于调用所述第二网络设备的第一应用编程接口API,所述第一API用于所述第二网络设备执行所述第二运维操作。Optionally, the second message is used to call a first application programming interface API of the second network device, and the first API is used for the second network device to perform the second operation and maintenance operation.
第四方面,本申请提供一种网络设备,该网络设备包括:In a fourth aspect, the present application provides a network device, which includes:
获取模块,用于获取来自第一网络设备的第二消息,所述第二消息指示第二网络设备执行第二运维操作,所述第二运维操作是所述第一网络设备根据第一运维操作和运维模板获得的,所述第一运维操作为所述第一网络设备获取到的第一消息所指示的运维操作,所述第一运维操作包括需要所述第二网络设备执行的第二运维操作,所述运维模板包括运维操作标识和转换模型,所述运维操作标识指示所述第一运维操作,所述转换模型指示所述第一运维操作与所述第二运维操作的转换关系;An acquisition module, configured to acquire a second message from the first network device, the second message instructs the second network device to perform a second operation and maintenance operation, and the second operation and maintenance operation is performed by the first network device according to the first The operation and maintenance operation and the operation and maintenance template are obtained, the first operation and maintenance operation is the operation and maintenance operation indicated by the first message obtained by the first network device, and the first operation and maintenance operation includes the operation and maintenance operation that requires the second The second operation and maintenance operation performed by the network device, the operation and maintenance template includes an operation and maintenance operation identifier and a conversion model, the operation and maintenance operation identifier indicates the first operation and maintenance operation, and the conversion model indicates the first operation and maintenance operation A conversion relationship between the operation and the second operation and maintenance operation;
处理模块,用于执行所述第二运维操作。A processing module, configured to execute the second operation and maintenance operation.
可选的,所述转换模型包括参数模型,所述参数模型指示所述第一运维操作的第一输出参数与所述第二运维操作的第二输出参数的转换关系,所述处理模块还用于:向所述第一网络设备发送所述第二消息的响应消息,所述响应消息包括所述第二输出参数,所述第二输出参数用于所述第一网络设备根据所述参数模型和所述第二输出参数,获得第一输出参数。Optionally, the conversion model includes a parameter model, the parameter model indicates a conversion relationship between the first output parameter of the first operation and maintenance operation and the second output parameter of the second operation and maintenance operation, and the processing module It is also used for: sending a response message of the second message to the first network device, where the response message includes the second output parameter, and the second output parameter is used by the first network device according to the The parameter model and the second output parameters are used to obtain the first output parameters.
第五方面,本申请提供一种运维操作系统,该运维操作系统包括:In the fifth aspect, the present application provides an operation and maintenance operating system, which includes:
所述第一网络设备,用于获取第一消息,所述第一消息指示第一运维操作,所述第一运维操作包括需要所述第二网络设备执行的第二运维操作;The first network device is configured to obtain a first message, the first message indicates a first operation and maintenance operation, and the first operation and maintenance operation includes a second operation and maintenance operation that needs to be performed by the second network device;
所述第一网络设备,还用于向所述第二网络设备发送第二消息,所述第二消息指示所述第二网络设备执行所述第二运维操作,所述第二运维操作是根据所述第一运维操作和运维模板获得的,所述运维模板包括运维操作标识和转换模型,所述运维操作标识指示所述第一运维操作,所述转换模型指示所述第一运维操作与所述第二运维操作的转换关系;The first network device is further configured to send a second message to the second network device, the second message instructs the second network device to perform the second operation and maintenance operation, and the second operation and maintenance operation It is obtained according to the first operation and maintenance operation and the operation and maintenance template, the operation and maintenance template includes an operation and maintenance operation identifier and a conversion model, the operation and maintenance operation identifier indicates the first operation and maintenance operation, and the conversion model indicates The conversion relationship between the first operation and maintenance operation and the second operation and maintenance operation;
所述第二网络设备,用于获取来自第一网络设备的第二消息,以及执行所述第二运维操作。The second network device is configured to acquire a second message from the first network device, and execute the second operation and maintenance operation.
第六方面,提供一种电子设备,用作第一网络设备,所述电子设备包括:存储器,包括指令;处理器,当所述处理器执行所述指令时,使得所述电子设备实现如上述第一方面中任一所述的方法。In a sixth aspect, there is provided an electronic device used as a first network device, the electronic device includes: a memory including instructions; a processor, when the processor executes the instructions, the electronic device realizes the above-mentioned The method of any one of the first aspects.
第七方面,提供一种电子设备,用作第二网络设备,所述电子设备包括:存储器,包括指令;处理器,当所述处理器执行所述指令时,使得所述电子设备实现如上述第二方面中任一所述的方法。In a seventh aspect, there is provided an electronic device used as a second network device, the electronic device includes: a memory including instructions; a processor, when the processor executes the instructions, the electronic device realizes the above-mentioned The method of any one of the second aspects.
第八方面,提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机指令,当计算机指令被处理器执行时,使得所述处理器实现如上述第一方面或第二方面中任一项所述的方法。In an eighth aspect, a computer-readable storage medium is provided, and computer instructions are stored on the computer-readable storage medium. When the computer instructions are executed by a processor, the processor implements the above-mentioned first or second aspect. any one of the methods described.
第九方面,提供一种计算机程序产品,包括计算机指令,当所述计算机指令被执行时,实现如上述第一方面或第二方面中任一项所述的方法。In a ninth aspect, a computer program product is provided, including computer instructions. When the computer instructions are executed, the method according to any one of the first aspect or the second aspect is implemented.
以上第二方面到第九方面的有益效果,请参见第一方面的有益效果,不重复赘述。For the above beneficial effects from the second aspect to the ninth aspect, please refer to the beneficial effects of the first aspect, and will not repeat them.
附图说明Description of drawings
图1为本申请实施例提供的一种运维操作可应用的系统架构示意图;FIG. 1 is a schematic diagram of a system architecture applicable to operation and maintenance operations provided by an embodiment of the present application;
图2为本申请实施例提供的一种运维操作在PON域与OTN域之间PING操作场景下 可应用的具体架构示意图;Fig. 2 is a kind of operation and maintenance operation provided by the embodiment of the present application under the PING operation scenario between the PON domain and the OTN domain Applicable specific architecture schematic diagram;
图3为本申请实施例提供的一种顶层控制器的软件架构示意图;FIG. 3 is a schematic diagram of a software architecture of a top-level controller provided in an embodiment of the present application;
图4为本申请实施例提供的一种运维操作方法的实现过程示意图;FIG. 4 is a schematic diagram of an implementation process of an operation and maintenance operation method provided in an embodiment of the present application;
图5为本申请实施例提供的一种运维操作方法的步骤流程示意图;FIG. 5 is a schematic flow chart of the steps of an operation and maintenance operation method provided in the embodiment of the present application;
图6为本申请实施例提供的一种运维操作方法的具体步骤流程示意图;FIG. 6 is a schematic flowchart of specific steps of an operation and maintenance operation method provided in an embodiment of the present application;
图7为本申请实施例提供的一种网络设备的结构示意图;FIG. 7 is a schematic structural diagram of a network device provided in an embodiment of the present application;
图8为本申请实施例提供的一种网络设备的结构示意图;FIG. 8 is a schematic structural diagram of a network device provided in an embodiment of the present application;
图9为本申请实施例提供的一种电子设备的结构示意图。FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请实施例中,“一个或多个”是指一个或两个以上(包含两个);“和/或”,描述关联对象的关联关系,表示可以存在三种关系;例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。The terms used in the following examples are for the purpose of describing particular examples only, and are not intended to limit the application. As used in the specification and appended claims of this application, the singular expressions "a", "an", "said", "above", "the" and "this" are intended to also Expressions such as "one or more" are included unless the context clearly dictates otherwise. It should also be understood that in the embodiments of the present application, "one or more" refers to one or more than two (including two); "and/or" describes the association relationship of associated objects, indicating that there may be three relationships; For example, A and/or B may mean: A exists alone, A and B exist simultaneously, and B exists alone, wherein A and B may be singular or plural. The character "/" generally indicates that the contextual objects are an "or" relationship.
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。Reference to "one embodiment" or "some embodiments" or the like in this specification means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically stated otherwise. The terms "including", "comprising", "having" and variations thereof mean "including but not limited to", unless specifically stated otherwise.
本申请实施例中的术语多个”是指两个或两个以上,鉴于此,本申请实施例中也可以将“多个”理解为“至少两个”。“至少一个”,可理解为一个或多个,例如理解为一个、两个或更多个。例如,包括至少一个,是指包括一个、两个或更多个,而且不限制包括的是哪几个。例如,包括A、B和C中的至少一个,那么包括的可以是A、B、C,A和B,A和C,B和C,或A和B和C。同理,对于“至少一种”等描述的理解,也是类似的。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,字符“/”,如无特殊说明,一般表示前后关联对象是一种“或”的关系。The term "multiple" in the embodiments of the present application refers to two or more than two. In view of this, "multiple" can also be understood as "at least two" in the embodiments of the present application. "At least one" can be understood as One or more, such as being understood as one, two or more. For example, including at least one means including one, two or more, and does not limit which several are included. For example, including A, At least one of B and C, then it may include A, B, C, A and B, A and C, B and C, or A and B and C. Similarly, for "at least one" and other descriptions Understanding is also similar. "And/or" describes the relationship between associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A exists alone, A and B exist at the same time, and B exists alone These three situations. In addition, the character "/", unless otherwise specified, generally indicates that the contextual objects are an "or" relationship.
除非有相反的说明,本申请实施例提及“第一”、“第二”等序数词用于对多个对象进行区分,不用于限定多个对象的顺序、时序、优先级或者重要程度。Unless otherwise specified, ordinal numerals such as "first" and "second" mentioned in the embodiments of the present application are used to distinguish multiple objects, and are not used to limit the order, timing, priority or importance of multiple objects.
为了便于理解,对本申请实施例涉及的术语进行解释说明,该术语的解释说明也作为对本申请实施例发明内容的一部分。For ease of understanding, the terms involved in the embodiments of the present application are explained, and the explanations of the terms are also part of the content of the invention in the embodiments of the present application.
应用场景Application Scenario
如图1所示,为本申请实施例提供的一种运维操作方法可应用的系统架构示意图。As shown in FIG. 1 , it is a schematic diagram of a system architecture to which an operation and maintenance operation method provided in the embodiment of the present application can be applied.
该系统架构可以包括:运营支撑系统(operation support system,OSS)、第一网络设备、第二网络设备。图1中第一网络设备以顶层控制器(top-level controller,TC)为例,第二网络设备以域控制器(domaincontroller,DC)或域内设备(in-domain device,DD)为例说明。该架构可以根据具体场景选择架构中的设备,如该架构中的设备可以只有TC、DC和DD,也可以包括OSS、TC、DC和DD,也可以包括OSS运行设备(TC为OSS的组件)、DC和DD。上述描述中的“域”表示按某个标准划分的网络区域,如统一运用某种技术的网络区域,那么这个网络区域内的网络设备由于没有技术壁垒,便能实现网络设备间的高效互通。The system architecture may include: an operation support system (operation support system, OSS), a first network device, and a second network device. In Fig. 1, the first network device takes a top-level controller (top-level controller, TC) as an example, and the second network device takes a domain controller (domain controller, DC) or an in-domain device (in-domain device, DD) as an example for illustration. The architecture can select the devices in the architecture according to specific scenarios. For example, the devices in the architecture can only include TC, DC, and DD, or can include OSS, TC, DC, and DD, and can also include OSS running devices (TC is a component of OSS) , DC and DD. The "domain" in the above description refers to a network area divided by a certain standard, such as a network area that uniformly uses a certain technology, then the network devices in this network area can achieve efficient intercommunication between network devices because there are no technical barriers.
其中,该架构中各设备的功能可以为:OSS用于部署网络业务。例如,OSS可以通过向顶层控制器发送OSS操作请求向顶层控制器下发业务部署请求。网络业务包括网络运维业务,如连通性检测业务,用于对网络设备间的连通性检测。顶层控制器通过获取第一消息获得需要部署的业务请求。第一消息可以来自用户在顶层控制器界面输入的业务部署配置。第一消息还可以来自第三方系统发送的业务请求,例如OSS发送的OSS操作请求。第一消息可以为报文形式,如OSS发送的北向接口报文等。第一消息指示第一运维操作,例如,OSS需要顶层控制器执行一个路径连通性检测的运维操作。顶层控制器为了执行上述路径连通性检测的运维操作,需要向顶层控制器下的多个域控制器和/或多个域内网络设备下发多个运维操作。上述多个运维操作被执行后才能实现上述路径连通性检测的运维操作。那么第一运维操作包括了上述域控制器或域内设备需要执行的运维操作。第一消息获取方式可以根据OSS运行设备发送的OSS操作请求得到,也可以根据顶层控制器在本地的输入信息获取。如果上述域控制器或域内设备的运维操作命令或接口不同,顶层控制器需要根据运维操作命令或接口向上述域控制器或域内设备部署运维操作。在本实施例中,顶层控制器根据第一运维操作和运维模板中的转换关系,将第一运维操作转换为第二消息。第二消息可以为报文形式,可称为南向操作命令、南向接口报文。当第一消息包括第一输入参数时,将第一输入参数转换为指定域的操作命令的第二输入参数。第二消息中包括第二输入参数。顶层控制器还用于将第二消息发送至域控制器或域内设备。第二消息用于调用指定域的域控制器调用应用程序编程接口(application programming interface,API)执行API对应的运维操作。第二消息还可以用于基于网络运维协议向域控制器或域内设备下发运维操作配置,网络运维协议包括Netconf、SNMP等或私有协议,在此不做限定。指定域的域控制器用于接收第二消息并执行第二消息指示的运维操作。指定域的域控制器还用于将第二消息发送到指定域的域内设备,由域内设备根据第二消息,实现业务功能。在一些实施例中,指定域的控制器执行完第二消息指示的运维操作后,会向顶层控制器发送第二消息的响应消息。顶层控制器获得响应消息并根据相应消息携带的信息确定运维操作执行情况。当响应消息中包括第二输出参数时,在顶层控制器收到响应消息后,再由顶层控制器根据运维模板将第二输出参数转换为第一输出参数。Wherein, the functions of each device in the architecture may be: the OSS is used to deploy network services. For example, the OSS may deliver a service deployment request to the top-level controller by sending an OSS operation request to the top-level controller. Network services include network operation and maintenance services, such as connectivity detection services, which are used to detect connectivity between network devices. The top-level controller obtains the service request to be deployed by obtaining the first message. The first message may come from the service deployment configuration input by the user on the top-level controller interface. The first message may also come from a service request sent by a third-party system, for example, an OSS operation request sent by the OSS. The first message may be in the form of a message, such as a northbound interface message sent by the OSS. The first message indicates a first operation and maintenance operation, for example, the OSS requires the top-level controller to perform an operation and maintenance operation of path connectivity detection. In order to perform the operation and maintenance operation of the path connectivity detection described above, the top-level controller needs to send multiple operation and maintenance operations to multiple domain controllers and/or multiple intra-domain network devices under the top-level controller. The operation and maintenance operation of the path connectivity detection can be realized only after the above multiple operation and maintenance operations are executed. Then the first operation and maintenance operation includes the operation and maintenance operation that needs to be performed by the domain controller or the device in the domain. The first message acquisition method may be obtained according to the OSS operation request sent by the OSS running device, or may be obtained according to the local input information of the top-level controller. If the operation and maintenance operation commands or interfaces of the above-mentioned domain controllers or devices in the domain are different, the top-level controller needs to deploy operation and maintenance operations to the above-mentioned domain controllers or devices in the domain according to the operation and maintenance operation commands or interfaces. In this embodiment, the top-level controller converts the first operation and maintenance operation into the second message according to the conversion relationship between the first operation and maintenance operation and the operation and maintenance template. The second message may be in the form of a message, which may be called a southbound operation command or a southbound interface message. When the first message includes the first input parameter, converting the first input parameter into a second input parameter of an operation command specifying a domain. The second message includes a second input parameter. The top-level controller is also used to send the second message to a domain controller or an intra-domain device. The second message is used to invoke the domain controller of the specified domain to invoke an application programming interface (application programming interface, API) to execute the operation and maintenance operation corresponding to the API. The second message can also be used to deliver operation and maintenance operation configurations to domain controllers or devices in the domain based on network operation and maintenance protocols. Network operation and maintenance protocols include Netconf, SNMP, etc. or proprietary protocols, which are not limited here. The domain controller of the designated domain is configured to receive the second message and execute the operation and maintenance operation indicated by the second message. The domain controller of the designated domain is further configured to send the second message to the devices in the designated domain, and the devices in the domain implement service functions according to the second message. In some embodiments, after the controller of the designated domain executes the operation and maintenance operation indicated by the second message, it will send a response message of the second message to the top-level controller. The top-level controller obtains the response message and determines the execution status of the operation and maintenance operation according to the information carried in the corresponding message. When the response message includes the second output parameter, after the top-level controller receives the response message, the top-level controller converts the second output parameter into the first output parameter according to the operation and maintenance template.
需要说明的是,上述架构中各设备的功能仅作为示例,具体各设备的功能可以根据实际的应用场景灵活调整,举例来说,在处理第一消息时,也可能并不涉及第一输出参数和第二输出参数,即域内设备根据第二输入参数执行操作命令后,并不需要获得第二输出参数,响应消息中也不需要包括第二输出参数。It should be noted that the functions of each device in the above architecture are only examples, and the specific functions of each device can be flexibly adjusted according to actual application scenarios. For example, when processing the first message, the first output parameter may not be involved and the second output parameter, that is, after the device in the domain executes the operation command according to the second input parameter, it does not need to obtain the second output parameter, and the response message does not need to include the second output parameter.
该架构中可以实现各种运维操作,由于任一运维操作都可能出现多种不同场景,其消息也不相同,本申请实施例中预先编排好任一运维操作相应的运维模板,定义了各种场景 下需要的转换关系,如运维模板中包括第一输入参数与第二输入参数之间的转换关系,以及第一输出参数与第二输出参数之间的转换关系。这样以来,无论是哪种场景下的第一消息,顶层控制器和域控制器都可以通过统一的接口接收第一消息,并且根据运维模板和第一消息逐步进行相应的处理。需要说明的是,顶层控制器将第一消息转换为第二消息后,可以使得第二消息到达域内设备时可以直接执行,从而使得域内设备可以实现运维操作,涉及到跨域场景时,可以通过顶层控制器的转换,突破不同技术域之间的技术壁垒。Various operation and maintenance operations can be realized in this architecture. Since any operation and maintenance operation may have many different scenarios, the messages are also different. In the embodiment of this application, the operation and maintenance template corresponding to any operation and maintenance operation is pre-arranged. The conversion relationship required in various scenarios is defined. For example, the operation and maintenance template includes the conversion relationship between the first input parameter and the second input parameter, and the conversion relationship between the first output parameter and the second output parameter. In this way, regardless of the first message in any scenario, both the top-level controller and the domain controller can receive the first message through a unified interface, and perform corresponding processing step by step according to the operation and maintenance template and the first message. It should be noted that after the top-level controller converts the first message into the second message, the second message can be executed directly when it arrives at the device in the domain, so that the device in the domain can implement operation and maintenance operations. When it comes to cross-domain scenarios, you can Break through the technical barriers between different technical domains through the conversion of the top-level controller.
另外,对于需要执行的第二运维操作,涉及到的第二网络设备可以预先挂载第二运维操作,从而可以使得第二网络设备(如域内设备)接收到相应第二运维操作后,便能确定是预先挂载的第二运维操作,那么便可以执行该第二运维操作。上述架构实现的业务可以是域内的业务,也可以是跨域的业务。对于域内的业务,执行业务功能的域内设备只涉及一个网络区域的域内设备;对于跨域的业务,执行业务功能的域内设备需要涉及多个网络区域内的域内设备。举例来说,对于图2示出的架构,在一个局域网内进行连通性检测,那么需要在这个局域网内挂载连通性检测的第二运维操作,使得连通性检测的第二运维操作在该局域网内执行具备合法性,待OSS向顶层控制器输出连通性检测的OSS操作请求时,顶层控制器通过执行OSS操作请求,将OSS操作请求中连通性检测的第一输入参数转换为连通性检测的第二输入参数,再经域控制器向该局域网的域内设备下发连通性检测的第二输入参数,第二输入参数包含在连通性检测的第二消息中,那么局域网的域内设备便能根据第二输入参数,成功执行连通性检测的操作命令;对于跨域的业务,如无源光网络(passive optical network,PON)与光传送网(optical transport network,OTN)之间的因特网包探索器(packet internet groper,PING)操作,可以通过链路跟踪(link trace,LT)技术实现,那么便需要在PON域和OTN域中均挂载各自的第二运维操作(LT操作命令),使得第二运维操作在PON域和OTN域内的执行均具备合法性,待OSS需要在PON域和OTN域之间进行链路跟踪时,便向PON域和OTN域内的相关设备下发第二运维操作(可以包含LT相应的第二输入参数),PON域和OTN域内的域内设备执行相应的链路跟踪的操作命令即能实现PON域和OTN域之间的链路跟踪功能。In addition, for the second operation and maintenance operation that needs to be performed, the second network device involved can preload the second operation and maintenance operation, so that the second network device (such as a device in the domain) can receive the corresponding second operation and maintenance operation , it can be determined that it is the second operation and maintenance operation of pre-mounting, and then the second operation and maintenance operation can be executed. The services realized by the above architecture can be intra-domain services or cross-domain services. For intra-domain services, intra-domain devices performing service functions only involve intra-domain devices in one network area; for cross-domain services, intra-domain devices performing service functions need to involve intra-domain devices in multiple network areas. For example, for the architecture shown in Figure 2, if the connectivity detection is performed in a local area network, then the second operation and maintenance operation of the connectivity detection needs to be mounted in this local area network, so that the second operation and maintenance operation of the connectivity detection is in The execution in the local area network is legal. When the OSS outputs an OSS operation request for connectivity detection to the top-level controller, the top-level controller converts the first input parameter of the connectivity detection in the OSS operation request into connectivity by executing the OSS operation request. The second input parameter detected, and then the domain controller sends the second input parameter of connectivity detection to the devices in the local area network, and the second input parameter is included in the second message of connectivity detection, then the devices in the local area network will According to the second input parameter, the operation command of connectivity detection can be successfully executed; for cross-domain services, such as Internet packets between passive optical network (passive optical network, PON) and optical transport network (optical transport network, OTN) The explorer (packet internet groper, PING) operation can be realized through the link trace (LT) technology, then it is necessary to mount the respective second operation and maintenance operation (LT operation command) in both the PON domain and the OTN domain , so that the execution of the second O&M operation in both the PON domain and the OTN domain is legal. When the OSS needs to perform link tracking between the PON domain and the OTN domain, it will issue the second Second operation and maintenance operation (may include the corresponding second input parameter of LT), the intra-domain devices in the PON domain and OTN domain execute the corresponding link tracking operation command to realize the link tracking function between the PON domain and the OTN domain.
更具体地,图1或图2中顶层控制器内部的软件架构示意图如图3所示,顶层控制器内部具体可用包括以下软件模块:More specifically, a schematic diagram of the software architecture inside the top-level controller in FIG. 1 or FIG. 2 is shown in FIG. 3 . Specifically, the top-level controller can include the following software modules:
(1)业务逻辑处理系统,包括如下部件:(1) Business logic processing system, including the following components:
业务设计器,用于将运维模板和业务模型绑定,并生成操作应用策略,操作应用策略用于控制不同情形下的网络运维操作。业务模型是封装的网络运维功能的模型,用于实现通用的网络运维功能,业务模型可以将一个运维操作的不同应用场景归并到一起。The service designer is used to bind the operation and maintenance template and the business model, and generate operation application strategies, which are used to control network operation and maintenance operations in different situations. The business model is the model of the encapsulated network operation and maintenance function, which is used to realize the general network operation and maintenance function. The business model can combine different application scenarios of an operation and maintenance operation together.
北向应用程序接口(application programming interface,API),用于接收第一消息,例如OSS操作请求,并根据操作应用策略触发操作执行器生成第一运维操作。A northbound application programming interface (application programming interface, API) is used to receive the first message, such as an OSS operation request, and trigger the operation executor to generate the first operation and maintenance operation according to the operation application policy.
业务图形用户界面(graphical user interface,GUI),用于接收第一消息,例如用户操作请求,并根据操作应用策略触发操作执行器执行生成第一运维操作。A business graphical user interface (graphical user interface, GUI) is configured to receive a first message, such as a user operation request, and trigger an operation executor to execute and generate a first operation and maintenance operation according to an operation application policy.
逻辑处理器:用于根据设定的业务逻辑进行业务逻辑处理。Logic processor: used to perform business logic processing according to the set business logic.
(2)操作设计器用于通过按照操作需求生成运维模板,并通过运维模板库管理运维模板。(2) The operation designer is used to generate operation and maintenance templates according to operation requirements, and manage operation and maintenance templates through the operation and maintenance template library.
(3)运维模板库,用于维护运维模板,其中,维护包括存储、修改、查询和新增运维模板等。(3) The operation and maintenance template library is used to maintain the operation and maintenance template, wherein the maintenance includes storing, modifying, querying and adding the operation and maintenance template, etc.
(4)操作执行器用于根据运维模板生成第二消息,并显示输入界面和输出界面,以及接 收请求、显示处理结果,还用于按照运维模板中参数模型的定义,解析第一消息的输入参数,并传递给南向适配(adapter)模块,分发给各个域控制器,以及用于按照运维模板中出参模型的定义,解析并显示各个域控制器返回。(4) The operation executor is used to generate the second message according to the operation and maintenance template, display the input interface and output interface, receive the request, and display the processing result, and is also used to analyze the content of the first message according to the definition of the parameter model in the operation and maintenance template The parameters are input and passed to the southbound adapter module, distributed to each domain controller, and used to parse and display the return of each domain controller according to the definition of the output parameter model in the operation and maintenance template.
(5)南向适配模块,用于与各个域控制器的通信协议转换。(5) Southbound adaptation module, used for communication protocol conversion with each domain controller.
需要说明的是,图3示出的顶层控制器的软件架构仅作为示例,还可以灵活组织各软件模块,并设计各软件模块的功能,在此不作限定。It should be noted that the software architecture of the top-level controller shown in FIG. 3 is only an example, and various software modules can be flexibly organized and functions of each software module can be designed, which is not limited here.
下面结合图4,详细描述本申请实施例提供的一种运维操作方法的实现过程示意图。如图4所示,该实现过程具体步骤如下:A schematic diagram of an implementation process of an operation and maintenance operation method provided by an embodiment of the present application will be described in detail below with reference to FIG. 4 . As shown in Figure 4, the specific steps of the implementation process are as follows:
步骤401:编排运维操作的运维模板。Step 401: Arranging an operation and maintenance template for operation and maintenance operations.
步骤402:将运维操作的运维模板绑定至业务对象,并设置操作应用策略。Step 402: Bind the operation and maintenance template of the operation and maintenance operation to the business object, and set the operation application strategy.
步骤403:执行运维操作。Step 403: Execute operation and maintenance operations.
步骤401中,举例来说,运维操作为PON设备到OTN设备的PING操作,可以通过LT技术实现PING操作。In step 401, for example, the operation and maintenance operation is a PING operation from the PON device to the OTN device, and the PING operation can be implemented by using the LT technology.
运维模板包括:运维操作标识、操作应用策略和操作基本信息。The O&M template includes: O&M operation identifier, operation application policy, and basic operation information.
其中,运维操作标识用于指示运维操作,也标识一个运维模板。运维操作标识包括但不限于运维操作名称、运维操作序号等。Wherein, the operation and maintenance operation identifier is used to indicate the operation and maintenance operation, and also identifies an operation and maintenance template. The operation and maintenance operation identifier includes but is not limited to the name of the operation and maintenance operation, the sequence number of the operation and maintenance operation, etc.
操作应用策略指操作适用的情形,操作应用策略可以包括运维操作模式,运维操作模式指运维操作的执行流程模式,包括同步模式、异步模式和上报模式,其中,同步模式下,执行运维操作的网络设备需要一直等待操作报文(第二消息)的响应报文(响应消息),直至接收到所述响应报文后才可以执行其他运维操作;异步模式下,执行运维操作的网络设备可以等待操作报文的响应报文的同时,异步执行其他运维操作;上报模式下,执行操作的网络设备直接执行运维操作报文,不需要转发运维操作报文,更不需要等待响应报文。操作应用策略还可以包括业务对象,业务对象中指定了运维模板生效的设备;操作应用策略还可以包括如设备类型、运维操作的版本等操作适应情形的信息。The operation application strategy refers to the situation where the operation is applicable. The operation application strategy can include the operation and maintenance operation mode. The operation and maintenance operation mode refers to the execution flow mode of the operation and maintenance operation, including synchronous mode, asynchronous mode and reporting mode. The network equipment for maintenance operation needs to wait for the response message (response message) of the operation message (second message) until it receives the response message before performing other operation and maintenance operations; in asynchronous mode, the operation and maintenance operation The network device can execute other operation and maintenance operations asynchronously while waiting for the response message of the operation message; Need to wait for the response message. The operation application policy can also include a business object, which specifies the equipment for which the operation and maintenance template takes effect; the operation application policy can also include information such as the type of equipment, the version of the operation and maintenance operation, and other operational adaptation situations.
操作基本信息指操作的基本模型,可以包括操作名和转换模型,其中,转换模型用于指示所述第一运维操作与所述第二运维操作的转换关系;转换模型可以包括参数模型,参数模型可以包括入参模型和出参模型。其中,入参模型包括定义操作的输入参数的南向模型和北向模型,输入参数的北向模型为输入参数的报文体模型,输入参数的南向模型用于指示所述第一运维操作的第一输入参数和所述第二消息的转换关系,如输入参数到外部系统的指定报文体的模型,举例来说,顶层控制器中,可以基于映射文件实现将顶层控制器收到的第一输入参数转换为满足域控制器的第二输入参数,即为顶层控制器的输出报文,输出报文的格式即满足域控制器的输入报文所需的指定格式(即第二输入参数的格式);相应地,出参模型和入参模型类似,出参模型可以参照入参模型的描述,出参模型用于指示所述第一运维操作的第一输出参数与所述第二运维操作的第二输出参数的转换关系,在此不再赘述。需要说明的是,入参模型或出参模型并不一定要包括,运维操作的运维模板可以只有入参模型但没有出参模型,还有一些运维操作的运维模板也可以只有出参模型但没有入参模型,或者二者皆有,二者皆无,在此不做限定,具体需要根据运维操作的操作特性来设计。入参模型和出参模型都可以灵活选取具体的数据定义格式,如JsonSchema定义格式,再如映射文件,可以将输入的操作报文映射为域控制器指定格式的第二输入参 数,映射文件可采用FreeMarker扩展语法实现。可以通过在线系统完成运维模板的设计,并存入运维模板库中,校验运维模板的有效性,并发布运维模板。The basic operation information refers to the basic model of the operation, which may include an operation name and a conversion model, wherein the conversion model is used to indicate the conversion relationship between the first operation and maintenance operation and the second operation and maintenance operation; the conversion model may include a parameter model, parameter A model can include an input model and an output model. Wherein, the input parameter model includes a southbound model and a northbound model defining the input parameters of the operation, the northbound model of the input parameters is the message body model of the input parameters, and the southbound model of the input parameters is used to indicate the first operation and maintenance operation The conversion relationship between an input parameter and the second message, such as the model of the input parameter to the specified message body of the external system, for example, in the top-level controller, the first input received by the top-level controller can be realized based on the mapping file The parameter conversion is to satisfy the second input parameter of the domain controller, that is, the output message of the top-level controller, and the format of the output message is to meet the specified format required by the input message of the domain controller (that is, the format of the second input parameter ); correspondingly, the output parameter model is similar to the input parameter model, and the output parameter model can refer to the description of the input parameter model, and the output parameter model is used to indicate that the first output parameter of the first operation and maintenance operation is different from the second operation and maintenance operation The conversion relationship of the second output parameter of the operation will not be repeated here. It should be noted that the input model or the output model does not have to be included. The operation and maintenance template of the operation and maintenance operation can only have the input model but no output model, and some operation and maintenance operation templates can also only have the output model. Participating in the model but not in the participating model, or both, and neither, there is no limitation here, and it needs to be designed according to the operational characteristics of the operation and maintenance operation. Both the input parameter model and the output parameter model can flexibly select the specific data definition format, such as the JsonSchema definition format, or the mapping file, which can map the input operation message to the second input parameter in the format specified by the domain controller. The mapping file can be Implemented using FreeMarker extended syntax. The design of the operation and maintenance template can be completed through the online system, and stored in the operation and maintenance template library, the validity of the operation and maintenance template can be verified, and the operation and maintenance template can be released.
具体来说,PON设备到OTN设备的PING操作为例,PON设备和OTN设备侧需要分别定义两个运维模板,并通过不同的操作应用策略控制不同技术领域应用不同的运维模板。以PON设备侧为例,操作名为PING,OSS和GUI感知到的都是通用接口的PING操作。可以通过Json文件定义运维模板,运维模板的结构可以如下:Specifically, take the PING operation from the PON device to the OTN device as an example. The PON device and the OTN device need to define two O&M templates respectively, and use different operation and application strategies to control the application of different O&M templates in different technical fields. Taking the PON device side as an example, the operation name is PING, and both OSS and GUI perceive the PING operation of the common interface. The operation and maintenance template can be defined through the Json file, and the structure of the operation and maintenance template can be as follows:
模板标识(id)、操作应用策略(commandRestraint)、操作基本信息(commandBasciInfo);其中操作基本信息包括:操作名(operationName)、入参模型(commandConfigure)和出参模型(commandStatus)。Template identifier (id), operation application strategy (commandRestraint), and basic operation information (commandBasciInfo); the basic operation information includes: operation name (operationName), input parameter model (commandConfigure) and output parameter model (commandStatus).
运维模板的样例如下:A sample of the O&M template is as follows:
Figure PCTCN2022123609-appb-000001
Figure PCTCN2022123609-appb-000001
Figure PCTCN2022123609-appb-000002
Figure PCTCN2022123609-appb-000002
需要说明的是,上述模板样例的结构中,一些变量可能包括多层,变量后“{}”和\或“[]”里的内容表示一个变量的具体定义,变量内还可以再嵌套变量,即用“{}”和\或“[]”描述的变量内部还可以再包括用“{}”和\或“[]”描述的变量,如commandRestraint中包括"rootRestraints"和"applyObjects",并且每个“{}”和\或“[]”内定义的变量,其取值的作用域仅在该“{}”和\或“[]”内,如"commandConfigure"中的“value”,其作用域仅在"commandConfigure"内,"commandStatus"中的“value”,其作用域仅在"commandStatus"内,上述模板样例中的汉字皆为代码注释。It should be noted that in the structure of the above template example, some variables may include multiple layers, and the content in "{}" and \ or "[]" after the variable indicates the specific definition of a variable, and the variable can also be nested Variables, that is, variables described with "{}" and \ or "[]" can also include variables described with "{}" and \ or "[]", such as "rootRestraints" and "applyObjects" in commandRestraint , and each variable defined in "{}" and \ or "[]", the scope of its value is only within the "{}" and \ or "[]", such as "value in "commandConfigure" ", its scope is only in "commandConfigure", the scope of "value" in "commandStatus" is only in "commandStatus", the Chinese characters in the above template samples are all code comments.
从上述运维模板样例可知,其中,id为运维模板的模板标识,在样例中,id的取值为"NCEFANEthernetOamLTCommandTemplate ID";description为运维模板的描述,用于说明运维模板所实现的业务功能;operStatus为运维模板的发布状态,可以为已发布(deployed)或取消发布(undeployed);commandRestraint为操作应用策略,其中rootRestraints中定义了运维操作可应用的应用场景,"scenario":"OTN_P2MP"表示该运维模板的应用于OTN域,以及点对多点主站(point 2multiple point,P2MP)技术,"subScenario":"TP"表示Termination Point,描述本操作是针对端口级别的,vendors为运维操作可运行的厂家、设备类型及版本信息,processMode为操作模式,样例中"syncMode"表示同步模式,applyObjects为运维操作的应用对象,"objectType"为对象类型,"COMPOSED-AC"表示组合业务接入点,表示端对端业务的接入点,"validScopes"表示详细的操作应用约束,validScopes是名值对列表,"validScopes"中的"name"为参数名称,"workingLayer"表示工作层,指本操作生效的层次,"validScopes"中的"value"为参数取值,"LR_Ethernet"表示以太网(Ethernet)业务才允许启动。若接入点的工作模式不是以太网则不允许启动此命令;commandBasicinfo为操作基本信息,operationName为通用操作名,举例来说,厂家连通性检测操作是以太OAM LT操作,但对外可以通过操作名(operationName)统一封装为PING(传输、接入和数通拉通),此时operationName可以为“PING”;commandConfigure为入参模型,commandConfigure中的“name”指向一个具体入参模型的名称,该入参模型通过入参的定义组件和组件映射文件实现,commandConfigure中的“value”为入参模板对应的唯一标识ID。具体来说,定义组件结构的样例可以如下:As can be seen from the above O&M template sample, where id is the template identifier of the O&M template. In the example, the value of id is "NCEFANEthernetOamLTCommandTemplate ID"; description is the description of the O&M template, which is used to describe the operation and maintenance template The business function realized; operStatus is the release status of the operation and maintenance template, which can be deployed (deployed) or undeployed (undeployed); commandRestraint is the operation application strategy, in which rootRestraints defines the applicable application scenarios of the operation and maintenance operation, "scenario ":"OTN_P2MP" indicates that the operation and maintenance template is applied to the OTN domain and the point-to-multipoint master (point 2 multiple point, P2MP) technology, "subScenario":"TP" indicates Termination Point, and the description of this operation is for the port level Yes, vendors is the manufacturer, device type and version information that the operation and maintenance operation can run, processMode is the operation mode, "syncMode" in the sample indicates the synchronization mode, applyObjects is the application object of the operation and maintenance operation, "objectType" is the object type, " "COMPOSED-AC" means the combined service access point, means the access point of the end-to-end business, "validScopes" means the detailed operation application constraints, validScopes is a list of name-value pairs, "name" in "validScopes" is the parameter name, "workingLayer" indicates the working layer, which refers to the layer where this operation takes effect, "value" in "validScopes" is the parameter value, and "LR_Ethernet" indicates that the Ethernet service is allowed to start. If the working mode of the access point is not Ethernet, it is not allowed to start this command; commandBasicinfo is the basic information of the operation, and operationName is the general operation name. For example, the manufacturer’s connectivity detection operation is Ethernet OAM LT operation, but the operation name (operationName) is uniformly packaged as PING (transmission, access, and data communication), and the operationName can be "PING" at this time; commandConfigure is an input parameter model, and "name" in commandConfigure points to the name of a specific input parameter model. The input model is implemented through the input definition component and component mapping file, and the "value" in commandConfigure is the unique ID corresponding to the input template. Specifically, an example of defining a component structure can be as follows:
定义组件结构可以包括组件模板和组件映射文件两个部分,其中组件模板通过JsonSchema描述了参数的输入和约束。Defining the component structure may include two parts: a component template and a component mapping file, wherein the component template describes the input and constraints of parameters through JsonSchema.
组件模板具体样例如下:Specific examples of component templates are as follows:
Figure PCTCN2022123609-appb-000003
Figure PCTCN2022123609-appb-000003
Figure PCTCN2022123609-appb-000004
Figure PCTCN2022123609-appb-000004
组件映射文件:就是将第一消息(北向接口报文)翻译为输入域控制器的第二消息(南向接口报文),样例片段如下:Component mapping file: it is to translate the first message (northbound interface message) into the second message (southbound interface message) input to the domain controller. The sample fragment is as follows:
Figure PCTCN2022123609-appb-000005
Figure PCTCN2022123609-appb-000005
入参模型通过commandConfigure定义,出参模型通过commandStatus定义,通过北向接口组件名指向一个JsonSchema定义的北向接口组件和映射文件。该JsonSchema定义了PING操作所必须的输入参数,例如源端维护端点(maintenance entity group end point,MEP)标识,生存时间(Time To Live,TTL)等值;出参模型(commandStatus)中的“name”、“value”和commandConfigure类似,可参照入参模型的描述。The input parameter model is defined through commandConfigure, the output parameter model is defined through commandStatus, and the northbound interface component name points to a northbound interface component and mapping file defined by JsonSchema. The JsonSchema defines the necessary input parameters for the PING operation, such as the identity of the source end maintenance entity group end point (MEP), the time to live (Time To Live, TTL) and other values; the "name" in the output parameter model (commandStatus) ", "value" are similar to commandConfigure, you can refer to the description of the input parameter model.
通过编排运维模板的方式,可以实现将任意运维操作抽象为可扩展的通用运维模板,可以通过实时编排运维模板,大幅降低运维操作的开发工作量。这是因为,通过运维模板抽象了各场景下的情形,运维模板中会自动生成不同场景下的界面、输入参数、输出参数、以及不同操作模式,不用每个场景下都重复编排,因此工作量会降低。操作模式可以抽象为通用操作的同步接口和操作的异步接口,应用逻辑从运维模板中获取流程模式,调用统 一同步接口或者异步接口,在该统一接口中利用绑定的业务对象的映射文件,将第一输入参数转换为第二输入参数,以及将第二输出参数为第一输出参数,通过运维模板和操作应用策略关联,实现了向OSS提供业务级抽象接口。By arranging operation and maintenance templates, any operation and maintenance operation can be abstracted into a scalable general operation and maintenance template, and the development workload of operation and maintenance operations can be greatly reduced by arranging operation and maintenance templates in real time. This is because the situation in each scenario is abstracted through the operation and maintenance template, and the interface, input parameters, output parameters, and different operation modes in different scenarios will be automatically generated in the operation and maintenance template, without repeated arrangement in each scenario, so The workload will be reduced. The operation mode can be abstracted into a synchronous interface for general operations and an asynchronous interface for operations. The application logic obtains the process mode from the operation and maintenance template, calls the unified synchronous interface or asynchronous interface, and uses the mapping file of the bound business object in the unified interface. The first input parameter is converted into the second input parameter, and the second output parameter is converted into the first output parameter. By associating the operation and maintenance template with the operation application strategy, the service-level abstract interface is provided to the OSS.
步骤402中,业务对象可以包括实现业务连接的各接入点(如两个接入点)和接入点间的网络路径。若运维操作的运维模板直接绑定在业务对象上,那么由于一个业务的运维操作是需要各接入点配合实现的,那么运维操作将分解为各接入点上的操作命令,各接入点上都需要执行运维操作。举例来说,各接入点具体为PON域的指定PON设备以及OTN域的指定OTN设备,运维操作为节点激活操作,节点激活操作为在指定网络区域中注册节点,在该例中即为指定PON设备和指定OTN设备,那么当节点激活操作执行时,需要分别在指定PON设备和指定OTN设备上同步执行各自对应的节点激活命令。In step 402, the service object may include each access point (for example, two access points) realizing the service connection and a network path between the access points. If the operation and maintenance template of the operation and maintenance operation is directly bound to the business object, then since the operation and maintenance operation of a business requires the cooperation of each access point, the operation and maintenance operation will be decomposed into operation commands on each access point, O&M operations need to be performed on each access point. For example, each access point is specifically a designated PON device in the PON domain and a designated OTN device in the OTN domain. The operation and maintenance operation is a node activation operation, and the node activation operation is to register a node in a designated network area. In this example, If you specify a PON device and a designated OTN device, when the node activation operation is executed, the corresponding node activation commands need to be executed synchronously on the designated PON device and the designated OTN device respectively.
业务对象也可以仅为接入点,那么运维操作可以只由某个接入点发起,无需同步执行。举例来说,运维模板绑定在了指定PON设备和指定OTN设备上,运维操作为时延检测操作,那么既可以从指定PON设备上发起时延检测命令(南向操作命令),指定PON设备侧等待指定OTN设备响应即可,又可以从指定OTN设备上发起时延检测命令(南向操作命令),指定OTN设备侧等待指定PON设备响应即可。The business object can also be only the access point, so the operation and maintenance operation can only be initiated by a certain access point without synchronous execution. For example, if the operation and maintenance template is bound to the specified PON device and the specified OTN device, and the operation and maintenance operation is a delay detection operation, then the delay detection command (southbound operation command) can be initiated from the specified PON device, and the specified The PON device side only needs to wait for the response from the designated OTN device, and can initiate a delay detection command (southbound operation command) from the designated OTN device, and the designated OTN device side only needs to wait for the response from the designated PON device.
需要说明的是,上述运维操作在不同情形具体如何执行,是受到运维操作策略约束的。在顶层控制器将第一消息转换为第二消息之前,还需要通过运维操作策略判断OTN设备和PON设备是否开通了相应的运维操作,运维模板的运维操作策略还包括业务对象,业务对象中可以指定一端生效和多端生效,运维操作策略中还可以指定生效的设备类型、指定操作命令的生效版本等,可以根据具体的运维操作灵活设计;其中,对于划分源端和宿段的业务,一段生效可以为源端生效和宿端生效,多端生效可以为两端生效。It should be noted that how the above operation and maintenance operations are performed in different situations is constrained by the operation and maintenance operation policy. Before the top-level controller converts the first message into the second message, it is necessary to judge whether the OTN device and PON device have enabled the corresponding operation and maintenance operation through the operation and maintenance operation strategy. The operation and maintenance operation strategy of the operation and maintenance template also includes business objects. In the business object, one end and multiple ends can be specified, and the operation and maintenance operation strategy can also specify the effective device type, the effective version of the specified operation command, etc., which can be flexibly designed according to the specific operation and maintenance operation; among them, for the division of source and sink One-segment business, one-segment validation can be effective at the source end and the sink end, and multi-terminal activation can be effective at both ends.
PON设备到OTN设备的PING操作的示例中,运维操作策略可以通过Json文件定义,具体来说,运维操作策略可以如下:In the example of the PING operation from the PON device to the OTN device, the operation and maintenance operation strategy can be defined through the Json file. Specifically, the operation and maintenance operation strategy can be as follows:
其中,CommandTemplate为运维模板标识,用于绑定运维模板名;CommandOperateName为运维操作对应显示的操作命令的名称;GUIHookPoint为界面挂节点,用于指明运维操作所挂载的业务对象;ValidObjectCfg为操作生效策略,指定源端生效;BindingBusinessObjects为应用对象,用于控制该运维模板在哪些业务对象上生效,fdName具体为绑定的业务对象的名称。Among them, CommandTemplate is the operation and maintenance template identifier, which is used to bind the operation and maintenance template name; CommandOperateName is the name of the operation command displayed corresponding to the operation and maintenance operation; GUIHookPoint is the interface hanging node, which is used to indicate the business object mounted by the operation and maintenance operation; ValidObjectCfg is the operation validation strategy, specifying the source to take effect; BindingBusinessObjects is the application object, which is used to control which business objects the operation and maintenance template takes effect on, and fdName is specifically the name of the bound business object.
运维操作策略的样例如下,具体可以包括如下字段:An example of an operation and maintenance operation policy is as follows, which may specifically include the following fields:
Figure PCTCN2022123609-appb-000006
Figure PCTCN2022123609-appb-000006
Figure PCTCN2022123609-appb-000007
Figure PCTCN2022123609-appb-000007
下面以第一网络设备为顶层控制器为例,以及以第二网络设备为域控制器为例,详细描述步骤403应用于顶层控制器控制任一指定域执行运维操作场景时的流程,步骤403的具体步骤可以参照图5,为执行运维操作的具体流程图。The following takes the first network device as the top-level controller as an example and the second network device as the domain controller as an example to describe in detail the process of step 403 when the top-level controller controls any designated domain to perform operation and maintenance operations. For specific steps in 403, reference may be made to FIG. 5 , which is a specific flowchart for performing operation and maintenance operations.
步骤501:顶层控制器获取第一消息。Step 501: The top-level controller obtains the first message.
具体来说,第一运维操作可以为在单域的操作,也可以为跨域的操作,所述第一消息指示第一运维操作,所述第一运维操作包括需要第二网络设备执行的第二运维操作,所述第二运维操作是根据所述第一运维操作和运维模板获得的,所述第二网络设备执行所述第二运维操作可由所述第二消息指示,所述运维模板包括运维操作标识和转换模型,所述运维操作标识指示所述第一运维操作,所述转换模型指示所述第一运维操作与所述第二运维操作的转换关系。Specifically, the first operation and maintenance operation may be an operation in a single domain or a cross-domain operation, the first message indicates the first operation and maintenance operation, and the first operation and maintenance operation includes the need for the second network device The second operation and maintenance operation is performed, the second operation and maintenance operation is obtained according to the first operation and maintenance operation and the operation and maintenance template, and the execution of the second operation and maintenance operation by the second network device can be performed by the second The message indicates that the operation and maintenance template includes an operation and maintenance operation identifier and a conversion model, the operation and maintenance operation identifier indicates the first operation and maintenance operation, and the conversion model indicates the relationship between the first operation and maintenance operation and the second operation and maintenance operation. The conversion relationship of the dimension operation.
需要说明的是,第一消息可以包括第一输入参数,若运维操作对应的运维模板中包括入参模型,那么便需要按照入参模型中的规范,获取第一输入参数。在获取第一输入参数时,步骤501中可以按照运维操作的运维模板中入参模型,生成客户端的操作界面,根据客户端的操作界面的输入信息,确定运维操作的第一输入参数,可以如图6所示,根据入参的JsonSchema定义,生成一个Json操作界面,获取Json操作界面的输入信息,或者,顶层控制器也可以根据入参模型,从OSS设备发送的OSS操作请求提取运维操作的第一输入参数;步骤501可以通过图3中的操作执行器实现。It should be noted that the first message may include the first input parameter. If the operation and maintenance template corresponding to the operation and maintenance operation includes the input parameter model, then the first input parameter needs to be obtained according to the specification in the input parameter model. When obtaining the first input parameter, in step 501, the operation interface of the client may be generated according to the input model in the operation and maintenance template of the operation and maintenance operation, and the first input parameter of the operation and maintenance operation may be determined according to the input information of the operation interface of the client. As shown in Figure 6, according to the JsonSchema definition of the input parameters, a Json operation interface can be generated to obtain the input information of the Json operation interface, or the top-level controller can also extract operation The first input parameter of the dimension operation; step 501 can be implemented by the operation executor in FIG. 3 .
步骤502:顶层控制器根据运维操作策略确定域控制器可执行的运维操作是否包括第二运维操作。Step 502: The top-level controller determines whether the operation and maintenance operations executable by the domain controller include the second operation and maintenance operation according to the operation and maintenance operation policy.
若是,执行步骤503,否则,直接结束流程。If yes, execute step 503; otherwise, end the process directly.
步骤503:顶层控制器根据第一消息生成第二消息,并确定运维模板中的操作模式。Step 503: the top-level controller generates a second message according to the first message, and determines the operation mode in the operation and maintenance template.
举例来说,第一消息为OSS操作请求,直接根据入参模型模型转换为Json报文,Json报文具体可以如下:For example, the first message is an OSS operation request, which is directly converted into a Json message according to the input parameter model model. The details of the Json message can be as follows:
CommonCommandCommonCommand
operationName:pingoperationName: ping
commandConfigure挂节点commandConfigure hanging node
|--name:PONEthernetOamLTCfg|--name:PONEthernetOamLTCfg
|--value:“{{\“remoteMepId\”:2,\”ttl\”:62}}”|--value: "{{\"remoteMepId\":2,\"ttl\":62}}"
其中,commandConfigure为入参模型,PONEthernetOamLTCfg表示,remoteMepId表示远端MEP点的ID,TTL表示生存时间为62毫秒(ms)。Among them, commandConfigure is the input parameter model, PONEthernetOamLTCfg indicates that, remoteMepId indicates the ID of the remote MEP point, and TTL indicates that the lifetime is 62 milliseconds (ms).
具体来说,当待处理操作请求中包括第一输入参数时,顶层控制器可以根据运维模板中入参模型的映射文件,将第一输入参数转换为第二输入参数,根据第二输入参数生成南向接口报文,南向接口报文中的第二输入参数的格式为域控制器要求输入参数的指定格式;步骤502可以通过图3中的操作执行器实现。Specifically, when the pending operation request includes the first input parameter, the top-level controller can convert the first input parameter into the second input parameter according to the mapping file of the input parameter model in the operation and maintenance template, and according to the second input parameter A southbound interface message is generated, and the format of the second input parameter in the southbound interface message is the specified format required by the domain controller for input parameters; step 502 can be implemented by the operation executor in FIG. 3 .
若操作模式为同步模式,则执行步骤504;若操作模式为异步模式,则执行步骤505;步骤503可以通过图3中的逻辑处理器实现。If the operation mode is synchronous mode, execute step 504; if the operation mode is asynchronous mode, execute step 505; step 503 can be implemented by the logical processor in FIG. 3 .
步骤504:顶层控制器将南向接口报文发送至指定域控制器,并等待南向接口报文的响应报文。Step 504: the top-level controller sends the southbound interface message to the designated domain controller, and waits for a response message of the southbound interface message.
若获取到响应报文,执行步骤507。If the response message is obtained, go to step 507.
步骤505:顶层控制器将南向接口报文发送至指定域控制器,并获取任务标识。Step 505: the top-level controller sends the southbound interface message to the designated domain controller, and obtains the task identifier.
该任务标识用于标记域控制器处理南向接口报文的任务。The task identifier is used to mark the domain controller as a task for processing southbound interface packets.
步骤506:顶层控制器根据任务标识等待南向接口报文的响应报文。Step 506: The top-level controller waits for the response message of the southbound interface message according to the task identifier.
若获取到响应报文,执行步骤507。需要说明的是,步骤506执行时,顶层控制器还可以并行执行其它操作。If the response message is obtained, go to step 507. It should be noted that, when step 506 is executed, the top-level controller may also execute other operations in parallel.
步骤507:顶层控制器根据响应报文做进一步处理。Step 507: The top-level controller performs further processing according to the response message.
若运维操作的运维模板包括出参模型,那么域内设备会得到第二输出参数,当若运维操作的运维模板包括出入参模型时,域内设备可以根据第二输入参数得到第二输出参数,该情形下,响应报文便会包括第二输出参数,那么便可以根据出参模型的映射文件,顶层控制器将域控制器输出的第二输出参数转换为北向的第一输出参数,第一输出参数的格式符合OSS要求的指定格式,从而可以将第一输出参数返回给OSS或者客户端的操作界面输出。If the operation and maintenance template of the operation and maintenance operation includes the output parameter model, the devices in the domain will get the second output parameter. If the operation and maintenance template of the operation and maintenance operation includes the input and output parameter model, the devices in the domain can get the second output according to the second input parameter parameter, in this case, the response message will include the second output parameter, then the top-level controller can convert the second output parameter output by the domain controller into the first northbound output parameter according to the mapping file of the output parameter model, The format of the first output parameter conforms to the specified format required by the OSS, so that the first output parameter can be returned to the OSS or the operation interface output of the client.
下面以更具体的例子描述,举例来说,运维操作为PON设备到OTN设备在PON设备的PING操作,可以通过LT命令实现PING操作,PING操作的运维模板包括入参模型和出参模型。具体步骤可以如图6所示,具体如下:The following is described with a more specific example. For example, the operation and maintenance operation is the PING operation from the PON device to the OTN device on the PON device. The PING operation can be realized through the LT command. The operation and maintenance template of the PING operation includes an input parameter model and an output parameter model. . The specific steps can be shown in Figure 6, specifically as follows:
步骤601:顶层控制器获取PING操作的北向接口报文。Step 601: The top-level controller obtains the northbound interface message of the PING operation.
举例来说,顶层控制器可以根据PING操作的入参模型的JsonSchema定义,生成一个客户端的Json视图界面,通过客户端的操作界面的输入信息,直接转换为Json格式的北向接口报文,且北向接口报文中包括第一输入参数。For example, the top-level controller can generate a Json view interface of the client according to the JsonSchema definition of the input parameter model of the PING operation, and directly convert the input information of the client's operation interface into a northbound interface message in Json format, and the northbound interface The message includes the first input parameter.
步骤602:顶层控制器将北向接口报文转换为南向接口报文。Step 602: The top-level controller converts the northbound interface packet into the southbound interface packet.
举例来说,顶层控制器通过入参模型的映射文件将第一输入参数转换为第二输入参数,第二输入参数为PON设备所在域所要求的输入参数的格式,第二输入参数包含在南向接口报文中。For example, the top-level controller converts the first input parameter into the second input parameter through the mapping file of the input parameter model. The second input parameter is the format of the input parameter required by the domain where the PON device is located. The second input parameter is included in the to the interface message.
步骤603:顶层控制器确定PING操作的运维模板中定义的操作模式为同步模式。Step 603: The top-level controller determines that the operation mode defined in the operation and maintenance template of the PING operation is a synchronous mode.
需要说明的是,在此是确定了PING操作定义的操作模式为同步模式,那么便执行步骤604,若定义的操作模式不为同步模式,还可能有其他的分支。It should be noted that, here, it is determined that the operation mode defined by the PING operation is the synchronous mode, and then step 604 is executed. If the defined operation mode is not the synchronous mode, there may be other branches.
步骤604:顶层控制器通过南向适配模块将转换好的南向接口报文下发给PON设备所在的域控制器,并等待获取响应报文。Step 604: The top-level controller sends the converted southbound interface message to the domain controller where the PON device is located through the southbound adaptation module, and waits to obtain a response message.
步骤605:域控制器将南向接口报文下发给PON设备。Step 605: the domain controller sends the southbound interface message to the PON device.
需要说明的是,在该例中,是预先确定了PING操作就是在PON设备上的运维操作,因此执行了步骤605,然而,在一些其它情形中,域控制器还可能确定南向接口报文对应的运维操作是在域控制器上的运维操作,那么便直接执行南向接口报文,实现在域控制器上的运维操作。It should be noted that, in this example, it is pre-determined that the PING operation is the operation and maintenance operation on the PON device, so step 605 is executed. However, in some other situations, the domain controller may also determine that the southbound interface report If the operation and maintenance operation corresponding to the document is the operation and maintenance operation on the domain controller, then the southbound interface packet is directly executed to realize the operation and maintenance operation on the domain controller.
步骤606:PON设备执行南向接口报文,根据第二输入参数得到第二输出参数。Step 606: The PON device executes the southbound interface message, and obtains the second output parameter according to the second input parameter.
其中,第二输出参数包含在响应报文中。Wherein, the second output parameter is included in the response message.
步骤607:PON设备将响应报文发送至域控制器。Step 607: the PON device sends the response packet to the domain controller.
步骤608:域控制器将响应报文发送至顶层控制器。Step 608: the domain controller sends the response packet to the top-level controller.
步骤609:顶层控制器根据PING操作的出参模型的映射文件,将第二输出参数转换为第一输出参数。Step 609: The top-level controller converts the second output parameter into the first output parameter according to the mapping file of the output parameter model of the PING operation.
步骤609之后,顶层控制器可以将第一输出参数转换为OSS或者在客户端的操作界面输出。After step 609, the top-level controller may convert the first output parameter into OSS or output it on the operation interface of the client.
上述方法只需要更新运维模板即可实现运维操作的在线扩展功能,不必重新加载程序包,实现免版本发布。上述方法实现了一个构筑生态的技术,OSS和客户端不需要理解复杂的处理逻辑,只需要按照这个内核框架编排运维模板就可以获得跨域业务的各种运维功能,从而解决跨技术域的端到端运维功能,快速适配不同技术域的特殊要求,以及解决当前跨技术域端到端的运维短板。The above method only needs to update the operation and maintenance template to realize the online expansion function of the operation and maintenance operation, without reloading the program package, and realizes version-free release. The above method implements a technology for building an ecology. OSS and clients do not need to understand complex processing logic. They only need to arrange operation and maintenance templates according to this kernel framework to obtain various operation and maintenance functions of cross-domain business, thereby solving cross-technical domain The end-to-end operation and maintenance function can quickly adapt to the special requirements of different technical domains, and solve the current cross-technical end-to-end operation and maintenance shortcomings.
如图7所示,本申请提供一种网络设备,该网络设备包括:As shown in Figure 7, the present application provides a network device, the network device includes:
获取模块701。用于获取第一消息,所述第一消息指示第一运维操作,所述第一运维操作包括需要第二网络设备执行的第二运维操作;Obtain module 701 . It is used to obtain a first message, the first message indicates a first operation and maintenance operation, and the first operation and maintenance operation includes a second operation and maintenance operation that needs to be performed by the second network device;
发送模块702,用于向所述第二网络设备发送第二消息,所述第二消息指示所述第二网络设备执行所述第二运维操作,所述第二运维操作是根据所述第一运维操作和运维模板获得的,所述运维模板包括运维操作标识和转换模型,所述运维操作标识指示所述第一运维操作,所述转换模型指示所述第一运维操作与所述第二运维操作的转换关系。A sending module 702, configured to send a second message to the second network device, the second message instructing the second network device to perform the second operation and maintenance operation, the second operation and maintenance operation is based on the The first operation and maintenance operation is obtained from an operation and maintenance template, the operation and maintenance template includes an operation and maintenance operation identifier and a conversion model, the operation and maintenance operation identifier indicates the first operation and maintenance operation, and the conversion model indicates the first operation and maintenance operation A conversion relationship between the operation and maintenance operation and the second operation and maintenance operation.
可选的,所述转换模型包括参数模型,所述参数模型指示所述第一运维操作的第一输入参数与所述第二运维操作的第二输入参数的转换关系。Optionally, the conversion model includes a parameter model, and the parameter model indicates a conversion relationship between the first input parameter of the first operation and maintenance operation and the second input parameter of the second operation and maintenance operation.
可选的,所述参数模型还指示所述第一运维操作的第一输入参数和所述第二消息的转换关系。Optionally, the parameter model further indicates a conversion relationship between the first input parameter of the first operation and maintenance operation and the second message.
可选的,所述参数模型还指示所述第一运维操作的第一输出参数与所述第二运维操作的第二输出参数的转换关系。Optionally, the parameter model further indicates a conversion relationship between the first output parameter of the first operation and maintenance operation and the second output parameter of the second operation and maintenance operation.
可选的,所述第一网络设备向所述第二网络设备发送第二消息之后,还包括:所述第一网络设备获取所述第二消息的响应消息,所述响应消息包括第二输出参数;所述第一网络设备根据所述参数模型和所述第二输出参数,获得所述第一输出参数。Optionally, after the first network device sends the second message to the second network device, the method further includes: the first network device obtains a response message of the second message, and the response message includes a second output parameter; the first network device obtains the first output parameter according to the parameter model and the second output parameter.
可选的,所述运维模板包括运维操作模式。Optionally, the operation and maintenance template includes an operation and maintenance operation mode.
可选的,所述运维操作模式包括同步模式或异步模式。Optionally, the operation mode of operation and maintenance includes synchronous mode or asynchronous mode.
可选的,所述发送模块702还用于:根据运维操作策略确定所述第二网络设备可执行的运维操作包括第二运维操作。Optionally, the sending module 702 is further configured to: determine according to the operation and maintenance operation policy that the operation and maintenance operations that can be performed by the second network device include the second operation and maintenance operation.
可选的,所述第一网络设备为顶层控制器,所述第二网络设备为所述第一网络设备下的域控制器或域内设备。Optionally, the first network device is a top-level controller, and the second network device is a domain controller or an intra-domain device under the first network device.
可选的,所述第二消息用于调用所述第二网络设备的第一应用编程接口API,所述第一API用于所述第二网络设备执行所述第二运维操作。Optionally, the second message is used to call a first application programming interface API of the second network device, and the first API is used for the second network device to perform the second operation and maintenance operation.
如图8所示,本申请提供一种网络设备,该网络设备包括:As shown in Figure 8, the present application provides a network device, the network device includes:
获取模块801,用于获取来自第一网络设备的第二消息,所述第二消息指示第二网络设备执行第二运维操作,所述第二运维操作是所述第一网络设备根据第一运维操作和运维模板获得的,所述第一运维操作为所述第一网络设备获取到的第一消息所指示的运维操作,所述第一运维操作包括需要所述第二网络设备执行的第二运维操作,所述运维模板包括运维操作标识和转换模型,所述运维操作标识指示所述第一运维操作,所述转换模型指示所 述第一运维操作与所述第二运维操作的转换关系;The obtaining module 801 is configured to obtain a second message from the first network device, the second message instructs the second network device to perform a second operation and maintenance operation, and the second operation and maintenance operation is performed by the first network device according to the first Obtained from an operation and maintenance operation and an operation and maintenance template, the first operation and maintenance operation is the operation and maintenance operation indicated by the first message obtained by the first network device, and the first operation and maintenance operation includes the operation and maintenance operation that requires the first The second operation and maintenance operation performed by the second network device, the operation and maintenance template includes an operation and maintenance operation identifier and a conversion model, the operation and maintenance operation identifier indicates the first operation and maintenance operation, and the conversion model indicates the first operation and maintenance operation The conversion relationship between the maintenance operation and the second operation and maintenance operation;
处理模块802,用于执行所述第二运维操作。The processing module 802 is configured to execute the second operation and maintenance operation.
可选的,所述转换模型包括参数模型,所述参数模型指示所述第一运维操作的第一输出参数与所述第二运维操作的第二输出参数的转换关系,所述处理模块802还用于:向所述第一网络设备发送所述第二消息的响应消息,所述响应消息包括所述第二输出参数,所述第二输出参数用于所述第一网络设备根据所述参数模型和所述第二输出参数,获得第一输出参数。Optionally, the conversion model includes a parameter model, the parameter model indicates a conversion relationship between the first output parameter of the first operation and maintenance operation and the second output parameter of the second operation and maintenance operation, and the processing module 802 is further configured to: send a response message of the second message to the first network device, where the response message includes the second output parameter, and the second output parameter is used by the first network device according to the The parameter model and the second output parameter are used to obtain a first output parameter.
本申请实施例还提供一种电子设备,该电子设备可以具有如图9所示的结构,该电子设备可以是计算机设备,也可以是能够支持计算机设备实现本申请实施例提供的运维操作方法的芯片或芯片系统,该电子设备既可以用作第一网络设备,也可以用作第二网络设备。The embodiment of the present application also provides an electronic device. The electronic device may have the structure shown in FIG. 9 . The electronic device may be a computer device, or it may support the computer device to implement the operation and maintenance operation method provided in the embodiment of the present application. A chip or chip system, the electronic device can be used not only as the first network device, but also as the second network device.
如图9所示的电子设备可以包括至少一个处理器901,所述至少一个处理器901用于与存储器耦合,读取并执行所述存储器中的指令以实现本申请实施例提供的运维操作方法的步骤。可选的,该电子设备还可以包括通信接口902,用于支持该电子设备进行信令或者数据的接收或发送。电子设备中的通信接口902,可用于实现与其他电子设备的进行交互。处理器901可用于实现电子设备执行本申请实施例提供的运维操作方法中的步骤。可选的,该电子设备通还可以包括存储器903,其中存储有计算机指令,存储器903可以与处理器901和/或通信接口902耦合,用于支持处理器901调用存储器903中的计算机指令以实现本申请实施例提供的运维操作方法中的步骤;另外,存储器903还可以用于存储本申请方法实施例所涉及的数据,例如,用于存储支持通信接口902实现交互所必须的数据、指令,和/或,用于存储电子设备执行本申请实施例所述方法所必须的配置信息。The electronic device shown in FIG. 9 may include at least one processor 901, and the at least one processor 901 is used to be coupled with a memory, read and execute instructions in the memory to implement the operation and maintenance operation provided by the embodiment of the present application method steps. Optionally, the electronic device may further include a communication interface 902, configured to support the electronic device in receiving or sending signaling or data. The communication interface 902 in the electronic device can be used to realize interaction with other electronic devices. The processor 901 may be configured to enable the electronic device to execute the steps in the operation method for operation and maintenance provided in the embodiment of the present application. Optionally, the electronic device may also include a memory 903, in which computer instructions are stored, and the memory 903 may be coupled with the processor 901 and/or the communication interface 902, and is used to support the processor 901 to call the computer instructions in the memory 903 to implement The steps in the operation and maintenance operation method provided by the embodiment of the present application; in addition, the memory 903 can also be used to store the data involved in the method embodiment of the present application, for example, to store the data and instructions necessary to support the communication interface 902 to realize interaction , and/or, used to store configuration information necessary for the electronic device to execute the method described in the embodiment of the present application.
本申请实施例还提供了一种计算机可读存储介质,计算机可读存储介质上存储有计算机指令,这些计算机指令被计算机调用执行时,可以使得计算机完成上述方法实施例、方法实施例的任意一种可能的设计中所涉及的方法。本申请实施例中,对计算机可读存储介质不做限定,例如,可以是RAM(random-access memory,随机存取存储器)、ROM(read-only memory,只读存储器)等。The embodiment of the present application also provides a computer-readable storage medium. Computer instructions are stored on the computer-readable storage medium. When these computer instructions are called and executed by a computer, the computer can complete any one of the above-mentioned method embodiments and method embodiments. methods involved in a possible design. In the embodiment of the present application, the computer-readable storage medium is not limited, for example, it may be RAM (random-access memory, random access memory), ROM (read-only memory, read-only memory), etc.
本申请还提供一种芯片,该芯片可以包括处理器以及接口电路,用于完成上述方法实施例、方法实施例的任意一种可能的实现方式中所涉及的方法,其中,“耦合”是指两个部件彼此直接或间接地结合,这种结合可以是固定的或可移动性的。The present application also provides a chip, which may include a processor and an interface circuit, for completing the methods involved in any of the above method embodiments and any possible implementation of the method embodiments, wherein "coupling" means Two parts are coupled to each other directly or indirectly, and this coupling can be fixed or movable.
本申请实施例还提供了一种计算机程序产品,包括计算机指令,当所述计算机指令被执行时,可以实现上述方法实施例、方法实施例的任意一种可能的设计中所涉及的方法。The embodiment of the present application also provides a computer program product, including computer instructions. When the computer instructions are executed, the method involved in the above method embodiment and any possible design of the method embodiment can be realized.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机指令的形式实现。在计算机上加载和执行所述计算机指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存 取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(Solid State Disk,SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of computer instructions. When the computer instructions are loaded and executed on the computer, the procedures or functions according to the embodiments of the present invention will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber) or wireless (eg, infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, a data center, etc. integrated with one or more available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (Solid State Disk, SSD)), etc.
本申请实施例中所描述的方法或算法的步骤可以直接嵌入硬件、处理器执行的软件单元、或者这两者的结合。软件单元可以存储于RAM存储器、闪存、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、可移动磁盘、CD-ROM或本领域中其它任意形式的存储媒介中。示例性地,存储媒介可以与处理器连接,以使得处理器可以从存储媒介中读取信息,并可以向存储媒介存写信息。可选地,存储媒介还可以集成到处理器中。处理器和存储媒介可以设置于ASIC中,ASIC可以设置于终端设备中。可选地,处理器和存储媒介也可以设置于终端设备中的不同的部件中。The steps of the method or algorithm described in the embodiments of the present application may be directly embedded in hardware, a software unit executed by a processor, or a combination of both. The software unit may be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM or any other storage medium in the art. Exemplarily, the storage medium can be connected to the processor, so that the processor can read information from the storage medium, and can write information to the storage medium. Optionally, the storage medium can also be integrated into the processor. The processor and the storage medium can be set in the ASIC, and the ASIC can be set in the terminal device. Optionally, the processor and the storage medium may also be disposed in different components in the terminal device.
这些计算机指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are performed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device Steps are provided for implementing the functions specified in the flow chart or flow charts and/or block diagram block or blocks.
尽管结合具体特征及其实施例对本发明进行了描述,显而易见的,在不脱离本发明的范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本发明的示例性说明,且视为已覆盖本发明范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Although the invention has been described in conjunction with specific features and embodiments thereof, it is obvious that various modifications and combinations can be made thereto without departing from the scope of the invention. Accordingly, the specification and drawings are merely illustrative of the invention as defined by the appended claims and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the invention. Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (19)

  1. 一种运维操作方法,其特征在于,包括:An operation and maintenance operation method, characterized in that it includes:
    第一网络设备获取第一消息,所述第一消息指示第一运维操作,所述第一运维操作包括需要第二网络设备执行的第二运维操作;The first network device acquires a first message, where the first message indicates a first operation and maintenance operation, and the first operation and maintenance operation includes a second operation and maintenance operation that needs to be performed by the second network device;
    所述第一网络设备向所述第二网络设备发送第二消息,所述第二消息指示所述第二网络设备执行所述第二运维操作,所述第二运维操作是根据所述第一运维操作和运维模板获得的,所述运维模板包括运维操作标识和转换模型,所述运维操作标识指示所述第一运维操作,所述转换模型指示所述第一运维操作与所述第二运维操作的转换关系。The first network device sends a second message to the second network device, the second message instructs the second network device to perform the second operation and maintenance operation, and the second operation and maintenance operation is based on the The first operation and maintenance operation is obtained from an operation and maintenance template, the operation and maintenance template includes an operation and maintenance operation identifier and a conversion model, the operation and maintenance operation identifier indicates the first operation and maintenance operation, and the conversion model indicates the first operation and maintenance operation A conversion relationship between the operation and maintenance operation and the second operation and maintenance operation.
  2. 如权利要求1所述的方法,其特征在于,所述转换模型包括参数模型,所述参数模型指示所述第一运维操作的第一输入参数与所述第二运维操作的第二输入参数的转换关系。The method according to claim 1, wherein the transformation model comprises a parameter model, and the parameter model indicates that the first input parameter of the first operation and maintenance operation is different from the second input parameter of the second operation and maintenance operation The conversion relationship of parameters.
  3. 如权利要求1或2所述的方法,其特征在于,所述参数模型还指示所述第一运维操作的第一输入参数和所述第二消息的转换关系。The method according to claim 1 or 2, wherein the parameter model further indicates a conversion relationship between the first input parameter of the first operation and maintenance operation and the second message.
  4. 如权利要求2至3任一项所述的方法,其特征在于,所述参数模型还指示所述第一运维操作的第一输出参数与所述第二运维操作的第二输出参数的转换关系。The method according to any one of claims 2 to 3, wherein the parameter model also indicates the difference between the first output parameter of the first operation and maintenance operation and the second output parameter of the second operation and maintenance operation conversion relationship.
  5. 如权利要求4所述的方法,其特征在于,所述第一网络设备向所述第二网络设备发送第二消息之后,还包括:The method according to claim 4, wherein after the first network device sends the second message to the second network device, further comprising:
    所述第一网络设备获取所述第二消息的响应消息,所述响应消息包括所述第二输出参数;The first network device obtains a response message of the second message, where the response message includes the second output parameter;
    所述第一网络设备根据所述参数模型和所述第二输出参数,获得所述第一输出参数。The first network device obtains the first output parameter according to the parameter model and the second output parameter.
  6. 如权利要求1至5任一项所述的方法,其特征在于,所述运维模板包括运维操作模式。The method according to any one of claims 1 to 5, wherein the operation and maintenance template includes an operation and maintenance operation mode.
  7. 如权利要求6所述的方法,其特征在于,所述运维操作模式包括同步模式或异步模式。The method according to claim 6, wherein the operation mode of operation and maintenance includes synchronous mode or asynchronous mode.
  8. 如权利要求1至7任一项所述的方法,其特征在于,所述第一网络设备获取第一消息之后,所述第一网络设备向所述第二网络设备发送第二消息之前,还包括:The method according to any one of claims 1 to 7, characterized in that, after the first network device obtains the first message and before the first network device sends the second message to the second network device, further include:
    所述第一网络设备根据运维操作策略确定所述第二网络设备可执行的运维操作包括第二运维操作。The first network device determines according to the operation and maintenance operation policy that the operation and maintenance operation that the second network device can perform includes the second operation and maintenance operation.
  9. 如权利要求1至8任一项所述的方法,其特征在于,所述第一网络设备为顶层控制器,所述第二网络设备为所述第一网络设备下的域控制器或域内设备。The method according to any one of claims 1 to 8, wherein the first network device is a top-level controller, and the second network device is a domain controller or an intra-domain device under the first network device .
  10. 如权利要求1至9任一项所述的方法,其特征在于,所述第二消息用于调用所述第二网络设备的第一应用编程接口API,所述第一API用于所述第二网络设备执行所述第二运维操作。The method according to any one of claims 1 to 9, wherein the second message is used to call a first application programming interface API of the second network device, and the first API is used for the second The second network device performs the second operation and maintenance operation.
  11. 一种运维操作方法,其特征在于,包括:An operation and maintenance operation method, characterized in that it includes:
    第二网络设备获取来自第一网络设备的第二消息,所述第二消息指示所述第二网络设备执行第二运维操作,所述第二运维操作是所述第一网络设备根据第一运维操作和运维模板获得的,所述第一运维操作为所述第一网络设备获取到的第一消息所指示的运维操作,所述第一运维操作包括需要所述第二网络设备执行的第二运维操作,所述运维模板包括运维操作标识和转换模型,所述运维操作标识指示所述第一运维操作,所述转换模型指示所 述第一运维操作与所述第二运维操作的转换关系;The second network device acquires a second message from the first network device, where the second message instructs the second network device to perform a second operation and maintenance operation, and the second operation and maintenance operation is performed by the first network device according to the first network device. Obtained from an operation and maintenance operation and an operation and maintenance template, the first operation and maintenance operation is the operation and maintenance operation indicated by the first message obtained by the first network device, and the first operation and maintenance operation includes the operation and maintenance operation that requires the first The second operation and maintenance operation performed by the second network device, the operation and maintenance template includes an operation and maintenance operation identifier and a conversion model, the operation and maintenance operation identifier indicates the first operation and maintenance operation, and the conversion model indicates the first operation and maintenance operation The conversion relationship between the maintenance operation and the second operation and maintenance operation;
    所述第二网络设备执行所述第二运维操作。The second network device executes the second operation and maintenance operation.
  12. 如权利要求11所述的方法,其特征在于,所述转换模型包括参数模型,所述参数模型指示所述第一运维操作的第一输出参数与所述第二运维操作的第二输出参数的转换关系,所述第二网络设备执行所述第二运维操作之后,还包括:The method according to claim 11, wherein the transformation model comprises a parameter model, and the parameter model indicates that the first output parameter of the first operation and maintenance operation is different from the second output parameter of the second operation and maintenance operation The parameter conversion relationship, after the second network device performs the second operation and maintenance operation, further includes:
    所述第二网络设备向所述第一网络设备发送所述第二消息的响应消息,所述响应消息包括所述第二输出参数,所述第二输出参数用于所述第一网络设备根据所述参数模型和所述第二输出参数,获得第一输出参数。The second network device sends a response message of the second message to the first network device, the response message includes the second output parameter, and the second output parameter is used by the first network device according to The parameter model and the second output parameter obtain a first output parameter.
  13. 一种网络设备,其特征在于,包括:A network device, characterized in that it includes:
    获取模块,用于获取第一消息,所述第一消息指示第一运维操作,所述第一运维操作包括需要第二网络设备执行的第二运维操作;An acquisition module, configured to acquire a first message, where the first message indicates a first operation and maintenance operation, and the first operation and maintenance operation includes a second operation and maintenance operation that needs to be performed by the second network device;
    发送模块,用于向所述第二网络设备发送第二消息,所述第二消息指示所述第二网络设备执行所述第二运维操作,所述第二运维操作是根据所述第一运维操作和运维模板获得的,所述运维模板包括运维操作标识和转换模型,所述运维操作标识指示所述第一运维操作,所述转换模型指示所述第一运维操作与所述第二运维操作的转换关系。A sending module, configured to send a second message to the second network device, the second message instructing the second network device to perform the second operation and maintenance operation, the second operation and maintenance operation is based on the first Obtained from an operation and maintenance operation and an operation and maintenance template, the operation and maintenance template includes an operation and maintenance operation identifier and a conversion model, the operation and maintenance operation identifier indicates the first operation and maintenance operation, and the conversion model indicates the first operation and maintenance operation A conversion relationship between the maintenance operation and the second operation and maintenance operation.
  14. 一种网络设备,其特征在于,包括:A network device, characterized in that it includes:
    获取模块,用于获取来自第一网络设备的第二消息,所述第二消息指示第二网络设备执行第二运维操作,所述第二运维操作是所述第一网络设备根据第一运维操作和运维模板获得的,所述第一运维操作为所述第一网络设备获取到的第一消息所指示的运维操作,所述第一运维操作包括需要所述第二网络设备执行的第二运维操作,所述运维模板包括运维操作标识和转换模型,所述运维操作标识指示所述第一运维操作,所述转换模型指示所述第一运维操作与所述第二运维操作的转换关系;An acquisition module, configured to acquire a second message from the first network device, the second message instructs the second network device to perform a second operation and maintenance operation, and the second operation and maintenance operation is performed by the first network device according to the first The operation and maintenance operation and the operation and maintenance template are obtained, the first operation and maintenance operation is the operation and maintenance operation indicated by the first message obtained by the first network device, and the first operation and maintenance operation includes the operation and maintenance operation that requires the second The second operation and maintenance operation performed by the network device, the operation and maintenance template includes an operation and maintenance operation identifier and a conversion model, the operation and maintenance operation identifier indicates the first operation and maintenance operation, and the conversion model indicates the first operation and maintenance operation A conversion relationship between the operation and the second operation and maintenance operation;
    处理模块,用于执行所述第二运维操作。A processing module, configured to execute the second operation and maintenance operation.
  15. 一种运维操作系统,其特征在于,包括:第一网络设备和第二网络设备;An operation and maintenance operating system, characterized by comprising: a first network device and a second network device;
    所述第一网络设备,用于获取第一消息,所述第一消息指示第一运维操作,所述第一运维操作包括需要所述第二网络设备执行的第二运维操作;The first network device is configured to obtain a first message, the first message indicates a first operation and maintenance operation, and the first operation and maintenance operation includes a second operation and maintenance operation that needs to be performed by the second network device;
    所述第一网络设备,还用于向所述第二网络设备发送第二消息,所述第二消息指示所述第二网络设备执行所述第二运维操作,所述第二运维操作是根据所述第一运维操作和运维模板获得的,所述运维模板包括运维操作标识和转换模型,所述运维操作标识指示所述第一运维操作,所述转换模型指示所述第一运维操作与所述第二运维操作的转换关系;The first network device is further configured to send a second message to the second network device, the second message instructs the second network device to perform the second operation and maintenance operation, and the second operation and maintenance operation It is obtained according to the first operation and maintenance operation and the operation and maintenance template, the operation and maintenance template includes an operation and maintenance operation identifier and a conversion model, the operation and maintenance operation identifier indicates the first operation and maintenance operation, and the conversion model indicates The conversion relationship between the first operation and maintenance operation and the second operation and maintenance operation;
    所述第二网络设备,用于获取来自第一网络设备的第二消息,以及执行所述第二运维操作。The second network device is configured to acquire a second message from the first network device, and execute the second operation and maintenance operation.
  16. 一种电子设备,用作第一网络设备,其特征在于,所述电子设备包括:An electronic device, used as a first network device, is characterized in that the electronic device includes:
    存储器,包括指令;memory, including instructions;
    处理器,当所述处理器执行所述指令时,使得所述电子设备实现权利要求1-10中任一所述的方法。A processor, when the processor executes the instructions, causing the electronic device to implement the method described in any one of claims 1-10.
  17. 一种电子设备,用作第二网络设备,其特征在于,所述电子设备包括:An electronic device, used as a second network device, is characterized in that the electronic device includes:
    存储器,包括指令;memory, including instructions;
    处理器,当所述处理器执行所述指令时,使得所述电子设备实现权利要求11或12所述的方法。A processor, when the processor executes the instruction, the electronic device is made to implement the method according to claim 11 or 12.
  18. 一种计算机可读存储介质,其特征在于,其上存储有计算机指令,当所述计算机指令被处理器执行时,实现如权利要求1-12任一项所述的方法。A computer-readable storage medium, characterized in that computer instructions are stored thereon, and when the computer instructions are executed by a processor, the method according to any one of claims 1-12 is implemented.
  19. 一种计算机程序产品,其特征在于,包括计算机指令,当所述计算机指令被执行时,实现如权利要求1-12任一项所述的方法。A computer program product, characterized by comprising computer instructions, when the computer instructions are executed, the method according to any one of claims 1-12 is implemented.
PCT/CN2022/123609 2021-10-28 2022-09-30 Operation and maintenance operation method and system, and network device WO2023071717A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111261486.0A CN116056120A (en) 2021-10-28 2021-10-28 Operation and maintenance operation method, system and network equipment
CN202111261486.0 2021-10-28

Publications (1)

Publication Number Publication Date
WO2023071717A1 true WO2023071717A1 (en) 2023-05-04

Family

ID=86116911

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/123609 WO2023071717A1 (en) 2021-10-28 2022-09-30 Operation and maintenance operation method and system, and network device

Country Status (2)

Country Link
CN (1) CN116056120A (en)
WO (1) WO2023071717A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116384715A (en) * 2023-06-06 2023-07-04 深圳墨影科技有限公司 Robot operation and maintenance management method of digital robot industrial chain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483836A (en) * 2009-01-15 2009-07-15 中兴通讯股份有限公司 Novel maintenance system and method
CN111061555A (en) * 2019-12-22 2020-04-24 济南浪潮数据技术有限公司 Operation and maintenance method based on infrastructure and related device
CN111158743A (en) * 2019-12-29 2020-05-15 北京浪潮数据技术有限公司 Big data operation and maintenance management platform
CN111193602A (en) * 2018-11-15 2020-05-22 顺丰科技有限公司 Automatic operation and maintenance management system and method
CN113515603A (en) * 2021-04-27 2021-10-19 深圳力维智联技术有限公司 Method, system and equipment for processing operation and maintenance monitoring data of machine room

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483836A (en) * 2009-01-15 2009-07-15 中兴通讯股份有限公司 Novel maintenance system and method
CN111193602A (en) * 2018-11-15 2020-05-22 顺丰科技有限公司 Automatic operation and maintenance management system and method
CN111061555A (en) * 2019-12-22 2020-04-24 济南浪潮数据技术有限公司 Operation and maintenance method based on infrastructure and related device
CN111158743A (en) * 2019-12-29 2020-05-15 北京浪潮数据技术有限公司 Big data operation and maintenance management platform
CN113515603A (en) * 2021-04-27 2021-10-19 深圳力维智联技术有限公司 Method, system and equipment for processing operation and maintenance monitoring data of machine room

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116384715A (en) * 2023-06-06 2023-07-04 深圳墨影科技有限公司 Robot operation and maintenance management method of digital robot industrial chain
CN116384715B (en) * 2023-06-06 2023-08-11 深圳墨影科技有限公司 Robot operation and maintenance management method of digital robot industrial chain

Also Published As

Publication number Publication date
CN116056120A (en) 2023-05-02

Similar Documents

Publication Publication Date Title
US20240048471A1 (en) Active assurance for virtualized services
WO2019085079A1 (en) Interface test method and apparatus, computer device and storage medium
US10965546B2 (en) Control of network nodes in computer network systems
US9712431B2 (en) Methods for managing transaction in software defined network
CN111490893B (en) Method, device and system for establishing network forwarding model
WO2016045098A1 (en) Switch, controller, system and link quality detection method
EP3029907A1 (en) Remote calling method and apparatus
EP3706382A1 (en) Method and device for implementing remote procedure call
US9379977B2 (en) Techniques for a switch to receive network controller sideband interface control packets
US20140351801A1 (en) Formal verification apparatus and method for software-defined networking
WO2021104103A1 (en) Network controller framework and data processing method
WO2017128953A1 (en) Server virtualization network sharing apparatus and method
WO2023071717A1 (en) Operation and maintenance operation method and system, and network device
WO2011153792A1 (en) Method and system for running state detection
CN111159019B (en) Application program testing method, testing control terminal and testing terminal
US20200228478A1 (en) Electronic message control
Cabarkapa et al. Performance Analysis of Ryu-POX Controller in Different Tree-Based SDN Topologies.
WO2017016386A1 (en) Method and device for implementing radio remote unit fault analysis
WO2021175105A1 (en) Connection method and apparatus, device, and storage medium
CN111131267A (en) Ethernet self-adaption method, device and system based on FPGA
WO2022121492A1 (en) File transmission method and apparatus, computer device, and storage medium
CN112019491B (en) Message processing method and system
CN108616453B (en) Method, device and system for network equipment
CN109257264B (en) System and method for opening Ethernet virtual private network service
CN108683540A (en) A kind of lightweight realization method and system that Network Management Protocol channel is cross-platform

Legal Events

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

Ref document number: 22885599

Country of ref document: EP

Kind code of ref document: A1