A multi-network modal data forwarding method, device, medium and equipment

By employing a pre-trained action recognition model in the 5G core network architecture and adjusting the data protocol to adapt to different network modes, the protocol incompatibility problem of multi-network mode data forwarding in the 5G core network architecture is solved, and compatible forwarding of multi-network mode data is achieved.

CN117714557BActive Publication Date: 2026-07-21ZHEJIANG LAB
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ZHEJIANG LAB
Filing Date
2023-12-14
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

The existing 5G core network architecture cannot effectively forward data from multiple network modes, resulting in protocol incompatibility during data forwarding and preventing data from being correctly forwarded to the target network mode.

Method used

A pre-trained action recognition model is adopted. Through signaling interaction between the control plane and the user plane, detection rules and forwarding execution rules are determined. Based on the differences in the protocol stack of the data to be forwarded, the original protocol is adjusted to adapt to the forwarding requirements of different network modes.

Benefits of technology

It enables compatible forwarding of data across multiple network modes, breaking the limitation of existing technologies where data forwarding can only be done according to fixed protocols, and enabling the user plane to adapt to the data forwarding needs of different network modes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117714557B_ABST
    Figure CN117714557B_ABST
Patent Text Reader

Abstract

The specification discloses a multi-network mode data forwarding method, device, medium and equipment. According to the to-be-forwarded data, the forwarding direction of the to-be-forwarded data and the protocol stack of the user plane, the original protocol and the forwarding protocol of the to-be-forwarded data are determined. According to the difference between the original protocol and the forwarding protocol, the protocol to be added and the protocol to be deleted in the original protocol are determined, and the protocols in the original protocol are added and deleted to obtain the corresponding forwarding protocol. The user plane can forward the to-be-forwarded data according to the forwarding protocol. The limitation that the data forwarding in the existing 5G communication technology can only forward the to-be-forwarded data according to the fixed protocol is broken. When multiple to-be-forwarded data needing to be forwarded to different network modes arrive at the user plane, the user plane can also forward the to-be-forwarded data, realizing the compatibility of multi-network mode data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of mobile communications, and in particular to a multi-network mode data forwarding method, apparatus, medium and device. Background Technology

[0002] With the development of mobile communication, we have successfully entered the era of 5th Generation Mobile Communication Technology (5G). The current 5G network architecture typically consists of an access network for acquiring data, a bearer network for data transmission, and a core network for managing data. The existing 5G core network generally adopts an architecture that separates the control plane (Session Management Function, SMF) and user plane (User Plane Function, UPF) of the packet forwarding control protocol to achieve data forwarding and reporting.

[0003] In the prior art, when data sent by a user is received, the SMF sends a Packet Detection Rule (PDR) and a Forwarding Action Rule (FAR) to the UPF according to the protocol of the data network segment. This enables the UPF to detect and forward the data based on the PDR and FAR according to the defined forwarding protocol, thereby forwarding the user's data to the data network.

[0004] However, when forwarding data, the UPF (User-Defined Forwarding Function) relies on a predetermined protocol issued by the SMF (Signal-Defined Forwarding Function). When the data network employs multiple protocols, i.e., contains multiple network modes, existing methods cannot forward data with different forwarding protocols. Therefore, how to perform multi-modal protocol matching during data forwarding has become a pressing issue. This specification provides a multi-network-mode data forwarding method, apparatus, medium, and device. Summary of the Invention

[0005] This specification provides a training method, apparatus, and device for a pre-trained action recognition model, which partially solves the aforementioned problems existing in the prior art.

[0006] The following technical solution is adopted in this specification:

[0007] This specification provides a multi-network modal data forwarding method, which is applied to the user plane and includes:

[0008] In response to signaling sent by the control plane, detection rules and forwarding execution rules are determined. The signaling is generated by the control plane through a session established based on data forwarding instructions, according to the detection rules and forwarding execution rules. The control plane pre-determines a forwarding policy based on the user plane's protocol stack, and determines the detection rules and forwarding execution rules based on the forwarding policy. The protocol stack includes the user plane's intranet protocol stack and public network protocol stack. The intranet is the data forwarding channel between the user terminal and the user plane, and the public network is the data forwarding channel between the user plane and the data network terminal.

[0009] Receive data to be forwarded and determine the original protocol of the data to be forwarded and the corresponding forwarding protocol.

[0010] Based on the detection rules and the forwarding execution rules, the original protocol is adjusted to the forwarding protocol;

[0011] The data to be forwarded is forwarded according to the adjusted forwarding protocol.

[0012] Optionally, based on the data to be forwarded, the original protocol and the corresponding forwarding protocol of the data to be forwarded are determined, specifically including:

[0013] Based on the data to be forwarded, determine the forwarding direction of the data to be forwarded;

[0014] When the forwarding direction of the data to be forwarded is from the user terminal to the data network terminal, the original protocol of the data to be forwarded is determined according to the intranet protocol stack; the corresponding destination address is determined according to the data to be forwarded; and the forwarding protocol corresponding to the data to be forwarded is determined according to the destination address and the public network protocol stack.

[0015] When the forwarding direction of the data to be forwarded is from the data network end to the user end, the original protocol of the data to be forwarded is determined according to the public network protocol stack; the corresponding destination address is determined according to the data to be forwarded; and the forwarding protocol corresponding to the data to be forwarded is determined according to the destination address and the internal network protocol stack.

[0016] Optionally, the original protocol is adjusted to the forwarding protocol according to the detection rules and the forwarding execution rules, specifically including:

[0017] Generate the original identifier based on the data to be forwarded;

[0018] According to the detection rules, determine the protocol to be deleted when converting the original protocol to the forwarding protocol, and change the original identifier to the first identifier according to the protocol to be deleted;

[0019] Based on the first identifier, the original protocol is adjusted according to the forwarding execution rules to obtain an intermediate protocol;

[0020] According to the detection rules, determine the protocol to be added when converting the original protocol to the forwarding protocol, and change the first identifier to the second identifier according to the protocol to be added;

[0021] The forwarding protocol is obtained by adjusting the intermediate protocol according to the second identifier based on the forwarding execution rule.

[0022] Optionally, according to the detection rules, a protocol to be deleted is determined when the original protocol is converted into the forwarding protocol, and the original identifier is changed to a first identifier according to the protocol to be deleted, specifically including:

[0023] Each bit in the original identifier, except for the first bit, is assigned to a protocol layer in the intranet protocol stack and the public network protocol stack, respectively.

[0024] Based on the detection rules, determine whether protocol deletion is required when converting the original protocol to the forwarding protocol;

[0025] If so, determine the protocol to be deleted, change the first bit of the original identifier to a first preset value, change the bit corresponding to the protocol to be deleted to a second preset value, change the other bits to a third preset value, and determine the first identifier;

[0026] If not, change each bit of the original identifier to a third preset value to determine the first identifier.

[0027] Optionally, based on the detection rules, a protocol to be added when converting the original protocol to the forwarding protocol is determined, and the first identifier is changed to a second identifier according to the protocol to be added, specifically including:

[0028] Based on the protocol stack, determine the candidate protocols;

[0029] Establish a protocol table based on the candidate protocols and their corresponding unique identifiers;

[0030] Each bit in the original identifier, except for the first bit, is assigned to a protocol layer in the intranet protocol stack and the public network protocol stack, respectively.

[0031] Based on the detection rules, determine whether protocol addition is required when the original protocol is converted into the forwarding protocol;

[0032] If so, change the first bit of the first identifier to the first preset value, determine the protocol layer corresponding to the protocol to be added, and for each protocol layer to be added, determine the protocol corresponding to the protocol layer to be added according to the destination address of the data to be forwarded, and according to the protocol table, change the bit of the protocol layer to be added corresponding to the first identifier to the unique identifier of the protocol to be added, and adjust the other bits to the third preset value. The adjusted first identifier is used as the second identifier.

[0033] If not, adjust the bits corresponding to the first identifier in each layer to the third preset value.

[0034] A multi-network modal data forwarding method, the method being applied to the control plane, includes:

[0035] The protocol stack of the user plane is determined, a forwarding policy is determined based on the protocol stack, and detection rules and forwarding execution rules are determined based on the forwarding policy. The protocol stack includes the intranet protocol stack and the public network protocol stack of the user plane. The intranet is the data forwarding channel between the user terminal and the user plane, and the public network is the data forwarding channel between the user plane and the data network terminal.

[0036] In response to a data forwarding instruction, a session is established, and signaling is generated through the session to represent the detection rules and the forwarding execution rules.

[0037] The signaling is sent to the user plane, so that after receiving the data to be forwarded, the user plane determines the original protocol of the data to be forwarded and the corresponding forwarding protocol, determines the detection rule and the forwarding execution rule according to the signaling, generates signaling to adjust the original protocol to the forwarding protocol, and forwards the data to be forwarded according to the adjusted forwarding protocol.

[0038] Optionally, a data forwarding strategy is determined based on the protocol stack, specifically including:

[0039] Based on the differences between the intranet protocol stack and the public network protocol stack, determine the protocols that need to be added and / or deleted when converting from the intranet protocol stack to the public network protocol stack, and the protocols that need to be added and / or deleted when converting from the public network protocol stack to the intranet protocol stack.

[0040] Determine the data forwarding strategy based on the identified protocols that need to be added and / or removed.

[0041] A multi-network-modal data forwarding apparatus, the apparatus being used to perform user plane operations, comprising:

[0042] The signaling receiving module is used to respond to signaling sent by the control plane, determine detection rules and forwarding execution rules, wherein the signaling is generated by the control plane through a session established based on data forwarding instructions, according to the detection rules and forwarding execution rules, wherein the control plane pre-determines a forwarding policy based on the protocol stack of the user plane, and determines the detection rules and forwarding execution rules based on the forwarding policy, wherein the protocol stack includes the user plane's intranet protocol stack and public network protocol stack, the intranet being the data forwarding channel between the user terminal and the user plane, and the public network being the data forwarding channel between the user plane and the data network terminal;

[0043] The data receiving module is used to receive data to be forwarded and determine the original protocol and the corresponding forwarding protocol of the data to be forwarded.

[0044] The adjustment module is used to adjust the original protocol to the forwarding protocol according to the detection rules and the forwarding execution rules;

[0045] The transmission module is used to forward the data to be forwarded according to the adjusted forwarding protocol.

[0046] A multi-network mode data forwarding apparatus, the apparatus being used to perform control plane operations, comprising:

[0047] The determination module is used to determine the protocol stack of the user plane, determine the forwarding policy based on the protocol stack, and determine the detection rules and forwarding execution rules based on the forwarding policy. The protocol stack includes the intranet protocol stack and the public network protocol stack of the user plane. The intranet is the data forwarding channel between the user terminal and the user plane, and the public network is the data forwarding channel between the user plane and the data network terminal.

[0048] The response module is used to establish a session in response to a data forwarding instruction, and generate signaling through the session for the detection rules and the forwarding execution rules;

[0049] The forwarding module is used to send the signaling to the user plane, so that after receiving the data to be forwarded, the user plane determines the original protocol of the data to be forwarded and the corresponding forwarding protocol, determines the detection rules and the forwarding execution rules according to the signaling, generates signaling to adjust the original protocol to the forwarding protocol, and forwards the data to be forwarded according to the adjusted forwarding protocol.

[0050] This specification provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described training method for a pre-trained action recognition model and can implement at least one of the user plane and control plane described above.

[0051] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the above-described training method for a pre-trained action recognition model and can implement at least one of the above-described user plane and control plane.

[0052] The above-mentioned technical solutions adopted in this specification can achieve the following beneficial effects:

[0053] In a multi-network mode data forwarding method provided in this specification, the original protocol and forwarding protocol of the data to be forwarded are determined based on the data to be forwarded, the forwarding direction of the data to be forwarded, and the protocol stack of the user plane. Then, based on the differences between the original protocol and the forwarding protocol, the protocols to be added and deleted in the original protocol are determined, and the protocols in the original protocol are added or deleted to obtain the corresponding forwarding protocol, so that the user plane can forward the data to be forwarded according to the forwarding protocol.

[0054] As can be seen from the above method, based on the data to be forwarded, the forwarding direction of the data to be forwarded, and the protocol stack of the user plane, the protocols to be added or deleted in the original protocol are determined. This allows the user plane to forward the data to be forwarded according to the forwarding protocol obtained after adding or deleting the protocol. This breaks the limitation in the existing 5G communication technology that data forwarding can only be based on a fixed protocol. When the data to be forwarded that needs to be forwarded to different network modes arrives at the user plane, the user plane can also forward the data to be forwarded, thus achieving compatibility of multi-network mode data. Attached Figure Description

[0055] The accompanying drawings, which are included to provide a further understanding of this specification, are a part of this specification. The illustrative embodiments described herein are used to explain this specification and are not intended to unduly limit it. In the drawings:

[0056] Figure 1 This is a schematic diagram of a data forwarding process provided in an embodiment of this specification;

[0057] Figure 2 This document provides a schematic diagram of a multi-network modal data forwarding method based on theoretical principles.

[0058] Figure 3 This specification provides a flowchart illustrating a multi-network mode data forwarding system as an embodiment.

[0059] Figure 4 This is a schematic diagram of an identifier generation process provided in an embodiment of this specification;

[0060] Figure 5 A schematic diagram of a first identifier provided for an embodiment of this specification;

[0061] Figure 6 A schematic diagram illustrating a second identifier provided in an embodiment of this specification;

[0062] Figure 7 This is a schematic diagram showing the protocols and corresponding identifiers in an intranet protocol stack and a public network protocol stack provided in the embodiments of this specification;

[0063] Figure 8 A flowchart illustrating a multi-network modality data forwarding method provided in the embodiments of this specification;

[0064] Figure 9 A flowchart illustrating a multi-network modality data forwarding method provided in the embodiments of this specification;

[0065] Figure 10 A schematic diagram of a multi-network mode data forwarding device provided in the embodiments of this specification;

[0066] Figure 11 A schematic diagram of a multi-network mode data forwarding device provided in the embodiments of this specification;

[0067] Figure 12 The corresponding information provided in this specification Figure 3 A schematic diagram of an electronic device. Detailed Implementation

[0068] The existing 5G core network architecture typically adopts an architecture that separates the control plane (SMF) and the user plane (UPF). The SMF generates control signaling based on its own network mode (i.e., protocol stack), enabling the user plane to modify the protocol of the data input into the user plane based on the received control signaling. The user plane then forwards the data based on the modified protocol.

[0069] Taking the forwarding of data from the user equipment (UE) to the data network (DN) as an example, such as Figure 1 As shown, Figure 1This diagram illustrates a data forwarding process provided in an embodiment of this specification. When data to be forwarded is initiated by the UE, the SMF generates control signaling based on the packet forwarding control protocol (TS29.244, PFCP) according to a pre-determined UPF data forwarding protocol. The UPF receiving the signaling then determines the protocol to be modified in the original protocol of the data after passing through the intranet protocol stack, based on the detection rule (PDR) and forwarding action rule (FAR) included in the PFCP. After the data to be forwarded passes through the intranet protocol stack, a Layer 5 protocol header (the original protocol) is inserted into the data. Then, according to the PFCP, the headers of the fourth and fifth layers of the original protocol are removed, and the header of the third layer is changed to the Internet Protocol Address (IP address) of the destination DN. The data is then forwarded according to the modified protocol.

[0070] However, in current 5G communication scenarios, with increasing user demands, data often needs to be forwarded to different DNs (Network Controllers). These different DNs correspond to different network protocol stacks, i.e., different network modes. During data forwarding, especially in high-concurrency 5G scenarios, such as... Figure 2 In the scenario shown, Figure 2 This diagram illustrates a multi-network modality data forwarding method provided in this specification. In the diagram, DN-k and DN-m represent data network endpoints of two different network modalities. Since the protocols corresponding to DN-k and DN-m are different, existing methods can only send data to DN-k or DN-m according to a fixed protocol. This can lead to data that should be forwarded to DN-k being forwarded to DN-m or failing to forward due to protocol incompatibility. Therefore, this specification provides a multi-network modality data forwarding method to achieve compatibility between multiple network modalities and to forward data with different network modalities in parallel. For ease of description, DN-k and DN-m will be used hereafter. Figure 1 Taking the structure of the UPF shown as an example, the data forwarding method is described.

[0071] To make the objectives, technical solutions, and advantages of this specification clearer, the technical solutions of this specification will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this specification, and not all of them. Based on the embodiments in this specification, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.

[0072] The technical solutions provided by the various embodiments of this specification are described in detail below with reference to the accompanying drawings.

[0073] like Figure 3 As shown, Figure 3 This is a flowchart illustrating a multi-network mode data forwarding system provided in an embodiment of this specification.

[0074] S300: The control plane determines the protocol stack of the user plane, determines the forwarding policy based on the protocol stack, and determines the detection rules and forwarding execution rules based on the forwarding policy. The protocol stack includes the intranet protocol stack and the public network protocol stack of the user plane. The intranet is the data forwarding channel between the user terminal and the user plane, and the public network is the data forwarding channel between the user plane and the data network terminal.

[0075] In this description, which includes one or more embodiments, the specific computing device executing the multi-network modality data forwarding method is not limited. It can be any device used to implement the SMF or UPF in a 5G network architecture, such as servers, personal terminals, and other computing devices. Since Network Function Virtualization (NFV) is typically used to generate SMF and UPF in existing 5G core network architectures, decoupling network functions from hardware devices, the computing device executing this multi-network modality data forwarding method can also be a computing device capable of deploying NFV and implementing corresponding NFV functions. Because NFV is typically deployed on servers, the following description will use a server executing the multi-network modality data forwarding method as an example.

[0076] To ensure correct data forwarding, the server instructs the SMF to first determine the user plane's internal network protocol stack and public network protocol stack. Then, based on the differences between the UPF's internal network protocol stack and the public network protocol stack, it determines which protocols need to be added or removed when converting from the internal network protocol stack to the public network protocol stack, or vice versa. Based on these determined protocols, a data forwarding strategy is then established.

[0077] Of course, since the destination address of the data to be forwarded is uncertain, the forwarding strategy determined above is only a forwarding strategy, not a specific forwarding process. Therefore, the SMF generates corresponding detection rules and forwarding execution rules based on the determined forwarding strategy to guide the UPF in adding or deleting protocols for the data to be forwarded.

[0078] Specifically, when determining the internal network protocol stack and public network protocol stack of the UPF, the structure of the UPF is as follows: Figure 1 As shown, the data channel includes both intranet and public network. Generally, the data channel between the user terminal and the UPF is referred to as the intranet, and the data channel between the UPF and the data network terminal is referred to as the public network. Each data channel typically consists of a protocol stack composed of multiple layers of protocols. It should be noted that in one or more embodiments of this specification, the protocol stacks for the intranet and public network are not limited. Figure 1 This is merely one embodiment provided in this specification.

[0079] When determining the PDR and FAR based on the data forwarding strategy, the PDR and FAR are generated according to the determined data forwarding strategy. Specifically, the PDR determines the forwarding direction of the data based on the destination address in the data to be forwarded, and determines the differences between the original protocol and the forwarding protocol based on the determined forwarding direction. It also determines the protocols to be added or deleted, and the corresponding protocol layers, if the original protocol is converted to the forwarding protocol. The FAR is the forwarding execution rule corresponding to the PDR. Based on the protocols to be added or deleted and the corresponding protocol layers determined by the PDR, the original protocol is adjusted. In one or more embodiments of this specification, the specific definition and generation process of the FAR and PDR are not limited, nor is the content of the generated FAR and PDR limited.

[0080] S302: The control plane establishes a session in response to the data forwarding instruction, generates signaling through the detection rules and the forwarding execution rules through the session, and sends the signaling to the user plane.

[0081] When the server receives data to be forwarded, it responds to the data forwarding command by having the SMF establish a session with the UPF and forward the PDR and FAR to the UPF via signaling, so that the UPF can forward the data based on the received PDR and FAR.

[0082] Specifically, after receiving the data to be forwarded, the server establishes corresponding protocol stacks at the SMF and UPF respectively. It adds protocol layers to PDR and FAR through the protocol stack at the SMF, generates corresponding signaling, and then passes the signaling to the protocol stack at the UPF.

[0083] S304: The user plane responds to the signaling sent by the control plane, determines the detection rules and forwarding execution rules, and receives the data to be forwarded.

[0084] S306: The user plane determines the original protocol and the corresponding forwarding protocol of the data to be forwarded.

[0085] After receiving signaling from SMF, UPF uses its own protocol stack to decode the protocol of the received signaling layer by layer to determine PDR and FAR.

[0086] Then, after receiving the data to be forwarded, the server needs to determine the original protocol and the corresponding forwarding protocol of the data to be forwarded in order to achieve correct forwarding of the data. Then, based on the PDR, it determines the difference between the forwarding protocol and the original protocol, determines how to modify the original protocol, and then modifies the original protocol based on the FAR, so that the UPF can forward the data to be forwarded according to the modified original protocol, which is the forwarding protocol.

[0087] It should be noted that signaling and data to be forwarded are not necessarily synchronized because they come from different sources. Data to be forwarded is forwarded from the user terminal or data network to the user plane, while signaling is sent from the SMF to the UPF.

[0088] Specifically, when the data forwarding direction is from the UE to the DN, the protocol headers of the original protocol added after the data to be forwarded through the intranet are determined according to the intranet protocol stack. Then, based on the destination address in the data to be forwarded and the corresponding public network protocol stack, the corresponding forwarding protocol is determined, for example... Figure 1 The internal network protocol stack and the public network protocol stack shown can be identified as follows: the original protocols are GTP-U at layer 5, UDP at layer 4, internal network IP addresses at layer 3, and fixed protocols at layers 2 and 1. The forwarding protocols are the IP addresses of the DN at layer 3 and fixed protocols at layers 2 and 1.

[0089] When the data forwarding direction is from the DN end to the UE end, the protocol headers of the original protocol added after the data to be forwarded through the public network are determined according to the public network protocol stack. Then, the corresponding forwarding protocol is determined according to the destination address in the data to be forwarded and the corresponding internal network protocol stack. Figure 1 The internal network protocol stack and public network protocol stack shown are defined as follows: the original protocol is the public network IP address at layer 3 and the fixed protocols at layers 2 and 1; the forwarding protocol is defined as GTP-U at layer 5, UDP at layer 4, the UE IP address at layer 3 and the fixed protocols at layers 2 and 1.

[0090] S308: The user plane adjusts the original protocol to the forwarding protocol according to the detection rules and the forwarding execution rules.

[0091] Because the UPF's internal network protocol stack and public network protocol stack are often different, the determined original protocol and forwarding protocol are also different. When data is forwarded from the UE to the DN, since the public network protocol stack only has three layers while the internal network protocol stack has five layers, the public network protocol stack cannot determine the data to be forwarded based on the original protocol. Therefore, data forwarding cannot be achieved solely based on the determined original protocol. Thus, the protocols to be deleted and added should be determined based on the PDR and the determined forwarding protocol. Then, based on the FAR, the original protocol is modified. The modification action is generally deletion or addition, or it can be deletion followed by addition. Of course, whether protocols are added or deleted depends on the UPF's internal and public network protocol stacks and the direction of data forwarding.

[0092] After determining the protocol header to be deleted, the protocol to be deleted can be directly deleted from the original protocol of the data after being forwarded through the intranet or public network according to FAR. Alternatively, an identifier can be generated based on the determined protocol to be deleted before the data is forwarded through the intranet protocol stack or the public network protocol stack, and the generated identifier can be inserted into the data to be forwarded, so that UPF can determine the protocol to be deleted based on the identifier in the data to be forwarded.

[0093] During data forwarding, it is necessary not only to identify the protocols to be deleted, but also to determine whether a protocol needs to be added to the original protocol. When adding a protocol, it is necessary not only to identify the protocol to be added, but also to identify the protocol layer in which the added protocol resides.

[0094] Specifically, the protocol layer to be added, and the protocol layer containing the protocol to be added, are determined based on the destination address of the data to be forwarded and the PDR. Then, the FAR is used to add the protocol to be added to the corresponding protocol layer of the original protocol. Alternatively, a corresponding identifier can be generated after determining the protocol to be added and its corresponding protocol layer, and inserted into the data to be forwarded, so that the UPF can add the protocol to the corresponding protocol layer based on the identifier in the data to be forwarded.

[0095] S310: The user plane forwards the data to be forwarded according to the adjusted forwarding protocol.

[0096] After adjustment, the forwarding protocol obtained by UPF forwards the data to be forwarded, which contains the forwarding protocol, to the corresponding internal network protocol stack or public network protocol stack. Then, the corresponding internal network protocol stack or public network protocol stack determines the data to be forwarded by removing the forwarding protocol layer by layer, and then forwards the data to the corresponding destination address.

[0097] based on Figure 3The system illustrates a multi-network mode data forwarding system. Based on the data to be forwarded, the forwarding direction of the data to be forwarded, and the protocol stack of the user plane, it determines the original protocol and the forwarding protocol of the data to be forwarded. Then, based on the differences between the original protocol and the forwarding protocol, it determines the protocols to be added and deleted in the original protocol, and adds or deletes the protocols in the original protocol to obtain the corresponding forwarding protocol, so that the user plane can forward the data to be forwarded according to the forwarding protocol.

[0098] As can be seen from the above method, based on the data to be forwarded, the forwarding direction of the data to be forwarded, and the protocol stack of the user plane, the protocols to be added or deleted in the original protocol are determined. This allows the user plane to forward the data to be forwarded according to the forwarding protocol obtained after adding or deleting the protocols. This breaks the limitation in the existing 5G communication technology that data forwarding can only be based on a fixed protocol. This enables the user plane to forward multiple data to be forwarded that need to be forwarded to different network modes when they arrive at the user plane, thus achieving compatibility of multi-network mode data.

[0099] In step S306, when the UPF adjusts the original protocol to a forwarding protocol based on the PDR and FAR, it can also generate an original identifier based on the data to be forwarded, determine the protocol to be deleted when converting the original protocol to a forwarding protocol based on the PDR, change the original identifier to a first identifier based on the protocol to be deleted, adjust the original protocol based on the first identifier through FAR to obtain an intermediate protocol, determine the protocol to be added when converting the original protocol to a forwarding protocol based on the PDR, change the first identifier to a second identifier based on the protocol to be added, adjust the intermediate protocol based on the second identifier through FAR to obtain a forwarding protocol.

[0100] Specifically, based on the format of the data to be forwarded, a specified number of original identifiers are generated. After determining the protocol to be deleted, a first identifier is generated based on the determined protocol to be deleted and the protocol layer it resides in. This first identifier has the same format as the original identifier and is used by FAR to determine the protocol to be deleted and the protocol layer it resides in, and then delete the protocol. After determining the protocol to be added, a second identifier is generated based on the protocol to be added and the protocol layer it resides in. This second identifier is used by FAR to determine the protocol to be added and the protocol layer it resides in, generate a second identifier, and then add the protocol.

[0101] Optionally, after determining the protocol to be deleted and its layer number, the ASCII code corresponding to that layer number is determined, and a data stream is generated based on the corresponding ASCII code. For example, if the protocol to be deleted is a layer 3 protocol, the code corresponding to "3" is determined to be "00110011" according to the code table, and then "00110011" is inserted into the data to be forwarded. Of course, in addition to ASCII encoding, a corresponding data identifier can also be generated through hash encryption calculation, etc., and inserted into the data to be forwarded. It should be noted that the above is only an optional embodiment provided by this specification. In this specification, the specific form and content of the identifier inserted into the data to be forwarded are not limited, as long as the protocol layer to be deleted or added can be determined based on the inserted identifier.

[0102] Optionally, the bits other than the first bit in the original identifier are respectively mapped to the protocol layers in the intranet protocol stack and the public network protocol stack. According to PDR, it is determined whether protocol deletion is required when converting the original protocol to a forwarding protocol. If yes, the protocol to be deleted is determined, the first bit of the original identifier is changed to the first preset value, the bit corresponding to the protocol to be deleted is changed to the second preset value, and the other bits are changed to the third preset value to determine the first identifier. If no, each bit of the original identifier is changed to the third preset value to determine the first identifier.

[0103] It should be noted that when mapping the bits other than the first bit in the original identifier to protocol layers in the internal network protocol stack and the public network protocol stack, it can be that each bit except the first bit in the original identifier corresponds to a protocol layer in the internal network protocol stack and the public network protocol stack respectively, or it can be that each bit except the first bit in the original identifier corresponds to a protocol layer in the internal network protocol stack, and then the remaining bits are mapped to a protocol layer in the public network protocol stack. In other words, one bit in the original identifier (excluding the first bit) can simultaneously correspond to a protocol layer in both the public network protocol stack and the internal network protocol stack.

[0104] Furthermore, based on the same approach, a specified number of bits can be generated as an original identifier according to the format of the data to be forwarded, where all bits in the original identifier are empty. Each bit in the original identifier, except for the first bit, is mapped to a protocol layer in the internal network protocol stack and the public network protocol stack, respectively. According to the PDR (Protocol Deletion Decision), it is determined whether protocol deletion is required when converting the original protocol to a forwarding protocol. If yes, the protocol to be deleted is identified, the first bit of the original identifier is changed to a first preset value, the bits corresponding to the protocol to be deleted are changed to a second preset value, and the other bits are changed to a third preset value, thus determining the first identifier. If no, each bit of the original identifier is changed to the third preset value, thus determining the first identifier.

[0105] Then, based on the protocol stack, the candidate protocols are determined. A protocol table is established based on the candidate protocols and their corresponding unique identifiers. All bits except the first bit of the original identifier are mapped to protocol layers in the internal network protocol stack and public network protocol stack, respectively. Based on the PDR (Protocol Data Representation), it is determined whether protocol addition is required when converting the original protocol to a forwarding protocol. If so, the first bit of the first identifier is changed to a first preset value. The protocol layer corresponding to the protocol to be added is determined. For each protocol layer to be added, based on the destination address of the data to be forwarded, the protocol corresponding to that protocol layer is determined. According to the protocol table, the bits corresponding to the first identifier of the protocol layer to be added are changed to the unique identifier corresponding to that protocol, and the other bits are adjusted to the third preset value. The adjusted first identifier is used as the second identifier. If not, the bits corresponding to the first identifier of each layer are adjusted to the third preset value.

[0106] It should be noted that when establishing the protocol table, it can be established based on all protocols in the UPF, or it can be established based on the data forwarding direction and all protocols corresponding to the protocol stack at the destination address of the data to be forwarded. This manual does not impose any restrictions on this.

[0107] Of course, the above-mentioned determination of the second identifier is based on the determination of the first identifier. Alternatively, it can be adjusted based on the original identifier, or the first and second identifiers can be combined into a single identifier. In other words, UPF can also directly determine the protocol to be deleted and the protocol to be added based on the PDR, the original protocol, and the forwarding protocol, and then generate an identifier to identify the protocol to be deleted, the protocol layer corresponding to the protocol to be deleted, the protocol to be added, and the protocol layer corresponding to the protocol to be added.

[0108] For example, such as Figure 4 As shown, Figure 4 This diagram illustrates an identifier generation process provided in an embodiment of this specification. An initial identifier is generated as an 8-bit bitstream. When it is determined that protocols at layers 3, 4, and 5 need to be deleted, the first bit of the initial identifier is set to 1, indicating that the protocol needs to be deleted. Subsequent bits are then assigned to the layers 3, 4, and 5 protocols respectively. Since the number of layers in both the intranet and public network protocol stacks does not exceed 5, the remaining 5 bits of the initial identifier are assigned to the five protocol layers, and any extra bits are marked as empty. Then, based on the determined protocol layer to be deleted, the corresponding bit value is changed to 1, indicating that the protocol at that layer needs to be deleted. The modified initial identifier is then used as a second identifier and inserted into the data to be forwarded.

[0109] like Figure 5 As shown, Figure 5This is a schematic diagram of a first identifier provided in an embodiment of this specification. Taking data forwarding from an intranet to an extranet as an example, when the NM value of the first bit of the 7th layer is 1, it indicates that there is a protocol to be deleted. The corresponding "L1" to "L5" are assigned values ​​according to the determined protocol to be deleted. If the protocols of the "L3", "L4" and "L5" layers need to be deleted, the values ​​of "L3", "L4" and "L5" are assigned to "1", indicating that these three layers of protocols need to be deleted. Since "L1" and "L2" do not need to be deleted, "L1" and "L2" are assigned to "0", indicating that the protocols of the "L1" and "L2" layers do not need to be deleted.

[0110] Then, determine whether a protocol addition is needed, and generate a fourth identifier based on the determined result, such as... Figure 6 As shown, Figure 6 This is a schematic diagram of a second identifier provided in an embodiment of this specification, taking data forwarding from an intranet to an extranet as an example. If it is determined that a protocol needs to be added, the NM bit of the first bit of the v to (v+1) layer is changed to "1", indicating the existence of a protocol to be added. Since the data forwarding direction is from the intranet to the extranet, the protocol should be added to "L3". Therefore, the L3 bit of the second bit of the v to (v+1) layer is changed to "1", and the remaining bits "L4" and "L5" are changed to "0" or "spare", indicating that only the "L3" layer needs a protocol added. Then, the w to (w+1) layer is changed to the protocol to be added.

[0111] Of course, you can also first generate the identifiers corresponding to each protocol in the internal network protocol stack and the public network protocol stack, such as... Figure 7 As shown, Figure 7 This diagram illustrates the protocols and their corresponding identifiers in an intranet protocol stack and a public network protocol stack provided in this embodiment. After determining the protocol layer to be added corresponding to "L3", the corresponding identifier is filled into the w to(w+1) layer. The second identifier is then determined.

[0112] Then, the first identifier and the second identifier are inserted into the data to be forwarded, so that the UPF performs protocol conversion based on the first identifier and the second identifier, determines the corresponding forwarding protocol, and realizes data forwarding.

[0113] based on Figure 3 This specification also provides a multi-network modal data forwarding system and a multi-network modal data forwarding method, which is applied to the user plane, such as... Figure 8 As shown.

[0114] S800: In response to signaling sent by the control plane, determine detection rules and forwarding execution rules. The signaling is generated by the control plane through a session established based on data forwarding instructions, according to the detection rules and forwarding execution rules. The control plane pre-determines a forwarding policy based on the user plane's protocol stack, and determines the detection rules and forwarding execution rules based on the forwarding policy. The protocol stack includes the user plane's intranet protocol stack and public network protocol stack. The intranet is the data forwarding channel between the user terminal and the user plane, and the public network is the data forwarding channel between the user plane and the data network terminal.

[0115] After receiving signaling from the SMF, the UPF decodes the received signaling layer by layer using its own protocol stack to determine the PDR and FAR issued by the SMF. The PDR and FAR are generated by the SMF based on the data forwarding strategy determined by the UPF's protocol stack. Specifically, the PDR identifies the protocol to be added or removed, and its corresponding protocol layer, when converting the original protocol of the data to a forwarding protocol. The FAR is used to adjust the original protocol based on the identified protocol to be added or removed and its corresponding protocol layer.

[0116] S802: Receive data to be forwarded, and determine the original protocol of the data to be forwarded and the corresponding forwarding protocol.

[0117] Because the UPF's internal network protocol stack and public network protocol stack are often different, the determined original protocol and forwarding protocol are also different. When data is forwarded from the UE to the DN, since the public network protocol stack only has three layers while the internal network protocol stack has five layers, the public network protocol stack cannot determine the data to be forwarded based on the original protocol. Therefore, data forwarding cannot be achieved solely based on the determined original protocol. Thus, the protocols to be deleted and added should be determined based on the PDR and the determined forwarding protocol. Then, based on the FAR, the original protocol is modified. The modification action is generally deletion or addition, or it can be deletion followed by addition. Of course, whether protocols are added or deleted depends on the UPF's internal and public network protocol stacks and the direction of data forwarding.

[0118] S804: According to the detection rules and the forwarding execution rules, the original protocol is adjusted to the forwarding protocol.

[0119] To ensure the correct forwarding of data, the UPF needs to determine the original protocol and the corresponding forwarding protocol of the data to be forwarded. Then, based on the PDR, it determines the differences between the forwarding protocol and the original protocol, determines how to modify the original protocol, and then modifies the original protocol based on the FAR, so that the UPF can forward the data to be forwarded according to the modified original protocol, which is the forwarding protocol.

[0120] Specifically, when the data forwarding direction is from the UE to the DN, the protocol headers of the original protocol added after the data to be forwarded via the intranet are determined according to the intranet protocol stack. Then, the corresponding forwarding protocol is determined based on the destination address in the data to be forwarded and the corresponding public network protocol stack. When the data forwarding direction is from the DN to the UE, the protocol headers of the original protocol added after the data to be forwarded via the public network protocol stack are determined according to the public network protocol stack. Then, the corresponding forwarding protocol is determined based on the destination address in the data to be forwarded and the corresponding intranet protocol stack. After determining the protocol headers to be deleted, the protocol to be deleted can be directly deleted from the original protocol of the data after being forwarded via the intranet or public network according to the FAR. Alternatively, an identifier can be generated based on the determined protocol to be deleted before the data is forwarded via the intranet or public network protocol stack, and the generated identifier can be inserted into the data to be forwarded, so that the UPF can determine the protocol to be deleted based on the identifier in the data to be forwarded.

[0121] During data forwarding, it is necessary not only to identify the protocols to be deleted, but also to determine whether a protocol needs to be added to the original protocol. When adding a protocol, it is necessary not only to identify the protocol to be added, but also to identify the protocol layer in which the added protocol resides.

[0122] Based on the destination address of the data to be forwarded and the PDR, determine the protocol layer to be added, as well as the protocol layer where the protocol to be added resides. Then, use FAR to add the protocol to be added to the corresponding protocol layer of the original protocol. Alternatively, generate a corresponding identifier for the protocol to be added and its corresponding protocol layer, and insert it into the data to be forwarded, so that UPF can add the protocol to the corresponding protocol layer based on the identifier in the data to be forwarded.

[0123] S806: Forward the data to be forwarded according to the adjusted forwarding protocol.

[0124] After adjustment, the forwarding protocol obtained by UPF forwards the data to be forwarded, which contains the forwarding protocol, to the corresponding internal network protocol stack or public network protocol stack. Then, the corresponding internal network protocol stack or public network protocol stack determines the data to be forwarded by removing the forwarding protocol layer by layer, and then forwards the data to the corresponding destination address.

[0125] based on Figure 8 The data forwarding method for multi-network modes applied to the user plane shown determines the original protocol and forwarding protocol of the data to be forwarded based on the data to be forwarded, the forwarding direction of the data to be forwarded, and the protocol stack of the user plane. Then, based on the differences between the original protocol and the forwarding protocol, it determines the protocols to be added and deleted in the original protocol, and adds or deletes the protocols in the original protocol to obtain the corresponding forwarding protocol, so that the user plane can forward the data to be forwarded according to the forwarding protocol.

[0126] As can be seen from the above method, based on the data to be forwarded, the forwarding direction of the data to be forwarded, and the protocol stack of the user plane, the protocols to be added or deleted in the original protocol are determined. This allows the user plane to forward the data to be forwarded according to the forwarding protocol obtained after adding or deleting the protocol. This breaks the limitation in the existing 5G communication technology that data forwarding can only be based on a fixed protocol. When the data to be forwarded that needs to be forwarded to different network modes arrives at the user plane, the user plane can also forward the data to be forwarded, thus achieving compatibility of multi-network mode data.

[0127] Alternatively, when determining the protocol to be added or deleted, it can also be achieved by inserting an identifier into the data to be transmitted. For specific implementation methods, please refer to the identifier generation method described in the above-mentioned multi-network mode data forwarding system, which will not be repeated here.

[0128] based on Figure 3 This specification also provides a multi-network modal data forwarding system and a multi-network modal data forwarding method, which is applied to the control plane, such as... Figure 9 As shown.

[0129] S900: Determine the protocol stack of the user plane, determine the forwarding policy based on the protocol stack, and determine the detection rules and forwarding execution rules based on the forwarding policy. The protocol stack includes the intranet protocol stack and the public network protocol stack of the user plane. The intranet is the data forwarding channel between the user terminal and the user plane, and the public network is the data forwarding channel between the user plane and the data network terminal.

[0130] Since current 5G communication often adopts an architecture that separates the user plane and control plane, when forwarding data, the SMF (Service Flow Framework) first determines the corresponding UPF (User Plane Function) based on the destination address contained in the data to be forwarded, then determines the protocol stack of that UPF, and finally determines the corresponding forwarding strategy based on that protocol stack. That is, based on the differences between the internal network protocol stack and the public network protocol stack, it determines the protocols that need to be added and / or deleted when converting from the internal network protocol stack to the public network protocol stack, and the protocols that need to be added and / or deleted when converting from the public network protocol stack to the internal network protocol stack. Based on the determined protocols that need to be added and / or deleted, the data forwarding strategy is determined.

[0131] S902: In response to a data forwarding instruction, a session is established, and signaling is generated through the session for the detection rules and the forwarding execution rules.

[0132] When the SMF receives a data forwarding instruction, it establishes a corresponding session and generates signaling for the detection rules and the forwarding execution rules.

[0133] S904: Send the signaling to the user plane, so that after receiving the data to be forwarded, the user plane determines the original protocol of the data to be forwarded and the corresponding forwarding protocol, determines the detection rule and the forwarding execution rule according to the signaling, generates signaling to adjust the original protocol to the forwarding protocol, and forwards the data to be forwarded according to the adjusted forwarding protocol.

[0134] Then the SMF sends the signaling to the corresponding UPF, so that the UPF can determine the corresponding PDR and FAR based on the received signaling, and then determine the forwarding direction of the data based on the received data to be forwarded. Then, the original protocol is adjusted according to the PDR and FAR to obtain the forwarding protocol, so that the UPF can forward the data to be forwarded.

[0135] based on Figure 9 The data forwarding method for multi-network modes applied to the user plane shown determines the original protocol and forwarding protocol of the data to be forwarded based on the data to be forwarded, the forwarding direction of the data to be forwarded, and the protocol stack of the user plane. Then, based on the differences between the original protocol and the forwarding protocol, it determines the protocols to be added and deleted in the original protocol, and adds or deletes the protocols in the original protocol to obtain the corresponding forwarding protocol, so that the user plane can forward the data to be forwarded according to the forwarding protocol.

[0136] As can be seen from the above method, based on the data to be forwarded, the forwarding direction of the data to be forwarded, and the protocol stack of the user plane, the protocols to be added or deleted in the original protocol are determined. This allows the user plane to forward the data to be forwarded according to the forwarding protocol obtained after adding or deleting the protocol. This breaks the limitation in the existing 5G communication technology that data forwarding can only be based on a fixed protocol. When the data to be forwarded that needs to be forwarded to different network modes arrives at the user plane, the user plane can also forward the data to be forwarded, thus achieving compatibility of multi-network mode data.

[0137] The above describes a multi-network modality data forwarding device provided by one or more embodiments of this specification. Based on the same idea, this specification also provides a corresponding training device based on a pre-trained action recognition model, such as... Figure 10 As shown.

[0138] Figure 10 This is a schematic diagram of a multi-network mode data forwarding device provided in this specification, the device being used to perform... Figure 8 Provides a multi-network modal data forwarding method.

[0139] A multi-network-modal data forwarding apparatus, the apparatus being used to perform user plane operations, comprising:

[0140] The signaling receiving module 1000 is used to respond to signaling sent by the control plane, determine detection rules and forwarding execution rules, wherein the signaling is generated by the control plane through a session established based on data forwarding instructions, according to the detection rules and forwarding execution rules, wherein the control plane pre-determines a forwarding policy based on the protocol stack of the user plane, and determines the detection rules and forwarding execution rules based on the forwarding policy, wherein the protocol stack includes the user plane's intranet protocol stack and public network protocol stack, the intranet being the data forwarding channel between the user terminal and the user plane, and the public network being the data forwarding channel between the user plane and the data network terminal;

[0141] Data receiving module 1001 is used to receive data to be forwarded and determine the original protocol and the corresponding forwarding protocol of the data to be forwarded.

[0142] The adjustment module 1002 is used to adjust the original protocol to the forwarding protocol according to the detection rules and the forwarding execution rules;

[0143] The transmission module 1003 is used to forward the data to be forwarded according to the adjusted forwarding protocol.

[0144] Optionally, the data receiving module 1001 is specifically configured to: determine the forwarding direction of the data to be forwarded based on the data to be forwarded; when the forwarding direction of the data to be forwarded is from the user terminal to the data network terminal, determine the original protocol of the data to be forwarded based on the intranet protocol stack; determine the corresponding destination address based on the data to be forwarded; and determine the forwarding protocol corresponding to the data to be forwarded based on the destination address and the public network protocol stack. When the forwarding direction of the data to be forwarded is from the data network terminal to the user terminal, determine the original protocol of the data to be forwarded based on the public network protocol stack; determine the corresponding destination address based on the data to be forwarded; and determine the forwarding protocol corresponding to the data to be forwarded based on the destination address and the intranet protocol stack.

[0145] Optionally, the adjustment module 1002 is specifically configured to: generate an original identifier based on the data to be forwarded; determine, according to detection rules, a protocol to be deleted when converting the original protocol to the forwarding protocol, and change the original identifier to a first identifier based on the protocol to be deleted; adjust the original protocol according to the first identifier using the forwarding execution rules to obtain an intermediate protocol; determine, according to detection rules, a protocol to be added when converting the original protocol to the forwarding protocol, and change the first identifier to a second identifier based on the protocol to be added; adjust the intermediate protocol according to the second identifier using the forwarding execution rules to obtain the forwarding protocol.

[0146] Optionally, the adjustment module 1002 is specifically used to map each bit of the original identifier, except for the first bit, to the protocol layers in the intranet protocol stack and the public network protocol stack, respectively; according to the detection rules, it is determined whether protocol deletion is required when converting the original protocol to the forwarding protocol; if yes, the protocol to be deleted is determined, the first bit of the original identifier is changed to a first preset value, the bit corresponding to the protocol to be deleted is changed to a second preset value, and the other bits are changed to a third preset value, thus determining the first identifier; if no, each bit of the original identifier is changed to the third preset value, thus determining the first identifier.

[0147] Optionally, the adjustment module 1002 is specifically used to determine the candidate protocols based on the protocol stack;

[0148] A protocol table is established based on the candidate protocols and their corresponding unique identifiers. Each bit in the original identifier (excluding the first bit) is mapped to a protocol layer in the intranet protocol stack and the public network protocol stack, respectively. According to the detection rules, it is determined whether protocol addition is required when converting the original protocol to the forwarding protocol. If yes, the first bit of the first identifier is changed to a first preset value. The protocol layer corresponding to the protocol to be added is determined. For each protocol layer to be added, the protocol corresponding to that layer is determined based on the destination address of the data to be forwarded. According to the protocol table, the bit corresponding to the first identifier of the protocol layer to be added is changed to the unique identifier corresponding to that protocol, and the other bits are adjusted to the third preset value. The adjusted first identifier is used as the second identifier. If no, the bits corresponding to the first identifier of each layer are adjusted to the third preset value.

[0149] Following the same approach, this manual also provides a corresponding training device for pre-trained action recognition models, such as... Figure 11 As shown.

[0150] Figure 11 This is a schematic diagram of a multi-network mode data forwarding device provided in this specification, the device being used to perform... Figure 9 Provides a multi-network modal data forwarding method.

[0151] A multi-network mode data forwarding apparatus, the apparatus being used to execute the control plane, comprising:

[0152] The determination module 1100 is used to determine the protocol stack of the user plane, determine the forwarding strategy based on the protocol stack, and determine the detection rules and forwarding execution rules based on the forwarding strategy. The protocol stack includes the intranet protocol stack and the public network protocol stack of the user plane. The intranet is the data forwarding channel between the user terminal and the user plane, and the public network is the data forwarding channel between the user plane and the data network terminal.

[0153] Response module 1101 is used to establish a session in response to a data forwarding instruction, and generate signaling through the session for the detection rules and the forwarding execution rules;

[0154] The forwarding module 1102 is used to send the signaling to the user plane, so that after the user plane receives the data to be forwarded, it determines the original protocol of the data to be forwarded and the corresponding forwarding protocol, determines the detection rule and the forwarding execution rule according to the signaling, generates signaling to adjust the original protocol to the forwarding protocol, and forwards the data to be forwarded according to the adjusted forwarding protocol.

[0155] Optionally, the determining module 1100 is specifically used to determine, based on the differences between the intranet protocol stack and the public network protocol stack, the protocols that need to be added and / or deleted when converting from the intranet protocol stack to the public network protocol stack, and the protocols that need to be added and / or deleted when converting from the public network protocol stack to the intranet protocol stack; and to determine a data forwarding strategy based on the determined protocols that need to be added and / or deleted.

[0156] This instruction manual also provides Figure 12 A schematic diagram of the structure of an electronic device. (e.g.) Figure 12 At the hardware level, this electronic device includes a processor, internal bus, network interface, memory, and non-volatile memory, and may also include other hardware required for business operations. The processor reads the corresponding computer program from the non-volatile memory into memory and then executes it to achieve the above-mentioned functions. Figure 3 This describes a multi-network mode data forwarding method. Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of hardware and software, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0157] In the 1990s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the methodology). However, with technological advancements, many methodological improvements today can be considered direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved methodology into the hardware circuit. Therefore, it cannot be said that a methodological improvement cannot be implemented using hardware physical modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user programming the device. Designers can program and "integrate" a digital system onto a PLD themselves, without needing chip manufacturers to design and manufacture dedicated integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing integrated circuit chips, this programming is mostly implemented using "logic compiler" software. Similar to the software compiler used in program development, the original code before compilation must be written in a specific programming language, called a Hardware Description Language (HDL). There are many HDLs, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, and RHDL (Ruby Hardware Description Language). Currently, the most commonly used are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should understand that by simply performing some logic programming on the method flow using one of these hardware description languages ​​and programming it into an integrated circuit, the hardware circuit implementing the logical method flow can be easily obtained.

[0158] The controller can be implemented in any suitable manner. For example, it can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicon Labs C8051F320. A memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also recognize that, in addition to implementing the controller in purely computer-readable program code form, the same functionality can be achieved by logically programming the method steps to make the controller take the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers. Therefore, such a controller can be considered a hardware component, and the means included therein for implementing various functions can also be considered as structures within the hardware component. Alternatively, the means for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.

[0159] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.

[0160] For ease of description, the above devices are described in terms of function, divided into various units. Of course, in implementing this specification, the functions of each unit can be implemented in one or more software and / or hardware components.

[0161] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0162] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0163] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0164] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0165] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0166] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0167] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transitory media that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0168] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0169] Those skilled in the art will understand that the embodiments of this specification can be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this specification may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0170] This specification can be described in the general context of computer-executable instructions that are executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type. This specification can also be practiced in distributed computing environments, where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0171] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to interchangeably. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.

[0172] The above description is merely an embodiment of this specification and is not intended to limit the scope of this specification. Various modifications and variations can be made to this specification by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this specification should be included within the scope of the claims of this invention.

Claims

1. A multi-network modal data forwarding method, characterized in that, The method is applied to the user plane and includes: In response to signaling sent by the control plane, detection rules and forwarding execution rules are determined. The signaling is generated by the control plane through a session established based on data forwarding instructions, according to the detection rules and forwarding execution rules. The control plane pre-determines a forwarding policy based on the user plane's protocol stack, and determines the detection rules and forwarding execution rules based on the forwarding policy. The protocol stack includes the user plane's intranet protocol stack and public network protocol stack. The intranet is the data forwarding channel between the user terminal and the user plane, and the public network is the data forwarding channel between the user plane and the data network terminal. Receive data to be forwarded and determine the original protocol of the data to be forwarded and the corresponding forwarding protocol. Based on the detection rules and the forwarding execution rules, the original protocol is adjusted to the forwarding protocol; The data to be forwarded is forwarded according to the adjusted forwarding protocol; The step of adjusting the original protocol to the forwarding protocol according to the detection rules and the forwarding execution rules includes: Generate the original identifier based on the data to be forwarded; According to the detection rules, determine the protocol to be deleted when converting the original protocol to the forwarding protocol, and change the original identifier to the first identifier according to the protocol to be deleted; Based on the first identifier, the original protocol is adjusted according to the forwarding execution rules to obtain an intermediate protocol; According to the detection rules, determine the protocol to be added when converting the original protocol to the forwarding protocol, and change the first identifier to the second identifier according to the protocol to be added; The forwarding protocol is obtained by adjusting the intermediate protocol according to the second identifier based on the forwarding execution rule.

2. The method as described in claim 1, characterized in that, Based on the data to be forwarded, determine the original protocol and the corresponding forwarding protocol of the data to be forwarded, specifically including: Based on the data to be forwarded, determine the forwarding direction of the data to be forwarded; When the forwarding direction of the data to be forwarded is from the user terminal to the data network terminal, the original protocol of the data to be forwarded is determined according to the intranet protocol stack; the corresponding destination address is determined according to the data to be forwarded; and the forwarding protocol corresponding to the data to be forwarded is determined according to the destination address and the public network protocol stack. When the forwarding direction of the data to be forwarded is from the data network end to the user end, the original protocol of the data to be forwarded is determined according to the public network protocol stack; the corresponding destination address is determined according to the data to be forwarded; and the forwarding protocol corresponding to the data to be forwarded is determined according to the destination address and the internal network protocol stack.

3. The method as described in claim 1, characterized in that, According to the detection rules, the protocol to be deleted when converting the original protocol to the forwarding protocol is determined, and the original identifier is changed to the first identifier according to the protocol to be deleted, specifically including: Each bit in the original identifier, except for the first bit, is assigned to a protocol layer in the intranet protocol stack and the public network protocol stack, respectively. Based on the detection rules, determine whether protocol deletion is required when converting the original protocol to the forwarding protocol; If so, determine the protocol to be deleted, change the first bit of the original identifier to a first preset value, change the bit corresponding to the protocol to be deleted to a second preset value, change the other bits to a third preset value, and determine the first identifier; If not, change each bit of the original identifier to a third preset value to determine the first identifier.

4. The method as described in claim 3, characterized in that, According to the detection rules, determine the protocol to be added when converting the original protocol to the forwarding protocol, and change the first identifier to the second identifier according to the protocol to be added, specifically including: Based on the protocol stack, determine the candidate protocols; Establish a protocol table based on the candidate protocols and their corresponding unique identifiers; Each bit in the original identifier, except for the first bit, is assigned to a protocol layer in the intranet protocol stack and the public network protocol stack, respectively. Based on the detection rules, determine whether protocol addition is required when the original protocol is converted into the forwarding protocol; If so, change the first bit of the first identifier to the first preset value, determine the protocol layer corresponding to the protocol to be added, and for each protocol layer to be added, determine the protocol corresponding to the protocol layer to be added according to the destination address of the data to be forwarded, and according to the protocol table, change the bit of the protocol layer to be added corresponding to the first identifier to the unique identifier of the protocol to be added, and adjust the other bits to the third preset value. The adjusted first identifier is used as the second identifier. If not, adjust the bits corresponding to the first identifier in each layer to the third preset value.

5. A multi-network modal data forwarding method, characterized in that, The method is applied to the control plane and includes: The protocol stack of the user plane is determined, a forwarding policy is determined based on the protocol stack, and detection rules and forwarding execution rules are determined based on the forwarding policy. The protocol stack includes the intranet protocol stack and the public network protocol stack of the user plane. The intranet is the data forwarding channel between the user terminal and the user plane, and the public network is the data forwarding channel between the user plane and the data network terminal. In response to a data forwarding instruction, a session is established, and signaling is generated through the session to represent the detection rules and the forwarding execution rules. The signaling is sent to the user plane, so that after receiving the data to be forwarded, the user plane determines the original protocol of the data to be forwarded and the corresponding forwarding protocol, determines the detection rule and the forwarding execution rule according to the signaling, generates signaling to adjust the original protocol to the forwarding protocol, and forwards the data to be forwarded according to the adjusted forwarding protocol. The user plane adjusts the original protocol to the forwarding protocol through the following steps: Generate the original identifier based on the data to be forwarded; According to the detection rules, determine the protocol to be deleted when converting the original protocol to the forwarding protocol, and change the original identifier to the first identifier according to the protocol to be deleted; Based on the first identifier, the original protocol is adjusted according to the forwarding execution rules to obtain an intermediate protocol; According to the detection rules, determine the protocol to be added when converting the original protocol to the forwarding protocol, and change the first identifier to the second identifier according to the protocol to be added; The forwarding protocol is obtained by adjusting the intermediate protocol according to the second identifier based on the forwarding execution rule.

6. The method as described in claim 5, characterized in that, The data forwarding strategy is determined based on the protocol stack, specifically including: Based on the differences between the intranet protocol stack and the public network protocol stack, determine the protocols that need to be added and / or deleted when converting from the intranet protocol stack to the public network protocol stack, and the protocols that need to be added and / or deleted when converting from the public network protocol stack to the intranet protocol stack. Determine the data forwarding strategy based on the identified protocols that need to be added and / or removed.

7. A multi-network mode data forwarding device, characterized in that, The device is used to execute the user plane, including: The signaling receiving module is used to respond to signaling sent by the control plane, determine detection rules and forwarding execution rules, wherein the signaling is generated by the control plane through a session established based on data forwarding instructions, according to the detection rules and forwarding execution rules, wherein the control plane pre-determines a forwarding policy based on the user plane's protocol stack, and determines the detection rules and forwarding execution rules based on the forwarding policy, wherein the protocol stack includes the user plane's intranet protocol stack and public network protocol stack, the intranet being the data forwarding channel between the user terminal and the user plane, and the public network being the data forwarding channel between the user plane and the data network terminal; The data receiving module is used to receive data to be forwarded and determine the original protocol and the corresponding forwarding protocol of the data to be forwarded. The adjustment module is used to adjust the original protocol to the forwarding protocol according to the detection rules and the forwarding execution rules; The step of adjusting the original protocol to the forwarding protocol according to the detection rules and the forwarding execution rules includes: Generate the original identifier based on the data to be forwarded; According to the detection rules, determine the protocol to be deleted when converting the original protocol to the forwarding protocol, and change the original identifier to the first identifier according to the protocol to be deleted; Based on the first identifier, the original protocol is adjusted according to the forwarding execution rules to obtain an intermediate protocol; According to the detection rules, determine the protocol to be added when converting the original protocol to the forwarding protocol, and change the first identifier to the second identifier according to the protocol to be added; The forwarding protocol is obtained by adjusting the intermediate protocol according to the second identifier based on the forwarding execution rule. The transmission module is used to forward the data to be forwarded according to the adjusted forwarding protocol.

8. A multi-network mode data forwarding device, characterized in that, The device is used to execute a control plane, including: The determination module is used to determine the protocol stack of the user plane, determine the forwarding policy based on the protocol stack, and determine the detection rules and forwarding execution rules based on the forwarding policy. The protocol stack includes the intranet protocol stack and the public network protocol stack of the user plane. The intranet is the data forwarding channel between the user terminal and the user plane, and the public network is the data forwarding channel between the user plane and the data network terminal. The response module is used to establish a session in response to a data forwarding instruction, and generate signaling through the session for the detection rules and the forwarding execution rules; The forwarding module is used to send the signaling to the user plane, so that after receiving the data to be forwarded, the user plane determines the original protocol of the data to be forwarded and the corresponding forwarding protocol, determines the detection rule and the forwarding execution rule according to the signaling to generate signaling, so as to adjust the original protocol to the forwarding protocol, and forwards the data to be forwarded according to the adjusted forwarding protocol. The user plane adjusts the original protocol to the forwarding protocol through the following steps: Generate the original identifier based on the data to be forwarded; According to the detection rules, determine the protocol to be deleted when converting the original protocol to the forwarding protocol, and change the original identifier to the first identifier according to the protocol to be deleted; Based on the first identifier, the original protocol is adjusted according to the forwarding execution rules to obtain an intermediate protocol; According to the detection rules, determine the protocol to be added when converting the original protocol to the forwarding protocol, and change the first identifier to the second identifier according to the protocol to be added; The forwarding protocol is obtained by adjusting the intermediate protocol according to the second identifier based on the forwarding execution rule.

9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the method described in any one of claims 1 to 6, and can implement at least one of the user plane and control plane described above.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method described in any one of claims 1-6, and can implement at least one of the user plane and control plane described above.