Method, device, storage medium and electronic device for arranging service function chain

By sorting and processing service function categories with the minimum physical distance, the service function chain is optimized, which solves the problem of long delay when the service function chain processes video stream data, and improves data transmission efficiency and speed.

CN113886071BActive Publication Date: 2024-09-13CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111101628.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-18
Publication Date
2024-09-13
Estimated Expiration
2041-09-18

AI Technical Summary

Technical Problem

In the existing technology, the delay in processing video stream data through the service function chain is long, which affects the service effect.

Method used

By obtaining the service function categories of the business data to be processed, sorting and setting the parallel order according to the minimum physical distance, an optimized service function chain is generated to reduce delays and increase processing speed.

Benefits of technology

It reduces the delay time when the service function chain processes business data and improves the efficiency and speed of video stream data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113886071B
    Figure CN113886071B
Patent Text Reader

Abstract

The present application discloses a method, device, storage medium and electronic device for arranging a service function chain, which relates to the field of communication technology and can solve the problem of long delays when processing business data through a service function chain. The method includes: obtaining at least two service categories of at least two service functions of the business data to be processed; generating an initial category access order according to the size of the minimum distance corresponding to the at least two service categories; setting the category access order of two adjacent service categories that can be processed in parallel in the initial category access order to a parallel order to obtain a target category access order; generating a service function chain based on the target category access order and the service categories of at least two service functions. In this way, setting the access order of the service categories based on the minimum distance and whether they can be processed in parallel can improve the processing speed of business data through the service function chain and reduce the delay time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method, device, storage medium and electronic device for arranging a service function chain. Background Art

[0002] Network operators can provide specific service functions (such as virtual firewalls, load balancers, gateways, deep packet inspection, and operator address translation, etc.) for enterprise users in order to ensure the transmission efficiency and data security of enterprise users when using the network. In the scenario where the user device A of an enterprise user conducts a video conference with the user device B of any user, the business data transmitted by the user device A to the user device B is video stream data, which is processed according to the service function (requested by the enterprise user to the network operator) and then forwarded to the user device B. The above service functions are arranged in a certain order to obtain a service function chain. Generally, the business data such as IP (Internet Protocol Address) data packets, link frames or data streams sent by enterprise users are processed by various service functions on the service function chain. If the enterprise user needs the service function chain to implement more complex services, the network operator can be requested to add other service functions to the service function chain.

[0003] In order to improve the efficiency of service processing by the service function chain, the order of each service function in the service function chain can be arranged to overcome the limiting factors such as network environment, network resources, service link length, etc. In the related art, during the video stream data transmission through the operator network, the user equipment A sends the service function chain (that is, the service functions arranged according to the manually specified or preset sorting rules) to the service function arrangement device. When the service function arrangement device receives the service chain arrangement request, it analyzes the service chain arrangement request according to the optimization strategy, outputs the optimization analysis result of the service function chain arrangement request, and can obtain the optimized service function chain.

[0004] In the process of performing service function processing on video stream data, user device A forwards the video stream data to a first server capable of processing a first service function (i.e., the first service function in the optimized service function chain) through the operator network. The first server processes the video stream data according to the first service function to generate first service data. The first server forwards the first service data to a second server capable of processing a second service function (i.e., the second service function in the optimized service function chain) through the operator network. The second server processes the first service data according to the second service function to generate second service data. Similarly, the video stream data is directly or indirectly processed in sequence according to all service functions arranged in order on the optimized service function chain. Finally, the video stream data processed according to all service functions is transmitted to user device B. At this point, the operator network realizes providing service functions for enterprise users in the process of transmitting video stream data.

[0005] Although the optimized service function link obtained according to the optimization strategy can optimize the system average capacity and service function chain congestion index and achieve the advantages of high system capacity and smooth service chain, as the service functions on the same service function chain used to transmit video stream data increase, the time required to process all service functions arranged in sequence on the optimized service function chain becomes longer and longer. Therefore, the delay in service processing of video stream data also increases, affecting the service effect. Summary of the invention

[0006] The purpose of this application is to provide a service function chain arrangement method, device, storage medium and electronic device, which can solve the problem of long delays in processing business data through the service function chain.

[0007] In order to achieve the above purpose, this application adopts the following technical solutions:

[0008] In a first aspect, the present application provides a method for arranging a service function chain, the method comprising: obtaining at least two service categories of at least two service functions of to-be-processed business data, wherein the service categories are distinguished based on the service function implementation method; sorting the at least two service categories according to the size of the minimum distances corresponding to the at least two service categories, and generating an initial category access order for the at least two service categories; wherein the minimum distance corresponding to a service category is the minimum distance in the physical distances between the egress routers corresponding to the service functions in a service category and the user equipment, respectively, and the user equipment is a device that sends the to-be-processed business data; when two adjacent service categories in the initial category access order can be processed in parallel, setting the category access order of the two adjacent service categories to a parallel order to obtain a target category access order; based on the target category access order and the service categories of the at least two service functions, arranging the access order of the at least two service functions to generate a service function chain.

[0009] Optionally, the service function implementation method includes at least one of the following: modifying packet header information and modifying traffic load.

[0010] Optionally, the at least two service categories include at least two of a first service category, a second service category, and a third service category; wherein the service function of the first service category is implemented by modifying packet header information, the service function of the second service category is implemented by modifying traffic load, and the service function of the third service category is implemented by modifying packet header information and modifying traffic load;

[0011] In the case where two adjacent service categories in the initial category access sequence are respectively the first service category and the third service category, the two adjacent service categories in the initial category access sequence cannot be processed in parallel;

[0012] In the case where two adjacent service categories in the initial category access sequence are the second service category and the third service category, the two adjacent service categories in the initial category access sequence cannot be processed in parallel;

[0013] In the case where two adjacent service categories in the initial category access sequence are respectively the first service category and the second service category, the two adjacent service categories in the initial category access sequence can be processed in parallel.

[0014] Optionally, based on the target category access order and the service categories of the at least two service functions, the access order of the at least two service functions is arranged to generate a service function chain, including: sorting the service functions of the at least two service functions that belong to the same service category, and obtaining the sorting results of the service functions included in each of the at least two service categories; and arranging the access order of the at least two service functions according to the target category access order and the sorting results of the service functions included in each of the at least two service categories to generate a service function chain.

[0015] Optionally, sorting the service functions belonging to the same service category among at least two service functions includes: sorting the service functions belonging to the same service category among at least two service functions in order of physical distance from small to large.

[0016] Optionally, service functions belonging to the same service category among at least two service functions are sorted, including: obtaining at least two service function category sets, wherein at least two service categories correspond one-to-one to at least two service function category sets, and the service function category set corresponding to one service category includes service functions belonging to the service category among at least two service functions; according to the shortest path algorithm, traversing the exit routers corresponding to the service functions of each service function category set in the at least two service function category sets to generate the shortest routing path for each service function category set; and sorting the service functions in each service function category set according to the shortest routing path of each service function category set.

[0017] In a second aspect, the present application provides a device for arranging a service function chain, comprising: an acquisition unit, a first generation unit, a processing unit, and a second generation unit; the acquisition unit is used to acquire at least two service categories of at least two service functions of the service data to be processed, wherein the service categories are distinguished based on the service function implementation method; the first generation unit is used to sort the at least two service categories according to the size of the minimum distances respectively corresponding to the at least two service categories acquired by the acquisition unit, and generate an initial category access order of the at least two service categories; wherein the minimum distance corresponding to a service category is the minimum distance in the physical distances between the egress routers corresponding to the service functions in a service category and the user equipment, respectively, and the user equipment is a device that sends the service data to be processed; the processing unit is used to set the category access order of the two adjacent service categories to a parallel order when the two adjacent service categories in the initial category access order generated by the first generation unit can be processed in parallel, so as to obtain a target category access order; the second generation unit is used to arrange the access order of the at least two service functions based on the target category access order obtained by the processing unit and the service categories of the at least two service functions, and generate a service function chain.

[0018] In a third aspect, the present application provides a computer-readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0019] In a fourth aspect, the present application provides an electronic device comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.

[0020] In the arrangement method of the service function chain provided in the present application, at least two service categories of at least two service functions of the business data to be processed are first obtained, and then the at least two service categories are sorted according to the size of the minimum distance corresponding to the at least two service categories, and the initial category access order of the at least two service categories is generated. Then, if two adjacent service categories in the initial category access order can be processed in parallel, the category access order of the two adjacent service categories is set to a parallel order to obtain the target category access order, and finally, based on the target category access order and the service categories of the at least two service functions, the access order of the at least two service functions is arranged to generate a service function chain. In this way, the initial category access order is generated according to the minimum distance, so that the business data can reach the service function with the closest physical distance, reduce the response time required for processing the business data, and improve the speed of processing the business data. In addition, the service categories that can be processed in parallel are set to a parallel order, reduce the link length of the arranged service function chain, and improve the speed of processing the business data again, so as to reduce the delay time when processing business data through the service function chain. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 A schematic diagram of the structure of a service function chain orchestration system provided in an embodiment of the present application;

[0022] Figure 2 One of the flow diagrams of a method for arranging a service function chain provided in an embodiment of the present application;

[0023] Figure 3 A schematic diagram of a network layout of a resource pool provided in an embodiment of the present application;

[0024] Figure 4 Schematic diagram of a method for arranging a service function chain provided in an embodiment of the present application

[0025] Figure 5 A schematic diagram of a service function sequence of a service function link provided in an embodiment of the present application;

[0026] Figure 6 A schematic diagram of the structure of the service function chain arrangement device provided in an embodiment of the present application;

[0027] Figure 7 A hardware schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0029] It should be noted that any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0030] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical items or similar items with basically the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order.

[0031] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0032] In order to solve the problem of long delay when processing business data through the service function chain, the embodiment of the present application provides a method for arranging the service function chain. The above-mentioned method for arranging the service function chain can be applied to the arrangement system of the service function chain. Figure 1 This is a schematic diagram of the structure of a service function chain arrangement system provided in an embodiment of the present application. Figure 1 As shown, the orchestration system of the service function chain includes a user device 11, an orchestration device 12 of the service function chain and an egress router 13. The user device 11 is connected to the orchestration device 12 of the service function chain and the egress router 13 respectively, and the orchestration device 12 of the service function chain is connected to the egress router 13, wherein the connection mode may be a wired connection or a wireless connection, which is not limited in the embodiment of the present application.

[0033] The user equipment 11 may be used to generate and send service data to be processed, and the service data to be processed may be any one of the following: an IP data packet, a link frame, and a data stream.

[0034] The arrangement device 12 of the service function chain can execute the arrangement method of the service function chain in the embodiment of the present disclosure, obtain at least two service functions corresponding to the business data to be processed sent by the user device 11 according to the needs of the enterprise user to which the user device 11 belongs, and then re-arrange the service functions of the business data sent by the user device 11. The arrangement of the service function chain specifically includes: obtaining at least two service categories of at least two service functions of the business data to be processed; sorting the at least two service categories according to the size of the minimum distance corresponding to the at least two service categories, and generating an initial category access order of the at least two service categories; in the case where two adjacent service categories in the initial category access order can be processed in parallel, setting the category access order of the two adjacent service categories to a parallel order to obtain a target category access order; based on the target category access order and the service categories of the at least two service functions, arranging the access order of the at least two service functions to generate a service function chain.

[0035] The service function chain orchestration device 12 is also used to send the service function chain to the user equipment 11, or send the service data to be processed and the service function chain to the export router corresponding to the first service function in the service function chain, so that the service data to be processed can be processed according to all service functions on the service function chain.

[0036] The egress router 13 is used to report the resource status (ie, the deployment status of the service functions that can be processed) in the resource pool corresponding to the egress router 13 to the service function chain arrangement device 12. The servers or virtual machines in the resource pool are used to store service functions.

[0037] The egress router 13 is further configured to receive the service data to be processed, or the processed service data to be processed forwarded by the egress router, and process the data through a server or a virtual machine with a storage service function.

[0038] It should be noted that, for a user device 11, a service function chain orchestrated by a service function chain orchestration device 12 can be obtained, and service functions can be provided through at least one egress router 13 to process pending business data; for a service function chain orchestration device 12, a service function chain can be orchestrated for at least one user device 11, and the deployment status of the service function reported by at least one egress router 13 can be received; for an egress router 13, the deployment status of the service function can be reported to at least one service function chain orchestration device 12, and the business data to be processed can be processed for at least one user device 11 through the service function deployed by it. In the embodiment of the present application, the quantitative relationship between the user device 11, the service function chain orchestration device 12, and the egress router 13 is not limited.

[0039] In practical applications, the service function chain arrangement method provided by the embodiment of the present disclosure is applied to the service function chain arrangement device 12. The following is an exemplary description of the service function chain arrangement method provided by the embodiment of the present disclosure, taking the arrangement device of the service function chain as an example with reference to the accompanying drawings. Figure 2 One of the flow charts of a method for orchestrating a service function chain provided in an embodiment of the present application is shown. An embodiment of the present application provides a method for orchestrating a service function chain, which may include the following steps 201 to 204.

[0040] Step 201: The service function chain arrangement device obtains at least two service categories of at least two service functions of the service data to be processed.

[0041] In the embodiment of the present application, the service categories are differentiated based on the service function implementation method. The service function implementation method includes at least one of the following: modifying packet header information and modifying traffic load.

[0042] In an embodiment of the present application, at least two service categories include at least two of a first service category, a second service category and a third service category; wherein the service function of the first service category is implemented by modifying the packet header information, the service function of the second service category is implemented by modifying the traffic load, and the service function of the third service category is implemented by modifying the packet header information and modifying the traffic load.

[0043] It is understandable that the at least two service functions are not in one-to-one correspondence with the at least two service categories. One service function corresponds to one service category, but one service category may correspond to multiple service functions.

[0044] In an embodiment of the present application, at least two service functions of the business data to be processed are agreed upon by the network operator and the enterprise user before sending the business data to be processed, or are temporarily agreed upon when the enterprise user sends the business data to be processed through the user device. It should be noted that the network operator can provide specific service functions (such as virtual firewalls, load balancers, gateways, deep packet inspection, and operator address translation, etc.) for enterprise users, sort the above-mentioned specific service functions, and build a service function chain to complete the deployment of the service functions provided by the network operator to the enterprise users. If the enterprise user needs to introduce a new service function, the service function chain can be modified.

[0045] Optionally, in an embodiment of the present application, the arrangement device of the service function chain can obtain at least two service functions of the service data to be processed according to the user equipment that generates the service to be processed. The user equipment can be a router, terminal device or wearable device used by an enterprise user.

[0046] It is understandable that the service function chain orchestration device can search for the enterprise user corresponding to the user equipment according to the physical address or IP address of the user equipment, and then search for at least two service functions agreed upon by the enterprise user and the network operator.

[0047] Step 202: The service function chain arrangement device sorts the at least two service categories according to the minimum distances respectively corresponding to the at least two service categories, and generates an initial category access order of the at least two service categories.

[0048] In the embodiment of the present application, the minimum distance corresponding to a service category is the minimum distance among the physical distances between the egress routers corresponding to the service functions in a service category and the user equipment, and the user equipment is the device that sends the service data to be processed.

[0049] It should be noted that the service function is deployed on a server or virtual machine, and the server or virtual machine is connected to the network through an egress router to forward pending service data or other message packets. Each egress router corresponds to a resource pool, which is composed of multiple service functions on the deployed server or virtual machine.

[0050] Optionally, in the embodiment of the present application, before step 202, the orchestration device of the service function chain may also receive a resource message reported by the egress router, the resource message including: the unique identifier Route id of the egress router of the resource pool, the unique identifier Pool id of the resource pool, the location Location of the egress router, and the service function information Fun name contained in the resource pool. The format of the resource message is as follows:

[0051] Route id Pool id Location Fun name

[0052] For example, it is assumed that the orchestration device of the service function chain receives five resource messages sent by five egress routers, and the five egress routers are R1, R2, R3, R4 and R5. The five resource messages are as follows:

[0053] R1 Pool1 Beijing {A2,C1} R2 Pool2 Beijing {A3,C2} R3 Pool3 Tianjin {B2,C3} R4 Pool4 Shijiazhuang {A1,B1} R5 Pool5 Xingtai {B3}

[0054] In an embodiment of the present application, the service function chain orchestration device searches for the corresponding resource message based on the at least two service functions obtained, calculates the physical distance between each of the at least two service functions and the user equipment based on the position of the router in the resource message, and then obtains the physical distance between the service function included in each service category of the at least two service categories and the user equipment, and then searches for the minimum distance corresponding to each of the at least two service categories, and finally sorts the at least two service categories according to the size of the minimum distance corresponding to each of the at least two service categories, and generates an initial category access order for the at least two service categories.

[0055] For example, Figure 3 The network layout diagram of the resource pool is shown, and at least two service functions corresponding to the business data to be processed include A1, A2, B2, B3, and C2. A1 and A2 belong to the first service category, B2 and B3 belong to the second service category, and C2 belongs to the third service category. Among them, the distance between the egress router R4 corresponding to the resource pool to which A1 belongs and the user equipment is 300 meters, the distance between the egress router R1 corresponding to the resource pool to which A2 belongs and the user equipment is 100 meters, the distance between the egress router R3 corresponding to the resource pool to which B2 belongs and the user equipment is 200 meters, the distance between the egress router R5 corresponding to the resource pool to which B3 belongs and the user equipment is 1000 meters, and the distance between the egress router R2 corresponding to the resource pool to which C2 belongs and the user equipment is 500 meters. The minimum distance corresponding to the first service category is 100 meters, the minimum distance for the second service category is 200 meters, and the minimum distance for the third service category is 500 meters. The three service categories are sorted according to the sizes of the three minimum distances, and the initial category access order of the three service categories generated is the first service category, the second service category, and the third service category.

[0056] Step 203: When two adjacent service categories in the initial category access sequence can be processed in parallel, the service function chain arrangement device sets the category access sequence of the two adjacent service categories to a parallel sequence to obtain a target category access sequence.

[0057] In an embodiment of the present application, when the packet header information is modified according to the service function in the first service category, the traffic load does not change, and does not affect the processing of the traffic load according to the service function in the second service category. Similarly, when the traffic load is modified according to the service function in the second service class, it does not affect the processing of the packet header information according to the service function in the first service category. Therefore, the first service category that modifies the packet header information and the second service category that modifies the traffic load can be processed in parallel.

[0058] In an embodiment of the present application, when the packet header information is modified according to the service function in the first service category, the packet header information changes, and the packet header information must be processed again according to other service functions in the third service category after the processing is completed; or, when the packet header information is modified according to the service function in the third service category, the packet header information changes, and the packet header information must be processed again according to the service function in the first service category after the processing is completed. Therefore, the first service category that modifies the packet header information and the third service category that modifies the packet header information and traffic load cannot be processed in parallel, and can only be processed serially.

[0059] In an embodiment of the present application, when the traffic load is modified according to the service function in the second service category, the traffic load changes, and the traffic load must be processed again according to the service function in the third service category after the processing is completed. Similarly, when the traffic load is modified according to the service function in the third service category, the traffic load changes, and the traffic load must be processed again according to the service function in the second service category after the processing is completed. Therefore, the second service category that modifies the traffic load and the third service category that modifies the packet header information and the traffic load cannot be processed in parallel, and can only be processed serially.

[0060] Specifically, in an embodiment of the present application, when two adjacent service categories in the initial category access sequence are respectively a first category service category and a third category service category, the two adjacent service categories in the initial category access sequence cannot be processed in parallel; when two adjacent service categories in the initial category access sequence are respectively a second category service category and a third category service category, the two adjacent service categories in the initial category access sequence cannot be processed in parallel; when two adjacent service categories in the initial category access sequence are respectively a first category service category and a second category service category, the two adjacent service categories in the initial category access sequence can be processed in parallel.

[0061] In the embodiment of the present application, the orchestration device of the service function chain determines the final target category access order according to whether two adjacent service categories can be processed in parallel. Specifically, if two adjacent service categories can be processed in parallel in the initial category access order, the orchestration device of the service function chain sets the category access order of the two adjacent service categories to a parallel order to obtain the target category access order; if two adjacent service categories cannot be processed in parallel in the initial category access order, the orchestration device of the service function chain determines the target category access order to be the initial category access order.

[0062] For example, Figure 3The network layout diagram of the resource pool is shown, and at least two service functions corresponding to the business data to be processed include A1, A2, B2, B3, and C2. A1 and A2 belong to the first service category, B2 and B3 belong to the second service category, and C2 belongs to the third service category. The initial category access sequence is the first service category, the second service category, and the third service category. Two adjacent service categories include the first service category and the second service category that can be processed in parallel, and the two adjacent service categories also include the second service category and the third service category that cannot be processed in parallel. Therefore, the target category access sequence is that the first service category and the second service category are processed in parallel, and then the business data to be processed are processed serially with the third service category.

[0063] Step 204: The service function chain arrangement device arranges the access order of at least two service functions based on the target category access order and the service categories of the at least two service functions to generate a service function chain.

[0064] Optionally, in the embodiment of the present application, after the arrangement device of the service function chain sorts each service category, it is also necessary to sort the service functions in each service category, such as Figure 4 The second schematic diagram of a method for arranging a service function chain provided in an embodiment of the present application is shown. In the embodiment of the present application, step 204 can also be implemented through steps 401 and 402.

[0065] Step 401: The service function chain arrangement device sorts the service functions belonging to the same service category among at least two service functions, and obtains the sorting result of the service functions included in each service category of the at least two service categories.

[0066] Step 402: The service function chain arrangement device arranges the access order of at least two service functions according to the target category access order and the sorting results of the service functions included in each service category in at least two service categories to generate a service function chain.

[0067] In an embodiment of the present application, the service function chain arrangement device sorts the service functions in each service category. The sorting may be random, may be sorted by the name of the service function, or may be sorted by the address of the port routing corresponding to the service function.

[0068] For example, Figure 3 The network layout diagram of the resource pool is shown, and at least two service functions corresponding to the business data to be processed include A1, A2, B2, B3, and C2. A1 and A2 belong to the first service category, and A1 and A2 are sorted. Since the physical distance between the egress router corresponding to A2 and the user equipment is closer, the service functions in the first service category are sorted as {A2, A1}.

[0069] In the embodiment of the present application, the service function chain refers to an ordered set of names or other unique identifiers of each service function. When processing the service data to be processed according to the service function chain, the service data to be processed also needs to be forwarded to the egress routers corresponding to each service function on the service function chain in sequence. The router addresses of the egress routers corresponding to each service function on the service function chain constitute the service chain path, which is the transmission path of the service data to be processed.

[0070] Optionally, in an embodiment of the present application, the service function chain orchestration device forwards the service chain path to the user device, so that the user device forwards the service data to be processed according to the service chain path, and processes the service data to be processed according to the corresponding service function through the server or virtual machine corresponding to the export router.

[0071] Exemplarily, any service function in the service function chain may be represented in the following message format:

[0072] VPN ID Fun type Segment id Pool id Fun name

[0073] Among them, VPN ID is: uniquely identifies user VPN information, Fun type is: service function type, including first-class service category, second-class service category and third-class service category, Segment id is: the sequential number of this type of service function, Pool id is: the resource pool id where the service function is located, and Fun name is: the name of the service function being accessed.

[0074] Optionally, in an embodiment of the present application, the orchestration device of the service function chain receives the business data to be processed, and forwards the business data to be processed to the export router corresponding to the resource pool to which the server or virtual machine of the storage service function belongs in sequence according to the service chain path. Then, the server or virtual machine in the resource pool corresponding to the export router performs service processing on the business data to be processed, and finally transmits it to the destination device.

[0075] Optionally, the service function chain orchestration device is also used to classify the business data to be processed according to preset rules. After the service function chain orchestration device forwards it in sequence according to the service function link, if the first service category and the second service category can be processed in parallel, then after the service functions in the first service category and the second service category have processed the business data to be processed, it is also necessary to perform data flow shaping on the export route corresponding to the first functional service in the third service category, and then continue to access the service functions in the third service category.

[0076] Optionally, in an embodiment of the present application, the service function chain arrangement device transmits the service function chain or service chain path during the process of transmitting the service data to be processed. It should be noted that during the transmission of the service data to be processed, the service function chain or service chain path is updated according to whether the service function processes the service data to be processed.

[0077] In the arrangement method of the service function chain provided in the present application, at least two service categories of at least two service functions of the business data to be processed are first obtained, and then the at least two service categories are sorted according to the size of the minimum distance corresponding to each of the at least two service categories, and the initial category access order of the at least two service categories is generated. Then, if two adjacent service categories can be processed in parallel in the initial category access order, the category access order of the two adjacent service categories is set to a parallel order to obtain the target category access order, and finally, based on the target category access order and the service categories of the at least two service functions, the access order of the at least two service functions is arranged to generate a service function chain. In this way, the initial category access order is generated according to the minimum distance, so that the business data can reach the service function with the closest physical distance, reduce the response time required for processing the business data, and improve the speed of processing the business data. In addition, the service categories that can be processed in parallel are set to a parallel order, reduce the link length of the arranged service function chain, and improve the speed of processing the business data again, so as to reduce the delay time when processing business data through the service function chain.

[0078] Optionally, in an embodiment of the present application, step 402 is specifically implemented through step 4021.

[0079] Step 4021: The service function chain arrangement device arranges the service functions belonging to the same service category among at least two service functions in order of physical distance from small to large.

[0080] In an embodiment of the present application, when the service function chain orchestration device sorts the service functions in a certain service category, it calculates the physical distance between the egress routers corresponding to each service function in a certain service category and the user equipment, and then sorts the service functions in order of physical distance from small to large.

[0081] In this way, when processing the pending business data according to the service function chain, the pending business data can be preferentially transmitted to the egress router corresponding to the fastest arriving service function, thereby reducing the processing response time of the pending business data and improving the speed of processing business data.

[0082] Optionally, in an embodiment of the present application, step 402 is specifically implemented through steps 4022 to 4024.

[0083] Step 4022: The service function chain orchestration device obtains at least two service function category sets.

[0084] In the embodiment of the present application, at least two service categories correspond one-to-one to at least two service function category sets, and the service function category set corresponding to one service category includes service functions belonging to the service category among the at least two service functions.

[0085] Step 4023: The service function chain arrangement device traverses the egress routers corresponding to the service functions of each service function category set in at least two service function category sets according to the shortest path algorithm, and generates the shortest routing path for each service function category set.

[0086] In an embodiment of the present application, the shortest path algorithm is used to calculate the shortest routing path. The shortest path refers to traversing the egress routers corresponding to the service functions of each service function category set in at least two service function category sets once, and the physical distance between each egress router is the shortest.

[0087] Further optionally, in an embodiment of the present application, the service function chain orchestration device may limit the starting egress router of the shortest routing path. Specifically, the starting egress router is limited to the egress router corresponding to the minimum distance corresponding to a service category.

[0088] Further optionally, in an embodiment of the present application, the service function chain orchestration device may not limit the starting egress router of the shortest routing path.

[0089] Step 4024: The service function chain arrangement device sorts the service functions in each service function category set according to the shortest routing path of each service function category set.

[0090] In an embodiment of the present application, the service functions in each service function category set in at least two service function category sets are sorted according to the shortest routing path, so that the time spent on transmitting the pending business data and other message data is minimized during the process of the pending business data transmission being processed by all service functions, thereby compressing the transmission time to the maximum extent and improving the data transmission efficiency.

[0091] For example, Figure 3 The network layout diagram of the resource pool shown in the figure explains the arrangement of the service function chain:

[0092] First, confirm that the service functions corresponding to the business data to be processed include A1, A2, B2, B3, and C2. A1 and A2 belong to the first service category, B2 and B3 belong to the second service category, and C2 belongs to the third service category. Among them, the distance between the egress router R4 corresponding to the resource pool to which A1 belongs and the user equipment is 300 meters, the distance between the egress router R1 corresponding to the resource pool to which A2 belongs and the user equipment is 100 meters, the distance between the egress router R3 corresponding to the resource pool to which B2 belongs and the user equipment is 200 meters, the distance between the egress router R5 corresponding to the resource pool to which B3 belongs and the user equipment is 1000 meters, and the distance between the egress router R2 corresponding to the resource pool to which C2 belongs and the user equipment is 500 meters.

[0093] Secondly, since the minimum distance corresponding to the first service category is 100 meters, the minimum distance of the second service category is 200 meters, and the minimum distance of the third service category is 500 meters, the three service categories are sorted according to the sizes of the three minimum distances, and the initial category access order of the three service categories generated is first service category A, second service category B, and third service category C.

[0094] Again, the two adjacent service categories include the first service category A and the second service category B that can be processed in parallel, and the two adjacent service categories also include the second service category B and the third service category C that cannot be processed in parallel. Therefore, the target category access order is to process the first service category A and the second service category B in parallel, and then process the business data to be processed serially with the third service category C.

[0095] Next, the service functions in the first service category A, the second service category B, and the third service category C are sorted respectively. In each service category, the distance between the egress router and the user equipment corresponding to the resource pool to which each service function belongs is sorted in ascending order. The sorting result can be represented by the message of each service. For service functions A1, A2, B2, B3, and C2, the specific message information is as follows:

[0096] VPN ID Fun type Segment id Pool id Fun name 12345 A 1 1 A2 12345 A 2 4 A1 12345 B 1 3 B2 12345 B 2 5 B3 12345 C 1 2 C2

[0097] Finally, according to the target category access order and the ranking results of the service functions included in each service category, the following Figure 5 The service function link shown.

[0098] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the method. It can be understood that in order to realize the above functions, the orchestration device of the service function chain includes at least one of the hardware structure and software modules corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.

[0099] The embodiment of the present application can divide the functional units of the orchestration device of the service function chain according to the above method example. For example, each functional unit can be divided corresponding to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.

[0100] like Figure 6 As shown, the embodiment of the present application provides a device for arranging a service function chain. The device for arranging a service function chain includes: an acquisition unit 61, a first generation unit 62, a processing unit 63 and a second generation unit 64;

[0101] An acquisition unit 61 is used to acquire at least two service categories of at least two service functions of the service data to be processed, wherein the service categories are distinguished based on the implementation methods of the service functions;

[0102] The first generating unit 62 is used to sort the at least two service categories according to the minimum distances respectively corresponding to the at least two service categories obtained by the obtaining unit 61, and generate an initial category access order of the at least two service categories; wherein the minimum distance corresponding to a service category is the minimum distance among the physical distances between the egress routers corresponding to the service functions in a service category and the user equipment, and the user equipment is the equipment sending the service data to be processed;

[0103] A processing unit 63 is configured to set the category access order of the two adjacent service categories to a parallel order when the two adjacent service categories in the initial category access order generated by the first generating unit 62 can be processed in parallel, so as to obtain a target category access order;

[0104] The second generating unit 64 is used to arrange the access sequence of at least two service functions and generate a service function chain based on the target category access sequence obtained by the processing unit 63 and the service categories of the at least two service functions.

[0105] Optionally, the service function implementation method includes at least one of the following: modifying packet header information and modifying traffic load.

[0106] Optionally, the at least two service categories include at least two of a first service category, a second service category, and a third service category; wherein the service function of the first service category is implemented by modifying packet header information, the service function of the second service category is implemented by modifying traffic load, and the service function of the third service category is implemented by modifying packet header information and modifying traffic load;

[0107] In the case where two adjacent service categories in the initial category access sequence are respectively the first service category and the third service category, the two adjacent service categories in the initial category access sequence cannot be processed in parallel;

[0108] In the case where two adjacent service categories in the initial category access sequence are the second service category and the third service category, the two adjacent service categories in the initial category access sequence cannot be processed in parallel;

[0109] In the case where two adjacent service categories in the initial category access sequence are respectively the first service category and the second service category, the two adjacent service categories in the initial category access sequence can be processed in parallel.

[0110] Optionally, the second generation unit 64 is used to: sort the service functions belonging to the same service category among at least two service functions, and obtain the sorting results of the service functions included in each of the at least two service categories; arrange the access order of at least two service functions according to the target category access order and the sorting results of the service functions included in each of the at least two service categories, and generate a service function chain.

[0111] Optionally, the second generating unit 64 is specifically configured to sort the service functions belonging to the same service category among the at least two service functions in order of physical distance from small to large.

[0112] Optionally, the second generation unit 64 is further specifically used to: obtain at least two service function category sets, wherein at least two service categories correspond one-to-one to at least two service function category sets, and the service function category set corresponding to one service category includes at least two service functions belonging to the service category; according to the shortest path algorithm, traverse the exit routers corresponding to the service functions of each service function category set in the at least two service function category sets to generate the shortest routing path for each service function category set; and sort the service functions in each service function category set according to the shortest routing path of each service function category set.

[0113] In the arrangement device of the service function chain provided in the embodiment of the present application, at least two service categories of at least two service functions of the business data to be processed are first obtained, and then the at least two service categories are sorted according to the size of the minimum distance corresponding to the at least two service categories, and the initial category access order of the at least two service categories is generated. Then, if two adjacent service categories in the initial category access order can be processed in parallel, the category access order of the two adjacent service categories is set to a parallel order to obtain the target category access order, and finally, based on the target category access order and the service categories of the at least two service functions, the access order of the at least two service functions is arranged to generate a service function chain. In this way, the initial category access order is generated according to the minimum distance, so that the business data can reach the service function with the closest physical distance, reduce the response time required for processing the business data, and improve the speed of processing the business data. In addition, the service categories that can be processed in parallel are set to a parallel order, reduce the link length of the arranged service function chain, and improve the speed of processing the business data again, so as to reduce the delay time when processing business data through the service function chain.

[0114] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each step in the service function chain orchestration method process shown in the above method embodiment is implemented.

[0115] Among them, the readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, and a hard disk. Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read Only Memory (EPROM), registers, hard disks, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any other form of readable storage medium in the art in a suitable combination of the above. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an Application Specific Integrated Circuit (ASIC). In the embodiments of the present application, the readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in combination with an instruction execution system, apparatus, or device.

[0116] An embodiment of the present application provides a computer program product, which is stored in a non-volatile storage medium and is executed by at least one processor to implement each step in the service function chain orchestration method process shown in the above method embodiment.

[0117] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing a computer program instruction on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a readable storage medium, or transmitted from one readable storage medium to another readable storage medium, for example, the computer instructions may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The readable storage medium may be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).

[0118] Figure 7 Another possible structural diagram of the electronic device involved in the above embodiment is shown. The device includes: a memory 71, a processor 72, and a program or instruction stored in the memory 71 and executable on the processor 72. When the program or instruction is executed by the processor 72, each step in the orchestration method flow of the service function chain shown in the above method embodiment is implemented. The electronic device may also include a communication interface 73 and a bus 74. The communication interface 73 is used to support the communication between the device and other network entities, for example, to execute the steps executed by the acquisition unit 61.

[0119] The processor 72 may also implement or execute various exemplary logic blocks, units and circuits described in conjunction with the disclosure of the present application. The processor 72 may be a central processing unit, a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It may implement or execute various exemplary logic blocks, units and circuits described in conjunction with the disclosure of the present application. The processor may also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0120] The memory 71 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above types of memory.

[0121] The bus 74 may be an Extended Industry Standard Architecture (EISA) bus, etc. The bus 74 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0122] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional units is used as an example. In actual applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the device is divided into different functional units to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0123] Since the electronic device, readable storage medium, and computer program product in the embodiments of the present application can be applied to the above-mentioned service function chain orchestration method, the technical effects that can be obtained can also refer to the above-mentioned method embodiments, and the embodiments of the present application will not be repeated here.

[0124] It should be noted that the above-mentioned units can be independently established processors, or can be integrated into a processor of the controller. In addition, they can be stored in the memory of the controller in the form of program code, and called and executed by a processor of the controller. The processor described here can be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0125] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0126] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0127] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0128] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling, direct coupling or communication connection shown or discussed can be realized through an interface, and the interface connection can be electrical, mechanical or other forms.

[0129] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0130] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0131] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for arranging a service function chain, It is characterized in that include: Acquire at least two service categories of at least two service functions of the service data to be processed, wherein the service categories are distinguished based on the service function implementation methods; The at least two service categories are sorted according to the minimum distances respectively corresponding to the at least two service categories to generate an initial category access order for the at least two service categories; wherein the minimum distance corresponding to a service category is the minimum distance among the physical distances between the egress routers corresponding to the service functions in the service category and the user equipment, and the user equipment is the equipment that sends the service data to be processed; In the case that two adjacent service categories in the initial category access sequence can be processed in parallel, setting the category access sequence of the two adjacent service categories to a parallel sequence to obtain a target category access sequence; Based on the target category access sequence and the service categories of the at least two service functions, the access sequence of the at least two service functions is arranged to generate a service function chain.

2. The method according to claim 1, It is characterized in that The service function implementation method includes at least one of the following: modifying packet header information and modifying traffic load.

3. The method according to claim 2, It is characterized in that The at least two service categories include at least two of a first service category, a second service category, and a third service category; wherein the service function of the first service category is implemented by modifying packet header information, the service function of the second service category is implemented by modifying traffic load, and the service function of the third service category is implemented by modifying packet header information and modifying traffic load; In the case where two adjacent service categories in the initial category access sequence are respectively the first service category and the third service category, the two adjacent service categories in the initial category access sequence cannot be processed in parallel; In the case where two adjacent service categories in the initial category access sequence are respectively the second service category and the third service category, the two adjacent service categories in the initial category access sequence cannot be processed in parallel; In the case where two adjacent service categories in the initial category access sequence are the first service category and the second service category, respectively, the two adjacent service categories in the initial category access sequence can be processed in parallel.

4. The method according to claim 1, It is characterized in that The step of arranging the access order of the at least two service functions based on the target category access order and the service categories of the at least two service functions to generate a service function chain includes: Sorting the service functions belonging to the same service category among the at least two service functions, and obtaining a sorting result of the service functions included in each service category of the at least two service categories; According to the target category access sequence and the ranking result of the service functions included in each of the at least two service categories, the access sequence of the at least two service functions is arranged to generate a service function chain.

5. The method according to claim 4, It is characterized in that The step of sorting the service functions belonging to the same service category among the at least two service functions comprises: The service functions belonging to the same service category among the at least two service functions are sorted in ascending order of the physical distance.

6. The method according to claim 4, It is characterized in that The step of sorting the service functions belonging to the same service category among the at least two service functions comprises: Acquire at least two service function category sets, wherein the at least two service categories correspond to the at least two service function category sets one by one, and the service function category set corresponding to one service category includes service functions belonging to the service category among the at least two service functions; According to the shortest path algorithm, traverse the egress routers corresponding to the service functions of each service function category set in the at least two service function category sets to generate the shortest routing path for each service function category set; The service functions in each service function category set are sorted respectively according to the shortest routing path of each service function category set.

7. A device for arranging a service function chain, It is characterized in that include: an acquisition unit, a first generation unit, a processing unit, and a second generation unit; The acquisition unit is used to acquire at least two service categories of at least two service functions of the service data to be processed, wherein the service categories are distinguished based on the implementation methods of the service functions; The first generating unit is used to sort the at least two service categories according to the minimum distances respectively corresponding to the at least two service categories acquired by the acquiring unit, and generate an initial category access order of the at least two service categories; wherein the minimum distance corresponding to a service category is the minimum distance among the physical distances between the egress routers corresponding to the service functions in the service category and the user equipment, and the user equipment is the equipment sending the service data to be processed; The processing unit is configured to set the category access order of the two adjacent service categories to a parallel order when the two adjacent service categories in the initial category access order generated by the first generating unit can be processed in parallel, so as to obtain a target category access order; The second generating unit is used to arrange the access sequence of the at least two service functions and generate a service function chain based on the target category access sequence obtained by the processing unit and the service categories of the at least two service functions.

8. The device according to claim 7, It is characterized in that The at least two service categories include at least two of a first service category, a second service category, and a third service category; wherein the service function of the first service category is implemented by modifying packet header information, the service function of the second service category is implemented by modifying traffic load, and the service function of the third service category is implemented by modifying packet header information and modifying traffic load; In the case where two adjacent service categories in the initial category access sequence are respectively the first service category and the third service category, the two adjacent service categories in the initial category access sequence cannot be processed in parallel; In the case where two adjacent service categories in the initial category access sequence are respectively the second service category and the third service category, the two adjacent service categories in the initial category access sequence cannot be processed in parallel; In the case where two adjacent service categories in the initial category access sequence are the first service category and the second service category, respectively, the two adjacent service categories in the initial category access sequence can be processed in parallel.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores programs or instructions, and when the programs or instructions are executed by the processor, the service function chain orchestration method as described in any one of claims 1-6 is implemented.

10. An electronic device, It is characterized in that include: A processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the service function chain orchestration method as described in any one of claims 1 to 6.