Data processing method, system, device, electronic device and storage medium
By using proxy nodes in the SFC network to directly forward and process packets, the problem of frequent encapsulation and decapsulation of Proxy is solved, improving computer processing efficiency and reducing latency.
Patent Information
- Application Number
- CN202111564692.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-20
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2041-12-20
AI Technical Summary
In SFC networks, Proxy frequently performs NSH header encapsulation and decapsulation, resulting in waste of computer resources and increased processing delays, reducing network processing efficiency.
The first proxy node receives and processes messages, obtains the service index SI, and directly forwards the messages when the SI is connected to the proxy node for processing, avoiding unnecessary encapsulation and decapsulation operations, saving computer resources, and reducing processing time.
Effectively reduces computer processing delay and improves processing efficiency, especially in the case of multiple SF connections, the number of packaging and depackaging is significantly reduced.
Smart Images

Figure CN114268668B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a data processing method, system, device, electronic device and storage medium. Background Art
[0002] Service Function Chain (SFC) technology can enable network traffic to pass through various business functions (also called service functions) in a predetermined order as required by business logic.
[0003] In order to enable the traditional SF (Service Function) that does not support SFC to participate in business orchestration, the logical network element Proxy is enabled between the SF that does not recognize the NSH (Network Service Header) message and the SFF (Service Function Forwarder) in the SFC network. The Proxy is responsible for the encapsulation and decapsulation of the NSH header of the message.
[0004] In the related technology, the proxy receives the message sent by the SFF, removes the NSH header, and forwards it to the corresponding SF. After the SF processes it, it sends it to the proxy for NSH header encapsulation, and then forwards it to the SFF. When multiple SFs are connected to the proxy, the repeated encapsulation and decapsulation of the proxy will take a lot of processing time, reducing the network processing efficiency.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0006] The purpose of the present disclosure is to provide a data processing method, system, device, electronic device and storage medium, which can save computer resources, reduce computer processing time, reduce computer processing delay, and improve computer processing efficiency.
[0007] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0008] An embodiment of the present disclosure provides a data processing method, which is executed by a first proxy node, and the method includes: receiving a first message sent by a service function forwarder SFF; obtaining a first service index SI and a second SI, wherein the second SI is the next SI of the first SI, the first SI represents a first service function SF, the second SI represents a second SF, and the first SI is connected to the first proxy node; forwarding the first message to the first SF so that the first SF processes the first message to obtain a second message; receiving the second message forwarded by the first SF; if the second SF is connected to the first proxy node, forwarding the second message to the second SF so that the second SF processes the second message.
[0009] An embodiment of the present disclosure provides a data processing system, which includes a first proxy node, an SFF, a first SF, and a second SF; wherein the SFF is used to send a first message to the first proxy node; the first proxy node is used to receive the first message and obtain a first SI and a second SI, wherein the second SI is the next SI of the first SI, the first SI represents the first SF, the second SI represents the second SF, and the first SI is connected to the first proxy node; the first proxy node is also used to forward the first message to the first SF; the first SF is used to receive the first message, process the first message to obtain a second message, and forward the second message to the first proxy node; the first proxy node is also used to receive the second message, and if the second SF is connected to the first proxy node, forward the second message to the second SF; the second SF is used to receive the second message and process the second message.
[0010] The disclosed embodiment provides a data processing device, including: a first message receiving module, used to receive a first message sent by a service function forwarder SFF; an SI acquisition module, used to acquire a first service index SI and a second SI, wherein the second SI is the next SI of the first SI, the first SI represents a first service function SF, the second SI represents a second SF, and the first SI is connected to the first proxy node; a first message forwarding module, used to forward the first message to the first SF, so that the first SF processes the first message to obtain a second message; a second message receiving module, used to receive the second message forwarded by the first SF; a second message forwarding module, used to forward the second message to the second SF if the second SF is connected to the first proxy node, so that the second SF processes the second message.
[0011] An embodiment of the present disclosure provides an electronic device, including: at least one processor; a storage terminal device, used to store at least one program, when the at least one program is executed by the at least one processor, the at least one processor implements any one of the above-mentioned data processing methods.
[0012] An embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements any of the above-mentioned data processing methods when executed by a processor.
[0013] In the data processing method provided by the embodiment of the present disclosure, the first proxy node can obtain the first SI and the second SI. If the first proxy node finds that the first SI and the second SI are both connected to the first proxy node, the first proxy node forwards the message to the first SI for processing. After receiving the message returned by the first SI, there is no need to encapsulate and unpack, and the message returned by the first SI can be directly forwarded to the second SI for processing, thereby saving computer resources, reducing computer processing time, reducing computer processing delay, and improving computer processing efficiency.
[0014] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0016] Figure 1 The figure is a schematic diagram of an SFC service chain model with a proxy according to an example.
[0017] Figure 2 is a flow chart showing a data processing method according to an exemplary embodiment.
[0018] Figure 3 is a block diagram of a data processing device according to an exemplary embodiment.
[0019] Figure 4 is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0020] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0021] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor terminal devices and / or microcontroller terminal devices.
[0022] Figure 1 The figure is a schematic diagram of an SFC service chain model with a proxy according to an example.
[0023] refer to Figure 1 The SFC service chain model includes a classifier (Service Classifier, SC), SFF1, SFF2, SFC Proxy, SF1, SF2, SF3, SF4 and SF5, wherein SFC Proxy is connected to SFF1, SF1, SF2 and SF3 respectively, SFC Proxy can forward the message forwarded by SFF1 to SF1, SF2 and SF3, and SFF2 is connected to SF4 and SF5 respectively.
[0024] Taking the service flow SF1→SF3→SF4 as an example, Table 1 shows a correspondence relationship between SPI (Service Function Path Identifier), SI (Service Index), SF and SFF.
[0025] Table 1
[0026] SPI SI SF SFF 1 255 SF1 SFF1 1 254 SF3 SFF1 1 253 SF4 SFF2
[0027] In the related art, Figure 1 Taking the business flow model shown in Table 1 as an example, the SFC Proxy processing flow is as follows:
[0028] Step 1: After the message reaches the classifier, the original message is encapsulated with an NSH (Network Service Header) header with SPI information, and the next SF is found on SFF1, so the classifier forwards the message to SFF1;
[0029] Step 2: After the message arrives at SFF1, it checks SF1 and finds that it is an SF that does not support SFC, so it forwards the message to SFC Proxy;
[0030] Step 3: SFC Proxy removes the NSH encapsulation and forwards the message to SF1;
[0031] Step 4: After SF1 completes the processing, it returns to SFC Proxy, which encapsulates the NSH message header and forwards it to SFF1.
[0032] Step 5: SFF1 finds the next SF to be SF3, which is also local, so it forwards it to SFC Proxy. SFC Proxy decapsulates the packet and sends it to SF3.
[0033] Step 6: After SF3 is processed, it is sent to SFC Proxy. SFC Proxy encapsulates the NSH message header and forwards it to SFF1. SFF1 queries the next SF, that is, SF4, on SFF2, so it forwards the message to SFF2 for forwarding and processing.
[0034] So far, the proxy has consumed 2 decapsulation and encapsulation operations.
[0035] Hereinafter, each step of the data processing method in the exemplary embodiment of the present disclosure will be described in more detail with reference to the accompanying drawings and embodiments.
[0036] Figure 2 1 is a flow chart of a data processing method according to an exemplary embodiment. The method provided in the embodiment of the present disclosure may be executed by a first proxy node, but the present disclosure is not limited thereto.
[0037] like Figure 2 As shown, the data processing method provided by the embodiment of the present disclosure may include the following steps.
[0038] In step S202, a first message sent by a Service Function Forwarder (SFF) is received.
[0039] In the embodiment of the present disclosure, the first proxy node may receive the first message sent by the SFF, wherein the first proxy node may be, for example, Figure 1The SFC Proxy shown can receive the first message sent by SFF1.
[0040] In an exemplary embodiment, the first message is encapsulated with NSH (Network Service Header), and the NSH includes SPI (Service Function Path Identifier).
[0041] In the disclosed embodiment, before SFF1 sends the first message to SFC Proxy, the classifier receives the original message, encapsulates the original message with an NSH header with SPI information to obtain the first message, and the classifier queries and obtains that SF1 is a SF that does not support SFC, so the first message is forwarded to SFF1; after SFF1 receives the first message, it queries and obtains that SF1 is a SF that does not support SFC, so the first message is sent to SFC Proxy.
[0042] In an exemplary embodiment, the method further includes: decapsulating the first message to obtain a first intermediate message, wherein the first intermediate message does not include the NSH.
[0043] In an exemplary embodiment, decapsulating the first message to obtain the first intermediate message includes: removing the NSH in the first message to obtain the first intermediate message.
[0044] In the embodiment of the present disclosure, the first proxy node may decapsulate the first message, for example, remove the NSH in the first message (ie, remove the NSH encapsulation), and obtain the first intermediate message.
[0045] In step S204, a first SI (Service Index) and a second SI are obtained, wherein the second SI is the next SI of the first SI, the first SI represents a first SF (Service Function), the second SI represents a second SF, and the first SI is connected to the first proxy node.
[0046] In the embodiment of the present disclosure, the first proxy node may obtain one or more SIs, and two of the SIs are taken as an example for description, but the present disclosure is not limited thereto.
[0047] In the disclosed embodiment, the first proxy node may obtain the first SI and the second SI, wherein the first SI may be the current SI and the second SI may be the next SI of the first SI, the first SI corresponds to the first SF and the second SI represents the second SF, that is, the service flow order of the SFC network is to first forward the message to SF1 for processing and then forward the message to SF2 for processing.
[0048] In an exemplary embodiment, obtaining the first service index SI and the second SI includes: identifying the SPI to obtain the first SI and the second SI.
[0049] In the embodiment of the present disclosure, the first proxy node may identify the SPI to obtain the first SI and the second SI.
[0050] In the embodiment of the present disclosure, by improving SFC Proxy, in addition to identifying a single SI in SPI, a function of identifying other SIs subsequent to the single SI is added.
[0051] In step S206, the first message is forwarded to the first SF, so that the first SF processes the first message to obtain a second message.
[0052] In the embodiment of the present disclosure, the first proxy node may forward the first message to the first SF according to the first SI, and the first SF may process the first message to obtain the second message.
[0053] In the embodiments of the present disclosure, reference Figure 1 , the first SF is taken as SF1 as an example for description, but the present disclosure is not limited to this.
[0054] In the embodiment of the present disclosure, for example, SFC Proxy recognizes that the first SI is 255, and its corresponding SF is SF1, and SFC Proxy forwards the first message to SF1.
[0055] In an exemplary embodiment, forwarding a first message to a first SF so that the first SF processes the first message to obtain a second message includes: forwarding a first intermediate message to the first SF so that the first SF processes the first intermediate message to obtain the second message.
[0056] In the embodiment of the present disclosure, the first proxy node may first decapsulate the first message, and forward the decapsulated first intermediate message to the first SF.
[0057] In step S208, a second message forwarded by the first SF is received.
[0058] In the embodiment of the present disclosure, the first SF may forward the second message to the first proxy node.
[0059] For example, SF1 forwards the second message to SFC Proxy.
[0060] In step S210, if the second SF is connected to the first proxy node, the second message is forwarded to the second SF, so that the second SF processes the second message.
[0061] In the disclosed embodiment, the first proxy node may determine the second SF corresponding to the second SI. If the second SF is also connected to the first proxy node, there is no need to re-encapsulate and decapsulate the second message, and the second message may be directly forwarded to the second SF so that the second SF processes the second message.
[0062] refer to Figure 1 Taking the second SF as SF3 as an example, when SFC Proxy finds that SF3 is also connected to SFC Proxy, there is no need to re-encapsulate and decapsulate the second message, and the second message is directly forwarded to SF3, so that SF3 processes the second message.
[0063] In the disclosed embodiment, after the second SF processes the second message, the processed second message is forwarded to the first proxy node, and the first proxy node continues to determine whether the third SF corresponding to the next SI of the second SI (hereinafter referred to as the third SI) is also connected to the first proxy node. If the third SF corresponding to the third SI is also connected to the first proxy node, there is no need to re-encapsulate and decapsulate the processed second message, and the processed second message is directly forwarded to the third SF, so that the third SF processes the processed second message.
[0064] In an exemplary embodiment, the method further includes: if the second SF is not connected to the first proxy node, encapsulating the second message using the NSH; and forwarding the encapsulated second message to the SFF.
[0065] In the disclosed embodiment, if the second SF is also connected to the first proxy node, the first proxy node encapsulates the second message using NSH, and the first proxy node forwards the encapsulated second message to the SFF, and the SFF can continue to forward the encapsulated second message backward.
[0066] refer to Figure 1 Taking the second SF as SF4 as an example, SFC Proxy finds that SF4 is not connected to SFCProxy, then SFC Proxy uses NSH to encapsulate the second message, SFC Proxy forwards the encapsulated second message to SFF1, SFF1 forwards the encapsulated second message to SFF2, so that SFF2 forwards the encapsulated second message to SF4.
[0067] It should be noted that the first SF being SF1 and the second SF being SF3 or SF4 are merely examples, and in practical applications, the first SF and the second SF may be any SF.
[0068] The data processing method of the embodiment of the present disclosure is described below by taking the service flow SF1→SF3→SF4 as an example.
[0069] refer to Figure 1 As shown in Table 1, for example, SFC Proxy recognizes that the first SI is 255, and its corresponding SF is SF1; the second SI is 254, and its corresponding SF is SF3; the third SI is 253, and its corresponding SF is SF4.
[0070] After receiving the first message forwarded by SFF1, SFC Proxy decapsulates the first message and forwards it to SF1 for processing to obtain a second message; SF1 forwards the second message to SFC Proxy, and SFC Proxy recognizes that SF3 is also connected to SFC Proxy. Then SFC Proxy does not need to encapsulate and decapsulate the second message again, and directly forwards the second message to SF3 for processing to obtain a third message. SF3 forwards the third message to SFC Proxy, and SFC Proxy recognizes that SF4 is not connected to SFC Proxy. Then SFC Proxy encapsulates the third message and forwards the encapsulated third message to SFF1. SFF1 then forwards the encapsulated third message to SFF2, so that SFF2 forwards the encapsulated third message to SF4.
[0071] It can be seen that, using the data processing method provided by the embodiment of the present disclosure, when processing the service flow SF1→SF3→SF4, SFC Proxy consumes a total of 1 decapsulation and 1 encapsulation corresponding resources. Compared with the related art that requires 2 decapsulation and 2 encapsulation corresponding resources, the method of the present disclosure can save computer resources, reduce computer processing time, and reduce computer processing delay.
[0072] In addition, the more SFs matched on the SFC Proxy, the more processing delay is saved, in a linear relationship.
[0073] In the data processing method provided by the embodiment of the present disclosure, the first proxy node can obtain the first SI and the second SI. If the first proxy node finds that the first SI and the second SI are both connected to the first proxy node, the first proxy node forwards the message to the first SI for processing. After receiving the message returned by the first SI, there is no need to encapsulate and unpack, and the message returned by the first SI can be directly forwarded to the second SI for processing, thereby saving computer resources, reducing computer processing time, reducing computer processing delay, and improving computer processing efficiency.
[0074] Specifically, in some embodiments, the SFC Proxy improved by the embodiments of the present disclosure, in addition to identifying a single SI in the SPI, also adds the function of identifying other SIs subsequent to a single SI. If it is found that the SF represented by the next SI or the following SFs are still connected to the SFC Proxy, the SFC Proxy does not perform the operation of encapsulating the NSH header and forwarding it to the SFF after processing the SI, but directly forwards it to the next hop, thereby reducing the number of encapsulation and decapsulation times between the SFC Proxy and the SFF from N (N is the number of SFs matched on the SFC Proxy) to 1, thereby achieving the purpose of reducing processing delay and improving network processing efficiency.
[0075] It should also be understood that the above is only to help those skilled in the art better understand the embodiments of the present disclosure, and is not intended to limit the scope of the embodiments of the present disclosure. Based on the above examples given, those skilled in the art can obviously make various equivalent modifications or changes. For example, some steps in the above method may not be necessary, or some new steps may be added. Or a combination of any two or any multiple embodiments of the above. Such modifications, changes or combined solutions also fall within the scope of the embodiments of the present disclosure.
[0076] It should also be understood that the above description of the embodiments of the present disclosure focuses on emphasizing the differences between the various embodiments, and the same or similar points that are not mentioned can be referenced to each other. For the sake of brevity, they will not be repeated here.
[0077] It should also be understood that 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 embodiment of the present disclosure.
[0078] It should also be understood that in the various embodiments of the present disclosure, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their internal logical relationships.
[0079] The above text describes in detail an example of a data processing method provided by the present disclosure. It is understandable that, in order to implement the above functions, the computer device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present disclosure 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 the present disclosure.
[0080] An embodiment of the present disclosure provides a data processing system, which may include a first proxy node, an SFF, a first SF, and a second SF.
[0081] Among them, the SFF is used to send a first message to the first proxy node; the first proxy node is used to receive the first message and obtain the first SI and the second SI, wherein the second SI is the next SI of the first SI, the first SI represents the first SF, the second SI represents the second SF, and the first SI is connected to the first proxy node; the first proxy node is also used to forward the first message to the first SF; the first SF is used to receive the first message, process the first message to obtain the second message, and forward the second message to the first proxy node; the first proxy node is also used to receive the second message, and if the second SF is connected to the first proxy node, forward the second message to the second SF; the second SF is used to receive the second message and process the second message.
[0082] In an exemplary embodiment, the first proxy node is further configured to encapsulate the second message using NSH if the second SF is not connected to the first proxy node; and forward the encapsulated second message to the SFF.
[0083] In an exemplary embodiment, the first message is encapsulated with a network service header NSH, and the NSH includes a service function path identifier SPI; the first proxy node is also used to decapsulate the first message to obtain a first intermediate message, wherein the first intermediate message does not include the NSH; the first proxy node is also used to forward the first intermediate message to the first SF, so that the first SF processes the first intermediate message to obtain a second message.
[0084] In an exemplary embodiment, the first proxy node is further used to identify the SPI to obtain the first SI and the second SI.
[0085] In an exemplary embodiment, the first proxy node is further configured to remove the NSH in the first message to obtain the first intermediate message.
[0086] For details not disclosed in the embodiments of the system of the present disclosure, reference may be made to the description of the above method embodiments, and the present disclosure will not go into details here.
[0087] The following are embodiments of the device disclosed herein, which can be used to execute the method embodiments disclosed herein. For details not disclosed in the device embodiments disclosed herein, please refer to the method embodiments disclosed herein.
[0088] Figure 3 is a block diagram of a data processing device according to an exemplary embodiment.
[0089] like Figure 3As shown, the data processing device 300 may include: a first message receiving module 302 , an SI acquiring module 304 , a first message forwarding module 306 , a second message receiving module 308 and a second message forwarding module 310 .
[0090] Among them, the first message receiving module 302 is used to receive the first message sent by the service function forwarder SFF; the SI acquisition module 304 is used to obtain the first service index SI and the second SI, wherein the second SI is the next SI of the first SI, the first SI represents the first service function SF, the second SI represents the second SF, and the first SI is connected to the first proxy node; the first message forwarding module 306 is used to forward the first message to the first SF, so that the first SF processes the first message to obtain the second message; the second message receiving module 308 is used to receive the second message forwarded by the first SF; the second message forwarding module 310 is used to forward the second message to the second SF if the second SF is connected to the first proxy node, so that the second SF processes the second message.
[0091] In an exemplary embodiment, the data processing device 300 further includes: an encapsulation module, configured to encapsulate the second message using the NSH if the second SF is not connected to the first proxy node; and forward the encapsulated second message to the SFF.
[0092] In an exemplary embodiment, the first message is encapsulated with a network service header NSH, and the NSH includes a service function path identifier SPI; the data processing device 300 also includes: an unpacking module, used to unpack the first message to obtain a first intermediate message, wherein the first intermediate message does not include the NSH; the first message forwarding module 306 is also used to forward the first intermediate message to the first SF, so that the first SF processes the first intermediate message to obtain a second message.
[0093] In an exemplary embodiment, the SI acquisition module 304 is further configured to identify the SPI to obtain the first SI and the second SI.
[0094] In an exemplary embodiment, the decapsulation module is further configured to remove the NSH in the first message to obtain the first intermediate message.
[0095] It should be noted that the block diagrams shown in the above figures are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor terminal devices and / or microcontroller terminal devices.
[0096] Figure 4is a schematic diagram of a structure of an electronic device according to an exemplary embodiment. It should be noted that: Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0097] like Figure 4 As shown, electronic device 400 includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage portion 408 into a random access memory (RAM) 403. In RAM 403, various programs and data required for the operation of system 400 are also stored. CPU 401, ROM 402 and RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to bus 404.
[0098] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage section 408 as needed.
[0099] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 409, and / or installed from a removable medium 411. When the computer program is executed by a central processing unit (CPU) 401, the above-mentioned functions defined in the system of the present disclosure are executed.
[0100] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, terminal device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, a terminal device or a device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, a terminal device or a device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0101] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0102] The units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. The described units may also be provided in a processor, for example, may be described as: a processor includes a sending unit, an acquisition unit, a determination unit, and a first processing unit. Among them, the names of these units do not constitute a limitation on the units themselves in certain cases, for example, the sending unit may also be described as "a unit that sends a picture acquisition request to the connected server."
[0103] As another aspect, the present disclosure further provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments; or may exist independently without being assembled into the electronic device. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the following embodiments. For example, the electronic device may implement the following Figure 2 The steps shown.
[0104] According to one aspect of the present disclosure, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in various optional implementations of the above-mentioned embodiments.
[0105] It should be understood that any number of elements in the drawings of the present disclosure is for illustration rather than limitation, and any naming is only for distinction rather than having any limiting meaning.
[0106] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0107] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A data processing method, characterized in that: The method is executed by a first proxy node, the first proxy node is an SFC Proxy, and the method includes: Receive a first message sent by a service function forwarder SFF, wherein the first message is encapsulated with a network service header NSH, and the NSH includes a service function path identifier SPI; Identify the SPI to obtain a first service index SI and a second SI, wherein the second SI is a next SI of the first SI, the first SI represents a first service function SF, the second SI represents a second SF, and the first SI is connected to the first proxy node; forwarding the first message to the first SF, so that the first SF processes the first message to obtain a second message; receiving the second message forwarded by the first SF; If the second SF is connected to the first proxy node, the second message is forwarded to the second SF, so that the second SF processes the second message.
2. The method according to claim 1, characterized in that Also includes: If the second SF is not connected to the first proxy node, use the NSH to encapsulate the second message; The encapsulated second message is forwarded to the SFF.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: Decapsulating the first message to obtain a first intermediate message, wherein the first intermediate message does not include the NSH; Forwarding the first message to the first SF so that the first SF processes the first message to obtain a second message, including: The first intermediate message is forwarded to the first SF, so that the first SF processes the first intermediate message to obtain a second message.
4. The method according to claim 3, characterized in that Decapsulating the first message to obtain a first intermediate message includes: The NSH in the first message is removed to obtain the first intermediate message.
5. A data processing system, characterized in that: The system includes a first proxy node, an SFF, a first SF, and a second SF, wherein the first proxy node is an SFC Proxy; The SFF is used to send a first message to the first proxy node, the first message is encapsulated with a network service header NSH, and the NSH includes a service function path identifier SPI; The first proxy node is used to receive the first message, identify the SPI, obtain a first service index SI and a second SI, wherein the second SI is a next SI of the first SI, the first SI represents the first SF, the second SI represents the second SF, and the first SI is connected to the first proxy node; The first proxy node is further configured to forward the first message to the first SF; The first SF is used to receive the first message, process the first message to obtain a second message, and forward the second message to the first proxy node; The first proxy node is further configured to receive the second message, and if the second SF is connected to the first proxy node, forward the second message to the second SF; The second SF is used to receive the second message and process the second message.
6. The system according to claim 5, characterized in that The first proxy node is further configured to, if the second SF is not connected to the first proxy node, use the NSH to encapsulate the second message; and forward the encapsulated second message to the SFF.
7. A data processing device, characterized in that: Applied to a first proxy node, the first proxy node is SFCProxy, including: A first message receiving module is used to receive a first message sent by a service function forwarder SFF, wherein the first message is encapsulated with a network service header NSH, and the NSH includes a service function path identifier SPI; An SI acquisition module is configured to identify the SPI, obtain a first service index SI and a second SI, wherein the second SI is a next SI of the first SI, the first SI represents a first service function SF, the second SI represents a second SF, and the first SI is connected to the first proxy node; A first message forwarding module, configured to forward the first message to the first SF, so that the first SF processes the first message to obtain a second message; A second message receiving module, configured to receive the second message forwarded by the first SF; The second message forwarding module is configured to forward the second message to the second SF if the second SF is connected to the first proxy node, so that the second SF processes the second message.
8. An electronic device, characterized in that: include: at least one processor; A storage device, used to store at least one program, when the at least one program is executed by the at least one processor, enables the at least one processor to implement the method according to any one of claims 1 to 4.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
