CN116016211A - Network service management method, device, equipment and storage medium - Google Patents

Network service management method, device, equipment and storage medium Download PDF

Info

Publication number
CN116016211A
CN116016211A CN202211658193.0A CN202211658193A CN116016211A CN 116016211 A CN116016211 A CN 116016211A CN 202211658193 A CN202211658193 A CN 202211658193A CN 116016211 A CN116016211 A CN 116016211A
Authority
CN
China
Prior art keywords
target
node
configuration information
context
network service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211658193.0A
Other languages
Chinese (zh)
Inventor
石鸿伟
徐逸群
陈庆强
黄韬
刘韵洁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Network Communication and Security Zijinshan Laboratory
Original Assignee
Network Communication and Security Zijinshan Laboratory
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 Network Communication and Security Zijinshan Laboratory filed Critical Network Communication and Security Zijinshan Laboratory
Priority to CN202211658193.0A priority Critical patent/CN116016211A/en
Publication of CN116016211A publication Critical patent/CN116016211A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for managing network services. The method comprises the steps of obtaining a network service request and storing data matched with the network service request into a context; analyzing the data matched with the network service request in the context through a data analysis node in the responsibility chain to obtain a target service type and target configuration information, and storing the target service type and the target configuration information in the context; selecting a node through a flow in a responsibility chain, determining a target configuration node matched with a target service type, and adding the target configuration node into the responsibility chain; and acquiring the target configuration information and the target service type in the context through the target configuration node, and executing the network service matched with the target service type on the target configuration information. According to the technical scheme, the network service is automatically analyzed, the flexibility of the operation of the responsibility chain is improved, and the operation cost of the responsibility chain is reduced.

Description

Network service management method, device, equipment and storage medium
Technical Field
The present invention relates to the field of software-defined networking, and in particular, to a method, an apparatus, a device, and a storage medium for managing network services.
Background
An SDN (Software Defined Network ) controller is a bridge connecting the underlying switching device and the upper application, and the SDN controller implements actions such as link discovery, topology management, flow table issuing, and the like in the south direction, and implements resource scheduling and configuration of the underlying network in the north direction. The SDN controller simplifies the opening of network service, and takes the functions of distributing resources, converting service into configuration and issuing the configuration to network elements.
As services supported by the SDN controller are more and more, application scenarios are wider and wider, access modes, control plane technologies and forwarding plane technologies related to the opening of network services are more and more selected, and different selections can cause changes in network service flows. The prior north-oriented workflow design mode for analyzing and distributing network service configuration of an SDN controller usually connects a plurality of modules from top to bottom to form a static responsibility chain, and network service requests are transmitted on the responsibility chain. However, this method can result in too long responsibility chain in complex business scenario, and may have problems of repetition and missing, and meanwhile, when abnormality occurs, the responsibility chain needs to be checked step by step, so that the cost of locating the problem is high.
Disclosure of Invention
The invention provides a network service management method, a device, electronic equipment and a storage medium, so as to realize automatic analysis of network service, improve flexibility of responsibility chain operation and reduce operation cost of the responsibility chain.
In a first aspect, an embodiment of the present invention provides a method for managing a network service, where the method includes:
acquiring a network service request, and storing data matched with the network service request into a context;
analyzing the data matched with the network service request in the context through a data analysis node in the responsibility chain to obtain a target service type and target configuration information, and storing the target service type and the target configuration information in the context;
determining a target configuration node matched with the target service type through a flow selection node in a responsibility chain, and adding the target configuration node into the responsibility chain;
and acquiring target configuration information and a target service type in the context through a target configuration node, and executing network service matched with the target service type on the target configuration information.
In a second aspect, an embodiment of the present invention further provides a device for managing a network service, where the device includes:
The network service request acquisition module is used for acquiring a network service request and storing data matched with the network service request into a context;
the network service request analysis module is used for analyzing the data matched with the network service request in the context through the data analysis node in the responsibility chain to obtain the target service type and the target configuration information, and storing the target service type and the target configuration information in the context;
the target configuration node determining module is used for determining a target configuration node matched with the target service type through a flow selection node in a responsibility chain, and adding the target configuration node into the responsibility chain;
and the network service execution module is used for acquiring the target configuration information and the target service type in the context through the target configuration node, and executing the network service matched with the target service type on the target configuration information.
In a third aspect, an embodiment of the present invention further provides a network service management device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the network service management method according to any one of the embodiments of the present invention when executing the program.
In a fourth aspect, embodiments of the present invention also provide a storage medium storing computer-executable instructions that, when executed by a computer processor, are configured to perform a method of managing network traffic according to any one of the embodiments of the present invention.
According to the technical scheme, the network service request is obtained, and the data matched with the network service request are stored in the context; analyzing the data matched with the network service request in the context through a data analysis node in the responsibility chain to obtain a target service type and target configuration information, and storing the target service type and the target configuration information in the context; selecting a node through a flow in a responsibility chain, determining a target configuration node matched with a target service type, and adding the target configuration node into the responsibility chain; and acquiring the target configuration information and the target service type in the context through the target configuration node, and executing the network service matched with the target service type on the target configuration information. According to the technical scheme, the network service is automatically analyzed, the flexibility of the operation of the responsibility chain is improved, and the operation cost of the responsibility chain is reduced.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for managing network services according to a first embodiment of the present invention;
fig. 2 is a flow chart of a joining target configuration node according to an embodiment of the invention
Fig. 3 is a flowchart of a method for managing network services according to a second embodiment of the present invention;
fig. 4 is a schematic flow chart of a configuration node according to a second embodiment of the present invention;
fig. 5 is a schematic flow chart of a target configuration node according to a second embodiment of the present invention;
fig. 6 is a flowchart of a method for managing network services according to a third embodiment of the present invention;
fig. 7 is a schematic structural diagram of a management device for network service according to a fourth embodiment of the present invention;
fig. 8 is a schematic structural diagram of a network service management device according to a fifth embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a network service management method according to an embodiment of the present invention, where the method may be performed by a network service management device, and the network service management device may be implemented in hardware and/or software, and the network service management device may be configured in an electronic device with data processing capability.
As shown in fig. 1, the method includes:
s110, acquiring a network service request, and storing data matched with the network service request into a context.
The network service can send the network configuration to the corresponding network node through the flow node in the responsibility chain, so as to achieve the purpose of controlling the flow forwarding. The flow node is a specific execution step in the responsibility chain, and is used for processing the received request to determine the subsequent trend of the responsibility chain. The network service is a configuration required by the traffic engineering issued to the switch and the router equipment, for example, two-layer and three-layer VPN services based on forwarding modes such as SR tunnel, SR-Policy, SRv6-Policy and the like. The network service data may be, for example, a virtual routing forwarding table, device information, etc. that are transferred in the entire service through the context, and released with the context after the service ends.
When executing a network service, generally, all flow nodes are traversed through a static responsibility chain to determine whether to execute a certain function module or add a required function module before executing the network service. The former makes the static responsibility chain structure too long to affect the network transmission performance, and the latter makes the static responsibility chain process complex, which is only suitable for the scene of creating responsibility chain in the manual dragging task of the page.
In view of the above problems, the embodiment of the invention connects each flow node through the dynamic responsibility chain, so that the network service can be rapidly executed by accessing the dynamic responsibility chain, the data analysis processing capacity of executing the complex network service is improved, the manual operation amount is reduced, and the network service creation speed is improved.
The dynamic responsibility chain is created through a double-linked list mode, each flow node in the double-linked list can comprise a flow node number, an execution service function, a rollback service function and two pointers, wherein the two pointers respectively point to a subsequent flow node and a predecessor flow node, and the rollback service rolls back memory information, hard disk storage, network element configuration and the like modified in the execution service of the flow node until the execution service is restored to the state before execution. It should be noted that the rollback service is triggered only when an anomaly occurs in the flow.
In the embodiment of the invention, the data matched with the network service request is stored in the context, so that the data transmission is realized. The context can be used as a temporary data storage medium, each flow node carries out data transmission through the context, the data is stored in the context in the form of key value pairs, namely, one keyword corresponds to one type of data, the data formats of writing and reading the context through one keyword are consistent, and the context is destroyed when the network service execution is completed.
S120, analyzing the data matched with the network service request in the context through the data analysis node in the responsibility chain to obtain the target service type and the target configuration information, and storing the target service type and the target configuration information in the context.
The flow nodes in the responsibility chain may be divided according to the functions of the contained service, such as a data analysis node, a flow selection node, a network element configuration node, a data storage node, and the like.
The data analysis node may be a node that performs data processing on the network service request. The target service type may be determined according to the function of the target service, and may be, for example, an add function, a delete function, or a modify function. The target configuration information may be information for implementing a target service function.
It should be noted that, if the target configuration information includes a certain network element resource and the network service request does not include the network element resource, the data analysis node may allocate the network element resource for the target service through the resource pool. After the allocation of the network element resources is completed, if the data analysis node triggers the rollback service, the network element resources need to be released.
S130, determining a target configuration node matched with the target service type through a flow selection node in a responsibility chain, and adding the target configuration node into the responsibility chain.
The flow selection node may be a node that controls the responsibility chain, and may determine the trend of the flow node in the responsibility chain according to the target service type and the target configuration information. The target configuration node may be a node that implements the target traffic function.
Optionally, adding the target configuration node to a responsibility chain includes: and determining the insertion position of the target configuration node in the responsibility chain according to the execution sequence of the target service type in the network service.
The target configuration node may be represented by a node number, where the node number may represent an execution order of the target service type in the network service. And determining the insertion position of the target configuration node in the responsibility chain according to the node number. By such an arrangement, flexibility in the operation of the liability chain can be improved.
Fig. 2 is a schematic flow chart of a joining target configuration node according to an embodiment of the present invention. As shown in fig. 2, if the node number of the added target configuration node is 2, the subsequent node of the node 1 points to the node 3 and the predecessor node of the node 3 points to the node 1 before the target configuration node is not added to the responsibility chain; after the target configuration node is added into the responsibility chain, the subsequent node of the node 1 points to the target configuration node, the subsequent node of the target configuration node points to the node 3, the precursor node of the node 3 points to the target configuration node, and the precursor node of the target configuration node points to the node 1.
Before the target configuration node is added to the responsibility chain, the network traffic is executed in the execution order of node 1- > node 3, and is rolled back in the execution order of node 3- > node 1. After adding the target configuration node to the responsibility chain, the network traffic is performed in the order of execution of node 1- > target configuration node- > node 3, and rolled back in the order of execution of node 3- > target configuration node- > node 1. If an exception occurs at the target configuration node, rollback is performed in the order of execution of the target configuration node- > node 1.
S140, acquiring the target configuration information and the target service type in the context through the target configuration node, and executing the network service matched with the target service type on the target configuration information.
And acquiring the target configuration information and the target service type in the context through the target configuration node added in the responsibility chain, and executing the network service matched with the target service type according to the acquired target configuration information.
The embodiment of the invention provides a network service management method, which comprises the steps of obtaining a network service request and storing data matched with the network service request into a context; analyzing the data matched with the network service request in the context through a data analysis node in the responsibility chain to obtain a target service type and target configuration information, and storing the target service type and the target configuration information in the context; selecting a node through a flow in a responsibility chain, determining a target configuration node matched with a target service type, and adding the target configuration node into the responsibility chain; and acquiring the target configuration information and the target service type in the context through the target configuration node, and executing the network service matched with the target service type on the target configuration information. According to the technical scheme, the network service is automatically analyzed, the flexibility of the operation of the responsibility chain is improved, and the operation cost of the responsibility chain is reduced.
Example two
Fig. 3 is a flowchart of a network service management method according to a second embodiment of the present invention, where the foregoing embodiment is further embodied based on the foregoing embodiment of the present invention.
As shown in fig. 3, the method includes:
s310, acquiring a network service request and storing data matched with the network service request into a context.
S320, acquiring data matched with the network service request in the context through a data analysis node in the responsibility chain.
The data analysis node can read the network service request through the context, and analyze the network service request to determine the data matched with the network service request. The data matched with the network service request can be newly added network element configuration information, deleted network element configuration information, modified network element configuration information, mark service type and the like.
S330, comparing the data matched with the network service request with the original configuration information in the database, and determining the target service type and the target configuration information.
The original configuration information in the database may be configuration information that has been uploaded before the target service is executed. The data matched with the network service request is compared with the original configuration information in the database, so that whether the data matched with the network service request changes or not and the type of the change are determined on the basis of the original configuration information, for example, partial configuration information is modified, new configuration information is added, original configuration information is deleted and the like. And then the target service type and the target configuration information can be determined according to the comparison result.
Optionally, analyzing, by a data analysis node in the responsibility chain, data matched with the network service request in the context to obtain the target service type, including steps A1-A2:
and A1, analyzing data matched with the network service request in the context through a data analysis node in a responsibility chain to obtain a forwarding strategy and an access route.
The forwarding policy may be a forwarding rule of configuration information and a forwarding action type, where the forwarding rule may include performing operations such as filtering, speed limiting and current limiting, and re-marking through attributes such as source/destination IP, source/destination port, protocol number, service level, etc. of the data packet, so as to affect a series configuration of forwarding paths of the data packet between network devices. The access route is used for opening a route between a CE (Customer Edge device) and a PE (Provider Edge device), so that Customer traffic can be accessed to a Virtual Private Network (VPN) for forwarding, and the access route can select one or more combinations of BGP access, static routing access and OSPF access.
It should be noted that, according to the data matched with the network service request, multiple types of forwarding policies and access routes can be determined.
And A2, determining the target service type according to the forwarding strategy and the access route.
Since there are multiple types of forwarding policies and access routes, in the embodiment of the present invention, it is possible to determine the corresponding target service type by determining whether there is a certain type of access route.
The explanation will be given taking the example of adding the VRF (Virtual Routing and Rorwarding, virtual route forwarding) technology related configuration node to the responsibility chain. Fig. 4 is a schematic flow chart of a configuration node according to a second embodiment of the present invention. As shown in figure 4 of the drawings,
the first step: and analyzing the data matched with the network service request in the context by a data analysis node in the responsibility chain, and judging whether the target service is the SR-TE service, the SRv-Policy service or the SR-Policy service.
And a second step of: determining a flow strategy according to the target service type; if the target service is SR-TE service, adopting a tunnel strategy of an SR-TE tunnel; if the target service is SRv6-Policy service, adopting a SRv-Policy routing Policy; and if the target service is the SR-Policy service, adopting a routing strategy of the SR strategy.
And a third step of: determining a flow strategy, an access route and an access point; the access routes may include static routes and OSPF routes, among others.
Fourth step: and determining a target service type according to the traffic policy, the access route and the access point, and adding a target configuration node matched with the target service type into a responsibility chain.
S340, determining a target configuration node matched with the target service type through a flow selection node in the responsibility chain, and adding the target configuration node into the responsibility chain.
S350, acquiring the target configuration information and the target service type in the context through the target configuration node, and executing the network service matched with the target service type on the target configuration information.
The embodiment of the invention provides a network service management method, which comprises the steps of obtaining a network service request and storing data matched with the network service request into a context; acquiring data matched with the network service request in context through a data analysis node in a responsibility chain; comparing the data matched with the network service request with the original configuration information in the database to determine the target service type and the target configuration information; determining a target configuration node matched with the target service type through a flow selection node in a responsibility chain, and adding the target configuration node into the responsibility chain; and acquiring target configuration information and a target service type in the context through a target configuration node, and executing network service matched with the target service type on the target configuration information. According to the technical scheme, the data matched with the network service request and the original configuration information in the database are compared, the target service type and the target configuration information can be rapidly and accurately determined, and the flexibility of the operation of the responsibility chain is further improved.
On the basis of the above embodiments, optionally, the target configuration node includes at least one of the following: newly adding configuration nodes, deleting configuration nodes and updating configuration nodes; the newly added configuration node is used for acquiring newly added configuration information in a context and issuing the newly added configuration information and a newly added instruction to a network element matched with the network service request; the deletion configuration node is used for acquiring the deletion configuration information in the context and transmitting the deletion configuration information and a deletion instruction to a network element matched with the network service request; the update configuration node is configured to obtain the original configuration information and the modified configuration information in the context, and send the original configuration information, the modified configuration information and the update instruction to a network element matched with the network service request.
The newly added configuration node belongs to the network element configuration node, can acquire newly added network element configuration information from the context, and issues a newly added instruction to the network element through a configuration channel. And when the abnormality occurs, the newly added configuration node executes rollback, and the newly added network element configuration information in the newly added configuration node is deleted.
The deleting configuration node belongs to the network element configuration node, deleted network element configuration information can be obtained from the context, and a deleting instruction is issued to the network element matched with the network service request through the configuration channel. And when the deleted configuration node is abnormal, performing rollback, and recovering the deleted network element configuration information.
The update configuration node belongs to a network element configuration node, and can acquire modified original network element configuration information and modified configuration information from the context, and replace the modified configuration information with the modified original network element configuration information through a configuration channel. And when the update configuration node is abnormal, performing rollback, and restoring the network element configuration to the prior update through the modified original network element configuration information.
The different types of target configuration nodes are fixed for the input and output formats of the context, and the accuracy of the execution of the network service can be guaranteed by determining the corresponding target configuration nodes through the flow selection nodes as long as the input and output formats of the context are guaranteed. Fig. 5 is a schematic flow chart of a target configuration node according to a second embodiment of the present invention. As shown in figure 5 of the drawings,
the first step, obtaining a network service request, and storing newly added configuration information, updated configuration information and deleted configuration information into a context.
Secondly, acquiring configuration information from the context in sequence of configuration addition, configuration update and configuration deletion; if the configuration is newly added, acquiring newly added configuration information from the context; if the configuration update exists, acquiring updated configuration information and updated configuration information from the context; if the configuration deletion exists, the configuration deletion information is acquired from the context.
And thirdly, acquiring service information in the context, executing network service corresponding to the service information, and storing the service information into a database.
Example III
Fig. 6 is a flowchart of a network service management method according to a third embodiment of the present invention, where the foregoing embodiment is further embodied based on the foregoing embodiment.
As shown in fig. 6, the method includes:
and S610, acquiring the network service request and storing the data matched with the network service request into the context.
S620, analyzing the data matched with the network service request in the context through the data analysis node in the responsibility chain to obtain the target service type and the target configuration information, and storing the target service type and the target configuration information in the context.
S630, determining a target configuration node matched with the target service type through a flow selection node in the responsibility chain, and adding the target configuration node into the responsibility chain.
S640, obtaining the target configuration information and the target service type in the context through the target configuration node, and executing the network service matched with the target service type on the target configuration information.
S660, the data acquisition request is issued to the network element matched with the network service request through the uploading configuration node in the responsibility chain.
The uploading configuration node can be a network element configuration node and is used when the SDN controller and the network element configuration are synchronized. In the embodiment of the invention, the data acquisition request is issued to the network element matched with the network service request, and the get command can be issued to the network element matched with the network service request through the configuration channel so as to acquire the configuration information of each network element.
And S660, receiving configuration information fed back by each network element, and storing the configuration information into the context.
In the embodiment of the invention, the data storage node in the responsibility chain can receive the configuration information fed back by each network element and store the configuration information into the context, so that the type of the subsequent network service and the configuration information can be determined by comparing the data matched with the subsequent network service request and the stored configuration information when the subsequent network service is executed.
The embodiment of the invention provides a network service management method, which comprises the steps of obtaining a network service request and storing data matched with the network service request into a context; analyzing the data matched with the network service request in the context through a data analysis node in the responsibility chain to obtain a target service type and target configuration information, and storing the target service type and the target configuration information in the context; determining a target configuration node matched with the target service type through a flow selection node in a responsibility chain, and adding the target configuration node into the responsibility chain; acquiring target configuration information and a target service type in a context through a target configuration node, and executing network service matched with the target service type on the target configuration information; transmitting a data acquisition request to a network element matched with the network service request through an uploading configuration node in a responsibility chain; and receiving configuration information fed back by each network element, and storing the configuration information into the context. According to the technical scheme, the network element configuration information is updated in real time, and the flexibility of the operation of the responsibility chain is further improved.
On the basis of the above embodiments, optionally, after storing the configuration information in the context, steps B1-B2 are further included:
and step B1, acquiring configuration information fed back by each network element in context through a data integration node in a responsibility chain.
The data integration node may be a data processing node that performs sorting and merging on configuration information stored in the context, and may be used when synchronizing the SDN controller and the network element configuration, so as to achieve synchronization of configuration information in the database and the device database.
In the embodiment of the invention, the data integration node can read the configuration information fed back by each network element stored in the context.
And B2, integrating the configuration information to obtain network service information.
It will be appreciated that each configuration information comes from a different network element, and that there may be a case where the data structures, attribute names or attribute values thereof are inconsistent. In the embodiment of the invention, each piece of configuration information can be transmitted to a designated position; processing according to cleaning rules in the aspects of data format, data coding, data consistency and the like so as to ensure the standardization of configuration information in a database; and carrying out association processing on the cleaned configuration information according to the new data organization logic to obtain the network service information.
If the configuration information fed back by each network element is obtained in the context by the data integration node in the responsibility chain, the abnormal information exists, and then the partial configuration information caused by the abnormal information is processed.
Furthermore, the network service information can be stored into the database through the data storage nodes in the responsibility chain, so that the persistent storage of the data information is realized. It should be noted that the data storage node is typically located at the end of the responsibility chain, and no rollback needs to be implemented.
Furthermore, the concurrent control node in the responsibility chain can use a read-write lock mechanism to enable the issuing service of each data acquisition request to be performed simultaneously, so that the issuing service of the data acquisition request and the configuration service of the synchronous network element are prevented from being performed simultaneously. After locking a certain node, unlocking is needed after rollback or normal service delivery is completed.
Example IV
Fig. 7 is a schematic structural diagram of a management device for network services according to a fourth embodiment of the present invention. As shown in fig. 7, the apparatus includes:
a network service request acquisition module 710, configured to acquire a network service request and store data matched with the network service request into a context;
The network service request analysis module 720 is configured to analyze, through a data analysis node in the responsibility chain, data matched with the network service request in the context to obtain a target service type and target configuration information, and store the target service type and the target configuration information in the context;
a target configuration node determining module 730, configured to determine, through a flow selection node in a responsibility chain, a target configuration node that matches the target service type, and add the target configuration node to the responsibility chain;
the network service execution module 740 is configured to obtain, through the target configuration node, the target configuration information and the target service type in the context, and execute, on the target configuration information, a network service that matches the target service type.
The embodiment of the invention provides a management device of network service, which is used for acquiring a network service request and storing data matched with the network service request into a context; analyzing the data matched with the network service request in the context through a data analysis node in the responsibility chain to obtain a target service type and target configuration information, and storing the target service type and the target configuration information in the context; selecting a node through a flow in a responsibility chain, determining a target configuration node matched with a target service type, and adding the target configuration node into the responsibility chain; and acquiring the target configuration information and the target service type in the context through the target configuration node, and executing the network service matched with the target service type on the target configuration information. According to the technical scheme, the network service is automatically analyzed, the flexibility of the operation of the responsibility chain is improved, and the operation cost of the responsibility chain is reduced.
Further, the network service request parsing module 720 includes:
the data acquisition unit is used for acquiring data matched with the network service request in context through a data analysis node in the responsibility chain;
and the target service determining unit is used for comparing the data matched with the network service request with the original configuration information in the database to determine the target service type and the target configuration information.
Further, the network service request parsing module 720 includes:
the forwarding information determining unit is used for analyzing the data matched with the network service request in the context through the data analysis node in the responsibility chain to obtain a forwarding strategy and an access route;
and the target service type determining unit is used for determining the target service type according to the forwarding strategy and the access route.
Further, the target configuration node includes at least one of: newly adding configuration nodes, deleting configuration nodes and updating configuration nodes;
the newly added configuration node is used for acquiring newly added configuration information in a context and issuing the newly added configuration information and a newly added instruction to a network element matched with the network service request;
the deletion configuration node is used for acquiring the deletion configuration information in the context and transmitting the deletion configuration information and a deletion instruction to a network element matched with the network service request;
The update configuration node is configured to obtain the original configuration information and the modified configuration information in the context, and send the original configuration information, the modified configuration information and the update instruction to a network element matched with the network service request.
Further, the target configuration node determining module 730 includes:
and the node insertion position determining unit is used for determining the insertion position of the target configuration node in the responsibility chain according to the execution sequence of the target service type in the network service.
Further, the device further comprises:
the data acquisition request issuing module is used for issuing a data acquisition request to a network element matched with the network service request through an uploading configuration node in a responsibility chain after the network service matched with the target service type is executed on the target configuration information;
and the configuration information storage module is used for receiving the configuration information fed back by each network element and storing the configuration information into the context.
Further, the device further comprises:
the configuration information feedback module is used for acquiring the configuration information fed back by each network element in the context through the data integration node in the responsibility chain after the configuration information is stored in the context;
And the network service information determining module is used for integrating the configuration information to obtain the network service information.
The network service management device provided by the embodiment of the invention can execute the network service management method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example five
Fig. 8 is a schematic structural diagram of a network service management device according to a fifth embodiment of the present invention, and as shown in fig. 8, the electronic device includes a processor 70, a memory 71, an input device 72, and an output device 73; the number of processors 70 in the electronic device may be one or more, one processor 70 being taken as an example in fig. 8; the processor 70, the memory 71, the input means 72 and the output means 73 in the electronic device may be connected by a bus or other means, in fig. 8 by way of example.
The memory 71 is a computer-readable storage medium, and may be used to store a software program, a computer-executable program, and modules, such as modules corresponding to the network service management method in the embodiment of the present invention (for example, a network service request acquisition module, a network service request analysis module, a target configuration node determination module, and a network service execution module in the network service management device). The processor 70 executes various functional applications of the electronic device and data processing, that is, implements the above-described management method of network traffic, by running software programs, instructions, and modules stored in the memory 71. The method comprises the following steps:
Acquiring a network service request, and storing data matched with the network service request into a context;
analyzing the data matched with the network service request in the context through a data analysis node in the responsibility chain to obtain a target service type and target configuration information, and storing the target service type and the target configuration information in the context;
determining a target configuration node matched with the target service type through a flow selection node in a responsibility chain, and adding the target configuration node into the responsibility chain;
and acquiring target configuration information and a target service type in the context through a target configuration node, and executing network service matched with the target service type on the target configuration information.
The memory 71 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for functions; the storage data area may store data created according to the use of the terminal, etc. In addition, memory 71 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 71 may further include memory remotely located relative to processor 70, which may be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 72 may be used to receive entered numeric or character information and to generate key signal inputs related to user settings and function control of the electronic device. The output means 73 may comprise a display device such as a display screen.
Example six
A sixth embodiment of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing a method of managing network traffic, the method comprising:
acquiring a network service request, and storing data matched with the network service request into a context;
analyzing the data matched with the network service request in the context through a data analysis node in the responsibility chain to obtain a target service type and target configuration information, and storing the target service type and the target configuration information in the context;
determining a target configuration node matched with the target service type through a flow selection node in a responsibility chain, and adding the target configuration node into the responsibility chain;
and acquiring target configuration information and a target service type in the context through a target configuration node, and executing network service matched with the target service type on the target configuration information.
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present invention is not limited to the method operations described above, and may also perform the related operations in the network service management method provided in any embodiment of the present invention.
From the above description of embodiments, it will be clear to a person skilled in the art that the present invention may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, etc., and include several instructions for causing an electronic device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present invention.
It should be noted that, in the embodiment of the network service management apparatus, each unit and module included are only divided according to the functional logic, but not limited to the above-mentioned division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (10)

1. A method for managing network traffic, comprising:
acquiring a network service request, and storing data matched with the network service request into a context;
Analyzing the data matched with the network service request in the context through a data analysis node in the responsibility chain to obtain a target service type and target configuration information, and storing the target service type and the target configuration information in the context;
determining a target configuration node matched with the target service type through a flow selection node in a responsibility chain, and adding the target configuration node into the responsibility chain;
and acquiring target configuration information and a target service type in the context through a target configuration node, and executing network service matched with the target service type on the target configuration information.
2. The method of claim 1, wherein resolving data in context that matches the network service request by a data analysis node in the responsibility chain to obtain the target service type and the target configuration information, comprises:
acquiring data matched with the network service request in context through a data analysis node in a responsibility chain;
and comparing the data matched with the network service request with the original configuration information in the database to determine the target service type and the target configuration information.
3. The method of claim 2, wherein parsing the data in the context that matches the network service request to obtain the target service type by the data analysis node in the responsibility chain, comprises:
Analyzing the data matched with the network service request in the context through a data analysis node in the responsibility chain to obtain a forwarding strategy and an access route;
and determining the target service type according to the forwarding strategy and the access route.
4. The method of claim 1, wherein the target configuration node comprises at least one of: newly adding configuration nodes, deleting configuration nodes and updating configuration nodes;
the newly added configuration node is used for acquiring newly added configuration information in a context and issuing the newly added configuration information and a newly added instruction to a network element matched with the network service request;
the deletion configuration node is used for acquiring the deletion configuration information in the context and transmitting the deletion configuration information and a deletion instruction to a network element matched with the network service request;
the update configuration node is configured to obtain the original configuration information and the modified configuration information in the context, and send the original configuration information, the modified configuration information and the update instruction to a network element matched with the network service request.
5. The method of claim 1, wherein adding the target configuration node to a chain of responsibilities comprises:
And determining the insertion position of the target configuration node in the responsibility chain according to the execution sequence of the target service type in the network service.
6. The method of claim 1, further comprising, after performing network traffic matching a target traffic type on the target configuration information:
transmitting a data acquisition request to a network element matched with the network service request through an uploading configuration node in a responsibility chain;
and receiving configuration information fed back by each network element, and storing the configuration information into the context.
7. The method of claim 6, further comprising, after storing the configuration information in the context:
acquiring configuration information fed back by each network element in context through a data integration node in a responsibility chain;
and integrating the configuration information to obtain the network service information.
8. A network traffic management apparatus, the apparatus comprising:
the network service request acquisition module is used for acquiring a network service request and storing data matched with the network service request into a context;
the network service request analysis module is used for analyzing the data matched with the network service request in the context through the data analysis node in the responsibility chain to obtain the target service type and the target configuration information, and storing the target service type and the target configuration information in the context;
The target configuration node determining module is used for determining a target configuration node matched with the target service type through a flow selection node in a responsibility chain, and adding the target configuration node into the responsibility chain;
and the network service execution module is used for acquiring the target configuration information and the target service type in the context through the target configuration node, and executing the network service matched with the target service type on the target configuration information.
9. A network traffic management device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the network traffic management method according to any of claims 1-7 when executing the program.
10. A storage medium storing computer executable instructions which, when executed by a computer processor, are adapted to perform the method of managing network traffic according to any one of claims 1-7.
CN202211658193.0A 2022-12-22 2022-12-22 Network service management method, device, equipment and storage medium Pending CN116016211A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211658193.0A CN116016211A (en) 2022-12-22 2022-12-22 Network service management method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211658193.0A CN116016211A (en) 2022-12-22 2022-12-22 Network service management method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116016211A true CN116016211A (en) 2023-04-25

Family

ID=86018630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211658193.0A Pending CN116016211A (en) 2022-12-22 2022-12-22 Network service management method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116016211A (en)

Similar Documents

Publication Publication Date Title
CN110785965B (en) System and method for performing network assurance checks on correct deployment of configurations in a fabric
US20090122710A1 (en) Event correlation using network data flow simulation over unmanaged network segments
US20080183479A1 (en) Business process reconstruction method, and its program and computer
CN110754065B (en) Network authentication between a logic level and a hardware level of a network
CN105745870A (en) Removing lead filter from serial multiple-stage filter used to detect large flows in order to purge flows for prolonged operation
US11075814B2 (en) Sub-topology discovery for operating hybrid solutions
CN104202183B (en) The method and apparatus that a kind of solution SDN stream ranks configuration conformance updates
WO2012134537A1 (en) Network topology discovery
CN114553689A (en) Connecting template
CN114064206A (en) Pod method, system, equipment and storage medium for accessing edge node
CN112805984B (en) System for deploying incremental network updates
CN110213073A (en) Data flow variation, electronic equipment, calculate node and storage medium
CN116016211A (en) Network service management method, device, equipment and storage medium
US8537692B2 (en) Network failure detecting method and device
CN110830598B (en) Method and network equipment for establishing and transmitting interface address and alias in BGP (Border gateway protocol) session
CN113114567B (en) Message processing method and device, electronic equipment and storage medium
CN111478808B (en) Method, system, electronic device and storage medium for assisting configuration update verification
CN114448868A (en) Path scheduling method, device and equipment based on segmented routing strategy
CN114826825A (en) Networking method and device of cloud network and cloud network
CN113872784A (en) Network configuration verification method and device
JP5782393B2 (en) Network resource distributed management method and program
CN108667508B (en) Shared link risk group generation method and device
US11936558B1 (en) Dynamic evaluation and implementation of network mutations
US11991211B1 (en) Symmetric cross-region network data flow management
CN108073453A (en) The dispatching method and device of cpu resource in distributed type assemblies

Legal Events

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