A declarative approach to virtual network creation and operation

The declarative programming language VNDL is used to describe the logic and goals of the virtual network in virtual network management, solving the problems of complexity and lengthy codes in virtual network management in the existing technology, and achieving efficient and concise virtual network operations.

CN111949367BActive Publication Date: 2024-10-18HUAWEI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010648622.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2015-02-26
Publication Date
2024-10-18
Estimated Expiration
2035-02-26

AI Technical Summary

Technical Problem

In the management process of existing virtual networks, application developers need to write lengthy and complex program codes, and it is difficult to effectively manage an expanded virtual network. Maintenance costs are high, and the procedural approach requires developers to be familiar with detailed steps.

Method used

Use a declarative programming language (such as virtual network definition language, VNDL) to write program code, parse and execute it through the API of the network controller, realize the creation, update and event processing of the virtual network, reducing dependence on detailed steps.

Benefits of technology

It improves the efficiency and accuracy of virtual network management, reduces the workload of developers, simplifies the network operation process, and improves programmer productivity and programming accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111949367B_ABST
    Figure CN111949367B_ABST
Patent Text Reader

Abstract

A network controller may receive a request from an application via an application programming interface (API), wherein the request includes program code written in a declarative programming language, the program code describing at least some aspects of a virtual network (VN). The network controller may also parse the program code into an internal object of the network controller, wherein the internal object represents the aspect of the VN described by the program code. The network controller may then manage the VN based on the internal object converted from the program code.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application entitled “Declarative Method for Creating and Operating a Virtual Network”, with patent application number 201580011235.3 and filing date February 26, 2015. Technical Field

[0002] The present invention generally relates to virtual networks (VNs), and in particular embodiments, to techniques for creating and operating virtual networks. Background Art

[0003] A virtual network (VN) is a computer network that contains virtual network nodes and / or links. The concept and adoption of virtual networks (VNs) have become very common due to various reasons, including the need for rapid introduction of services and savings in operating costs in cloud computing. VNs can be formed with or without a corresponding physical network topology. In order to create and operate a VN, a network application can call an application programming interface (API) provided by a network controller that controls the VN. For example, one request from an application can be transmitted to the controller via the API at a time, and the VN can be built or updated based on the request to adapt to the needs of the application.

[0004] Today, application developers can use a procedural approach to operate VNs. In this approach, an application can use a controller API to build a step-by-step process that represents the application logic for operating the VN. Building the procedural steps may require application developers to be very familiar with VNs (e.g., how to build VNs). As VNs scale and become more complex, they may become increasingly difficult to manage for application developers. Summary of the invention

[0005] The disclosed example embodiments may help improve virtual network (VN) management by using program code written in a declarative programming language rather than a procedural programming language to perform various VN-related tasks. In an example embodiment, a network controller may receive a request to start managing a VN via an application programming interface (API), wherein the request includes a program code written in a declarative programming language, and the program code describes at least some aspects of the VN. The network controller may also parse the program code into an internal object of the network controller, wherein the internal object represents the aspect of the VN described by the program code.

[0006] These and other features will become more clearly understood from the following detailed description taken in conjunction with the accompanying drawings and claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] For a more thorough understanding of the present invention, reference is now made to the following brief description taken in conjunction with the accompanying drawings and detailed description, wherein like reference numerals represent like parts.

[0008] Figure 1 is a schematic diagram illustrating an example embodiment of a network model.

[0009] Figure 2 is a schematic diagram illustrating an example embodiment of a virtual network (VN) solution architecture.

[0010] Figure 3A is a schematic diagram illustrating an example embodiment of a VN communication architecture.

[0011] Figure 3B An exemplary pseudo code written in a procedural approach is shown.

[0012] Figure 4 is a schematic diagram illustrating an example embodiment of a communication architecture between an application and a network controller.

[0013] Figure 5A and 5B An exemplary extensible markup language (XML) schema describing at least some aspects of a VN is shown.

[0014] Fig. 6A An exemplary program code describing an exemplary VN is shown.

[0015] Figure 6B Shows the use of Fig. 6A The program code shown creates the VN.

[0016] Figure 7 is a flow chart of an example embodiment of a VN management method.

[0017] Figure 8 is a schematic diagram of an example embodiment of a network device. DETAILED DESCRIPTION

[0018] First, it should be understood that although illustrative implementations of one or more example embodiments are provided below, the disclosed systems and / or methods may be implemented using any number of techniques, whether currently known or in existence. The present invention should in no way be limited to the illustrative implementations, drawings, and techniques described below, including the exemplary designs and implementations illustrated and described herein, but may be modified within the scope of the appended claims along with their full scope of equivalents.

[0019] To manage virtual networks (VNs), network controllers can provide application programming interfaces (APIs) to interact with applications operated by application developers. There have been some achievements in standardizing the API format. For example, Amazon's Elastic Compute Cloud (EC2) can be regarded as the de facto standard for APIs, and the OpenStack Quantum API can be regarded as a variant of the EC2 API. New proposals are also trying to expand the API to include new features or application scenarios.

[0020] Some existing API approaches have several common features. First, APIs can be descriptive. An API can represent an action or task that an application instructs a network controller to perform, and application developers can provide input parameters for the task and obtain a certain result after the API call is completed. Second, APIs can be procedural. Applications can use APIs to build procedures that represent application logic, so application developers may need to be very familiar with how virtual networks are built through procedural steps. As VNs grow in size and complexity, application developers may need to write lengthy and complex program code to create and operate VNs. In addition, the cost of maintaining VNs and avoiding potential defects or errors may become very high.

[0021] The present invention teaches example embodiments to address the shortcomings of current APIs by using a declarative approach rather than a procedural approach when creating and operating a VN. Specifically, requests or commands containing program code can be generated by a declarative programming language rather than a procedural programming language. Declarative languages, sometimes also referred to herein as virtual network definition languages ​​(VNDL), can be written in various formats or outlines, such as extensible markup language (XML) format. Application developers can use VNDL to describe VNs in terms of defined names such as nodes, ports, links, bandwidth, policies, and event handling. Unlike procedural programming languages, VNDL can specify task logic or purpose without explicitly specifying each detailed step to perform the task.

[0022] Program code written in VNDL can be generated by an application and then sent to a network controller via an API supported by the network controller. The network controller can parse the VNDL code into internal objects and execute the internal objects accordingly using the controller's internal API. The network controller can perform various tasks to operate the VN, including creating a VN (e.g., defining nodes, ports, and links), updating the VN, executing the network policy of the VN, and handling events that occur in the VN.

[0023] Figure 1 1 is a schematic diagram illustrating an example embodiment of a network model 100 including one or more VNs configured on a physical network layer. Figure 1 As shown, the physical network layer includes network 110 and network 120, which can be considered as different networks or different domains of the same network. Networks 110 and 120 include physical network nodes, which can be interconnected with each other through physical links. The physical network nodes in networks 110 and 120 can be interconnected with other network nodes in or outside the home network.

[0024] In order to expand network functions, some network nodes in the physical network layer can be used to form one or more VNs. For example, the first VN 130 can be configured using network nodes 111, 113, 115, and 121 to 125; the second VN 140 can be configured using network nodes 112, 114, 116, 121 to 122, and 124 to 125. In fact, some physical node functions can be used to form virtual network nodes, which in turn can form VNs. Therefore, a physical node can be used to build one or more virtual nodes. Figure 1As shown, two virtual nodes 141 and 142 sharing the same physical node 116 are formed, and both virtual nodes belong to VN 140. Virtual links can interconnect virtual nodes. However, there may be no connection between virtual nodes. It should be understood that the physical / virtual network nodes and links discussed herein can be implemented by any suitable technology. Depending on the application, VN may also be referred to by equivalent or similar names sometimes. For example, VN can be implemented as a virtual private network (VPN), a software-defined network (SDN), a service-centric network (SCN), an information-centric network (ICN), a content-centric network (CCN), a virtual operator network, a virtual enterprise network, an application-specific network, etc. Therefore, the term VN disclosed herein may cover these equivalents and variants.

[0025] To manage a network containing multiple network nodes, a network controller can be established as a central entity that oversees the network. This architecture can be used in both physical and virtual networks. Figure 2 2 is a schematic diagram illustrating an example embodiment of a VN solution architecture 200, which covers the physical network layer and the virtual network layer. In a large network or network domain, multiple network controllers may be deployed, each of which oversees a portion of the entire network. Figure 2 As shown, a first physical network controller (PNC) 220 can be used to manage a first plurality of physical network nodes 211, 212, and 213, and a second PNC 230 can be used to manage a second plurality of physical network nodes 214, 215, and 216. Network nodes 211 to 216 can be implemented with any functionality, such as a versatile routing platform (VRP). Each PNC includes various modules or units. For example, PNC 220 can include a network server 221 and a plurality of service modules that perform PNC services and other services.

[0026] In practice, a relatively large network may be divided into multiple smaller networks or domains, each of which may be managed by a PNC. Multiple PNCs, such as PNCs 220 and 230, may be further managed by an upper-level network controller, such as Figure 2The VN controller (VNC) 240 shown manages to create a two-tier controller hierarchy. Note that more layers or levels can be built if necessary. Applications (applications, apps) 250 can access and control network resources through PNC 220, PNC 230, and / or VNC 240, which can be implemented through an open platform server (OPS). VNC 240 can communicate with lower-level controllers such as PNC 230 via API 246, for example, by transmitting requests or commands 247 to PNC 230. Note that controllers 220, 230 and 240 can be located in the same physical location (centralized setting) or different locations (distributed setting). Application 250 can be implemented as any suitable form of software program running on a network device or node operated by an application developer.

[0027] VNC 240 can be an application that coordinates with multiple PNCs. VNC 240 can provide many different types of services that benefit application developers, such as providing a high-level interface for applications to create, configure, update, and operate VNs. In an example embodiment, VNC 240 includes various modules that perform various tasks, which may include a network server 241, a VNC service module 242, a topology abstraction layer (TAL) service module 243, one or more route calculation (RC) service modules 244, a VNC presentation module 245, and other service modules. The network server 241 can interact with the application 250 through an API 252. Specifically, the network server 241 can be embedded in the VNC 240 to receive a request 254 (e.g., a RESTful API request), and then dispatch the request 254 to other modules in the VNC 240. The request 254 can contain program code written in VNDL for operating the network. The VNC service module 242 can facilitate the management of the PNCs 220 and 230. In addition, the TAL service module 243 can collect topologies from each PNC and then merge multiple topologies into a single topology for the entire network. Application developers can use topologies as an assistive tool to build larger-sized VNs, such as those that span multiple physical networks.

[0028] RC service module 244 can provide implementation options for API 252, which may have parameters for implementation selection so that API processing is used. VNC representation module 245 can allow application developers to write program code using a declarative programming language, and use program code to promote VN creation and operation. From a practical perspective, application developers can regard VNC or PNC as an SDN controller. For example, VNC 240 can be regarded as an SDN controller that accesses physical network resources. VNC 240 can provide any suitable type of API to communicate with application developers and other network devices. For example, API 252 and / or API 246 can be REST or RESTful API, such as EC2 proposed by Amazon and OpenStack, which is a stateless type of API. Note that the types of API 246 and 252 may be the same or different. In addition, even if the API type is the same, its format may be different because each manufacturer may choose to add new functions. In fact, different controllers may have different APIs. Although the present invention is primarily presented in the context of a RESTful API for controllers such as VNC 240 and PNCs 220 and 230, any other suitable type of API may be used as long as application 250 can send program code written in VNDL to a controller such as VNC 240.

[0029] Figure 3A is a schematic diagram of an example embodiment of an illustrated VN communication architecture 300. Those of ordinary skill in the art will appreciate the similarities between architectures 200 and 300, and therefore, for the sake of brevity, the subsequent description will focus on aspects that are different or not covered (the same principles apply to other figures). One or more applications 310 can communicate with a controller 320 via an API 322. The controller 320 can be a VNC (e.g., VNC 240) that manages a VN 330 overlaid on a physical network 332. In practice, the applications 310 can be implemented by any suitable type of software and can run on physical and / or virtual nodes.

[0030] In an example embodiment, a developer using application 310 can write program code 312 in a declarative programming language. Program code 312 can be sent to controller 320 via API 322, and controller 320 can include a VNC presentation module or unit 324. After receiving the program code written in the declarative programming language, VNC presentation module 324 can perform various tasks on the program code. Declarative programming language, sometimes referred to as VNDL herein, can be in any suitable format, such as XML format, so that terms or legal names can be defined through XML schema. VNDL allows application developers to describe VN.

[0031] The declarative approach disclosed herein for operating a VN may be superior to traditional procedural approaches. Figure 3B An exemplary pseudo code 350 written in a procedural method is shown. Program code written in a procedural programming language may need to explicitly specify each detailed step to perform a task. Figure 3B As shown, to create a network named "red", pseudocode 350 specifies each step of adding nodes, ports on nodes, and links between ports. In addition, to handle events that occur in network "red" (e.g., if a link is abnormal), pseudocode 350 needs to specify the exact steps of how to handle the event. Therefore, traditional procedural methods may require application developers to be very clear about the details of VN. In contrast, operating VN using the declarative programming language taught in this article can avoid these problems by not requiring the specification of each detailed step.

[0032] In computer science, declarative programming can be considered a programming paradigm or style for building computer programs in which program code represents computational logic without describing detailed control flow. This declarative approach can minimize or eliminate side effects by describing what the program accomplishes in terms of logic and goals rather than describing how it is accomplished as a sequence of programming language primitives. The details of how the program is accomplished can be left to another device (e.g., a VNC controller) to determine.

[0033] It should be understood that there are a large number of programming languages ​​that can be divided or classified as declarative programming languages. The category of declarative programming languages ​​includes subcategories such as declarative markup languages, functional languages, logic programming languages, and functional logic programming languages. Specific examples of declarative programming languages ​​include, but are not limited to, Alpha, Atom, Applied Type System (ATS), Curl, Distributed Application Specification Language, a data-centric programming language known as ECL, Erlang, Extensible Application Markup Language (XAML), frame logic (F-logic), FXML, General-purpose Declarative Language (GenDL), Glowe, GOAL agent programming language, Good For Equational Reasoning (Gofer) language, Knowledge Machine (KM) programming language, Lithe, Lucid, Lustre, Miranda, Pan, Qi, XML, QUILL, SequenceL, Structured Query Language (SQL), Synchronized Multimedia Integration Language (SMIL), and Web Ontology Language (OWL), and combinations thereof. On the other hand, examples of procedural programming languages, sometimes also referred to as imperative programming languages, may include Visual Basic, C, C++, Common Business-Oriented Language (COBOL), Java, Perl, Python, and an open source server-side scripting language called PHP. In addition, it should be understood that the declarative approach disclosed herein may be compatible with existing procedural approaches and may be used as a complementary technology in certain scenarios.

[0034] Figure 4 4 is a schematic diagram illustrating an example embodiment of a communication architecture 400 between an application 410 and a network controller 420. The network controller 420 may be implemented as a VNC 240 or a controller 320, and Figure 4Its components shown in can be implemented by VNC presentation module and other related modules. In an example embodiment, application 410 can generate commands or requests written in VNDL for various VN tasks. For example, application developers can use application 410 to write requests to create and / or operate VN. Application 410 can call controller 420 by sending commands or requests 412 containing program codes written in VNDL. Request 412 can be packaged or formatted in any suitable form, and the program code therein may have any suitable format or length (for example, including scripts, strings, or codes). Application 410 can transmit request 412 through northbound API 421, which can be a stateless API or a RESTful API.

[0035] A Hypertext Transfer Protocol (HTTP) server 422 embedded in the controller 420 can receive a request 412 from an application 410. The request 412 containing the VNDL code is then passed to the main module 424, which can start and / or coordinate the conversion process, for example by passing the VNDL code to the execution module 426. The execution module 426 can then pass the VN code to the parser 428 to parse the VNDL code. During parsing, the VNDL code can be converted or transformed into an internal object 430, which can be understood by the VNC internal API 432 in the network controller 420. The internal object 430 can represent the VN described in the VNDL code and describe the activities of processing network events. The internal object 430 can be stored in the object directory of the network controller 420. As long as the network controller can fully understand the internal object 430 to perform VN-related tasks, the internal object 430 can be implemented as any code, data structure, script, command, or other information.

[0036] The execution module 426 can understand how to process the tasks defined by the VNDL code. Specifically, the execution module 426 can call the VNC internal API 432 (which can be regarded as a southbound API) to perform VN-related tasks according to or based on the internal object 430 converted from the VNDL code. The VNC internal API 432 can perform various tasks, such as creating, deleting, updating, querying status, and processing various aspects of the VN, including nodes, ports, links, policies, and events.

[0037] If an event occurs in a VN controlled by the network controller 420, the event processor 434 can process the event accordingly. For example, if a network node, port, or link between two nodes is abnormal, the event processor 434 can pass the event information to the execution module 426, which can then process the event using a predefined strategy. The platform in the network controller 420 can be implemented using any suitable language or environment. For example, the Python runtime module 436 can be used to implement modules such as Figure 4 shown.

[0038] Figure 5A and 5B An exemplary XML schema 500 describing at least a portion or certain aspects of a VN is shown. The syntax of the XML schema 500 will be understood by those of ordinary skill in the art, so the subsequent description focuses on the novel features disclosed herein. Note that the names and settings used in the XML schema 500 are exemplary and non-limiting. The XML schema 500 uses elements to define multiple legal names for describing a VN. For example, the XML schema 500 includes an element 510 named "network" (note that the element 510 spans multiple lines of code). Therefore, when a VNDL code contains the term "network", it can be recognized by the processing entity (e.g., VNC) as a valid legal name for the VN and can be processed accordingly. Undefined terms, such as "networks", can be identified as errors.

[0039] In fact, a network can be identified by an identifier (identification, id) and can include network nodes and links therein. In order to describe the VN in more detail, element 510 may include sub-elements or child elements that define other legal names. For example, a child element 512 named "id" can specify an identifier of the VN, a child element 514 named "node" can specify a node within the VN, and a child element 522 named "link" can specify a network link or connection within the VN.

[0040] Because the node can be identified by id, address, node name, and / or port, element 514 can also include the child element describing the node. Specifically, child elements 515, 516, 517 and 518 describe the id, address, name, and port of the node respectively. In addition, element 518 includes the child element 519 describing the port name.

[0041] Similarly, a link may have various attributes, such as a source node, a destination node, and a bandwidth. To describe the link represented by element 522, a child element 523 named "from" specifies the source node of the link, a child element 524 named "to" specifies the destination node of the link, and a child element 525 named "bandwidth" specifies the network bandwidth allocated to the link.

[0042] Fig. 6A An exemplary program code 600 describing an exemplary VN 650 is shown. Figure 6B A VN 650 is shown that can be created by program code 600. Application developers using the declarative approach disclosed herein can follow an XML schema (e.g., XML schema 500) to write program code 600. Program code 600 can be sent by an application (e.g., application 410) to a network controller (e.g., controller 420), which can then create a VN 650 based on program code 600.

[0043] Legal names defined in the XML Schema may appear in uppercase in program code. Fig. 6A As shown, legal names such as node, port, link, and bandwidth (BW) need to be capitalized. Based on program code 600, the network to be created has an exemplary name "Test" and includes seven network nodes named 1 to 7. For example, line 610 of program code 600 specifies that node 1 includes two ports named port 1 and port 2, which are Figure 6B , where nodes are represented by circles filled with black and ports are represented by oval boxes connected to the circles.

[0044] In addition, links can be established between ports. For example, line 620 of program code 600 includes "Link1.2=3.1", which establishes a link from node 1: port 2 to node 3: port 1 ( Figure 6B It should be noted that line 620 also specifies that 1 gigabyte (G) of bandwidth is allocated to link 652. Other nodes, ports, and links can be established by program code 600 in the same manner.

[0045] Those skilled in the art will appreciate that program code written in VNDL can be fully extensible to include other information, such as descriptions of policies set by processing events and executing applications. Since various events may occur in the VN, their processing policies can be configured by application developers and specified in the VNDL code. For example, when a network node function fails, the VNDL code can define a policy to restore the node or find a replacement node. Similar processing can be performed on ports or links between ports. For another example, when the physical link utilization exceeds a certain percentage, the policy can move the relevant VN link from a physical link to another physical link. For another example, when the interface packet loss count reaches a certain threshold, the policy can choose to use another interface. In general, the principles disclosed herein can be applied to countless other example events and policies.

[0046] By using a declarative programming language instead of a procedural programming language, application developers can perform VN tasks without knowing or understanding the details of the network. The network controller that converts the VNDL code can ensure the required network and network behavior. Application developers can use the RESTful API to communicate with VNC and operate VN through VNC. For example, VNDL code can be used to query the status of a node, port, or link. VNDL code can also be used to perform operations such as adding or removing specific nodes, ports, or links.

[0047] A declarative approach can bring various benefits. Programmer productivity can be improved (for example, program code length was reduced by 90% in experiments); programming accuracy can be improved because programmers can focus on declarative statements rather than detailed steps; and because developers can use declarative statements to build network visualizations, visibility can be improved with the simplicity of network descriptions and behaviors.

[0048] Figure 7700 is a flowchart of an example embodiment of a VN management method 700, which can be implemented by a network controller (e.g., PNC 220, PNC 230, VNC 240, controller 320, or controller 420). Method 700 begins at step 710, where the network controller can receive a request from an application through an AP. The request can include program codes written in a declarative programming language, and these program codes can describe at least some aspects of the VN. Depending on the needs of the application, the program code can contain different contents. For example, the program code can include instructions for creating a VN, one or more policies for operating the VN, or definitions of events that occur in the VN. In an example embodiment, the declarative programming language can use an XML outline containing defined legal names, and the legal names used when describing the VN can include one or more of nodes, ports, links, bandwidths, policies, and events. In addition, the application can be remotely coupled to the network controller or co-located with the network controller, so that the reception can be remote or local.

[0049] In step 720, the network controller may parse the program code into internal objects of the network controller. The internal objects represent various aspects of the VN described by the program code. Parsing may be implemented in any suitable manner to convert or transform the VNDL code into internal objects.

[0050] In step 730, the network controller may manage the VN using the internal API of the network controller according to internal objects that can be understood by the internal API. It should be noted that managing the VN may include creating the VN, updating the VN, managing the policies of the VN, and handling events that occur in the VN. It should be understood that method 700 is used as an example embodiment, so alternative methods can be used to modify method 700 and additional steps can be incorporated if necessary.

[0051] Figure 8800 is a schematic diagram of an example embodiment of a computer system or network device 800. The network device 800 can be implemented as any device, such as a network node running an application disclosed herein, or a network controller (e.g., PNC 220, PNC 230, VNC 240, controller 320, or controller 420). The network device 800 is capable of receiving, processing, and transmitting messages carrying information to and from the network, such as VN-related requests. The network device 800 can include one or more ingress ports 810 coupled to a receiver (Rx) 812, which can be used to receive requests, responses, program codes, and other information from other network components. The network device 800 can also include one or more egress ports 830 coupled to a transmitter (Tx) 832, which can be used to transmit requests, responses, program codes, and other information to other network components.

[0052] The network device 800 may include a logic unit or processor 820 that communicates with the receiver 812 and the transmitter 832. The processor 820 may be implemented by hardware or a combination of hardware and software. The processor 820 may be implemented as one or more central processor units (CPU) chips, cores (e.g., multi-core processors), field-programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), and / or digital signal processors (DSPs). The processor 820 may be used to implement any functional module or unit described herein, such as the network server 221, the network server 241, the VNC service module 242, the TAL service module 243, the RC service module 244, the VNC presentation module 245, the HTTP server 422, the main module 424, the execution module 426, the parser 428, the VNC internal API 432, the event processor 434, and the Python runtime module 436, or any other functional component known to a person of ordinary skill in the art, or a combination thereof. For example, the VNC representation module 821 may be incorporated into the processor 820 and may be used to process VNDL code for performing VN tasks.

[0053] The network device 800 may also include at least one memory 822, which can be used to store data such as program code and internal objects of the VNC. Please note that in practice, there may be bidirectional services processed by the network device 800, so some ports can both receive and send messages. In this sense, the inlet port 810 and the outlet port 830 can be located at the same place, or can be regarded as different functions of the same port coupled to a transceiver (transceiver, Rx / Tx). The processor 820, the memory 822, the receiver 812, and the transmitter 832 can also be used to implement or support any example embodiments described herein, such as the VN management method 700.

[0054] It should be understood that by programming executable instructions and / or loading executable instructions into the network device 800, at least one of the processor 820 and the memory 822 will change, thereby converting the network device 800 into a specific machine or device (e.g., a network node having the functions disclosed in the present invention). The executable instructions can be stored in the memory 822 and loaded into the processor 820 for execution. It is basic to the power engineering and software engineering techniques that the functionality that can be implemented by loading executable software into a computer can be converted into a hardware implementation by knowing the design rules. The decision between implementing the concept in software or hardware usually depends on considerations related to the stability of the design and the number of units to be generated, and has nothing to do with any issues involved in translating from the software domain to the hardware domain. Generally, designs that are still subject to frequent changes can be preferably implemented in software because redesigning hardware implementations is more expensive than redesigning software designs. Generally, stable and mass-produced designs are more suitable for implementation in hardware such as ASICs because running large-scale production of hardware implementations is cheaper than software implementations. Typically, a design can be developed and tested in software, and later transformed by well-known design rules into an equivalent hardware implementation in an application-specific integrated circuit that hardwires the software's instructions. In the same way that a machine controlled by a new ASIC is a specific machine or device, a computer that has been programmed and / or loaded with executable instructions can also be considered a specific machine or device.

[0055] Any processing of the present invention can be implemented by causing a processor (e.g., a general-purpose CPU) to execute a computer program. In this case, a computer program product can be provided to a computer or a network device using any type of non-transitory computer-readable medium. The computer program product can be stored in a non-transitory computer-readable medium in a computer or a network device. Non-transitory computer-readable media include any type of tangible storage media. Examples of non-transitory computer-readable media include magnetic storage media (such as floppy disks, tapes, hard disk drives, etc.), optical magnetic storage media (such as magneto-optical disks), read-only optical disks (compact disc read-only memory, CD-ROM), recordable optical disks (compact disc recordable, CD-R), rewritable optical disks (compact disc rewritable, CD-R / W), digital versatile discs (digital versatile disc, DVD), Blu-ray (registered trademark) optical disks (Blu-ray disc, BD) and semiconductor memories (such as mask ROM, programmable ROM (programmable ROM, PROM), erasable PROM, flash ROM and random access memory (random access memory, RAM)). The computer program product may also be provided to a computer or network device using any type of transient computer-readable media. Examples of transient computer-readable media include electrical signals, optical signals, and electromagnetic waves. Transient computer-readable media may provide the program to a computer via a wired communication line (e.g., electrical wires and optical fibers) or a wireless communication line.

[0056] The present invention discloses at least one exemplary embodiment, and changes, combinations and / or modifications made to the exemplary embodiment and / or the features of the exemplary embodiment by a person of ordinary skill in the art are within the scope of the present invention. Alternative embodiments resulting from combining, merging and / or omitting the features of the exemplary embodiments are also within the scope of the present invention. Where a numerical range or limitation is explicitly stated, such an expression range or limitation may be understood to include iterative ranges or limitations of the same size within the explicitly stated range or limitation (e.g., from about 1 to about 10 includes 2, 3, 4, etc.; greater than 0.10 includes 0.11, 0.12, 0.13, etc.). For example, as long as the disclosure has a lower limit R l and upper limit R u In particular, the following numbers within the range are explicitly disclosed: R = R l +k*(R u –R l), wherein k is a variable that increases by 1% in the range from 1% to 100%, that is, k is 1%, 2%, 3%, 4%, 5% ... 50%, 51%, 52% ... 95%, 96%, 97%, 98%, 99% or 100%. In addition, any numerical range defined by the two numbers R defined above is also explicitly disclosed. Unless otherwise specified, the term "about" refers to ±10% of the subsequent number. The use of the term "selectively" relative to any element of the claim means that the element is required, or the element is not required, and both alternatives are within the scope of the claim. The use of broader terms such as "including", "comprising" and "having" should be understood to provide support for narrower terms such as "consisting of", "consisting essentially of" and "consisting substantially of". Therefore, the scope of protection is not limited by the description set out above, but is defined by the appended claims, and the scope includes all equivalents of the subject matter of the appended claims. Each and every claim is incorporated into the specification as further disclosure, and the attached claims are exemplary embodiments of the present invention. The discussion of the references in the disclosure is not an admission that it is prior art, especially any reference with a publication date after the priority date of the prior application of the present application. The disclosures of all patents, patent applications and publications cited in the present invention are hereby incorporated by reference into this text, which provide exemplary, procedural or other details that supplement the present invention. Although there are multiple specific embodiments of the present invention, it should be understood that the disclosed systems and methods can also be embodied in other various specific forms without departing from the spirit or scope of the present invention. The examples of the present invention should be regarded as illustrative rather than restrictive, and the present invention is not limited to the details given in this text. For example, various elements or components can be combined or merged in another system, or certain features can be omitted or not implemented.

[0057] In addition, without departing from the scope of the present invention, the techniques, systems, subsystems and methods described and illustrated as discrete or separate in the various embodiments may be combined or merged with other systems, modules, techniques or methods. Other items shown or discussed as coupled or directly coupled or communicating with each other may also be coupled or communicated indirectly through an interface, device or intermediate component, either electrically, mechanically or otherwise. Other variations, substitutions, and alternative examples will be apparent to those skilled in the art and do not depart from the spirit and scope disclosed herein.

Claims

1. A method for managing a virtual network VN implemented by a network controller, characterized in that: The method comprises: Receiving a request through an application programming interface (API), wherein the request includes a program code written in a declarative programming language, wherein the program code written in the declarative programming language is used to execute a task related to the VN, wherein the task related to the VN includes setting the VN, and wherein the setting the VN includes querying the VN; The VN includes network nodes, ports on the network nodes, and links between the ports; Parsing the VN-related tasks into internal objects of the network controller; Execute the VN related tasks according to the internal object.

2. The method according to claim 1, characterized in that The related tasks also include one or more tasks of executing the network policy of the VN or processing events of the VN.

3. The method according to claim 1, characterized in that The setting of the VN also includes one or more of creating the VN, deleting the VN, and updating the VN.

4. The method according to claim 2 or 3, characterized in that: The setting of the VN includes setting one or more of the network nodes of the VN, ports on the network nodes, and links between the ports.

5. The method according to any one of claims 1 to 3, characterized in that: The request includes an element, the element being used to identify the element as a legal name of the VN; Before parsing the VN-related tasks into internal objects of the network controller, the method further includes: Based on the element being a legal name, it is determined that the related task can be resolved as an internal object of the network controller.

6. The method according to any one of claims 1 to 3, characterized in that: The request includes child elements including legal names for describing one or more of nodes, ports, links, bandwidth, policies, and events of the VN.

7. The method according to claim 1, characterized in that The declarative programming language is one or more combinations of extensible markup language XML, Alpha, Atom, application type system ATS, Curl, distributed application specification language, data-centric programming language, Erlang, extensible application markup language XAML, framework logic F-logic, FXML, general declarative language GenDL, Glowe, GOAL agent programming language, Gofer language, knowledge machine KM programming language, Lithe, Lucid, Lustre, Miranda, Pan, Qi, XML, QUILL, SequenceL, structured query language SQL, synchronized multimedia integration language SMIL, and network ontology language OWL.

8. The method according to any one of claims 1 to 3 and 7, characterized in that: The network controller includes a physical controller and a VN controller, and the VN controller obtains a network topology corresponding to the physical controller, and the network topology is used to set the VN.

9. The method according to any one of claims 1 to 3 and 7, characterized in that: The parsing of the VN-related tasks into internal objects of the network controller includes: Use Python to parse the VN related tasks into internal objects of the network controller.

10. The method according to any one of claims 1 to 3 and 7, characterized in that: The VN is a virtual private network VPN, a software defined network SDN, a service-centric network SCN, an information-centric network ICN, a content-centric network CCN, a virtual operator network, a virtual enterprise network or an application specific network.

11. A communication device, characterized in that: include: A receiver receives a request through an application programming interface (API), wherein the request includes a program code written in a declarative programming language, wherein the program code written in the declarative programming language is used to perform a task related to the VN, wherein the task related to the VN includes setting the VN, and wherein the setting the VN includes querying the VN; The VN includes network nodes, ports on the network nodes, and links between the ports; A processor coupled to the receiver is used to parse the relevant tasks of the VN into internal objects of the device, and execute the relevant tasks on one or more of the network nodes, ports on the network nodes, and links between the ports according to the internal objects.

12. The device according to claim 11, characterized in that The related tasks also include one or more tasks of executing the network policies of the VN or processing events of the VN.

13. The device according to claim 11, characterized in that The setting of the VN also includes one or more of creating the VN, deleting the VN, updating the VN, and querying the VN.

14. The device according to claim 12 or 13, characterized in that The setting of the VN includes setting one or more of the network nodes of the VN, ports on the network nodes, and links between the ports.

15. The device according to any one of claims 11 to 13, characterized in that: The request includes an element, and the element is used to identify that the element is a legal name of the VN; the processor is used to determine that the relevant task can be resolved as an internal object of the device based on the element being a legal name.

16. The device according to any one of claims 11 to 13, characterized in that: The request includes child elements including legal names for describing one or more of network nodes, ports, links, bandwidth, policies, and events of the VN.

17. The device according to claim 11, characterized in that The declarative programming language is one or more combinations of extensible markup language XML, Alpha, Atom, application type system ATS, Curl, distributed application specification language, data-centric programming language, Erlang, extensible application markup language XAML, framework logic F-logic, FXML, general declarative language GenDL, Glowe, GOAL agent programming language, Gofer language, knowledge machine KM programming language, Lithe, Lucid, Lustre, Miranda, Pan, Qi, XML, QUILL, SequenceL, structured query language SQL, synchronized multimedia integration language SMIL, and network ontology language OWL.

18. The device according to any one of claims 11 to 13 and 17, characterized in that: The processor includes a VN controller VNC representation module, which uses Python to parse the relevant tasks of the VN into internal objects of the device.

19. The device according to any one of claims 11 to 13 and 17, characterized in that: The VN is a virtual private network VPN, a software defined network SDN, a service-centric network SCN, an information-centric network ICN, a content-centric network CCN, a virtual operator network, a virtual enterprise network or an application specific network.

20. A computer-readable storage medium, characterized in that: The computer-readable medium stores instructions or program codes, and when the instructions or the program codes are executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Declarative approach to virtual network creation and operation

    CN106063223B