WO2020248805A1 - Service chain orchestration method and apparatus, storage medium and electronic apparatus - Google Patents

Service chain orchestration method and apparatus, storage medium and electronic apparatus Download PDF

Info

Publication number
WO2020248805A1
WO2020248805A1 PCT/CN2020/092023 CN2020092023W WO2020248805A1 WO 2020248805 A1 WO2020248805 A1 WO 2020248805A1 CN 2020092023 W CN2020092023 W CN 2020092023W WO 2020248805 A1 WO2020248805 A1 WO 2020248805A1
Authority
WO
WIPO (PCT)
Prior art keywords
topology
node
business
type
nodes
Prior art date
Application number
PCT/CN2020/092023
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 WO2020248805A1 publication Critical patent/WO2020248805A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/036Updating the topology between route computation elements, e.g. between OpenFlow controllers
    • H04L45/037Routes obligatorily traversing service-related nodes
    • H04L45/0377Routes obligatorily traversing service-related nodes for service chaining
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/302Route determination based on requested QoS
    • H04L45/306Route determination based on the nature of the carried application
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/64Routing or path finding of packets in data switching networks using an overlay routing layer
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present disclosure relates to but is not limited to the field of communications.
  • Network communication includes various network service functions, namely, Service Function, such as firewall, NAT (Network Address Translation, network address translation), QoS (Quality of Service), load balancer, etc.
  • Service Function such as firewall, NAT (Network Address Translation, network address translation), QoS (Quality of Service), load balancer, etc.
  • Middleware provides necessary business processing functions. Flexible, convenient, efficient, and safe deployment of traffic to Service Function for processing, forming SFC (Service Function Chaining, service chain), this is the problem to be solved by the business chain.
  • SFC Service Function Chaining, service chain
  • the embodiments of the present disclosure provide a method and device for arranging a business chain, a storage medium, and an electronic device.
  • a business chain orchestration method including: selecting a designated route of a tenant from a search box of a business topology component, and the search box is used to search for and display tenant information and communicate with the tenant. Corresponding routing information; obtain the business topology corresponding to the designated route, and display the business topology in the business topology component, where the business topology is used to indicate the nodes of all business chains under the designated route and the number of nodes And select one or more topology nodes to be orchestrated, and perform an orchestration operation according to the position relationship between the topology nodes to be orchestrated in the business chain topology component and the business chain topology, in the business chain topology component
  • the topological relationship of is in a one-to-one correspondence with the topological relationship in the service topology component.
  • a business chain orchestration device includes: a selection module for selecting a designated route of a tenant from a search box of a business topology component, the search box being used for searching and displaying tenant information and Routing information corresponding to the tenant; a first processing module, configured to obtain the service topology corresponding to the designated route, and display the service topology in the service topology component, and the service topology is used to indicate the The nodes of all the service chains under the designated route and the drainage routes between the nodes; and the second processing module is used to select one or more topology nodes to be orchestrated, and according to the topology nodes to be orchestrated in the service chain topology component Perform an orchestration operation with the positional relationship of the business chain topology, and the topological relationship in the business chain topology component corresponds to the topological relationship in the business topology component in a one-to-one correspondence.
  • a storage medium in which a computer program is stored, and when the computer program is run by one or more processors, the one or more processors Perform the business chain orchestration method according to the present disclosure.
  • an electronic device including a memory and a processor, the memory is stored with a computer program, and the processor executes the service chain according to the present disclosure when the computer program is running. Arrangement method.
  • Fig. 1 is a flowchart of a business chain orchestration method according to an embodiment of the present disclosure
  • Fig. 2 is a flowchart of a visual business chain orchestration method according to an embodiment of the present disclosure
  • Figure 3 is a schematic diagram of business chain orchestration according to an embodiment of the present disclosure.
  • Figure 4 is a structural block diagram of a business chain orchestration device according to an embodiment of the present disclosure.
  • Fig. 5 is another structural block diagram of the service chain orchestration device according to an embodiment of the present disclosure.
  • SDN Software Defined Network
  • SFC Software Defined Network
  • SFC supports the sharing of contextual information between classifiers and services, and between services and services.
  • data packets often undergo multiple classifications (ie, multiple unpacking and packing) processes. In SFC, this process is greatly reduced, and generally only needs to be classified once, making the entire process more convenient and efficient.
  • FIG. 1 is a flowchart of the method for orchestrating a business chain according to an embodiment of the present disclosure. As shown in FIG. 1, the process includes steps S102 to S106.
  • step S102 the designated route of the tenant is selected from the search box of the business topology component, and the search box is used to search for and display tenant information and routing information corresponding to the tenant.
  • step S104 the business topology corresponding to the designated route is acquired, and the business topology is displayed in the business topology component.
  • the business topology is used to indicate the nodes of all the business chains under the designated route and the drainage routes between the nodes.
  • step S106 select one or more topology nodes to be orchestrated, and perform an orchestration operation according to the location relationship between the topology nodes to be orchestrated in the business chain topology component and the business chain topology, and the topological relationship and business topology in the business chain topology component
  • the topological relationship among the components is one-to-one correspondence.
  • steps S102 to S106 select the tenant's designated route from the search box of the business topology component, and then obtain the business topology corresponding to the designated route, and display the business topology in the business topology component, and finally select one or more to be arranged
  • the topology node of the topology node to be orchestrated and perform the orchestration operation according to the position relationship between the topology node to be orchestrated in the business chain topology component and the business chain topology, because the topological relationship in the business chain topology component corresponds to the topological relationship in the business topology component one-to-one Therefore, it realizes the orchestration of multiple business chains on the business chain topology component, solves the problem that the business chain orchestration technology only supports the simultaneous orchestration of a single business chain, and improves the efficiency of business chain orchestration.
  • the business topology component may be obtained through initialization, and the business chain orchestration interface may be initialized in a specific application scenario, and the interface is mainly a business topology component constructed by AngularJS.
  • the business topology component supports functions such as the display, arrangement, and export of the network topology.
  • the upper left corner of the business topology component contains a tenant search box. Click the tenant search box, and the tenant form will pop up at the bottom of the search box to display all tenant information obtained from the server, including the number of tenants currently searched, tenant ID and tenant name.
  • step S102 may include step S102-11 to step S102-13.
  • step S102-11 the first instruction triggered by the user is received, and the tenant form is displayed from the search box of the slave business topology component according to the first instruction.
  • step S102-12 a second instruction triggered by the user is received, and a tenant is selected from the tenant table according to the second instruction.
  • step S102-13 the routing information corresponding to the selected tenant is obtained, and the tenant table is changed to display the selected tenant information and corresponding routing information, and the routing information includes at least the number of currently searched routes, the ID of the route, and the route name.
  • the user selects a certain tenant in the tenant table, obtains routing data corresponding to the tenant from the server, and changes the tenant table to display the tenant and its corresponding routing information.
  • the routing information table includes the number of routes, routing ID, and routing name. The top of the table displays the tenant ID and tenant name of the tenant. Click to return to the tenant table.
  • step S104 may include step S104-11 to step S104-12.
  • step S104-11 the corresponding service chain data is obtained from the server according to the ID of the designated route.
  • step S104-12 a corresponding service topology is constructed according to the service chain data.
  • steps S104-11 and S104-12 in a specific application scenario, it can be: after a certain route is selected by the user, the corresponding service chain data is obtained from the server according to the selected route ID, and the service topology component obtains according to the obtained Of business chain data to construct business topology.
  • each business topology represents a configured business chain.
  • the way of the business topology can be extended from left to right, and the leftmost is the source topology node of the flow, which represents all the flow sources of the current business chain.
  • the middle is the intermediate device nodes that pass by in turn, and the direction of drainage and the devices and ports passing by in turn can be clearly seen.
  • On the far right is the destination topology node of the flow, which represents all the flow ends of the current business chain.
  • step S106 may include step S106-11 to step S106-14.
  • step S106-11 the topology node to be arranged is selected from the list of topology nodes, and the topology node to be arranged is dragged to the business chain topology component based on the drag operation of the user.
  • step S106-12 it is determined whether the coordinates of the topology node to be arranged are within the coordinate range of the business chain topology in the business chain topology component.
  • step S106-13 in the case where the judgment result is yes, the topology node to be orchestrated is taken as a newly added node of the business chain topology and arranged in the business chain topology.
  • step S106-13 may include step S11 to step S13.
  • step S11 the node type of the newly added node is determined, and the node type includes a classifier type and a port type.
  • step S12 the number of nodes and the types of nodes in the service chain topology are obtained.
  • the starting point of the service chain topology is one or more classifiers, all the classifiers point to the first port, and all the ports are arranged in a singly linked list.
  • step S13 the newly-added nodes are arranged according to the node type of the newly-added node, the number of nodes in the service chain topology and the type of the node.
  • Step S13 may include: when the type of the newly added node is a classifier and there is a port type node in the service chain topology, automatically adding the newly added node to the service chain topology and directing the newly added node to the first in the service chain topology port type node; and when the type of the newly added node is a classifier and there is no port type node in the service chain topology, the automatic link creation of the newly added node is not performed.
  • the new node is automatically added to the business chain graph topology
  • the node of the configured classifier type points to the new node of the port type; or, the new node type is port and the new node is the first port type node in the business chain topology, and the business chain topology If there is no node of the classifier type, the automatic link creation of the new node is not performed; or, when the type of the new node is port and the new node is not the first port type in the business chain topology
  • the new node is automatically added to the business chain topology and the configured port type node points to the port type new node.
  • step S106-14 in the case where the judgment result is no, a new service chain topology is created based on the topology nodes to be arranged.
  • the service chain orchestration method may further include step S108: after each orchestration operation is performed, verify the integrity of the service chain topology after the orchestration, and send the verification
  • the integrity of the business chain topology includes at least: each business chain topology includes at least one port type node and one classifier type node, all nodes are configured with parameters, and all nodes are normal.
  • Step S108 can be in specific application scenarios: After each orchestration operation, the system updates the cached business chain data according to the current operation and verifies the integrity of the business chain data, and then sends an Ajax asynchronous request to the background to perform real-time verification of configuration data And feedback.
  • the orchestration operations that need to be verified include: drag and drop the topology node, configure and update the parameters of the topology node, delete the topology node of the business chain, delete the business chain, and so on.
  • the verification step includes: judging the integrity of the current business chain topology, that is, each business chain topology must contain at least one port and classifier node, and prompting an incomplete business chain; for topology nodes without configuration parameters, use different colors Distinguish to prompt the user to improve the attributes of the topology node; for a business chain with a complete topology, encapsulate the details of the business chain according to the cached topology data and send an asynchronous request to the server to verify whether the current business chain data can be deployed normally. According to the result of the request, the related business chain is modified and fed back. After all the business chain data is successfully verified, the business chain data can be updated, thereby avoiding large-scale modification operations that may be caused by a large number of business chains that are arranged at the same time and deployed.
  • FIG. 2 is a flowchart of a visual business chain orchestration method according to an embodiment of the present disclosure. As shown in FIG. 2, the method includes steps S201 to S206.
  • step S201 the business topology component and tenant table are initialized, and tenant information is loaded.
  • the initial business chain orchestration interface is a topology component built by AngularJS.
  • the topology component supports functions such as display, arrangement, and export of the network topology.
  • the upper left corner of the topology component contains the tenant search box. Click the tenant search box, and the tenant form will pop up at the bottom of the search box to display all tenant information obtained from the server, including the number of tenants currently searched, tenant ID and tenant name.
  • step S202 the routing data under a certain tenant is selected, and the service topology is loaded.
  • the user selects a certain tenant in the tenant table, obtains the routing data corresponding to the selected tenant from the server, and changes the tenant table to display the selected tenant and its corresponding routing information.
  • the routing information table includes the number of currently searched routes, route ID and route name.
  • the top of the table displays the tenant ID and tenant name of the selected tenant. Click to return to the tenant table.
  • the user selects a certain route, obtains the corresponding service chain data from the server according to the selected route ID, and the topology component constructs the service topology according to the obtained service chain data.
  • All business topologies can be arranged from top to bottom on topological components, and each business topology represents a configured business chain.
  • the business topology can extend from left to right, and the leftmost is the source topology node for drainage, which represents all the drainage sources of the current business chain.
  • the middle is the intermediate device nodes that pass by in turn, and the direction of drainage and the devices and ports passing by in turn can be clearly seen.
  • On the far right is the destination topology node of the flow, which represents all the flow ends of the current business chain.
  • step S203 the business chain layout is started, the business chain topology interface is initialized, and the business chain topology is loaded. Click the "Business Chain Orchestration” button or the “Business Chain Orchestration” button in the right-click menu of the business topology node, and a modal box will pop up on the page to display the business chain topology components.
  • All business chain topologies can be arranged from top to bottom on topological components, and each business chain topology represents a business chain that has been configured or is being configured.
  • the service chain topology mainly includes two types of nodes, classifier and port, which in turn represent the flow-draining object and the flow-draining intermediate device port.
  • Each business chain topology includes at least one classifier and at least one port.
  • the leftmost part of the business chain topology which is the starting point of the topology diagram, is one or more classifiers, all of which point to the first port. All ports are arranged in the form of a singly linked list, marking the drainage route of the configuration service chain, corresponding to the intermediate nodes of the service topology. Click the topology node, and a detailed table will pop up on the right side of the topology component, displaying the configuration information of the current business chain, including business chain ID, classifier, port, etc.
  • the topology in the business topology component corresponds to the topology in the business chain topology component, which can be jumped and highlighted through the right-click menu button of the node, and users can quickly find the corresponding data in many business chains.
  • the business chain topology component maintains a cache data structure, which is used to record all the business chain data currently configured, and is used for related calculations in orchestration operations and final deployment updates.
  • the cache mainly records node location information, node configuration data, and node link information of all business chain topologies.
  • step S204 drag the topology node or click the right-click menu option of the topology node to arrange the service chain.
  • Step S204 may include step S204-11 to step S204-15.
  • step S204-11 determine which service chain topology the new node belongs to according to the position of the node.
  • step S204-12 the node location is determined according to the node type and the cache data of the current service chain.
  • step S204-13 a topology link related to the newly created node is automatically generated.
  • step S204-14 the node attribute table pops up, and the node attributes are improved to complete the node configuration.
  • step S204-15 determine the integrity of the current service chain topology and the legality of the data, and feed back the result to the user.
  • steps S204-11 to S204-15 first, drag the topology node in the topology node list on the left to add a service chain topology node. After the dragging action is over, the system will obtain the new node in the service chain Coordinate data in the topology component. After that, compare the coordinate data of the new node with the coordinate range of all the configured business chain topologies. If the new coordinate is within the coordinate range of a certain business chain topology, then the new node belongs to the new node of this business chain topology; if Does not exist in the coordinate range of any business chain topology, then a new business chain topology is created, and the new node belongs to the node of the new business chain topology.
  • the coordinate range of each business chain topology is calculated by the range threshold and the data of the configured nodes of the current business chain.
  • the edge nodes around the current business chain can be obtained according to the cached data, and then the coordinates of the edge nodes are added to the range threshold to obtain the coordinate range of the current business chain.
  • This embodiment does not limit the range threshold of the topology.
  • Fig. 3 is a schematic diagram of the service chain arrangement according to an embodiment of the present disclosure.
  • the dragged new node node1 is located in the coordinate range of the service chain SFC1, and is a new node of the configured service chain SFC1;
  • the new node node2 is located in the coordinate range of the business chain SFC2, and is a new node of the configured business chain SFC2;
  • the dragged new node node3 does not belong to any configured business chain topology range, then create a new business chain SFC3 and use node3 as Create the first topology node of the new business chain.
  • the service chain topology node can flash to indicate. There is no overlapping coordinate range for each business chain topology to avoid conflicts.
  • the new business chain topology node After determining which business chain topology the new business chain topology node belongs to, it is necessary to calculate the position of the new node in the current business chain and automatically generate the topology link. If the new node is the topological node of the new business chain, create a new business chain at the bottom of the topology, and the new node is located at the top position of the new business chain topology (node3 in Figure 3); if the new node is a configured business chain For newly added nodes, the link and location information are confirmed according to the node type and the cache information of the current service chain.
  • the topology link is automatically generated, and the node points to the first port node that has been configured, which means that the current drainage object uses the intermediate device node pointed to (node1 in Figure 3); if it has not been created yet port node, no link is created, indicating that there is no intermediate device node for the current drainage object.
  • All the classifier nodes are located on the leftmost side of the current topology, arranged from top to bottom, and the newly created classifier node is located on the bottom side.
  • the classifier form pops up on the right side of the topology component, and the user fills in the information such as the source and destination IP and port of the flow to configure a classifier node.
  • the link will point to this node from all configured classifier nodes, indicating that this node is the first intermediate device node and has been There is a drainage object; if this node is the first port node created and there is no new classifier node, no link is created, indicating that this node is the first intermediate device node but there is no drainage object; if this node is not created
  • the first port node the link points from the last configured port node to this node, indicating that this node is an intermediate device node but not the first intermediate device node in the drainage route (node2 in Figure 3).
  • All port nodes are arranged in a singly linked list from left to right, and the newly created port node is located on the far right.
  • the port form pops up on the right side of the topology component, and the user can configure a port node by selecting the intermediate device port through which the traffic flows.
  • step S205 the validity of the data after each arrangement operation is verified in real time and fed back to the user.
  • the system updates the cached business chain data according to the current operation and verifies the integrity of the business chain data, and then sends an Ajax asynchronous request to the background to perform real-time verification and feedback of configuration data.
  • the orchestration operations that need to be verified include: drag and drop the topology node, configure and update the parameters of the topology node, delete the topology node of the business chain, delete the business chain, and so on.
  • the verification steps include: judging the integrity of the current business chain topology, that is, each business chain topology must contain at least one port and classifier node, and prompt for incomplete business chains; for no configuration parameters The topology nodes are distinguished by different colors to prompt the user to improve the attributes of the topology node; for a business chain with a complete topology structure, the business chain details are encapsulated according to the cached topology data and then an asynchronous request is sent to the server to verify the current business chain data Whether it can be deployed normally. According to the result of the request, the related business chain is modified and fed back. After all the business chain data is successfully verified, the business chain data can be updated. This avoids large-scale modification operations that may be caused by a large number of business chains that are arranged at the same time and then deployed.
  • step S206 the service chain is deployed.
  • the front-end After configuring the complete business chain information, click the deployment button of the business chain topology component, the front-end integrates the business chain data on the topology component, and sends a business chain update request to the server to perform addition, deletion, and modification operations on the business chain. After successful deployment, the topology component presents the latest business chain information.
  • the method according to the embodiment can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. The best way to implement it.
  • the technical solution of the present disclosure can essentially be embodied in the form of a software product.
  • the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), and includes several instructions to make a
  • a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) executes the method described in each embodiment of the present disclosure.
  • a service chain orchestration device is also provided, which is used to implement the method embodiment according to the present disclosure. Therefore, what has been described will not be repeated.
  • the term "module” can implement a combination of software and/or hardware with predetermined functions. Although the devices described in the following embodiments are preferably implemented by software, hardware or a combination of software and hardware is also possible and conceived.
  • FIG. 4 is a structural block diagram of a service chain orchestration device according to an embodiment of the present disclosure.
  • the service chain orchestration device includes: a selection module 42 for selecting a search box from a business topology component The designated route of the tenant is selected in the search box, and the search box is used to search for and display tenant information and routing information corresponding to the tenant; the first processing module 44 is coupled to the selection module 42 to obtain the business topology corresponding to the designated route, and The business topology component displays the business topology, which is used to indicate all the nodes of the business chain under the specified route and the drainage routes between the nodes; and the second processing module 46, coupled to the first processing module 44, is used to select one or Multiple topology nodes to be orchestrated, and perform orchestration operations according to the location relationship between the topology nodes to be orchestrated in the business chain topology component and the business chain topology.
  • the topological relationship in the business chain topology component and the topological relationship in the business topology component are the same One
  • the selection module 42 in this embodiment may include: a first processing unit configured to receive a first instruction triggered by a user, and display a tenant table from the search box of the business topology component according to the first instruction, and the tenant table is used to display the current search The number of tenants, tenant ID, and tenant name; the second processing unit is used to receive a second instruction triggered by the user, and select a tenant from the tenant table according to the second instruction; and the first acquisition unit is used to acquire and The routing information corresponding to the selected tenant, the tenant table changes and displays the selected tenant information and the corresponding routing information.
  • the routing information includes at least the number of routes currently searched, the ID and the name of the route.
  • the first processing module 44 in this embodiment may include: a second obtaining unit for obtaining corresponding service chain data from the server according to the ID of the designated route; and a construction unit for constructing a corresponding service topology according to the service chain data .
  • the second processing module 46 in this embodiment may include: a third processing unit, configured to select the topology node to be orchestrated from the topology node list, and drag the topology node to be orchestrated to the service chain based on the drag operation of the user In the topology component; the judging unit is used to judge whether the coordinates of the topology node to be arranged are within the coordinates of the business chain topology in the business chain topology component; the first arrangement unit is used to change the The topology node to be orchestrated serves as a new node of the business chain topology and is orchestrated in the business chain topology; and the second orchestration unit is used to create a new business chain based on the topology node to be orchestrated when the judgment result is no Topology.
  • a third processing unit configured to select the topology node to be orchestrated from the topology node list, and drag the topology node to be orchestrated to the service chain based on the drag operation of the user In the topology component
  • the judging unit is used to judge whether the
  • the first orchestration unit includes: determining subunit, used to determine the node type of the newly added node, the node type includes classifier type and port type; obtaining subunit, used to obtain the number of nodes in the business chain topology and the type of node, the business chain
  • the starting point of the topology is one or more classifiers, all the classifiers point to the first port, and all the ports are arranged in the form of a singly linked list; and the sub-units are arranged according to the node type of the newly added node and the business chain topology.
  • the number of nodes and the type of nodes arrange the new nodes.
  • the orchestration subunit is also used to: when the type of the new node is classifier and there is a port type node in the business chain topology, the new node is automatically added to the business chain topology and the new node points to the business chain topology. A node of the first port type; or, when the type of the newly added node is a classifier and there is no port type node in the service chain topology, automatic link creation of the newly added node is not performed.
  • the orchestration subunit is also used to automatically add a new node when the new node type is port and the new node is the first port type node in the business chain topology, and there is a classifier type node in the business chain topology.
  • the automatic link creation of the new node is not performed; or, when the type of the new node is port and the new node is not in the business chain topology
  • the new node is automatically added to the business chain topology and the last configured port type node points to the new port type node.
  • Fig. 5 is another structural block diagram of the service chain orchestration device according to an embodiment of the present disclosure.
  • the device may also include: a verification module 52, which is coupled to the second processing module 46, and is used to perform a check on the finished layout after each layout operation is performed.
  • the integrity of the business chain topology is verified, and the verification result is sent.
  • the integrity of the business chain topology includes at least: each business chain topology includes at least one port type node and one classifier type node, all nodes are configured with parameters, and all nodes are normal.
  • each of the above-mentioned modules can be implemented by software or hardware. For the latter, it can be implemented in the following way, but not limited to this: each module is located in the same processor; or, each module is combined in any combination The forms are located in different processors.
  • a storage medium in which a computer program is stored.
  • the one or more processors can execute each of the The visual business chain orchestration method of the embodiment.
  • the storage medium may be set to store a computer program for executing the following steps S1 to S3.
  • step S1 the designated route of the tenant is selected from the search box of the business topology component.
  • the search box is used to search for and display tenant information and routing information corresponding to the tenant.
  • step S2 the business topology corresponding to the designated route is obtained, and the business topology is displayed in the business topology component.
  • the business topology is used to indicate the nodes of all the business chains under the designated route and the drainage routes between the nodes.
  • step S3 select one or more topology nodes to be orchestrated, and perform an orchestration operation according to the location relationship between the topology nodes to be orchestrated in the business chain topology component and the business chain topology, and the topological relationship and business topology in the business chain topology component
  • the topological relationship among the components is one-to-one correspondence.
  • the storage medium may include, but is not limited to: U disk, read-only memory (Read-Only Memory, ROM for short), Random Access Memory (RAM for short), mobile hard disk , Magnetic disks or optical disks and other media that can store computer programs.
  • the embodiments of the present disclosure also provide an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor executes the visual business chain orchestration method according to each embodiment of the present disclosure when the computer program is running.
  • the electronic device may further include a transmission device and an input-output device, and the transmission device and the input-output device are connected to the processor.
  • the processor may be configured to execute the following steps S1 to S3 through a computer program.
  • step S1 the designated route of the tenant is selected from the search box of the business topology component.
  • the search box is used to search for and display tenant information and routing information corresponding to the tenant.
  • step S2 the business topology corresponding to the designated route is obtained, and the business topology is displayed in the business topology component.
  • the business topology is used to indicate the nodes of all the business chains under the designated route and the drainage routes between the nodes.
  • step S3 select one or more topology nodes to be orchestrated, and perform an orchestration operation according to the location relationship between the topology nodes to be orchestrated in the business chain topology component and the business chain topology, and the topological relationship and business topology in the business chain topology component
  • the topological relationship among the components is one-to-one correspondence.
  • each module or each step of the present disclosure can be implemented by a general computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. In an example embodiment, they can be implemented with program codes executable by a computing device, so that they can be stored in a storage device for execution by the computing device, and in some cases, can be executed in a different order than here. Perform the steps shown or described, or fabricate them into individual integrated circuit modules, or fabricate multiple modules or steps of them into a single integrated circuit module to achieve. In this way, the present disclosure is not limited to any specific hardware and software combination.

Abstract

Provided are a service chain orchestration method and apparatus, a storage medium and an electronic apparatus. The orchestration method comprises: selecting designated routing of a tenant from a search box of a service topology assembly, wherein the search box is used for searching for and displaying tenant information and routing information, which corresponds to the tenant; acquiring service topology corresponding to the designated routing, and displaying the service topology in a service topology assembly, wherein the service topology is used for indicating nodes of all service chains under the designated routing and guiding routes between nodes; and selecting one or more topological nodes to be orchestrated, and executing an orchestration operation according to a position relationship between the topological node to be orchestrated in a service chain topology assembly and service chain topology, wherein topological relationships in the service chain topology assembly correspond to topological relationships in the service topology assembly on a one-to-one basis.

Description

业务链的编排方法及装置、存储介质和电子装置Business chain arrangement method and device, storage medium and electronic device 技术领域Technical field
本公开涉及但不限于通信领域。The present disclosure relates to but is not limited to the field of communications.
背景技术Background technique
由于Overlay网络的发展,使得虚拟网络和物理网络分层,让数据中心的网络控制变得更加灵活,更具有扩展性。然而,网络通信中包含各式各样的网络服务功能,即,Service Function,如防火墙、NAT(Network Address Translation,网络地址转换)、QoS(Quality of Service,服务质量)、负载均衡器等,这些中间件提供了必要的业务处理功能。灵活、便捷、高效、安全地调配流量到Service Function上处理,形成SFC(Service Function Chaining,服务链),这就是业务链要解决的问题。Due to the development of the overlay network, the virtual network and the physical network are layered, making the network control of the data center more flexible and scalable. However, network communication includes various network service functions, namely, Service Function, such as firewall, NAT (Network Address Translation, network address translation), QoS (Quality of Service), load balancer, etc. Middleware provides necessary business processing functions. Flexible, convenient, efficient, and safe deployment of traffic to Service Function for processing, forming SFC (Service Function Chaining, service chain), this is the problem to be solved by the business chain.
目前,常见的业务链编排方法大致分为复杂指令的编写和可视化模型的构建,数据的配置过程大多比较繁琐,易用性较差。复杂指令的编写门槛高、效率低且不够直观。可视化模型的构建大多只支持单个业务链的同时编排,用户需要严格按照模型约定的位置进行网络节点的配置,无法满足用户多个编排同时进行、一次性下发的需求,特别是在数据量较大时,一定程度上影响了业务链编排的效率。另外,业务链数据的合法性校验往往是在最后的部署流程中,如果进行了大量的编排操作后部署失败,用户需要进行大量的修改操作,甚至前功尽弃。At present, common business chain orchestration methods are roughly divided into the compilation of complex instructions and the construction of visual models. Most of the data configuration process is cumbersome and the ease of use is poor. The writing of complex instructions has high barriers, low efficiency and not intuitive enough. The construction of visual models mostly only supports the simultaneous orchestration of a single business chain. Users need to configure network nodes strictly in accordance with the position agreed by the model, which cannot meet the needs of users for multiple orchestration and one-time delivery, especially when the amount of data is relatively high. At large, it affects the efficiency of business chain orchestration to a certain extent. In addition, the validity of business chain data is often checked in the final deployment process. If the deployment fails after a large number of orchestration operations, users need to perform a large number of modification operations, or even abandon all previous efforts.
发明内容Summary of the invention
本公开实施例提供了一种业务链的编排方法及装置、存储介质和电子装置。The embodiments of the present disclosure provide a method and device for arranging a business chain, a storage medium, and an electronic device.
根据本公开的一个实施例,提供了一种业务链的编排方法,包括:从业务拓扑组件的搜索框中选择租户的指定路由,所述搜索框用于搜索并显示租户信息以及与所述租户对应的路由信息;获取与所述 指定路由对应的业务拓扑,并在所述业务拓扑组件中显示所述业务拓扑,所述业务拓扑用于指示所述指定路由下所有业务链的节点及节点之间的引流路线;以及选择一个或多个待编排的拓扑节点,并根据所述待编排的拓扑节点在业务链拓扑组件中与业务链拓扑的位置关系执行编排操作,所述业务链拓扑组件中的拓扑关系与所述业务拓扑组件中的拓扑关系是一一对应的。According to an embodiment of the present disclosure, there is provided a business chain orchestration method, including: selecting a designated route of a tenant from a search box of a business topology component, and the search box is used to search for and display tenant information and communicate with the tenant. Corresponding routing information; obtain the business topology corresponding to the designated route, and display the business topology in the business topology component, where the business topology is used to indicate the nodes of all business chains under the designated route and the number of nodes And select one or more topology nodes to be orchestrated, and perform an orchestration operation according to the position relationship between the topology nodes to be orchestrated in the business chain topology component and the business chain topology, in the business chain topology component The topological relationship of is in a one-to-one correspondence with the topological relationship in the service topology component.
根据本公开的另一个实施例,一种业务链的编排装置,包括:选择模块,用于从业务拓扑组件的搜索框中选择租户的指定路由,所述搜索框用于搜索并显示租户信息以及与所述租户对应的路由信息;第一处理模块,用于获取与所述指定路由对应的业务拓扑,并在所述业务拓扑组件中显示所述业务拓扑,所述业务拓扑用于指示所述指定路由下所有业务链的节点及节点之间的引流路线;以及第二处理模块,用于选择一个或多个待编排的拓扑节点,并根据所述待编排的拓扑节点在业务链拓扑组件中与业务链拓扑的位置关系执行编排操作,所述业务链拓扑组件中的拓扑关系与所述业务拓扑组件中的拓扑关系是一一对应的。According to another embodiment of the present disclosure, a business chain orchestration device includes: a selection module for selecting a designated route of a tenant from a search box of a business topology component, the search box being used for searching and displaying tenant information and Routing information corresponding to the tenant; a first processing module, configured to obtain the service topology corresponding to the designated route, and display the service topology in the service topology component, and the service topology is used to indicate the The nodes of all the service chains under the designated route and the drainage routes between the nodes; and the second processing module is used to select one or more topology nodes to be orchestrated, and according to the topology nodes to be orchestrated in the service chain topology component Perform an orchestration operation with the positional relationship of the business chain topology, and the topological relationship in the business chain topology component corresponds to the topological relationship in the business topology component in a one-to-one correspondence.
根据本公开的又一个实施例,还提供了一种存储介质,所述存储介质中存储有计算机程序,所述计算机程序被一个或者多个处理器运行时,使得所述一个或者多个处理器执行根据本公开的业务链的编排方法。According to another embodiment of the present disclosure, there is also provided a storage medium in which a computer program is stored, and when the computer program is run by one or more processors, the one or more processors Perform the business chain orchestration method according to the present disclosure.
根据本公开的又一个实施例,还提供了一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器运行所述计算机程序时执行根据本公开的业务链的编排方法。According to another embodiment of the present disclosure, there is also provided an electronic device, including a memory and a processor, the memory is stored with a computer program, and the processor executes the service chain according to the present disclosure when the computer program is running. Arrangement method.
附图说明Description of the drawings
此处所说明的附图用来提供对本公开的进一步理解,构成本公开的一部分,本公开的示意性实施例及其说明用于解释本公开,并不构成对本公开的不当限定。在附图中:The drawings described here are used to provide a further understanding of the present disclosure and constitute a part of the present disclosure. The exemplary embodiments of the present disclosure and their descriptions are used to explain the present disclosure, and do not constitute an improper limitation of the present disclosure. In the attached picture:
图1是根据本公开实施例的业务链的编排方法流程图;Fig. 1 is a flowchart of a business chain orchestration method according to an embodiment of the present disclosure;
图2是根据本公开实施例的可视化的业务链编排方法的流程图;Fig. 2 is a flowchart of a visual business chain orchestration method according to an embodiment of the present disclosure;
图3是根据本公开实施例的业务链编排的示意图;Figure 3 is a schematic diagram of business chain orchestration according to an embodiment of the present disclosure;
图4是根据本公开实施例的业务链的编排装置的结构框图;以及Figure 4 is a structural block diagram of a business chain orchestration device according to an embodiment of the present disclosure; and
图5是根据本公开实施例的业务链的编排装置的另一结构框图。Fig. 5 is another structural block diagram of the service chain orchestration device according to an embodiment of the present disclosure.
具体实施方式Detailed ways
下文中将参考附图并结合实施例来详细说明本公开。需要说明的是,在不冲突的情况下,本公开中的实施例及实施例中的特征可以相互组合。Hereinafter, the present disclosure will be described in detail with reference to the drawings and in conjunction with embodiments. It should be noted that the embodiments in the present disclosure and the features in the embodiments can be combined with each other if there is no conflict.
需要说明的是,本公开的说明书和权利要求书及附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first", "second", etc. in the specification, claims, and drawings of the present disclosure are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence.
传统网络的业务链和网络拓扑紧密耦合、部署复杂,在业务链变更、扩容时,都需要改动网络拓扑,重新进行网络设备的配置。SDN(Software Defined Network,软件定义网络)的出现让业务链焕发了生机,它让业务链具备了动态性、高流动性、规模易变化、多租户等特点。基于SDN的配置,可以动态地添加或者删除链表上的服务节点,不仅方便使用,而且解耦了网络设备之间的关联。在数据流量经过链表的过程中,SFC还支持分类器与服务、服务与服务之间的上下文信息共享。在传统的数据服务链中,数据包往往要经过多次分类(即,多次解包、封包)的过程。而在SFC中,这个过程大大缩减,一般只需分类一次即可,使得整个过程更便捷、更高效。The business chain and network topology of the traditional network are tightly coupled, and the deployment is complicated. When the business chain is changed or expanded, the network topology needs to be changed and the network equipment is reconfigured. The emergence of SDN (Software Defined Network, Software Defined Network) has brought life to the business chain. It has made the business chain dynamic, high liquidity, easy to change in scale, and multi-tenant. Based on the configuration of SDN, you can dynamically add or delete service nodes on the linked list, which is not only convenient to use, but also decouples the association between network devices. In the process of data traffic passing through the linked list, SFC also supports the sharing of contextual information between classifiers and services, and between services and services. In the traditional data service chain, data packets often undergo multiple classifications (ie, multiple unpacking and packing) processes. In SFC, this process is greatly reduced, and generally only needs to be classified once, making the entire process more convenient and efficient.
目前,常见的业务链编排方法大致分为复杂指令的编写和可视化模型的构建,数据的配置过程大多比较繁琐,易用性较差。复杂指令的编写门槛高、效率低且不够直观。可视化模型的构建大多只支持单个业务链的同时编排,用户需要严格按照模型约定的位置进行网络节点的配置,无法满足用户多个编排同时进行、一次性下发的需求,特别是在数据量较大时,一定程度上影响了业务链编排的效率。另外,业务链数据的合法性校验往往是在最后的部署流程中,如果进行了大量的编排操作后部署失败,用户需要进行大量的修改操作,甚至前功 尽弃。At present, common business chain orchestration methods are roughly divided into the compilation of complex instructions and the construction of visual models. Most of the data configuration process is cumbersome and the ease of use is poor. The writing of complex instructions has high barriers, low efficiency and not intuitive enough. The construction of visual models mostly only supports the simultaneous orchestration of a single business chain. Users need to configure network nodes strictly in accordance with the position agreed by the model, which cannot meet the needs of users for multiple orchestration and one-time delivery, especially when the amount of data is relatively high. At large, it affects the efficiency of business chain orchestration to a certain extent. In addition, the legality of business chain data is often checked in the final deployment process. If the deployment fails after a large number of orchestration operations, users need to perform a large number of modification operations, or even abandon previous efforts.
根据本公开的实施例,提供了一种业务链的编排方法,图1是根据本公开实施例业务链的编排方法流程图,如图1所示,该流程包括步骤S102至步骤S106。According to an embodiment of the present disclosure, a method for orchestrating a business chain is provided. FIG. 1 is a flowchart of the method for orchestrating a business chain according to an embodiment of the present disclosure. As shown in FIG. 1, the process includes steps S102 to S106.
在步骤S102,从业务拓扑组件的搜索框中选择租户的指定路由,搜索框用于搜索并显示租户信息以及与租户对应的路由信息。In step S102, the designated route of the tenant is selected from the search box of the business topology component, and the search box is used to search for and display tenant information and routing information corresponding to the tenant.
在步骤S104,获取与指定路由对应的业务拓扑,并在业务拓扑组件中显示业务拓扑,业务拓扑用于指示指定路由下所有业务链的节点及节点之间的引流路线。In step S104, the business topology corresponding to the designated route is acquired, and the business topology is displayed in the business topology component. The business topology is used to indicate the nodes of all the business chains under the designated route and the drainage routes between the nodes.
在步骤S106,选择一个或多个待编排的拓扑节点,并根据待编排的拓扑节点在业务链拓扑组件中与业务链拓扑的位置关系执行编排操作,业务链拓扑组件中的拓扑关系与业务拓扑组件中的拓扑关系是一一对应的。In step S106, select one or more topology nodes to be orchestrated, and perform an orchestration operation according to the location relationship between the topology nodes to be orchestrated in the business chain topology component and the business chain topology, and the topological relationship and business topology in the business chain topology component The topological relationship among the components is one-to-one correspondence.
通过上述步骤S102至步骤S106,从业务拓扑组件的搜索框中选择租户的指定路由,进而获取与指定路由对应的业务拓扑,并在业务拓扑组件中显示业务拓扑,最后选择一个或多个待编排的拓扑节点,并根据待编排的拓扑节点在业务链拓扑组件中与业务链拓扑的位置关系执行编排操作,由于业务链拓扑组件中的拓扑关系与业务拓扑组件中的拓扑关系是一一对应的,因此实现了在业务链拓扑组件上对多个业务链进行编排,解决了的业务链编排技术只支持单个业务链的同时编排的问题,达到了提高业务链编排的效率。Through the above steps S102 to S106, select the tenant's designated route from the search box of the business topology component, and then obtain the business topology corresponding to the designated route, and display the business topology in the business topology component, and finally select one or more to be arranged The topology node of the topology node to be orchestrated, and perform the orchestration operation according to the position relationship between the topology node to be orchestrated in the business chain topology component and the business chain topology, because the topological relationship in the business chain topology component corresponds to the topological relationship in the business topology component one-to-one Therefore, it realizes the orchestration of multiple business chains on the business chain topology component, solves the problem that the business chain orchestration technology only supports the simultaneous orchestration of a single business chain, and improves the efficiency of business chain orchestration.
需要说明的是,在根据本公开的其它实施方式中,业务拓扑组件可以是通过初始化得到的,并且在具体应用场景中可以初始化业务链编排界面,界面主要为由AngularJS构建的业务拓扑组件。业务拓扑组件支持网络拓扑的显示、编排、导出等功能,业务拓扑组件的左上角包含一个租户搜索框。点击租户搜索框,搜索框下部弹出租户表格以显示所有从服务端获取的租户信息,包括当前搜索到的租户数量、租户ID和租户名称。It should be noted that in other embodiments according to the present disclosure, the business topology component may be obtained through initialization, and the business chain orchestration interface may be initialized in a specific application scenario, and the interface is mainly a business topology component constructed by AngularJS. The business topology component supports functions such as the display, arrangement, and export of the network topology. The upper left corner of the business topology component contains a tenant search box. Click the tenant search box, and the tenant form will pop up at the bottom of the search box to display all tenant information obtained from the server, including the number of tenants currently searched, tenant ID and tenant name.
在根据本公开的其它实施方式中,步骤S102可以包括步骤S102-11至步骤S102-13。In other embodiments according to the present disclosure, step S102 may include step S102-11 to step S102-13.
在步骤S102-11,接收用户触发的第一指令,并根据第一指令从从业务拓扑组件的搜索框中显示租户表格。In step S102-11, the first instruction triggered by the user is received, and the tenant form is displayed from the search box of the slave business topology component according to the first instruction.
在步骤S102-12,接收用户触发的第二指令,并根据第二指令选择从租户表格中选择租户。In step S102-12, a second instruction triggered by the user is received, and a tenant is selected from the tenant table according to the second instruction.
在步骤S102-13,获取与选择的租户对应的路由信息,租户表格更改为显示选择的租户信息及对应的路由信息,并且路由信息至少包括当前搜索到的路由数量、路由的ID和路由名称。In step S102-13, the routing information corresponding to the selected tenant is obtained, and the tenant table is changed to display the selected tenant information and corresponding routing information, and the routing information includes at least the number of currently searched routes, the ID of the route, and the route name.
对于步骤S102-11至步骤S102-13,用户选择租户表格中某一个租户,从服务端获取与该租户对应的路由数据,并且将租户表格改为显示该租户及其对应的路由信息。路由信息表格包括路由个数、路由ID和路由名称,表格的顶端显示该租户的租户ID和租户名称,点击后可以返回至租户表格。For steps S102-11 to S102-13, the user selects a certain tenant in the tenant table, obtains routing data corresponding to the tenant from the server, and changes the tenant table to display the tenant and its corresponding routing information. The routing information table includes the number of routes, routing ID, and routing name. The top of the table displays the tenant ID and tenant name of the tenant. Click to return to the tenant table.
在根据本公开的其它实施方式中,步骤S104可以包括步骤S104-11至步骤S104-12。In other embodiments according to the present disclosure, step S104 may include step S104-11 to step S104-12.
在步骤S104-11,根据指定路由的ID从服务器端获取对应的业务链数据。In step S104-11, the corresponding service chain data is obtained from the server according to the ID of the designated route.
在步骤S104-12,根据业务链数据构建对应的业务拓扑。In step S104-12, a corresponding service topology is constructed according to the service chain data.
对于上述步骤S104-11和步骤S104-12,在具体应用场景中可以是:某一个路由被用户选择后,根据被选择的路由ID从服务端获取对应的业务链数据,业务拓扑组件根据获取得到的业务链数据构建业务拓扑。For the above steps S104-11 and S104-12, in a specific application scenario, it can be: after a certain route is selected by the user, the corresponding service chain data is obtained from the server according to the selected route ID, and the service topology component obtains according to the obtained Of business chain data to construct business topology.
需要说明的是,本申请中所有的业务拓扑在拓扑组件上的排列方式,可以为自上而下排列,每个业务拓扑代表一个已经配置完成的业务链。业务拓扑的方式可以为自左向右延伸,最左侧为引流的源拓扑节点,它代表了当前业务链的所有引流源。中间为依次经过的中间设备节点,可以清晰地看到引流的方向和依次经过的设备及端口。最右侧为引流的目的拓扑节点,它代表了当前业务链的所有引流终点。点击业务拓扑中的任一节点,拓扑组件的右侧会弹出详情表格以展示当前业务链的详细信息,主要包括业务链ID、引流类型、所有引流源和目的的五元组信息、中间设备和端口信息等。It should be noted that the arrangement of all the business topologies in this application on the topology components may be top-down arrangement, and each business topology represents a configured business chain. The way of the business topology can be extended from left to right, and the leftmost is the source topology node of the flow, which represents all the flow sources of the current business chain. The middle is the intermediate device nodes that pass by in turn, and the direction of drainage and the devices and ports passing by in turn can be clearly seen. On the far right is the destination topology node of the flow, which represents all the flow ends of the current business chain. Click any node in the business topology, and a detailed table will pop up on the right side of the topology component to display the detailed information of the current business chain, including business chain ID, drainage type, quintuple information of all drainage sources and destinations, intermediate equipment and Port information, etc.
在根据本公开的其它实施方式中,步骤S106可以包括步骤S106-11至步骤S106-14。In other embodiments according to the present disclosure, step S106 may include step S106-11 to step S106-14.
在步骤S106-11,从拓扑节点列表中选择待编排的拓扑节点,并基于用户的拖拽操作将待编排的拓扑节点拖拽到业务链拓扑组件中。In step S106-11, the topology node to be arranged is selected from the list of topology nodes, and the topology node to be arranged is dragged to the business chain topology component based on the drag operation of the user.
在步骤S106-12,判断待编排的拓扑节点的坐标是否在业务链拓扑组件中的业务链拓扑的坐标范围内。In step S106-12, it is determined whether the coordinates of the topology node to be arranged are within the coordinate range of the business chain topology in the business chain topology component.
在步骤S106-13,在判断结果为是的情况下,将待编排的拓扑节点作为业务链拓扑的新增节点并在业务链拓扑中进行编排。In step S106-13, in the case where the judgment result is yes, the topology node to be orchestrated is taken as a newly added node of the business chain topology and arranged in the business chain topology.
需要说明的是,步骤S106-13可以包括步骤S11至步骤S13。It should be noted that step S106-13 may include step S11 to step S13.
在步骤S11,确定新增节点的节点类型,节点类型包括classifier类型和port类型。In step S11, the node type of the newly added node is determined, and the node type includes a classifier type and a port type.
在步骤S12,获取业务链拓扑中的节点数量以及节点的类型,业务链拓扑的起点为一个或多个classifier,所有的classifier指向第一个port,所有的port以单链表的形式排列。In step S12, the number of nodes and the types of nodes in the service chain topology are obtained. The starting point of the service chain topology is one or more classifiers, all the classifiers point to the first port, and all the ports are arranged in a singly linked list.
在步骤S13,根据新增节点的节点类型,以及业务链拓扑中的节点数量和节点的类型对新增节点进行编排。In step S13, the newly-added nodes are arranged according to the node type of the newly-added node, the number of nodes in the service chain topology and the type of the node.
步骤S13可以包括:在新增节点的类型为classifier且业务链拓扑中存在port类型的节点的情况下,自动添加新增节点到业务链拓扑中并由新增节点指向业务链拓扑中的第一port类型的节点;以及在新增节点的类型为classifier且业务链拓扑中不存在port类型的节点的情况下,不进行所述新增节点的链路自动创建。Step S13 may include: when the type of the newly added node is a classifier and there is a port type node in the service chain topology, automatically adding the newly added node to the service chain topology and directing the newly added node to the first in the service chain topology port type node; and when the type of the newly added node is a classifier and there is no port type node in the service chain topology, the automatic link creation of the newly added node is not performed.
在新增节点的类型为port且新增节点为业务链拓扑中的第一个port类型的节点,以及业务链拓扑中存在classifier类型的节点的情况下,自动添加新增节点到业务链图拓扑中并由已配置的classifier类型的节点指向port类型的新增节点;或者,在新增节点的类型为port且新增节点为业务链拓扑中的第一个port类型的节点,以及业务链拓扑中不存在classifier类型的节点的情况下,不进行所述新增节点的链路自动创建;或者,在新增节点的类型为port且新增节点不是业务链拓扑中的第一个port类型的节点,以及业务链拓扑中存在classifier类型的节点的情况下,自动添加新增节点 到业务链拓扑中并由已配置的port类型的节点指向port类型的新增节点。When the type of the new node is port and the new node is the first port type node in the business chain topology, and the classifier type node exists in the business chain topology, the new node is automatically added to the business chain graph topology The node of the configured classifier type points to the new node of the port type; or, the new node type is port and the new node is the first port type node in the business chain topology, and the business chain topology If there is no node of the classifier type, the automatic link creation of the new node is not performed; or, when the type of the new node is port and the new node is not the first port type in the business chain topology In the case of nodes and nodes of the classifier type in the business chain topology, the new node is automatically added to the business chain topology and the configured port type node points to the port type new node.
在步骤S106-14,在判断结果为否的情况下,基于待编排的拓扑节点创建新的业务链拓扑。In step S106-14, in the case where the judgment result is no, a new service chain topology is created based on the topology nodes to be arranged.
在根据本公开的其它实施方式中,业务链的编排方法还可以包括步骤S108:在每一次的编排操作执行完之后,对编排完后的业务链拓扑的完整性进行校验,并发送校验结果,业务链拓扑的完整性至少包括:每个业务链拓扑都包括至少一个port类型的节点和一个classifier类型的节点、所有节点均配置有参数、所有节点均正常。In other embodiments according to the present disclosure, the service chain orchestration method may further include step S108: after each orchestration operation is performed, verify the integrity of the service chain topology after the orchestration, and send the verification As a result, the integrity of the business chain topology includes at least: each business chain topology includes at least one port type node and one classifier type node, all nodes are configured with parameters, and all nodes are normal.
步骤S108在具体应用场景中可以是:每一个编排操作后,系统根据当前操作更新缓存的业务链数据并校验业务链数据完整性,随后向后台发送Ajax异步请求,进行配置数据的实时校验与反馈。需要校验的编排操作包括:拖拽拓扑节点、配置更新拓扑节点的参数、删除业务链的拓扑节点、删除业务链等。校验步骤包括:判断当前业务链拓扑的完整性,即,每个业务链拓扑都必须包含至少一个port和classifier节点,对不完整的业务链进行提示;对于没有配置参数的拓扑节点以不同颜色区分,以提示用户完善该拓扑节点属性;对于拓扑结构完整的业务链,根据缓存的拓扑数据封装好业务链详情数据后向服务端发送异步请求,校验当前业务链数据是否能够正常部署。根据请求返回结果对相关的业务链进行修改反馈。所有业务链数据校验成功后,可进行业务链数据更新,从而避免了大量业务链同时编排后部署,可能造成的大规模修改操作。Step S108 can be in specific application scenarios: After each orchestration operation, the system updates the cached business chain data according to the current operation and verifies the integrity of the business chain data, and then sends an Ajax asynchronous request to the background to perform real-time verification of configuration data And feedback. The orchestration operations that need to be verified include: drag and drop the topology node, configure and update the parameters of the topology node, delete the topology node of the business chain, delete the business chain, and so on. The verification step includes: judging the integrity of the current business chain topology, that is, each business chain topology must contain at least one port and classifier node, and prompting an incomplete business chain; for topology nodes without configuration parameters, use different colors Distinguish to prompt the user to improve the attributes of the topology node; for a business chain with a complete topology, encapsulate the details of the business chain according to the cached topology data and send an asynchronous request to the server to verify whether the current business chain data can be deployed normally. According to the result of the request, the related business chain is modified and fed back. After all the business chain data is successfully verified, the business chain data can be updated, thereby avoiding large-scale modification operations that may be caused by a large number of business chains that are arranged at the same time and deployed.
下面结合本公开的其它实施例对本公开进行举例说明。The present disclosure will be exemplified below in conjunction with other embodiments of the present disclosure.
本实施例提供了一种可视化的业务链编排方法,图2是根据本公开实施例的可视化的业务链编排方法的流程图,如图2所示,方法包括步骤S201至步骤S206。This embodiment provides a visual business chain orchestration method. FIG. 2 is a flowchart of a visual business chain orchestration method according to an embodiment of the present disclosure. As shown in FIG. 2, the method includes steps S201 to S206.
在步骤S201,初始化业务拓扑组件和租户表格,加载租户信息。初始化的业务链编排界面为AngularJS构建的拓扑组件。拓扑组件支持网络拓扑的显示、编排、导出等功能,拓扑组件的左上角包含租户搜索框。点击租户搜索框,搜索框下部弹出租户表格以显示所有从服 务端获取的租户信息,其中包括当前搜索到的租户个数、租户ID和租户名称。In step S201, the business topology component and tenant table are initialized, and tenant information is loaded. The initial business chain orchestration interface is a topology component built by AngularJS. The topology component supports functions such as display, arrangement, and export of the network topology. The upper left corner of the topology component contains the tenant search box. Click the tenant search box, and the tenant form will pop up at the bottom of the search box to display all tenant information obtained from the server, including the number of tenants currently searched, tenant ID and tenant name.
在步骤S202,选择某一租户下的路由数据,加载业务拓扑。用户选择租户表格中某一个租户,从服务端获取选择的租户对应的路由数据,并且将租户表格改为显示选择的租户及其对应的路由信息。路由信息表格包括当前搜索到的路由个数、路由ID和路由名称,表格的顶端显示选择的租户的租户ID和租户名称,点击后可以返回至租户表格。In step S202, the routing data under a certain tenant is selected, and the service topology is loaded. The user selects a certain tenant in the tenant table, obtains the routing data corresponding to the selected tenant from the server, and changes the tenant table to display the selected tenant and its corresponding routing information. The routing information table includes the number of currently searched routes, route ID and route name. The top of the table displays the tenant ID and tenant name of the selected tenant. Click to return to the tenant table.
用户选择某一个路由,根据选择的路由ID从服务端获取对应的业务链数据,拓扑组件根据获取得到的业务链数据构建业务拓扑。所有的业务拓扑可以在拓扑组件上自上而下排列,每个业务拓扑代表一个已经配置完成的业务链。业务拓扑可以自左向右延伸,最左侧为引流的源拓扑节点,它代表了当前业务链的所有引流源。中间为依次经过的中间设备节点,可以清晰地看到引流的方向和依次经过的设备及端口。最右侧为引流的目的拓扑节点,它代表了当前业务链的所有引流终点。点击业务拓扑中的任一节点,拓扑组件的右侧会弹出详情表格以展示当前业务链的详细信息,主要包括业务链ID、引流类型、所有引流源和目的的五元组信息、中间设备和端口信息等。The user selects a certain route, obtains the corresponding service chain data from the server according to the selected route ID, and the topology component constructs the service topology according to the obtained service chain data. All business topologies can be arranged from top to bottom on topological components, and each business topology represents a configured business chain. The business topology can extend from left to right, and the leftmost is the source topology node for drainage, which represents all the drainage sources of the current business chain. The middle is the intermediate device nodes that pass by in turn, and the direction of drainage and the devices and ports passing by in turn can be clearly seen. On the far right is the destination topology node of the flow, which represents all the flow ends of the current business chain. Click any node in the business topology, and a detailed table will pop up on the right side of the topology component to display the detailed information of the current business chain, including business chain ID, drainage type, quintuple information of all drainage sources and destinations, intermediate equipment and Port information, etc.
在步骤S203,开始业务链编排,初始化业务链拓扑界面并加载业务链拓扑。点击“业务链编排”按钮或者业务拓扑节点右键菜单中的“业务链编排”按钮,页面弹出模态框,显示业务链拓扑组件。所有的业务链拓扑可以在拓扑组件上自上而下排列,每个业务链拓扑代表一个配置完成或者正在配置的业务链。业务链拓扑主要包括classifier和port两种节点,依次表示引流对象和引流中间设备端口。每一个业务链拓扑包含至少一个classifier和至少一个port。业务链拓扑的最左侧,也就是拓扑图的起点,为一个或多个classifier,所有的classifier指向第一个port。所有的port以单链表的形式排列,标志着配置业务链的引流路线,与业务拓扑的中间节点对应。点击拓扑节点,拓扑组件的右侧弹出详情表格,显示当前业务链的配置信息,主要包括业务链ID、classifier、port等。 另外,业务拓扑组件中的拓扑和业务链拓扑组件中的拓扑一一对应,可以通过节点的右键菜单按钮进行跳转并高亮显示,用户可以在众多业务链中快速查找到对应的数据。In step S203, the business chain layout is started, the business chain topology interface is initialized, and the business chain topology is loaded. Click the "Business Chain Orchestration" button or the "Business Chain Orchestration" button in the right-click menu of the business topology node, and a modal box will pop up on the page to display the business chain topology components. All business chain topologies can be arranged from top to bottom on topological components, and each business chain topology represents a business chain that has been configured or is being configured. The service chain topology mainly includes two types of nodes, classifier and port, which in turn represent the flow-draining object and the flow-draining intermediate device port. Each business chain topology includes at least one classifier and at least one port. The leftmost part of the business chain topology, which is the starting point of the topology diagram, is one or more classifiers, all of which point to the first port. All ports are arranged in the form of a singly linked list, marking the drainage route of the configuration service chain, corresponding to the intermediate nodes of the service topology. Click the topology node, and a detailed table will pop up on the right side of the topology component, displaying the configuration information of the current business chain, including business chain ID, classifier, port, etc. In addition, the topology in the business topology component corresponds to the topology in the business chain topology component, which can be jumped and highlighted through the right-click menu button of the node, and users can quickly find the corresponding data in many business chains.
业务链拓扑组件维持一个缓存数据结构,用于记录当前配置的所有业务链数据,用于编排操作中的相关计算和最后的部署更新。缓存主要记录所有业务链拓扑的节点位置信息、节点配置数据、节点链路信息等。The business chain topology component maintains a cache data structure, which is used to record all the business chain data currently configured, and is used for related calculations in orchestration operations and final deployment updates. The cache mainly records node location information, node configuration data, and node link information of all business chain topologies.
在步骤S204,拖拽拓扑节点或者点击拓扑节点的右键菜单选项进行业务链编排。In step S204, drag the topology node or click the right-click menu option of the topology node to arrange the service chain.
步骤S204可以包括步骤S204-11至步骤S204-15。Step S204 may include step S204-11 to step S204-15.
在步骤S204-11,根据节点位置判断新节点属于哪个业务链拓扑。In step S204-11, determine which service chain topology the new node belongs to according to the position of the node.
在步骤S204-12,根据节点类型及当前业务链的缓存数据确定节点位置。In step S204-12, the node location is determined according to the node type and the cache data of the current service chain.
在步骤S204-13,自动生成与新建节点相关的拓扑链路。In step S204-13, a topology link related to the newly created node is automatically generated.
在步骤S204-14,弹出节点属性表格,完善节点属性以完成节点配置。In step S204-14, the node attribute table pops up, and the node attributes are improved to complete the node configuration.
在步骤S204-15,判断当前编排的业务链拓扑的完整性及数据合法,将结果反馈给用户。In step S204-15, determine the integrity of the current service chain topology and the legality of the data, and feed back the result to the user.
也就是说,对于上述步骤S204-11至步骤S204-15,首先,拖拽左侧拓扑节点列表的拓扑节点以新增业务链拓扑节点,拖拽动作结束后,系统会获取新建节点在业务链拓扑组件中的坐标数据。之后,将新节点的坐标数据与已配置的所有业务链拓扑的坐标范围进行对比,如果新坐标位于某一个业务链拓扑的坐标范围内,那么新节点属于此业务链拓扑的新增节点;如果不存在于任何业务链拓扑的坐标范围内,那么创建新的业务链拓扑,新节点属于新业务链拓扑的节点。每个业务链拓扑的坐标范围通过范围阈值和当前业务链已配置节点数据计算得到。可以根据缓存数据获取到当前业务链四周的边缘节点,再用边缘节点的坐标加上范围阈值便可得到当前业务链的坐标范围。本实施例不对拓扑的范围阈值做限定。That is to say, for the above steps S204-11 to S204-15, first, drag the topology node in the topology node list on the left to add a service chain topology node. After the dragging action is over, the system will obtain the new node in the service chain Coordinate data in the topology component. After that, compare the coordinate data of the new node with the coordinate range of all the configured business chain topologies. If the new coordinate is within the coordinate range of a certain business chain topology, then the new node belongs to the new node of this business chain topology; if Does not exist in the coordinate range of any business chain topology, then a new business chain topology is created, and the new node belongs to the node of the new business chain topology. The coordinate range of each business chain topology is calculated by the range threshold and the data of the configured nodes of the current business chain. The edge nodes around the current business chain can be obtained according to the cached data, and then the coordinates of the edge nodes are added to the range threshold to obtain the coordinate range of the current business chain. This embodiment does not limit the range threshold of the topology.
图3是根据本公开实施例的业务链编排的示意图,如图3所示, 拖拽的新节点node1位于业务链SFC1的坐标范围内,为已配置业务链SFC1的新增节点;拖拽的新节点node2位于业务链SFC2的坐标范围内,为已配置业务链SFC2的新增节点;拖拽的新节点node3不属于任何已配置的业务链拓扑范围,那么新建业务链SFC3,并将node3作为新建业务链的第一个拓扑节点。当拖拽拓扑至某一个业务链拓扑的坐标范围内时,此业务链拓扑节点可以闪烁以进行提示。每个业务链拓扑不存在重叠的坐标范围,避免冲突。Fig. 3 is a schematic diagram of the service chain arrangement according to an embodiment of the present disclosure. As shown in Fig. 3, the dragged new node node1 is located in the coordinate range of the service chain SFC1, and is a new node of the configured service chain SFC1; The new node node2 is located in the coordinate range of the business chain SFC2, and is a new node of the configured business chain SFC2; the dragged new node node3 does not belong to any configured business chain topology range, then create a new business chain SFC3 and use node3 as Create the first topology node of the new business chain. When the topology is dragged into the coordinate range of a certain service chain topology, the service chain topology node can flash to indicate. There is no overlapping coordinate range for each business chain topology to avoid conflicts.
确定完新建业务链拓扑节点属于哪个业务链拓扑后,需要计算新节点位于当前业务链的位置并自动生成拓扑链路。若新节点为新业务链的拓扑节点,则在拓扑最下侧创建新业务链,新节点位于新业务链拓扑起始位置(如图3中的node3节点);若新节点为已配置业务链的新增节点,则根据节点类型和当前业务链的缓存信息确认链路和位置信息。节点类型为classifier时,自动生成拓扑链路,由此节点指向已配置的第一个port节点,表示当前的引流对象使用指向的中间设备节点(如图3中的node1节点);若还没有新建port节点,则不创建链路,表示当前引流对象暂无中间设备节点。所有的classifier节点位于当前拓扑的最左侧,自上而下排列,最新创建的classifier节点位于最下侧。同时,拓扑组件的右侧弹出classifier表单,用户填写引流的源和目的IP及端口等信息即可配置完成一个classifier节点。节点类型为port时,若此节点为创建的第一个port节点且已存在新建的classifier节点,链路由所有已配置的classifier节点指向此节点,表示此节点为第一个中间设备节点并且已存在引流对象;若此节点为创建的第一个port节点且不存在新建的classifier节点则不创建链路,表示此节点为第一个中间设备节点但不存在引流对象;若此节点不是创建的第一个port节点,链路由上一个已配置的port节点指向此节点,表示此节点为中间设备节点但并非引流路线中的第一个中间设备节点(如图3中的node2节点)。所有的port节点以单链表形式自左向右排列,最新创建的port节点位于最右侧。同时,拓扑组件的右侧弹出port表单,用户选择引流经过的中间设备端口即可配置完成一个port节点。After determining which business chain topology the new business chain topology node belongs to, it is necessary to calculate the position of the new node in the current business chain and automatically generate the topology link. If the new node is the topological node of the new business chain, create a new business chain at the bottom of the topology, and the new node is located at the top position of the new business chain topology (node3 in Figure 3); if the new node is a configured business chain For newly added nodes, the link and location information are confirmed according to the node type and the cache information of the current service chain. When the node type is classifier, the topology link is automatically generated, and the node points to the first port node that has been configured, which means that the current drainage object uses the intermediate device node pointed to (node1 in Figure 3); if it has not been created yet port node, no link is created, indicating that there is no intermediate device node for the current drainage object. All the classifier nodes are located on the leftmost side of the current topology, arranged from top to bottom, and the newly created classifier node is located on the bottom side. At the same time, the classifier form pops up on the right side of the topology component, and the user fills in the information such as the source and destination IP and port of the flow to configure a classifier node. When the node type is port, if this node is the first port node created and a new classifier node already exists, the link will point to this node from all configured classifier nodes, indicating that this node is the first intermediate device node and has been There is a drainage object; if this node is the first port node created and there is no new classifier node, no link is created, indicating that this node is the first intermediate device node but there is no drainage object; if this node is not created The first port node, the link points from the last configured port node to this node, indicating that this node is an intermediate device node but not the first intermediate device node in the drainage route (node2 in Figure 3). All port nodes are arranged in a singly linked list from left to right, and the newly created port node is located on the far right. At the same time, the port form pops up on the right side of the topology component, and the user can configure a port node by selecting the intermediate device port through which the traffic flows.
在新建业务链的同时,用户还可以通过拖拽的方式进行拓扑节点的位置更新,操作流程与新建节点流程基本相同,此处不再做进一步阐述。所有拓扑节点右键菜单中的选项支持对业务链中某一个节点进行属性修改和删除操作,修改的拓扑节点和新增的拓扑节点以不同的颜色呈现,便于用户区分。When creating a new business chain, users can also update the location of topology nodes by dragging and dropping. The operation process is basically the same as that of creating a new node, and no further explanation is given here. The options in the right-click menu of all topology nodes support attribute modification and deletion of a node in the service chain. The modified topology node and the new topology node are presented in different colors, which is convenient for users to distinguish.
在步骤S205,实时校验每个编排操作后的数据合法性并反馈给用户。每一个编排操作后,系统根据当前操作更新缓存的业务链数据并校验业务链数据完整性,随后向后台发送Ajax异步请求,进行配置数据的实时校验与反馈。需要校验的编排操作包括:拖拽拓扑节点、配置更新拓扑节点的参数、删除业务链的拓扑节点、删除业务链等。以图3为例,校验步骤包括:判断当前业务链拓扑的完整性,即,每个业务链拓扑都必须包含至少一个port和classifier节点,对不完整的业务链进行提示;对于没有配置参数的拓扑节点以不同颜色区分,以提示用户完善该拓扑节点属性;对于拓扑结构完整的业务链,根据缓存的拓扑数据封装好业务链详情数据后向服务端发送异步请求,校验当前业务链数据是否能够正常部署。根据请求返回结果对相关的业务链进行修改反馈。所有业务链数据校验成功后,可进行业务链数据更新。这样就避免了大量业务链同时编排后部署,可能造成的大规模修改操作。In step S205, the validity of the data after each arrangement operation is verified in real time and fed back to the user. After each orchestration operation, the system updates the cached business chain data according to the current operation and verifies the integrity of the business chain data, and then sends an Ajax asynchronous request to the background to perform real-time verification and feedback of configuration data. The orchestration operations that need to be verified include: drag and drop the topology node, configure and update the parameters of the topology node, delete the topology node of the business chain, delete the business chain, and so on. Taking Figure 3 as an example, the verification steps include: judging the integrity of the current business chain topology, that is, each business chain topology must contain at least one port and classifier node, and prompt for incomplete business chains; for no configuration parameters The topology nodes are distinguished by different colors to prompt the user to improve the attributes of the topology node; for a business chain with a complete topology structure, the business chain details are encapsulated according to the cached topology data and then an asynchronous request is sent to the server to verify the current business chain data Whether it can be deployed normally. According to the result of the request, the related business chain is modified and fed back. After all the business chain data is successfully verified, the business chain data can be updated. This avoids large-scale modification operations that may be caused by a large number of business chains that are arranged at the same time and then deployed.
在步骤S206,部署业务链。In step S206, the service chain is deployed.
配置完整的业务链信息后点击业务链拓扑组件的部署按钮,前端整合拓扑组件上的业务链数据,并向服务端发送业务链更新请求,进行业务链的增删改操作。部署成功后,拓扑组件呈现最新的业务链信息。After configuring the complete business chain information, click the deployment button of the business chain topology component, the front-end integrates the business chain data on the topology component, and sends a business chain update request to the server to perform addition, deletion, and modification operations on the business chain. After successful deployment, the topology component presents the latest business chain information.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算 机,服务器,或者网络设备等)执行本公开各个实施例所述的方法。Through the description of the above implementation manners, those skilled in the art can clearly understand that the method according to the embodiment can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. The best way to implement it. Based on this understanding, the technical solution of the present disclosure can essentially be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), and includes several instructions to make a A terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) executes the method described in each embodiment of the present disclosure.
根据本公开的实施例还提供了一种业务链的编排装置,用于实现根据本公开的方法实施例,因此已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。According to the embodiment of the present disclosure, a service chain orchestration device is also provided, which is used to implement the method embodiment according to the present disclosure. Therefore, what has been described will not be repeated. As used below, the term "module" can implement a combination of software and/or hardware with predetermined functions. Although the devices described in the following embodiments are preferably implemented by software, hardware or a combination of software and hardware is also possible and conceived.
图4是根据本公开实施例的业务链的编排装置的结构框图,如图4所示,根据本公开实施例的业务链的编排装置包括:选择模块42,用于从业务拓扑组件的搜索框中选择租户的指定路由,搜索框用于搜索并显示租户信息以及与租户对应的路由信息;第一处理模块44,与选择模块42耦合连接,用于获取与指定路由对应的业务拓扑,并在业务拓扑组件中显示业务拓扑,业务拓扑用于指示指定路由下所有业务链的节点及节点之间的引流路线;以及第二处理模块46,与第一处理模块44耦合连接,用于选择一个或多个待编排的拓扑节点,并根据待编排的拓扑节点在业务链拓扑组件中与业务链拓扑的位置关系执行编排操作,业务链拓扑组件中的拓扑关系与业务拓扑组件中的拓扑关系是一一对应的。FIG. 4 is a structural block diagram of a service chain orchestration device according to an embodiment of the present disclosure. As shown in FIG. 4, the service chain orchestration device according to an embodiment of the present disclosure includes: a selection module 42 for selecting a search box from a business topology component The designated route of the tenant is selected in the search box, and the search box is used to search for and display tenant information and routing information corresponding to the tenant; the first processing module 44 is coupled to the selection module 42 to obtain the business topology corresponding to the designated route, and The business topology component displays the business topology, which is used to indicate all the nodes of the business chain under the specified route and the drainage routes between the nodes; and the second processing module 46, coupled to the first processing module 44, is used to select one or Multiple topology nodes to be orchestrated, and perform orchestration operations according to the location relationship between the topology nodes to be orchestrated in the business chain topology component and the business chain topology. The topological relationship in the business chain topology component and the topological relationship in the business topology component are the same One corresponding.
本实施例中的选择模块42可以包括:第一处理单元,用于接收用户触发的第一指令,并根据第一指令从业务拓扑组件的搜索框中显示租户表格,租户表格用于显示当前搜索到的租户数量、租户ID和租户名称;第二处理单元,用于接收用户触发的第二指令,并根据第二指令选择从租户表格中选择一租户;以及第一获取单元,用于获取与选择的租户对应的路由信息,租户表格更改显示为选择的租户信息及对应的路由信息,路由信息至少包括当前搜索到的路由数量、路由的ID和路由名称。The selection module 42 in this embodiment may include: a first processing unit configured to receive a first instruction triggered by a user, and display a tenant table from the search box of the business topology component according to the first instruction, and the tenant table is used to display the current search The number of tenants, tenant ID, and tenant name; the second processing unit is used to receive a second instruction triggered by the user, and select a tenant from the tenant table according to the second instruction; and the first acquisition unit is used to acquire and The routing information corresponding to the selected tenant, the tenant table changes and displays the selected tenant information and the corresponding routing information. The routing information includes at least the number of routes currently searched, the ID and the name of the route.
本实施例中的第一处理模块44可以包括:第二获取单元,用于根据指定路由的ID从服务器端获取对应的业务链数据;以及构建单元,用于根据业务链数据构建对应的业务拓扑。The first processing module 44 in this embodiment may include: a second obtaining unit for obtaining corresponding service chain data from the server according to the ID of the designated route; and a construction unit for constructing a corresponding service topology according to the service chain data .
本实施例中的第二处理模块46可以包括:第三处理单元,用于从拓扑节点列表中选择待编排的拓扑节点,并基于用户的拖拽操作将 待编排的拓扑节点拖拽到业务链拓扑组件中;判断单元,用于判断待编排的拓扑节点的坐标是否在业务链拓扑组件中的业务链拓扑的坐标范围内;第一编排单元,用于在判断结果为是的情况下,将待编排的拓扑节点作为业务链拓扑的新增节点并在业务链拓扑中进行编排;以及第二编排单元,用于在判断结果为否的情况下,基于待编排的拓扑节点创建新的业务链拓扑。The second processing module 46 in this embodiment may include: a third processing unit, configured to select the topology node to be orchestrated from the topology node list, and drag the topology node to be orchestrated to the service chain based on the drag operation of the user In the topology component; the judging unit is used to judge whether the coordinates of the topology node to be arranged are within the coordinates of the business chain topology in the business chain topology component; the first arrangement unit is used to change the The topology node to be orchestrated serves as a new node of the business chain topology and is orchestrated in the business chain topology; and the second orchestration unit is used to create a new business chain based on the topology node to be orchestrated when the judgment result is no Topology.
第一编排单元包括:确定子单元,用于确定新增节点的节点类型,节点类型包括classifier类型和port类型;获取子单元,用于获取业务链拓扑中的节点数量以及节点的类型,业务链拓扑的起点为一个或多个classifier,所有的classifier指向第一个port,所有的port以单链表的形式排列;以及编排子单元,用于根据新增节点的节点类型,以及业务链拓扑中的节点数量和节点的类型对新增节点进行编排。The first orchestration unit includes: determining subunit, used to determine the node type of the newly added node, the node type includes classifier type and port type; obtaining subunit, used to obtain the number of nodes in the business chain topology and the type of node, the business chain The starting point of the topology is one or more classifiers, all the classifiers point to the first port, and all the ports are arranged in the form of a singly linked list; and the sub-units are arranged according to the node type of the newly added node and the business chain topology. The number of nodes and the type of nodes arrange the new nodes.
编排子单元还用于:在新增节点的类型为classifier且业务链拓扑中存在port类型的节点的情况下,自动添加新增节点到业务链拓扑中并由新增节点指向业务链拓扑中的第一port类型的节点;或者,在新增节点的类型为classifier且业务链拓扑中不存在port类型的节点的情况下,不进行所述新增节点的链路自动创建。The orchestration subunit is also used to: when the type of the new node is classifier and there is a port type node in the business chain topology, the new node is automatically added to the business chain topology and the new node points to the business chain topology. A node of the first port type; or, when the type of the newly added node is a classifier and there is no port type node in the service chain topology, automatic link creation of the newly added node is not performed.
编排子单元还用于:在新增节点的类型为port且新增节点为业务链拓扑中的第一个port类型的节点,以及业务链拓扑中存在classifier类型的节点的情况下,自动添加新增节点到业务链图拓扑中并由已配置的classifier类型的节点指向port类型的新增节点;或者,在新增节点的类型为port且新增节点为业务链拓扑中的第一个port类型的节点,以及业务链拓扑中不存在classifier类型的节点的情况下,不进行所述新增节点的链路自动创建;或者,在新增节点的类型为port且新增节点不是业务链拓扑中的第一个port类型的节点,以及业务链拓扑中存在classifier类型的节点的情况下,自动添加新增节点到业务链拓扑中并由已配置的最后一个port类型的节点指向port类型的新增节点。The orchestration subunit is also used to automatically add a new node when the new node type is port and the new node is the first port type node in the business chain topology, and there is a classifier type node in the business chain topology. Add a node to the business chain graph topology and point the configured classifier type node to the new port type new node; or, the new node type is port and the new node is the first port type in the business chain topology If the node of the classifier type does not exist in the business chain topology, the automatic link creation of the new node is not performed; or, when the type of the new node is port and the new node is not in the business chain topology If there is a node of the classifier type in the first port type node in the business chain topology, the new node is automatically added to the business chain topology and the last configured port type node points to the new port type node.
图5是根据本公开实施例的业务链的编排装置的另一结构框图。 如图5所示,装置除了图4中的模块外,还可以包括:校验模块52,与第二处理模块46耦合连接,用于在每一次的编排操作执行完之后,对编排完后的业务链拓扑的完整性进行校验,并发送校验结果。业务链拓扑的完整性至少包括:每个业务链拓扑都包括至少一个port类型的节点和一个classifier类型的节点、所有节点均配置有参数、所有节点均正常。Fig. 5 is another structural block diagram of the service chain orchestration device according to an embodiment of the present disclosure. As shown in FIG. 5, in addition to the modules in FIG. 4, the device may also include: a verification module 52, which is coupled to the second processing module 46, and is used to perform a check on the finished layout after each layout operation is performed. The integrity of the business chain topology is verified, and the verification result is sent. The integrity of the business chain topology includes at least: each business chain topology includes at least one port type node and one classifier type node, all nodes are configured with parameters, and all nodes are normal.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:各个模块均位于同一处理器中;或者,各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that each of the above-mentioned modules can be implemented by software or hardware. For the latter, it can be implemented in the following way, but not limited to this: each module is located in the same processor; or, each module is combined in any combination The forms are located in different processors.
根据本公开的实施例还提供了一种存储介质,该存储介质中存储有计算机程序,该计算机程序被一个或者多个处理器运行时,使得所述一个或者多个处理器执行根据本公开各实施例的可视化的业务链编排方法。According to an embodiment of the present disclosure, there is also provided a storage medium in which a computer program is stored. When the computer program is run by one or more processors, the one or more processors can execute each of the The visual business chain orchestration method of the embodiment.
在根据本公开的实施例中,存储介质可以被设置为存储用于执行以下步骤S1至S3的计算机程序。In an embodiment according to the present disclosure, the storage medium may be set to store a computer program for executing the following steps S1 to S3.
在步骤S1,从业务拓扑组件的搜索框中选择租户的指定路由,搜索框用于搜索并显示租户信息以及与租户对应的路由信息。In step S1, the designated route of the tenant is selected from the search box of the business topology component. The search box is used to search for and display tenant information and routing information corresponding to the tenant.
在步骤S2,获取与指定路由对应的业务拓扑,并在业务拓扑组件中显示业务拓扑,业务拓扑用于指示指定路由下所有业务链的节点及节点之间的引流路线。In step S2, the business topology corresponding to the designated route is obtained, and the business topology is displayed in the business topology component. The business topology is used to indicate the nodes of all the business chains under the designated route and the drainage routes between the nodes.
在步骤S3,选择一个或多个待编排的拓扑节点,并根据待编排的拓扑节点在业务链拓扑组件中与业务链拓扑的位置关系执行编排操作,业务链拓扑组件中的拓扑关系与业务拓扑组件中的拓扑关系是一一对应的。In step S3, select one or more topology nodes to be orchestrated, and perform an orchestration operation according to the location relationship between the topology nodes to be orchestrated in the business chain topology component and the business chain topology, and the topological relationship and business topology in the business chain topology component The topological relationship among the components is one-to-one correspondence.
在根据本公开的实施例中,存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。In the embodiment according to the present disclosure, the storage medium may include, but is not limited to: U disk, read-only memory (Read-Only Memory, ROM for short), Random Access Memory (RAM for short), mobile hard disk , Magnetic disks or optical disks and other media that can store computer programs.
本公开的实施例还提供了一种电子装置,包括存储器和处理器, 该存储器中存储有计算机程序,处理器运行计算机程序时执行根据本公开各实施例的可视化的业务链编排方法。The embodiments of the present disclosure also provide an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor executes the visual business chain orchestration method according to each embodiment of the present disclosure when the computer program is running.
在示例性实施例中,电子装置还可以包括传输设备以及输入输出设备,传输设备和输入输出设备与处理器连接。In an exemplary embodiment, the electronic device may further include a transmission device and an input-output device, and the transmission device and the input-output device are connected to the processor.
在根据本公开的实施例中,处理器可以被设置为通过计算机程序执行以下步骤S1至步骤S3。In an embodiment according to the present disclosure, the processor may be configured to execute the following steps S1 to S3 through a computer program.
在步骤S1,从业务拓扑组件的搜索框中选择租户的指定路由,搜索框用于搜索并显示租户信息以及与租户对应的路由信息。In step S1, the designated route of the tenant is selected from the search box of the business topology component. The search box is used to search for and display tenant information and routing information corresponding to the tenant.
在步骤S2,获取与指定路由对应的业务拓扑,并在业务拓扑组件中显示业务拓扑,业务拓扑用于指示指定路由下所有业务链的节点及节点之间的引流路线。In step S2, the business topology corresponding to the designated route is obtained, and the business topology is displayed in the business topology component. The business topology is used to indicate the nodes of all the business chains under the designated route and the drainage routes between the nodes.
在步骤S3,选择一个或多个待编排的拓扑节点,并根据待编排的拓扑节点在业务链拓扑组件中与业务链拓扑的位置关系执行编排操作,业务链拓扑组件中的拓扑关系与业务拓扑组件中的拓扑关系是一一对应的。In step S3, select one or more topology nodes to be orchestrated, and perform an orchestration operation according to the location relationship between the topology nodes to be orchestrated in the business chain topology component and the business chain topology, and the topological relationship and business topology in the business chain topology component The topological relationship among the components is one-to-one correspondence.
本实施例中的示例可以参考根据本公开的方法实施例所描述的示例,本实施例在此不再赘述。For the examples in this embodiment, reference may be made to the examples described in the method embodiments of the present disclosure, and this embodiment will not be repeated here.
显然,本领域的技术人员应该明白,本公开的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,在示例实施例中,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本公开不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the present disclosure can be implemented by a general computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. In an example embodiment, they can be implemented with program codes executable by a computing device, so that they can be stored in a storage device for execution by the computing device, and in some cases, can be executed in a different order than here. Perform the steps shown or described, or fabricate them into individual integrated circuit modules, or fabricate multiple modules or steps of them into a single integrated circuit module to achieve. In this way, the present disclosure is not limited to any specific hardware and software combination.
以上所述仅为本公开的实施例,并不用于限制本公开,对于本领域的技术人员来说,本公开可以有各种更改和变化。凡在本公开的原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。The above are only the embodiments of the present disclosure and are not used to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the principles of the present disclosure shall be included in the protection scope of the present disclosure.

Claims (18)

  1. 一种业务链的编排方法,包括:A business chain orchestration method, including:
    从业务拓扑组件的搜索框中选择租户的指定路由,其中,所述搜索框用于搜索并显示租户信息以及与所述租户对应的路由信息;Select the designated route of the tenant from the search box of the business topology component, where the search box is used to search for and display tenant information and routing information corresponding to the tenant;
    获取与所述指定路由对应的业务拓扑,并在所述业务拓扑组件中显示所述业务拓扑,其中,所述业务拓扑用于指示所述指定路由下所有业务链的节点及节点之间的引流路线;以及Obtain the service topology corresponding to the specified route, and display the service topology in the service topology component, where the service topology is used to indicate the nodes of all service chains under the specified route and the flow diversion between nodes Route; and
    选择一个或多个待编排的拓扑节点,并根据所述待编排的拓扑节点在业务链拓扑组件中与业务链拓扑的位置关系执行编排操作,其中,所述业务链拓扑组件中的拓扑关系与所述业务拓扑组件中的拓扑关系是一一对应的。Select one or more topology nodes to be orchestrated, and perform an orchestration operation according to the location relationship between the topology nodes to be orchestrated in the business chain topology component and the business chain topology, wherein the topology relationship in the business chain topology component is the same as The topological relationships in the service topological components are in one-to-one correspondence.
  2. 根据权利要求1所述的方法,其中,从业务拓扑组件的搜索框中选择租户的指定路由的步骤包括:The method according to claim 1, wherein the step of selecting the designated route of the tenant from the search box of the business topology component comprises:
    接收用户触发的第一指令,并根据所述第一指令从所述从业务拓扑组件的搜索框中显示租户表格,其中,所述租户表格用于显示当前搜索到的租户数量、租户ID和租户名称;Receive the first instruction triggered by the user, and display the tenant form from the search box of the slave business topology component according to the first instruction, where the tenant form is used to display the number of tenants currently searched, tenant ID and tenant name;
    接收用户触发的第二指令,并根据所述第二指令选择从所述租户表格中选择租户;以及Receiving a second instruction triggered by a user, and selecting a tenant from the tenant table according to the second instruction; and
    获取与所述选择的租户对应的路由信息,其中,所述租户表格更改显示为所述选择的租户信息及对应的路由信息,并且所述路由信息至少包括路由数量、路由的ID和路由名称。Obtain routing information corresponding to the selected tenant, wherein the tenant table is modified and displayed as the selected tenant information and corresponding routing information, and the routing information includes at least the number of routes, the ID of the route, and the name of the route.
  3. 根据权利要求1或2所述的方法,其中,获取与所述指定路由对应的业务拓扑的步骤包括:The method according to claim 1 or 2, wherein the step of obtaining the service topology corresponding to the designated route comprises:
    根据所述指定路由的ID从服务器端获取对应的业务链数据;以及Obtain corresponding service chain data from the server according to the ID of the designated route; and
    根据所述业务链数据构建对应的业务拓扑。Construct a corresponding business topology according to the business chain data.
  4. 根据权利要求1所述的方法,其中,选择一个或多个待编排的拓扑节点,并根据所述待编排的拓扑节点在业务链拓扑组件中与业务链拓扑的位置关系执行编排操作的步骤包括:The method according to claim 1, wherein the step of selecting one or more topology nodes to be orchestrated, and performing an orchestration operation according to the position relationship between the topology nodes to be orchestrated in the business chain topology component and the business chain topology comprises :
    从拓扑节点列表中选择待编排的拓扑节点,并基于用户的拖拽操作将所述待编排的拓扑节点拖拽到所述业务链拓扑组件中;Select the topology node to be orchestrated from the topology node list, and drag the topology node to be orchestrated to the business chain topology component based on the drag operation of the user;
    判断所述待编排的拓扑节点的坐标是否在所述业务链拓扑组件中的业务链拓扑的坐标范围内;Judging whether the coordinates of the topology node to be arranged are within the coordinate range of the business chain topology in the business chain topology component;
    在判断结果为是的情况下,将所述待编排的拓扑节点作为所述业务链拓扑的新增节点并在所述业务链拓扑中进行编排;In a case where the judgment result is yes, use the topology node to be orchestrated as a newly added node of the service chain topology and perform orchestration in the service chain topology;
    在判断结果为否的情况下,基于所述待编排的拓扑节点创建新的业务链拓扑。In a case where the judgment result is no, a new service chain topology is created based on the topology node to be orchestrated.
  5. 根据权利要求4所述的方法,其中,将所述待编排的拓扑节点作为所述业务链拓扑的新增节点并在所述业务链拓扑中进行编排的步骤包括:The method according to claim 4, wherein the step of using the topology node to be orchestrated as a newly added node of the service chain topology and performing orchestration in the service chain topology comprises:
    确定所述新增节点的节点类型,其中,所述节点类型包括classifier类型和port类型;Determine the node type of the newly added node, where the node type includes a classifier type and a port type;
    获取所述业务链拓扑中的节点数量以及节点的类型,其中,所述业务链拓扑的起点为一个或多个classifier,所有的classifier指向第一个port,所有的port以单链表的形式排列;以及Acquiring the number of nodes and the type of nodes in the business chain topology, where the starting point of the business chain topology is one or more classifiers, all the classifiers point to the first port, and all the ports are arranged in a singly linked list; as well as
    根据所述新增节点的节点类型,以及所述业务链拓扑中的节点数量和节点的类型对所述新增节点进行编排。The newly-added nodes are arranged according to the node types of the newly-added nodes, and the number of nodes and the types of nodes in the service chain topology.
  6. 根据权利要求5所述的方法,其中,根据所述新增节点的节点类型,以及所述业务链拓扑中的节点数量和节点的类型对所述新增节点进行编排的步骤包括:The method according to claim 5, wherein the step of arranging the newly-added node according to the node type of the newly-added node and the number of nodes and the type of the node in the service chain topology comprises:
    在所述新增节点的类型为classifier且业务链拓扑中存在port类型的节点的情况下,自动添加所述新增节点到业务链拓扑中并由所述新增节点指向业务链拓扑中的第一port类型的节点;以及When the type of the newly added node is a classifier and a port type node exists in the service chain topology, the newly added node is automatically added to the service chain topology and the newly added node points to the first in the service chain topology. A port type node; and
    在所述新增节点的类型为classifier且业务链拓扑中不存在 port类型的节点的情况下,不进行所述新增节点的链路自动创建。When the type of the newly added node is a classifier and there is no node of the port type in the service chain topology, the automatic link creation of the newly added node is not performed.
  7. 根据权利要求5所述的方法,其中,根据所述新增节点的节点类型,以及所述业务链拓扑中的节点数量和节点的类型对所述新增节点进行编排的步骤包括:The method according to claim 5, wherein the step of arranging the newly-added node according to the node type of the newly-added node and the number of nodes and the type of the node in the service chain topology comprises:
    在所述新增节点的类型为port且所述新增节点为所述业务链拓扑中的第一个port类型的节点,以及业务链拓扑中存在classifier类型的节点的情况下,自动添加所述新增节点到业务链图拓扑中并由已配置的classifier类型的节点指向port类型的新增节点;When the type of the newly added node is port and the newly added node is the first port type node in the business chain topology, and there is a classifier type node in the business chain topology, the Add new nodes to the business chain graph topology and point from the configured classifier type node to the port type new node;
    在所述新增节点的类型为port且所述新增节点为所述业务链拓扑中的第一个port类型的节点,以及业务链拓扑中不存在classifier类型的节点的情况下,不进行所述新增节点的链路自动创建;以及When the type of the newly added node is port and the newly added node is the first port type node in the service chain topology, and there is no node of the classifier type in the service chain topology, no all operations are performed. The link of the newly added node is automatically created; and
    在所述新增节点的类型为port且所述新增节点不是所述业务链拓扑中的第一个port类型的节点,以及业务链拓扑中存在classifier类型的节点的情况下,自动添加所述新增节点到业务链拓扑中并由已配置的最后一个port类型的节点指向port类型的新增节点。When the type of the newly added node is port and the newly added node is not the first port type node in the service chain topology, and there is a classifier type node in the service chain topology, the The new node is added to the business chain topology and the last configured port type node points to the port type new node.
  8. 根据权利要求1所述的方法,还包括:The method according to claim 1, further comprising:
    在每一次的编排操作执行完之后,对编排完后的业务链拓扑的完整性进行校验,并发送校验结果,其中,所述业务链拓扑的完整性至少包括:每个业务链拓扑都包括至少一个port类型的节点和一个classifier类型的节点、所有节点均配置有参数、所有节点均正常。After each orchestration operation is performed, the integrity of the service chain topology after the orchestration is verified, and the verification result is sent. The integrity of the service chain topology includes at least: Including at least one port type node and one classifier type node, all nodes are configured with parameters, and all nodes are normal.
  9. 一种业务链的编排装置,包括:A business chain arrangement device, including:
    选择模块,用于从业务拓扑组件的搜索框中选择租户的指定路由,其中,所述搜索框用于搜索并显示租户信息以及与所述租户对应的路由信息;The selection module is used to select the designated route of the tenant from the search box of the business topology component, wherein the search box is used to search for and display tenant information and routing information corresponding to the tenant;
    第一处理模块,用于获取与所述指定路由对应的业务拓扑,并 在所述业务拓扑组件中显示所述业务拓扑,其中,所述业务拓扑用于指示所述指定路由下所有业务链的节点及节点之间的引流路线;以及The first processing module is configured to obtain the business topology corresponding to the designated route, and display the business topology in the business topology component, wherein the business topology is used to indicate all business chains under the designated route Nodes and the drainage routes between them; and
    第二处理模块,用于选择一个或多个待编排的拓扑节点,并根据所述待编排的拓扑节点在业务链拓扑组件中与业务链拓扑的位置关系执行编排操作,其中,所述业务链拓扑组件中的拓扑关系与所述业务拓扑组件中的拓扑关系是一一对应的。The second processing module is used to select one or more topology nodes to be orchestrated, and perform an orchestration operation according to the position relationship between the topology nodes to be orchestrated and the business chain topology in the business chain topology component, wherein the business chain The topological relationship in the topological component and the topological relationship in the service topological component have a one-to-one correspondence.
  10. 根据权利要求9所述的装置,其中,所述选择模块包括:The device according to claim 9, wherein the selection module comprises:
    第一处理单元,用于接收用户触发的第一指令,并根据所述第一指令从所述从业务拓扑组件的搜索框中显示租户表格,其中,所述租户表格用于显示当前搜索到的租户数量、租户ID和租户名称;The first processing unit is configured to receive a first instruction triggered by a user, and display a tenant table from the search box of the slave business topology component according to the first instruction, wherein the tenant table is used to display the currently searched The number of tenants, tenant ID and tenant name;
    第二处理单元,用于接收用户触发的第二指令,并根据所述第二指令选择从所述租户表格中选择租户;以及A second processing unit, configured to receive a second instruction triggered by a user, and select a tenant from the tenant table according to the second instruction; and
    第一获取单元,用于获取与所述选择的租户对应的路由信息,其中,所述租户表格更改显示为所述选择的租户信息及对应的路由信息;所述路由信息至少包括路由数量、路由的ID和路由名称。The first acquiring unit is configured to acquire routing information corresponding to the selected tenant, wherein the tenant table change is displayed as the selected tenant information and the corresponding routing information; the routing information includes at least the number of routes and the routing information. ID and route name.
  11. 根据权利要求9或10所述的装置,其中,所述第一处理模块包括:The device according to claim 9 or 10, wherein the first processing module comprises:
    第二获取单元,用于根据所述指定路由的ID从服务器端获取对应的业务链数据;以及The second obtaining unit is configured to obtain corresponding service chain data from the server according to the ID of the designated route; and
    构建单元,用于根据所述业务链数据构建对应的业务拓扑。The construction unit is used to construct a corresponding business topology according to the business chain data.
  12. 根据权利要求9所述的装置,其中,所述第二处理模块包括:The device according to claim 9, wherein the second processing module comprises:
    第三处理单元,用于从拓扑节点列表中选择待编排的拓扑节点,并基于用户的拖拽操作将所述待编排的拓扑节点拖拽到所述业务链拓扑组件中;The third processing unit is configured to select the topology node to be orchestrated from the topology node list, and drag the topology node to be orchestrated to the business chain topology component based on the drag operation of the user;
    判断单元,用于判断所述待编排的拓扑节点的坐标是否在所述业务链拓扑组件中的业务链拓扑的坐标范围内;A judging unit, configured to judge whether the coordinates of the topology node to be arranged are within the coordinate range of the business chain topology in the business chain topology component;
    第一编排单元,用于在判断结果为是的情况下,将所述待编排 的拓扑节点作为所述业务链拓扑的新增节点并在所述业务链拓扑中进行编排;以及The first orchestration unit is configured to, if the judgment result is yes, use the topology node to be orchestrated as a newly added node of the service chain topology and perform orchestration in the service chain topology; and
    第二编排单元,用于在判断结果为否的情况下,基于所述待编排的拓扑节点创建新的业务链拓扑。The second orchestration unit is configured to create a new service chain topology based on the topology node to be orchestrated when the judgment result is no.
  13. 根据权利要求12所述的装置,其中,所述第一编排单元包括:The device according to claim 12, wherein the first arrangement unit comprises:
    确定子单元,用于确定所述新增节点的节点类型,其中,所述节点类型包括classifier类型和port类型;The determining subunit is used to determine the node type of the newly added node, where the node type includes a classifier type and a port type;
    获取子单元,用于获取所述业务链拓扑中的节点数量以及节点的类型,其中,所述业务链拓扑的起点为一个或多个classifier,所有的classifier指向第一个port,所有的port以单链表的形式排列;以及The obtaining subunit is used to obtain the number of nodes and the type of nodes in the service chain topology, where the starting point of the service chain topology is one or more classifiers, all classifiers point to the first port, and all ports are Singly linked list; and
    编排子单元,用于根据所述新增节点的节点类型,以及所述业务链拓扑中的节点数量和节点的类型对所述新增节点进行编排。The orchestration subunit is used to orchestrate the newly-added node according to the node type of the newly-added node, the number of nodes and the type of the node in the service chain topology.
  14. 根据权利要求13所述的装置,其中,所述编排子单元还用于:The device according to claim 13, wherein the orchestration subunit is further used for:
    在所述新增节点的类型为classifier且业务链拓扑中存在port类型的节点的情况下,自动添加所述新增节点到业务链拓扑中并由所述新增节点指向业务链拓扑中的第一port类型的节点;或者When the type of the newly added node is a classifier and a port type node exists in the service chain topology, the newly added node is automatically added to the service chain topology and the newly added node points to the first in the service chain topology. A port type node; or
    在所述新增节点的类型为classifier且业务链拓扑中不存在port类型的节点的情况下,不进行所述新增节点的链路自动创建。When the type of the newly added node is a classifier and there is no port type node in the service chain topology, the automatic link creation of the newly added node is not performed.
  15. 根据权利要求13所述的装置,其中,所述编排子单元还用于:The device according to claim 13, wherein the orchestration subunit is further used for:
    在所述新增节点的类型为port且所述新增节点为所述业务链拓扑中的第一个port类型的节点,以及业务链拓扑中存在classifier类型的节点的情况下,自动添加所述新增节点到业务链图拓扑中并由已配置的classifier类型的节点指向port类型的新增节点;或者When the type of the newly added node is port and the newly added node is the first port type node in the business chain topology, and there is a classifier type node in the business chain topology, the Add a new node to the business chain graph topology and point the configured classifier type node to the port type new node; or
    在所述新增节点的类型为port且所述新增节点为所述业务链拓扑中的第一个port类型的节点,以及业务链拓扑中不存在classifier类型的节点的情况下,不进行所述新增节点的链路自动创建;或者When the type of the newly added node is port and the newly added node is the first port type node in the service chain topology, and there is no node of the classifier type in the service chain topology, no all operations are performed. The link of the newly added node is automatically created; or
    在所述新增节点的类型为port且所述新增节点不是所述业务链拓扑中的第一个port类型的节点,以及业务链拓扑中存在classifier类型的节点的情况下,自动添加所述新增节点到业务链拓扑中并由已配置的最后一个port类型的节点指向port类型的新增节点。When the type of the newly added node is port and the newly added node is not the first port type node in the service chain topology, and there is a classifier type node in the service chain topology, the The new node is added to the business chain topology and the last configured port type node points to the port type new node.
  16. 根据权利要求9所述的装置,还包括:The device according to claim 9, further comprising:
    校验模块,用于在每一次的编排操作执行完之后,对编排完后的业务链拓扑的完整性进行校验,并发送校验结果,其中,所述业务链拓扑的完整性至少包括:每个业务链拓扑都包括至少一个port类型的节点和一个classifier类型的节点、所有节点均配置有参数、所有节点均正常。The verification module is used to verify the integrity of the service chain topology after each orchestration operation is performed, and send the verification result, wherein the integrity of the service chain topology at least includes: Each service chain topology includes at least one port type node and one classifier type node, all nodes are configured with parameters, and all nodes are normal.
  17. 一种存储介质,其中,所述存储介质中存储有计算机程序,其中,所述计算机程序被一个或者多个处理器运行时,使得所述一个或者多个处理器执行根据权利要求1至8任一项中所述的方法。A storage medium, wherein a computer program is stored in the storage medium, and when the computer program is run by one or more processors, the one or more processors execute any of claims 1 to 8 The method described in one item.
  18. 一种电子装置,包括存储器和处理器,其中,所述存储器中存储有计算机程序,所述处理器运行所述计算机程序时执行根据权利要求1至8任一项中所述的方法。An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor executes the method according to any one of claims 1 to 8 when the computer program is running.
PCT/CN2020/092023 2019-06-12 2020-05-25 Service chain orchestration method and apparatus, storage medium and electronic apparatus WO2020248805A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910508055.6 2019-06-12
CN201910508055.6A CN112087379B (en) 2019-06-12 2019-06-12 Service chain arranging method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
WO2020248805A1 true WO2020248805A1 (en) 2020-12-17

Family

ID=73734600

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/092023 WO2020248805A1 (en) 2019-06-12 2020-05-25 Service chain orchestration method and apparatus, storage medium and electronic apparatus

Country Status (2)

Country Link
CN (1) CN112087379B (en)
WO (1) WO2020248805A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113407254A (en) * 2021-06-15 2021-09-17 长沙都正生物科技股份有限公司 Form generation method and device, electronic equipment and storage medium
CN114780325A (en) * 2022-06-21 2022-07-22 新华三信息技术有限公司 PCIe equipment detection method and device
CN116132513A (en) * 2023-02-24 2023-05-16 重庆长安汽车股份有限公司 Method, device, equipment and storage medium for updating parameters of service arrangement
CN116132513B (en) * 2023-02-24 2024-04-19 重庆长安汽车股份有限公司 Method, device, equipment and storage medium for updating parameters of service arrangement

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113435846A (en) * 2021-06-30 2021-09-24 深圳平安智汇企业信息管理有限公司 Business process arranging method and device, computer equipment and storage medium
CN113259714B (en) * 2021-06-30 2021-10-15 腾讯科技(深圳)有限公司 Content distribution processing method and device, electronic equipment and storage medium
CN113537937A (en) * 2021-07-16 2021-10-22 重庆富民银行股份有限公司 Task arrangement method, device and equipment based on topological sorting and storage medium
CN113992522B (en) * 2021-09-02 2024-04-09 深信服科技股份有限公司 Network topology graph generation method and device, electronic equipment and storage medium
CN113779739B (en) * 2021-09-15 2023-08-22 成都四方伟业软件股份有限公司 Multi-layer topological graph intelligent layout method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594851A (en) * 2011-01-07 2012-07-18 中国科学院遥感应用研究所 Method for dynamically building marine application service chain
CN104836853A (en) * 2015-04-22 2015-08-12 华为技术有限公司 Method and apparatus for business arrangement
US20150358235A1 (en) * 2014-06-05 2015-12-10 Futurewei Technologies, Inc. Service Chain Topology Map Construction
CN105379218A (en) * 2014-06-17 2016-03-02 华为技术有限公司 Service flow processing method, apparatus and device
CN107153495A (en) * 2017-05-10 2017-09-12 华为技术有限公司 A kind of method and apparatus for setting up service link between network element
CN107819663A (en) * 2017-11-27 2018-03-20 锐捷网络股份有限公司 A kind of method and apparatus for realizing virtual network function service chaining
CN108563505A (en) * 2018-04-04 2018-09-21 上海有云信息技术有限公司 A kind of service chaining method of combination, device, server and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5953109B2 (en) * 2012-05-15 2016-07-20 株式会社日立製作所 Management server and verification method
US9203765B2 (en) * 2013-08-30 2015-12-01 Cisco Technology, Inc. Flow based network service insertion using a service chain identifier
US9405568B2 (en) * 2013-09-13 2016-08-02 Microsoft Technology Licensing, Llc Multi-tenant network stack
US9813301B2 (en) * 2014-08-20 2017-11-07 Nec Corporation Optimization framework for multi-tenant data centers
KR102233645B1 (en) * 2014-11-11 2021-03-30 한국전자통신연구원 System and method for virtual network-based distributed multi-domain routing
WO2016124245A1 (en) * 2015-02-05 2016-08-11 Telefonaktiebolaget Lm Ericsson (Publ) Method and device for allowing tenants to control tenant-specific parts of a virtual cloud topology
EP3363168A1 (en) * 2015-10-12 2018-08-22 Telefonaktiebolaget LM Ericsson (PUBL) Path computation in a multi-tenant network
CN107820279B (en) * 2017-11-15 2021-04-27 中国联合网络通信集团有限公司 Business chain arranging and organizing optimization method, system and mobile network server
CN108289061B (en) * 2017-12-29 2021-03-19 江苏省未来网络创新研究院 Service chain topology system based on SDN

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594851A (en) * 2011-01-07 2012-07-18 中国科学院遥感应用研究所 Method for dynamically building marine application service chain
US20150358235A1 (en) * 2014-06-05 2015-12-10 Futurewei Technologies, Inc. Service Chain Topology Map Construction
CN105379218A (en) * 2014-06-17 2016-03-02 华为技术有限公司 Service flow processing method, apparatus and device
CN104836853A (en) * 2015-04-22 2015-08-12 华为技术有限公司 Method and apparatus for business arrangement
CN107153495A (en) * 2017-05-10 2017-09-12 华为技术有限公司 A kind of method and apparatus for setting up service link between network element
CN107819663A (en) * 2017-11-27 2018-03-20 锐捷网络股份有限公司 A kind of method and apparatus for realizing virtual network function service chaining
CN108563505A (en) * 2018-04-04 2018-09-21 上海有云信息技术有限公司 A kind of service chaining method of combination, device, server and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113407254A (en) * 2021-06-15 2021-09-17 长沙都正生物科技股份有限公司 Form generation method and device, electronic equipment and storage medium
CN114780325A (en) * 2022-06-21 2022-07-22 新华三信息技术有限公司 PCIe equipment detection method and device
CN116132513A (en) * 2023-02-24 2023-05-16 重庆长安汽车股份有限公司 Method, device, equipment and storage medium for updating parameters of service arrangement
CN116132513B (en) * 2023-02-24 2024-04-19 重庆长安汽车股份有限公司 Method, device, equipment and storage medium for updating parameters of service arrangement

Also Published As

Publication number Publication date
CN112087379B (en) 2023-08-01
CN112087379A (en) 2020-12-15

Similar Documents

Publication Publication Date Title
WO2020248805A1 (en) Service chain orchestration method and apparatus, storage medium and electronic apparatus
US10825212B2 (en) Enhanced user interface systems including dynamic context selection for cloud-based networks
US11005722B2 (en) End-to-end network service designer tool
JP6533475B2 (en) Management device and network service management method
EP3639134B1 (en) Detecting and managing recurring patterns in device and service configuration data
CN106953848B (en) Software defined network implementation method based on ForCES
US11068127B2 (en) Springboard interface for quick task transitions
US9537749B2 (en) Method of network connectivity analyses and system thereof
JP6378442B2 (en) Method and apparatus for deploying services in a virtualized network
CN108494607A (en) The design method and system of big double layer network framework based on container
JP2010004426A (en) Communication system and server device
US10778536B1 (en) Ring connection chart for network orchestration
US10491674B2 (en) Network topology templates for internal states of management and control planes
US11095532B2 (en) Configuration and/or deployment of a service based on location information and network performance indicators of network devices that are to be used to support the service
US8856342B2 (en) Efficiently relating adjacent management applications managing a shared infrastructure
CN109450798A (en) The management method and computer readable storage medium of routing table information
JP5782393B2 (en) Network resource distributed management method and program
JP6947129B2 (en) Management device and network management method
CN112636968B (en) Network scheme construction method, device, readable medium and equipment
US20230276211A1 (en) 5g slice subnet templates for network slice provisioning
US11876875B2 (en) Scalable fine-grained resource count metrics for cloud-based data catalog service
US20230370331A1 (en) Parameter value setting system, control method of parameter value setting system and program
EP4236237A1 (en) 5g slice subnet templates for network slice provisioning
US11936558B1 (en) Dynamic evaluation and implementation of network mutations
US20240007364A1 (en) Method, Apparatus, and System for Deploying Service

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: 20821909

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10/05/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20821909

Country of ref document: EP

Kind code of ref document: A1