Traffic forwarding method and device, communication equipment, storage medium and program product
By obtaining the user's business chain SFC path template and generating the target SFC path based on the availability of the forwarding plane UP, the problems of load surge and handover delay in traditional technologies are solved, thereby improving service continuity and user experience.
Patent Information
- Application Number
- CN202511615605.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-06
- Publication Date
- 2026-02-27
AI Technical Summary
In the cloud deployment of metropolitan area networks, the control plane of traditional technologies needs to complete policy acquisition and path calculation in a short period of time, which leads to a surge in load, extended switching time, and affects service continuity and user experience.
By obtaining the SFC path template of the user's corresponding business chain, the target SFC path is generated based on the availability of the preferred forwarding plane UP and the SFC path template, or when the preferred UP is unavailable, the target UP is selected from the backup UP and the target SFC path is generated based on the SFC path template.
This improves the efficiency of determining the target SFC path, thereby enhancing service continuity and user experience.
Smart Images

Figure CN121585601A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, and in particular to a traffic forwarding method and device, a communication device, a storage medium and a program product. BACKGROUND
[0002] In the cloud deployment of a metropolitan area network, a virtual broadband network gateway (vBNG) with separation of control and forwarding is a core architecture. A control plane (CP) is responsible for user access management and policy decision, and a forwarding plane (UP) includes a physical UP (pUP) with dedicated hardware pooling deployment and a virtual UP (vUP) with cloud virtualization, and is responsible for traffic access and forwarding. The two are connected through a control unit (CU) channel to realize the interaction of control information.
[0003] User value-added services are usually implemented through a service function chain (SFC), which requires traffic to pass through each value-added service network element in a predetermined order. However, the traditional technology control plane needs to complete policy acquisition and path calculation in a short time, which leads to an increase in load and an increase in switching delay, affecting service continuity and user experience, and needs to be solved urgently. SUMMARY
[0004] Therefore, it is necessary to provide a traffic forwarding method, device, communication device, storage medium and program product to improve the generation efficiency of the target SFC path.
[0005] In a first aspect, the present application provides a traffic forwarding method applied to a CP, comprising:
[0006] In the case where it is detected that the user has traffic to be forwarded, a service function chain (SFC) path template corresponding to the user is acquired. The SFC path template is a basic SFC path corresponding to the user.
[0007] In the case where the SFC path template is acquired, a target SFC path corresponding to the traffic to be forwarded is generated according to the availability of the preferred forwarding plane (UP) corresponding to the user and the SFC path template. The target SFC path is used to forward the traffic to be forwarded.
[0008] In one embodiment, the target SFC path corresponding to the traffic to be forwarded is generated according to the availability of the preferred UP corresponding to the user and the SFC path template, comprising:
[0009] In a case where the preferred UP is available for the user, the preferred UP is taken as a target UP, and a target SFC path is generated according to the target UP and the SFC path template;
[0010] In a case where the preferred UP is unavailable, a target UP is selected from each backup UP corresponding to the CP, and a target SFC path is generated according to the target UP and the SFC path template.
[0011] In one of the embodiments, the target UP is selected from each backup UP corresponding to the CP, and includes:
[0012] The current load rate of each backup UP corresponding to the CP is obtained;
[0013] The backup UP with the lowest current load rate is taken as the target UP.
[0014] In one of the embodiments, the target SFC path is generated according to the target UP and the SFC path template, and includes:
[0015] The target UP is taken as an entry node and connected with a first service node in the SFC path template to generate the target SFC path.
[0016] In one of the embodiments, after the target SFC path corresponding to the to-be-forwarded traffic is generated, the method further includes:
[0017] The target SFC path is sent to the target UP, and the target UP is instructed to forward the to-be-forwarded traffic based on the target SFC path.
[0018] In one of the embodiments, the method further includes:
[0019] In a case where the SFC path template is not obtained, each value-added service subscribed by the user is obtained;
[0020] According to the service nodes corresponding to each value-added service and the connection relationship between different service nodes, a SFC path template corresponding to the to-be-forwarded traffic is generated;
[0021] The SFC path template is stored in association with the user identifier of the user.
[0022] In a second aspect, the application further provides a traffic forwarding device configured in a CP, and includes:
[0023] A template obtaining module is configured to obtain a service chain SFC path template corresponding to a user in a case where it is detected that the user has to-be-forwarded traffic; the SFC path template is a basic SFC path corresponding to the user;
[0024] The path generation module is configured to, in a case where the SFC path template is acquired, generate a target SFC path corresponding to the to-be-forwarded traffic according to an available condition of a user's preferred forwarding plane UP and the SFC path template; the target SFC path is used to forward the to-be-forwarded traffic.
[0025] In a third aspect, the present application further provides a communication device, comprising a memory, a transceiver and a processor, the memory stores a computer program, the transceiver is configured to receive or send data under the control of the processor, and the processor implements the following steps when executing the computer program:
[0026] In a case where it is detected that the user has to-be-forwarded traffic, a service chain SFC path template corresponding to the user is acquired; the SFC path template is a basic SFC path corresponding to the user;
[0027] In a case where the SFC path template is acquired, a target SFC path corresponding to the to-be-forwarded traffic is generated according to an available condition of a user's preferred forwarding plane UP and the SFC path template; the target SFC path is used to forward the to-be-forwarded traffic.
[0028] In a fourth aspect, the present application further provides a computer readable storage medium, which stores a computer program, and the computer program implements the following steps when executed by a processor:
[0029] In a case where it is detected that the user has to-be-forwarded traffic, a service chain SFC path template corresponding to the user is acquired; the SFC path template is a basic SFC path corresponding to the user;
[0030] In a case where the SFC path template is acquired, a target SFC path corresponding to the to-be-forwarded traffic is generated according to an available condition of a user's preferred forwarding plane UP and the SFC path template; the target SFC path is used to forward the to-be-forwarded traffic.
[0031] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, and the computer program implements the following steps when executed by a processor:
[0032] In a case where it is detected that the user has to-be-forwarded traffic, a service chain SFC path template corresponding to the user is acquired; the SFC path template is a basic SFC path corresponding to the user;
[0033] In a case where the SFC path template is acquired, a target SFC path corresponding to the to-be-forwarded traffic is generated according to an available condition of a user's preferred forwarding plane UP and the SFC path template; the target SFC path is used to forward the to-be-forwarded traffic.
[0034] The traffic forwarding method, device, communication device, storage medium and program product detect that there is traffic to be forwarded for a user, obtain a service chain (SFC) path template corresponding to the user, the SFC path template is a basic SFC path corresponding to the user, obtain the SFC path template, generate a target SFC path corresponding to the traffic to be forwarded according to a preferred UP available condition corresponding to the user and the SFC path template, and the target SFC path is used to forward the traffic to be forwarded. In this process, because the user has the SFC path template, the target SFC path can be quickly determined according to the SFC path template corresponding to the user in the case that the preferred UP corresponding to the user fails, so that the determination efficiency of the target SFC path is improved, and the service continuity and user experience are improved. BRIEF DESCRIPTION OF DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related art, the following will briefly introduce the drawings needed to be used in the description of the embodiments of the present application or the related art. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other related drawings can also be obtained without creative labor on the basis of these drawings.
[0036] Figure 1 An application environment diagram of a traffic forwarding method in an embodiment;
[0037] Figure 2 A flowchart of a traffic forwarding method in an embodiment;
[0038] Figure 3 A flowchart of a target SFC path generation step in an embodiment;
[0039] Figure 4 A flowchart of an SFC path template generation step in an embodiment;
[0040] Figure 5 A flowchart of a traffic forwarding method in another embodiment;
[0041] Figure 6 A structural block diagram of a traffic forwarding device in an embodiment;
[0042] Figure 7 An internal structure diagram of a computer device in an embodiment. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solutions and advantages of the present application clearer, the following will further describe the present application in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.
[0044] For the convenience of understanding, the communication terms appearing in the present application are briefly introduced as follows:
[0045] vBNG: is a network access control layer virtualization solution based on ETSI NFV reference architecture, combined with SDN technology, and based on BNG function.
[0046] Control Separation vBNG: separates and deploys the CP function and UP function of vBNG.
[0047] CP: responsible for user access control, user management, address management, UP management and other functions, usually including CP control virtual machine (responsible for system monitoring, resource management, alarm management and other functions), service management virtual machine (responsible for user access control, user management, address management, UP management and other functions) and load balancing virtual machine (responsible for communication between CP and UP, message distribution and other functions).
[0048] UP: responsible for traffic forwarding and routing management and other functions, according to the physical form of the device, vBNG-UP is divided into pUP and vUP, the UP referred to in the present application is pUP.
[0049] SFC: a technology for providing SF in order, which realizes that the message passes through the service device according to the specified path by adding service chain path information in the original message.
[0050] SRv6 SFC (SRv6 service chain): a technology for guiding the message to pass through the application layer service device according to the specified path by adding SRv6 path information in the original message.
[0051] SC (Service Classifier, service classification node): the starting point of SFC, which identifies, classifies and determines whether the message can enter the SFC domain according to the rules, performs SFC encapsulation on the message and directs it to the corresponding service function path.
[0052] SF (Service Function, service function node): a device providing value-added service functions, including firewalls, load balancing devices and the like.
[0053] SFF (Service Function Forwarder, service function forwarder): a device for connecting SF units, forwarding data streams to SF units according to SFC header information, and transferring data streams from SF units to the next hop SFF.
[0054] The traffic forwarding method provided by the embodiments of the present application can be applied to, for example Figure 1The application environment shown. Among them, the CP 102 communicates with each UP in the UP pool through the network (UP1 104 is taken as an example in the figure, and UP1 104 is the preferred UP of the user), and the CP 102 also communicates with an (Authentication, Authorization, Accounting, AAA) authentication, authorization and accounting server. Specifically, the CP 102 acquires the SFC path template corresponding to the user when detecting that the user has traffic to be forwarded; the SFC path template is a basic SFC path corresponding to the user; the CP 102 generates a target SFC path corresponding to the traffic to be forwarded according to the availability of the preferred UP1 104 of the user and the SFC path template when acquiring the SFC path template; the target SFC path is used to forward the traffic to be forwarded.
[0055] In one exemplary embodiment, as shown, a traffic forwarding method is provided, and the method is taken as an example to illustrate the CP in the application environment. Figure 2 Figure 1 The method includes the following steps:
[0056] S210, acquiring a service chain SFC path template corresponding to a user when detecting that the user has traffic to be forwarded.
[0057] Among them, the traffic to be forwarded is a user traffic message. The SFC path template is a basic SFC path corresponding to the user, and only contains the path tail section of the SFF and the SF, and does not include the path head node UP.
[0058] Exemplarily, the SFC path template corresponding to each user in the CP is stored in association with the corresponding user identifier. Correspondingly, the user identifier is acquired, and the SFC path template associated with the user identifier is taken as the SFC path template corresponding to the user.
[0059] S220, generating a target SFC path corresponding to the traffic to be forwarded according to the availability of the preferred forwarding surface UP of the user and the SFC path template when acquiring the SFC path template.
[0060] Among them, the target SFC path is used to forward the traffic to be forwarded. The target SFC path includes a complete SFC forwarding path.
[0061] Among them, the preferred forwarding surface UP can be understood as the UP connected when the user is online. In an optional implementation, the preferred UP corresponding to the user is not fixed, for example, when the user is online, any UP in the UP pool will be connected, and the UP connected will be taken as the preferred UP corresponding to the user.
[0062] It should be noted that the user does not communicate with the CP, and after the user is online, the preferred UP corresponding to the user sends a user online prompt to the CP in response to the user being online, so that the CP can obtain the user identifier and the identifier of the preferred UP corresponding to the user.
[0063] In an optional embodiment, the CP can send a test signal to the preferred UP, and determine that the preferred UP is available if the CP receives signal reception information fed back by the preferred UP, and determine that the preferred UP is unavailable if the CP does not receive the signal reception information fed back by the preferred UP within a first preset time length.
[0064] The first preset time length can be determined based on artificial experience and a large number of tests, and the present application does not make any limitation on this.
[0065] Further, in the case that the preferred UP corresponding to the user is available, a target SFC path corresponding to the to-be-forwarded traffic can be generated according to the identifier information of the preferred UP and the SFC path template; in the case that the preferred UP corresponding to the user is unavailable, any other UP can be selected from the UP pool, and a target SFC path corresponding to the to-be-forwarded traffic can be generated according to the identifier information of the UP and the SFC path template.
[0066] In another optional embodiment, the CP can first generate a preferred SFC path corresponding to the to-be-forwarded traffic according to the identifier information of the preferred UP and the SFC path template, and send the preferred SFC path to the preferred UP, if the sending is completed within a second preset time length, it is determined that the preferred UP is available, and the preferred SFC path is used as the target SFC path; if the sending cannot be completed within the second preset time length, it is determined that the preferred UP is unavailable, and the step of determining the target SFC path is performed.
[0067] The second preset time length can be determined based on artificial experience and a large number of tests, and the present application does not make any limitation on this.
[0068] In the above traffic forwarding method, in the case that it is detected that the user has to-be-forwarded traffic, a service chain SFC path template corresponding to the user is obtained; the SFC path template is a basic SFC path corresponding to the user; in the case that the SFC path template is obtained, a target SFC path corresponding to the to-be-forwarded traffic is generated according to the availability of the preferred UP corresponding to the user and the SFC path template; the target SFC path is used to forward the to-be-forwarded traffic. In this process, since the user has a SFC path template, in the case that the preferred UP corresponding to the user fails, the CP can quickly determine the target SFC path according to the SFC path template corresponding to the user, thereby improving the determination efficiency of the target SFC path, and thereby improving the service continuity and user experience.
[0069] Furthermore, the target SFC path is sent to the target UP, and the target UP is instructed to forward the traffic to be forwarded based on the target SFC path.
[0070] The target UP is the UP that can forward the traffic to be forwarded. If the user's preferred UP is available, the target UP is that preferred UP; if the user's preferred UP is unavailable, the target UP is selected from other UPs in the UP pool.
[0071] Specifically, when the target UP is the user's preferred UP, the CP can send the target SFC path to the preferred UP and instruct the preferred UP to forward the traffic to be forwarded based on the target SFC path; when the target UP is not the user's preferred UP, the CP can obtain the user's traffic to be forwarded, and send the target SFC path and the traffic to be forwarded together to the target UP, and instruct the target UP to forward the traffic to be forwarded based on the target SFC path.
[0072] In one alternative implementation, the target UP encapsulates the traffic to be forwarded according to the target SFC path, guiding the traffic to be forwarded to flow through each SF along the target SFC path.
[0073] In the above embodiments, the target SFC path is sent to the target UP, so that the forwarding of traffic to be forwarded can be completed efficiently based on the cooperation between the CP and the target UP.
[0074] Based on the technical solutions of the above embodiments, this application also provides an optional embodiment. In this optional embodiment, the process of generating the target SFC path corresponding to the traffic to be forwarded based on the availability of the user's preferred forwarding plane UP and the SFC path template is described in detail.
[0075] See Figure 3 The target SFC path generation steps shown include:
[0076] S310 determines whether the user's preferred UP is available.
[0077] The process of determining whether the user's preferred UP is available has been described in the above embodiments and will not be repeated here.
[0078] S320: When the user's preferred UP is available, the preferred UP is used as the target UP, and the target SFC path is generated based on the target UP and the SFC path template.
[0079] For example, in this embodiment, the identification information of the preferred UP can be determined, and this identification information can be concatenated with the SFC path template to generate the target SFC path. The SFC path template contains the identification information corresponding to each service node, as well as the corresponding connection relationships.
[0080] S330, when the preferred UP is unavailable, selects the target UP from the backup UPs corresponding to the CP, and generates the target SFC path based on the target UP and the SFC path template.
[0081] In one optional implementation, the current load rate of each standby UP corresponding to the CP can be obtained; the standby UP with the lowest current load rate is selected as the target UP. For example, if it is determined that the preferred UP is unavailable, the current load rate of each standby UP in the UP pool other than the preferred UP is obtained at the current moment, and the current load rates are compared, with the standby UP with the lowest current load rate selected as the target UP.
[0082] In an alternative implementation, the target UP can be used as the entry node and connected to the first business node in the SFC path template to generate the target SFC path.
[0083] The above embodiments provide a specific method for generating the target SFC path. Regardless of whether the user's preferred UP is available, the target SFC path can be generated by referring to the SFC path template, without needing to redetermine the entire target SFC path, thus improving the efficiency of target SFC path determination.
[0084] Based on the technical solutions of the above embodiments, this application also provides an optional embodiment. In this optional embodiment, supplementary description is provided for the case where the SFC path template is not obtained.
[0085] See Figure 4 The steps for generating the SFC path template shown include:
[0086] S410 retrieves the various value-added services subscribed by the user without obtaining the SFC path template.
[0087] For example, in this embodiment, in the absence of obtaining the SFC path template, the user's subscribed value-added services are obtained from the AAA server.
[0088] S420 generates SFC path templates for forwarding traffic based on the business nodes corresponding to each value-added service and the connection relationships between different business nodes.
[0089] For example, the CP generates an SFC path template based on the business node corresponding to each value-added service, such as SF1-SF2-SF3.
[0090] S430, associate and store the SFC path template with the user's user identifier.
[0091] For example, the SFC path template and the corresponding user's user identifier can be stored together in the CP's user SFC path template table for easy use later.
[0092] It is worth noting that when a user's subscribed value-added services change, the CP can update the SFC path template corresponding to that user based on the updated business nodes corresponding to each value-added service.
[0093] In one alternative implementation, the preferred UP for different users is a fixed UP. In this case, the SFC path template of the corresponding user can also be synchronized to its corresponding preferred UP. When the user comes online again and needs to forward traffic, and the preferred UP is available, the determination of the target SFC path can be completed without the cooperation of the CP, thereby further improving the efficiency of traffic forwarding.
[0094] The above embodiments illustrate the specific process of generating an SFC path template when it is not available. The SFC path template is generated and associated with the user's identifier for storage, enabling the rapid generation of the corresponding target SFC path in the next scenario where traffic is forwarded to that user.
[0095] Based on the technical solutions of the above embodiments, this application also provides an optional embodiment. In this optional embodiment, taking the example that the CP does not store the SFC path template corresponding to the user, the traffic forwarding method provided by this application will be described in detail.
[0096] See Figure 5 The traffic forwarding methods shown include:
[0097] S510, the CP responds to the user online message sent by the preferred UP and obtains the various value-added services subscribed by the user;
[0098] S520, based on the business nodes corresponding to each value-added service and the connection relationship between different business nodes, CP generates an initial SFC forwarding path and uses the initial SFC forwarding path as an SFC path template.
[0099] Furthermore, the SFC path template is associated with and stored with the user's user identifier;
[0100] S530, CP obtains the identifier information of the user's preferred UP and determines whether the user's preferred forwarding plane UP is available. If yes, then execute S540; otherwise, execute S550.
[0101] S540 selects the preferred UP as the target UP and generates the target SFC path based on the target UP and the SFC path template.
[0102] S550 selects the target UP from each standby UP corresponding to the CP, and generates the target SFC path based on the target UP and the SFC path template;
[0103] S560, CP sends the target SFC path to the target UP;
[0104] S570: The target UP identifies the traffic to be forwarded and encapsulates the traffic to be forwarded according to the target SFC path;
[0105] S580, the target UP forwards the traffic to be forwarded based on the target SFC path.
[0106] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.
[0107] Based on the same inventive concept, this application also provides a traffic forwarding device for implementing the traffic forwarding method described above. The solution provided by this device is similar to the implementation described in the above method; therefore, the specific limitations in one or more traffic forwarding device embodiments provided below can be found in the limitations of the traffic forwarding method described above, and will not be repeated here.
[0108] In one exemplary embodiment, such as Figure 6 As shown, a traffic forwarding device is provided, including: a template acquisition module 610 and a path generation module 620, wherein:
[0109] The template acquisition module 610 is used to acquire the SFC path template of the user's business chain when it is detected that there is traffic to be forwarded by the user; the SFC path template is the basic SFC path corresponding to the user.
[0110] The path generation module 620 is used to generate a target SFC path for the traffic to be forwarded based on the availability of the user's preferred forwarding plane UP and the SFC path template, after obtaining the SFC path template; the target SFC path is used to forward the traffic to be forwarded.
[0111] In one embodiment, the path generation module 620 includes a first generation unit, configured to, when the user's preferred UP is available, use the preferred UP as the target UP and generate a target SFC path according to the target UP and the SFC path template; and a second generation unit, configured to, when the preferred UP is unavailable, select a target UP from each backup UP corresponding to the CP and generate a target SFC path according to the target UP and the SFC path template.
[0112] In one embodiment, the second generation unit includes an acquisition subunit for acquiring the current load rate of each standby UP corresponding to the CP; and a determination subunit for selecting the standby UP with the lowest current load rate as the target UP.
[0113] In one embodiment, the first generation unit and the second generation unit are specifically used to connect the target UP as the entry node with the first business node in the SFC path template to generate the target SFC path.
[0114] In one embodiment, the traffic forwarding device further includes a forwarding module for sending the target SFC path to the target UP and instructing the target UP to forward the traffic to be forwarded based on the target SFC path.
[0115] In one embodiment, the traffic forwarding device further includes a second acquisition module, used to acquire each value-added service subscribed by the user when the SFC path template is not acquired; a template generation module, used to generate an SFC path template corresponding to the forwarding traffic based on the business nodes corresponding to each value-added service and the connection relationship between different business nodes; and a storage module, used to associate and store the SFC path template with the user's user identifier.
[0116] Each module in the aforementioned traffic forwarding device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the corresponding operations of each module.
[0117] In one embodiment, a communication device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 7As shown, the communication device includes a processor, memory, network interface, and transceiver connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The transceiver performs data reception or transmission operations under the control of the processor. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database stores relevant data during traffic forwarding. The network interface communicates with external terminals via a network connection. When executed by the processor, the computer program implements a traffic forwarding method.
[0118] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the communication device to which the present application is applied. Specific communication devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0119] In one exemplary embodiment, a communication device is provided, including a memory, a transceiver, and a processor. The memory stores a computer program, and the transceiver is used to receive or transmit data under the control of the processor. When the processor executes the computer program, it performs the following steps:
[0120] If a user is detected to have traffic to be forwarded, obtain the SFC path template of the user's business chain; the SFC path template is the user's basic SFC path.
[0121] Once the SFC path template is obtained, the target SFC path corresponding to the traffic to be forwarded is generated based on the availability of the user's preferred forwarding plane UP and the SFC path template; the target SFC path is used to forward the traffic to be forwarded.
[0122] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0123] If the user's preferred UP is available, the preferred UP is used as the target UP, and the target SFC path is generated based on the target UP and the SFC path template.
[0124] If the primary UP is unavailable, select the target UP from the backup UPs corresponding to the CP, and generate the target SFC path based on the target UP and the SFC path template.
[0125] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0126] Get the current load rate of each standby UP corresponding to the CP;
[0127] The standby UP with the lowest current load rate is selected as the target UP.
[0128] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0129] The target UP is used as the entry node and connected to the first business node in the SFC path template to generate the target SFC path.
[0130] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0131] Send the target SFC path to the target UP and instruct the target UP to forward the traffic to be forwarded based on the target SFC path.
[0132] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0133] Without obtaining the SFC path template, retrieve the various value-added services subscribed by the user;
[0134] Based on the business nodes corresponding to each value-added service and the connection relationships between different business nodes, generate SFC path templates for forwarding traffic;
[0135] The SFC path template is associated with and stored with the user's user ID.
[0136] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0137] If a user is detected to have traffic to be forwarded, obtain the SFC path template of the user's business chain; the SFC path template is the user's basic SFC path.
[0138] Once the SFC path template is obtained, the target SFC path corresponding to the traffic to be forwarded is generated based on the availability of the user's preferred forwarding plane UP and the SFC path template; the target SFC path is used to forward the traffic to be forwarded.
[0139] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0140] If the user's preferred UP is available, the preferred UP is used as the target UP, and the target SFC path is generated based on the target UP and the SFC path template.
[0141] If the primary UP is unavailable, select the target UP from the backup UPs corresponding to the CP, and generate the target SFC path based on the target UP and the SFC path template.
[0142] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0143] Get the current load rate of each standby UP corresponding to the CP;
[0144] The standby UP with the lowest current load rate is selected as the target UP.
[0145] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0146] The target UP is used as the entry node and connected to the first business node in the SFC path template to generate the target SFC path.
[0147] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0148] Send the target SFC path to the target UP and instruct the target UP to forward the traffic to be forwarded based on the target SFC path.
[0149] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0150] Without obtaining the SFC path template, retrieve the various value-added services subscribed by the user;
[0151] Based on the business nodes corresponding to each value-added service and the connection relationships between different business nodes, generate SFC path templates for forwarding traffic;
[0152] The SFC path template is associated with and stored with the user's user ID.
[0153] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:
[0154] If a user is detected to have traffic to be forwarded, obtain the SFC path template of the user's business chain; the SFC path template is the user's basic SFC path.
[0155] Once the SFC path template is obtained, the target SFC path corresponding to the traffic to be forwarded is generated based on the availability of the user's preferred forwarding plane UP and the SFC path template; the target SFC path is used to forward the traffic to be forwarded.
[0156] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0157] If the user's preferred UP is available, the preferred UP is used as the target UP, and the target SFC path is generated based on the target UP and the SFC path template.
[0158] If the primary UP is unavailable, select the target UP from the backup UPs corresponding to the CP, and generate the target SFC path based on the target UP and the SFC path template.
[0159] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0160] Get the current load rate of each standby UP corresponding to the CP;
[0161] The standby UP with the lowest current load rate is selected as the target UP.
[0162] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0163] The target UP is used as the entry node and connected to the first business node in the SFC path template to generate the target SFC path.
[0164] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0165] Send the target SFC path to the target UP and instruct the target UP to forward the traffic to be forwarded based on the target SFC path.
[0166] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0167] Without obtaining the SFC path template, retrieve the various value-added services subscribed by the user;
[0168] Based on the business nodes corresponding to each value-added service and the connection relationships between different business nodes, generate SFC path templates for forwarding traffic;
[0169] The SFC path template is associated with and stored with the user's user ID.
[0170] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0171] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0172] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0173] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A traffic forwarding method applied to the control plane (CP), characterized in that, The method includes: If a user is detected to have traffic to be forwarded, the SFC path template corresponding to the user is obtained; the SFC path template is the basic SFC path corresponding to the user. Given the SFC path template, a target SFC path is generated based on the availability of the user's preferred forwarding plane UP and the SFC path template; the target SFC path is used to forward the traffic to be forwarded.
2. The method according to claim 1, characterized in that, The step of generating the target SFC path corresponding to the traffic to be forwarded based on the availability of the user's preferred forwarding plane UP and the SFC path template includes: If the user's preferred UP is available, the preferred UP is used as the target UP, and the target SFC path is generated based on the target UP and the SFC path template. If the preferred UP is unavailable, a target UP is selected from the backup UPs corresponding to the CP, and the target SFC path is generated based on the target UP and the SFC path template.
3. The method according to claim 2, characterized in that, The step of selecting a target UP from the backup UPs corresponding to the CP includes: Obtain the current load rate of each standby UP corresponding to the CP; The standby UP with the lowest current load rate is selected as the target UP.
4. The method according to claim 2, characterized in that, The step of generating the target SFC path based on the target UP and the SFC path template includes: The target UP is used as the entry node and connected to the first business node in the SFC path template to generate the target SFC path.
5. The method according to any one of claims 1-4, characterized in that, After generating the target SFC path corresponding to the traffic to be forwarded, the method further includes: The target SFC path is sent to the target UP, and the target UP is instructed to forward the traffic to be forwarded based on the target SFC path.
6. The method according to claims 1-4, characterized in that, The method further includes: If the SFC path template is not obtained, obtain the value-added services subscribed by the user; Based on the business nodes corresponding to each of the value-added services and the connection relationships between different business nodes, an SFC path template corresponding to the forwarding traffic is generated. The SFC path template is associated with and stored with the user's user identifier.
7. A traffic forwarding device, configured in a CP, characterized in that, The device includes: The template acquisition module is used to acquire the business chain SFC path template corresponding to the user when it is detected that there is traffic to be forwarded by the user; the SFC path template is the basic SFC path corresponding to the user. The path generation module is used to generate a target SFC path corresponding to the traffic to be forwarded, based on the availability of the user's preferred forwarding plane UP and the SFC path template, when the SFC path template is obtained; the target SFC path is used to forward the traffic to be forwarded.
8. A communication device, comprising a memory, a transceiver, and a processor, wherein the memory stores a computer program, characterized in that, The transceiver is used to receive or send data under the control of the processor, wherein the processor, when executing the computer program, implements the steps of the method according to any one of claims 1-6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1-6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1-6.