Shunting gateway equipment and diversion method
By introducing a control module and a diversion rule information database into the diversion gateway device, 5G network signaling can be perceived and analyzed in real time, solving the delay and jitter problems of the diversion device during network changes, achieving efficient diversion control and path optimization, and improving the diversion effect under the 5G network.
Patent Information
- Application Number
- CN202510765714.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-10
- Publication Date
- 2025-09-12
AI Technical Summary
Existing traffic diversion gateway devices cannot perceive network changes in real time under 5G networks, resulting in delays and jitter. They also lack self-learning and storage capabilities and cannot adapt to complex 5G network scenarios, affecting resource utilization and control effects.
A diversion gateway device is designed, including a control module, a data forwarding module and a diversion rule information database. By sensing, parsing and learning 5G network signaling, it updates the diversion information in real time, optimizes the data forwarding path, and realizes autonomous management and efficient control.
Real-time perception of 5G network changes reduces latency and jitter, improves offload device performance, simplifies management processes, enhances control capabilities, improves user session service quality, and enhances offload effectiveness.
Smart Images

Figure CN120640347A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network communication technology, and in particular to a traffic diversion gateway device and a traffic diversion method. Background Art
[0002] 5G industry communications include typical application scenarios such as the Internet of Vehicles and remote driving. These scenarios require real-time, fast, end-to-end transmission of data such as the status of on-board equipment and control commands. The data has high commercial attributes. On the one hand, the latency should be as low as possible, and on the other hand, the data should not be spread as much as possible.
[0003] Currently, most diversion gateway devices have no perception of 5G networks, and diversion rules are basically managed by manual configuration. They have no self-learning and storage capabilities, cannot adapt to complex requirements and scenarios, and are not conducive to resource utilization and control in 5G networks.
[0004] Therefore, how to reduce the delay and jitter caused by the diversion equipment when the network changes, improve the performance of the diversion equipment and more fine-grained control, and effectively improve the diversion effect under the 5G network is a technical problem that needs to be solved urgently. Summary of the Invention
[0005] The technical task of the present invention is to provide a diversion gateway device and a diversion method to solve the problem of how to reduce the delay and jitter caused by the diversion device when the network changes, improve the performance of the diversion device and more fine-grained control, and effectively improve the diversion effect under the 5G network.
[0006] The technical task of the present invention is achieved in the following way: a diversion gateway device, which is located between the base station and the 5G core network and close to the base station side. The business data of all 5G terminals will be forwarded to the 5G core network or private cloud through the diversion gateway device; and divided into uplink traffic business data and downlink traffic business data according to the traffic direction of the business data; among them, the uplink traffic is the business data sent to the destination address by the 5G terminal through the 5G base station and the diversion gateway device; the downlink traffic is the business data initiated by the business service response end from the server end and then passed through the diversion gateway device and the base station to the 5G terminal.
[0007] Preferably, the traffic diversion gateway device includes a control module, a data forwarding module and a high-performance traffic diversion rule information database, and the control module and the data forwarding module interact with the traffic diversion rule information database;
[0008] The control module is used to receive and copy 5G network signaling messages sent by each base station to the 5G core network or private cloud, and from the 5G core network or private cloud to each base station, and to perceive, parse and learn the 5G network signaling to obtain the destination IP, source IP, tunnel identifier and service quality information of each session's uplink and downlink data flows;
[0009] The data forwarding module is used to quickly query the diversion information and forward data packets based on the diversion rule information database;
[0010] The traffic diversion rule information database is used to store the combined traffic diversion information obtained based on the results of 5G signaling learning.
[0011] Preferably, the control module first obtains the network signaling message copied by the data forwarding module, and filters the destination IP to retain only the messages sent to the 5G core network and the messages sent by the 5G core network to the base station directed by the diversion gateway device; then the filtered signaling messages are filtered by protocol type, and only the SCTP protocol type messages are retained, and the rest are discarded; then the SCTP protocol type messages are unpacked to detect whether the NGAP binary code stream can be obtained: if the NGAP binary code stream can be obtained, 5G signaling perception is performed; if the NGAP binary code stream cannot be obtained, it is directly discarded.
[0012] Preferably, the control module parses the NGAP message according to the ASN.1 encoding to obtain the 5G session signaling type, and then further determines the signaling type to obtain only session creation, session modification, session release, Xn handover, and N2 handover and session-related signaling messages, and directly discards the remaining messages; the control module further parses the session creation type signaling to obtain the session identifier, uplink tunnel IP and TEID, downlink tunnel IP and TEID, as well as slice, QoS, and bearer rate information of the corresponding session; an algorithm is matched based on the parsed result and the user IP and data packet source and destination addresses reported by the data forwarding module to form a diversion information table IP-Session table, which indicates that each user has at least one diversion path, base station IP and TEID <--> diversion gateway <--> UPF IP and TEID, and the diversion information is stored in the diversion rule information database for query and use when the data forwarding module forwards traffic data; when the 5G terminal sends traffic data, the diversion rule information database is queried, and the situation is as follows:
[0013] ① Uplink data packets that do not meet the diversion rules, that is, uplink packets that do not meet local diversion, are transparently transmitted and sent to the 5G core network along the original path;
[0014] ② For uplink data packets that meet the diversion rules, the data forwarding module removes the GTP data encapsulation header and adds a new data encapsulation header, and the private data is directly sent to the private cloud;
[0015] When receiving data packets fed back by the 5G core network or private cloud, based on the IP information contained in the returned data packet, the learned diversion rule information table IP-Session is queried to obtain the diversion path of the returned data packet, add the stored GTP header, and direct it to the corresponding base station.
[0016] Preferably, the control module further parses the session modification and switching type signaling, obtains the session identifier, tunnel IP and TEID before modification, tunnel IP and TEID after modification, Qos, and bearer rate information of the session, and performs algorithm matching with the existing information stored in the diversion rule information database, as follows: if there is a match, the existing diversion information is modified; if there is no match, new diversion information is created; at the same time, the control module notifies the data forwarding module that after the session modification or switching is completed, the downlink data packets matched in the old diversion information are sent to the corresponding base station through the new diversion path; and further parses the session release and deletion type signaling, obtains the session identifier of the session, and deletes the diversion information stored in the diversion rule information database; after forwarding the cached data packets, the data forwarding module no longer diverts the corresponding type of data packets.
[0017] A traffic diversion method based on the above-mentioned diversion gateway device is characterized in that the method is specifically as follows:
[0018] Receive and copy the signaling between the base station and the 5G core network through the control module of the offload gateway device;
[0019] Sense, parse, and learn 5G network signaling to obtain the destination IP, source IP, tunnel identifier, and quality of service information for each session's uplink and downlink data flows;
[0020] Based on the results of 5G signaling learning, the combined traffic diversion information is stored in the traffic diversion rule information library;
[0021] Based on a high-performance diversion rule information database, the data forwarding module of the diversion gateway device quickly queries the diversion information and forwards data packets.
[0022] Preferably, the control module of the offload gateway device receives and copies the signaling exchanged between the base station and the 5G core network as follows:
[0023] The control module obtains the network signaling message copied by the data forwarding module and filters the destination IP address to retain only the message sent to the 5G core network and the message sent by the 5G core network to the base station directed by the offload gateway.
[0024] The control module filters the filtered signaling messages according to the protocol type, retains only the SCTP protocol type messages, and discards the rest of the messages.
[0025] As a preferred method, 5G network signaling is sensed, parsed, and learned to obtain the destination IP, source IP, tunnel identifier, and service quality information of each session's uplink and downlink data flows. The details are as follows:
[0026] The control module unpacks the SCTP protocol message and checks whether the NGAP binary stream can be obtained:
[0027] If the NGAP binary stream can be obtained, 5G signaling perception is performed;
[0028] If the NGAP binary stream cannot be obtained, it will be discarded directly;
[0029] The control module parses the NGAP message according to the ASN.1 code to obtain the 5G session signaling type, and then further judges the signaling type to obtain only the session creation, session modification, session release, Xn handover and N2 handover and session-related signaling messages. The rest of the messages are directly discarded;
[0030] The control module further parses the session creation type signaling to obtain the session identifier, uplink tunnel IP and TEID, downlink tunnel IP and TEID, as well as the slice, QoS, and bearer rate information of the corresponding session;
[0031] The control module performs algorithm matching based on the analysis results and the user IP and data packet source and destination addresses reported by the data forwarding surface, and combines them into the diversion information table IP-Session table, which means that each user has at least one diversion path, base station IP and TEID <--> diversion gateway <--> UPF IP and TEID.
[0032] Preferably, based on the results of 5G signaling learning, the combined traffic diversion information is stored in the traffic diversion rule information library as follows:
[0033] The diversion information is stored in the diversion rule information database for query by the data forwarding module when forwarding traffic data;
[0034] When the 5G terminal sends traffic data, two results are obtained by querying the traffic diversion rule information database, as follows:
[0035] ① When uplink data packets do not meet the diversion rules: For uplink packets that do not meet the local diversion rules, they are transparently transmitted and sent to the 5G core network along the original path;
[0036] ② When the uplink data packet meets the diversion rules: For the uplink data packet that meets the diversion rules, the data forwarding plane removes the GTP data encapsulation header, adds a new data encapsulation header, and the private data is sent directly to the private cloud.
[0037] More optimally, based on a high-performance traffic diversion rule information database, the data forwarding module of the offload gateway device quickly queries the diversion information and forwards the data packets as follows:
[0038] When receiving data packets from the 5G core network or private cloud, based on the IP information contained in the returned data packet, the learned diversion rule information table IP-Session is searched to obtain the diversion path of the returned data packet, and the stored GTP header is added to direct it to the corresponding base station.
[0039] The control module further analyzes the session modification and handover type signaling to obtain the session identifier, the tunnel IP and TEID before and after the modification, the QoS, and the bearer rate information. The control module then performs an algorithmic match with the existing information stored in the traffic diversion rule database, obtaining two possible results: ① If a match is found, the existing traffic diversion information is modified; ② If a match is found, new traffic diversion information is created.
[0040] At the same time, the control module notifies the data forwarding module to send the downlink data packets matching the old diversion information to the corresponding base station through the new diversion path after the session modification or switching is completed;
[0041] The control module further parses the session release and deletion type signaling, obtains the session identifier of the session, and deletes the diversion information stored in the diversion rule database;
[0042] After forwarding the cached data packets, the data forwarding module will no longer divert data packets of the corresponding type.
[0043] The traffic diversion gateway device and traffic diversion method of the present invention have the following advantages:
[0044] (1) The present invention can perceive 5G network changes in real time through the offload gateway device. In complex and changing scenarios, it can update the diversion information in real time, further reducing the delay and jitter caused by the addition of offload devices when the network changes, improving the performance of the offload device and more fine-grained control, and effectively improving the offload effect in the 5G network;
[0045] (2) The traffic diversion gateway device of the present invention can perceive 5G network changes in real time, learn and store diversion information on its own, reducing the management and configuration of the traffic diversion gateway device and simplifying the process. In particular, when a session switch or modification occurs, it can obtain changes in diversion information in advance and update the diversion rule information database in a timely manner, greatly reducing the delay and jitter caused by network changes, enhancing the diversion control capability, and significantly improving the service quality of user sessions after the diversion gateway device is added, which is conducive to making the diversion gateway device more intelligent, convenient, and efficient;
[0046] (3) The traffic diversion gateway device of the present invention can perceive 5G network changes in real time, and by filtering, parsing and learning 5G network signaling, it can autonomously update the traffic diversion information table and promptly notify the data forwarding plane to change the diversion path;
[0047] (4) The offload gateway device of the present invention is located between the base station and the 5G core network, close to the base station side, and can obtain the service data of all 5G terminals through the N2 service interface;
[0048] (5) The offload gateway device of the present invention has data packet filtering, SCTP protocol recognition capabilities, ASN.1 encoding capabilities and NGAP parsing capabilities, etc., and obtains session identification, uplink and downlink tunnel IP and TEID, as well as slice, QoS, bearer rate and other information by parsing 5G signaling;
[0049] (6) The diversion gateway device of the present invention can continuously update the diversion information IP-Session table based on the 5G signaling learning results to indirectly control the data forwarding surface to obtain the latest diversion path encapsulation header information in time when forwarding uplink and downlink data packets. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The present invention will be further described below with reference to the accompanying drawings.
[0051] Attachment Figure 1 This is a structural diagram of the diversion gateway device. DETAILED DESCRIPTION
[0052] The following detailed description of the traffic diversion gateway device and traffic diversion method of the present invention is given with reference to the accompanying drawings and specific embodiments.
[0053] Example 1:
[0054] This embodiment provides a diversion gateway device, which is located between the base station and the 5G core network and close to the base station side. The business data of all 5G terminals will be forwarded to the 5G core network or private cloud through the diversion gateway device; and is divided into uplink traffic business data and downlink traffic business data according to the traffic direction of the business data; among them, the uplink traffic is the business data sent by the 5G terminal to the destination address through the 5G base station and the diversion gateway device; the downlink traffic is the business data initiated by the service service response end from the server end and then passed through the diversion gateway device and the base station to the 5G terminal.
[0055] As attached Figure 1 As shown, the traffic diversion gateway device in this embodiment includes a control module, a data forwarding module and a high-performance traffic diversion rule information database, and the control module and the data forwarding module interact with the traffic diversion rule information database;
[0056] The control module is used to receive and copy 5G network signaling messages sent by each base station to the 5G core network or private cloud, and from the 5G core network or private cloud to each base station, and to perceive, parse and learn the 5G network signaling to obtain the destination IP, source IP, tunnel identifier and service quality information of each session's uplink and downlink data flows;
[0057] The data forwarding module is used to quickly query the diversion information and forward data packets based on the diversion rule information database;
[0058] The traffic diversion rule information database is used to store the combined traffic diversion information obtained based on the results of 5G signaling learning.
[0059] The control module in this embodiment first obtains the network signaling message copied by the data forwarding module, and filters the destination IP to retain only the messages sent to the 5G core network and the messages sent by the 5G core network to the base station directed by the diversion gateway device; then the filtered signaling messages are filtered according to the protocol type, and only the SCTP protocol type messages are retained, and the rest are discarded; then the SCTP protocol type messages are unpacked to detect whether the NGAP binary code stream can be obtained: if the NGAP binary code stream can be obtained, 5G signaling perception is performed; if the NGAP binary code stream cannot be obtained, it is directly discarded.
[0060] In this embodiment, the control module parses the NGAP message according to the ASN.1 encoding to obtain the 5G session signaling type, and then further determines the signaling type to obtain only session creation, session modification, session release, Xn handover, and N2 handover-related signaling messages, and directly discards the remaining messages. The control module further parses the session creation type signaling to obtain the session identifier, uplink tunnel IP and TEID, downlink tunnel IP and TEID, as well as the slice, QoS, and bearer rate information of the corresponding session. The control module performs an algorithm matching based on the parsed results and the user IP and data packet source and destination addresses reported by the data forwarding module to form a diversion information table, the IP-Session table, which indicates that each user has at least one diversion path, base station IP and TEID <--> diversion gateway <--> UPF IP and TEID. The diversion information is stored in the diversion rule information database for query by the data forwarding module when forwarding traffic data. When the 5G terminal sends traffic data, the diversion rule information database is queried, and the situation is as follows:
[0061] ① Uplink data packets that do not meet the diversion rules, that is, uplink packets that do not meet local diversion, are transparently transmitted and sent to the 5G core network along the original path;
[0062] ② For uplink data packets that meet the diversion rules, the data forwarding module removes the GTP data encapsulation header and adds a new data encapsulation header, and the private data is directly sent to the private cloud;
[0063] When receiving data packets fed back by the 5G core network or private cloud, based on the IP information contained in the returned data packet, the learned diversion rule information table IP-Session is queried to obtain the diversion path of the returned data packet, add the stored GTP header, and direct it to the corresponding base station.
[0064] The control module in this embodiment further parses session modification and handover type signaling to obtain the session identifier, the tunnel IP and TEID before and after modification, the tunnel IP and TEID after modification, QoS, and bearer rate information of the session, and performs an algorithmic match with the existing information stored in the diversion rule information database. The situation is as follows: if there is a match, the existing diversion information is modified; if there is a mismatch, new diversion information is created. At the same time, the control module notifies the data forwarding module that, after the session modification or handover is completed, the downlink data packets matching the old diversion information are sent to the corresponding base station via the new diversion path. The control module further parses session release and deletion type signaling to obtain the session identifier of the session and delete the diversion information stored in the diversion rule information database. After forwarding the cached data packets, the data forwarding module no longer diverts data packets of the corresponding type.
[0065] Example 2:
[0066] This embodiment provides a traffic diversion method based on the traffic diversion gateway device in Embodiment 1, characterized in that the method is specifically as follows:
[0067] S1. Receive and copy the signaling exchanged between the base station and the 5G core network through the control module of the offload gateway device;
[0068] S2. Sense, parse, and learn 5G network signaling to obtain the destination IP, source IP, tunnel identifier, and quality of service information for each session's uplink and downlink data flows.
[0069] S3. Based on the results of 5G signaling learning, the combined traffic diversion information is stored in a traffic diversion rule information library;
[0070] S4. Based on the high-performance diversion rule information database, the data forwarding module of the diversion gateway device quickly queries the diversion information and forwards the data packets.
[0071] In step S1 of this embodiment, the control module of the offload gateway device receives and copies the signaling exchanged between the base station and the 5G core network as follows:
[0072] S101. The control module obtains the network signaling message copied by the data forwarding module, and filters the destination IP address to retain only the message sent to the 5G core network and the message sent by the 5G core network to the base station directed by the offload gateway;
[0073] S102: The control module screens the filtered signaling messages according to protocol type, retains only SCTP protocol type messages, and discards the rest of the messages.
[0074] In step S2 of this embodiment, the 5G network signaling is sensed, parsed, and learned to obtain the destination IP, source IP, tunnel identifier, and service quality information of each session uplink and downlink data flow as follows:
[0075] S201. The control module unpacks the SCTP protocol type message and detects whether the NGAP binary stream can be obtained:
[0076] ① If the NGAP binary stream can be obtained, 5G signaling perception is performed;
[0077] ② If the NGAP binary stream cannot be obtained, it will be discarded directly;
[0078] S202. The control module parses the NGAP message according to the ASN.1 code to obtain the 5G session signaling type, and then further determines the signaling type to obtain only session creation, session modification, session release, Xn handover, N2 handover and session-related signaling messages, and directly discards the remaining messages.
[0079] S203. The control module further parses the session creation type signaling to obtain the session identifier, uplink tunnel IP and TEID, downlink tunnel IP and TEID, as well as the slice, QoS, and bearer rate information of the corresponding session;
[0080] S204. The control module performs algorithm matching based on the parsing results and the user IP and data packet source and destination addresses reported by the data forwarding plane, and combines them into a diversion information table IP-Session table, which indicates that each user has at least one diversion path, base station IP and TEID <--> diversion gateway <--> UPF IP and TEID.
[0081] In step S3 of this embodiment, based on the result of 5G signaling learning, the combined traffic diversion information is stored in the traffic diversion rule information library as follows:
[0082] S301, storing the diversion information in the diversion rule information database for querying by the data forwarding module when forwarding traffic data;
[0083] S302: When the 5G terminal sends traffic data, two results are obtained by querying the traffic diversion rule information database, as follows:
[0084] ① When uplink data packets do not meet the diversion rules: For uplink packets that do not meet the local diversion rules, they are transparently transmitted and sent to the 5G core network along the original path;
[0085] ② When the uplink data packet meets the diversion rules: For the uplink data packet that meets the diversion rules, the data forwarding plane removes the GTP data encapsulation header, adds a new data encapsulation header, and the private data is sent directly to the private cloud.
[0086] In step S4 of this embodiment, based on the high-performance traffic diversion rule information database, the data forwarding module of the offload gateway device quickly queries the traffic diversion information and forwards the data packet as follows:
[0087] S401. When receiving a data packet feedback from the 5G core network or private cloud, based on the IP information contained in the returned data packet, query the learned diversion rule information table IP-Session to obtain the diversion path of the returned data packet, add the stored GTP header, and direct it to the corresponding base station;
[0088] S402: The control module further analyzes the session modification and handover type signaling to obtain the session identifier, the tunnel IP and TEID before and after the modification, the QoS, and the bearer rate information. The control module then performs an algorithmic match with the existing information stored in the traffic diversion rule database to obtain two results: ① If a match occurs, the existing traffic diversion information is modified; ② If a match does not occur, new traffic diversion information is created.
[0089] S403: The control module notifies the data forwarding module to send the downlink data packets matching the old diversion information to the corresponding base station through the new diversion path after the session modification or switching is completed;
[0090] S404: The control module further parses the session release and deletion type signaling, obtains the session identifier of the session, and deletes the diversion information stored in the diversion rule database;
[0091] S405: After forwarding the cached data packets, the data forwarding module no longer directs data packets of the corresponding type.
[0092] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A traffic distribution gateway device, characterized in that: The diversion gateway device is located between the base station and the 5G core network and close to the base station side. The business data of all 5G terminals will be forwarded to the 5G core network or private cloud through the diversion gateway device; and divided into uplink traffic business data and downlink traffic business data according to the traffic direction of the business data; among them, uplink traffic is the business data sent by the 5G terminal to the destination address through the 5G base station and the diversion gateway device; downlink traffic is the business data initiated by the service service response end from the server end and then passed through the diversion gateway device and the base station to the 5G terminal.
2. The traffic distribution gateway device according to claim 1, characterized in that: The traffic diversion gateway device includes a control module, a data forwarding module and a traffic diversion rule information database, and the control module and the data forwarding module interact with the traffic diversion rule information database; The control module is used to receive and copy 5G network signaling messages sent by each base station to the 5G core network or private cloud, and from the 5G core network or private cloud to each base station, and to perceive, parse and learn the 5G network signaling to obtain the destination IP, source IP, tunnel identifier and service quality information of each session's uplink and downlink data flows; The data forwarding module is used to quickly query the diversion information and forward data packets based on the diversion rule information database; The traffic diversion rule information database is used to store the combined traffic diversion information obtained based on the results of 5G signaling learning.
3. The traffic distribution gateway device according to claim 2, characterized in that: The control module first obtains the network signaling messages copied by the data forwarding module, and filters the destination IP address to retain only messages sent to the 5G core network and messages sent by the 5G core network to the base station directed by the offload gateway device. The filtered signaling messages are then filtered by protocol type, retaining only SCTP protocol messages and discarding the rest. The SCTP protocol messages are then unpacked to detect whether the NGAP binary stream can be obtained. If the NGAP binary stream can be obtained, 5G signaling perception is performed. If the NGAP binary stream cannot be obtained, it will be discarded directly.
4. The traffic distribution gateway device according to claim 3, characterized in that: The control module parses the NGAP message according to the ASN.1 encoding to obtain the 5G session signaling type, and then further determines the signaling type, obtaining only session creation, session modification, session release, Xn handover, and N2 handover-related signaling messages. The remaining messages are directly discarded. The control module further parses the session creation type signaling to obtain the session identifier, uplink tunnel IP and TEID, downlink tunnel IP and TEID, as well as the slice, QoS, and bearer rate information of the corresponding session. The control module performs an algorithm matching based on the parsed results and the user IP, data packet source address, and destination address reported by the data forwarding module to form the IP-Session table, which represents each user has at least one diversion path: base station IP and TEID <--> diversion gateway <--> UPF IP and TEID. The diversion information is stored in the diversion rule information database for query by the data forwarding module when forwarding traffic data. When the 5G terminal sends traffic data, the diversion rule information database is queried, and the situation is as follows: ① Uplink data packets that do not meet the diversion rules, that is, uplink packets that do not meet local diversion, are transparently transmitted and sent to the 5G core network along the original path; ② For uplink data packets that meet the diversion rules, the data forwarding module removes the GTP data encapsulation header and adds a new data encapsulation header, and the private data is directly sent to the private cloud; When receiving data packets fed back by the 5G core network or private cloud, based on the IP information contained in the returned data packet, the learned diversion rule information table IP-Session is queried to obtain the diversion path of the returned data packet, add the stored GTP header, and direct it to the corresponding base station.
5. The traffic distribution gateway device according to claim 4, characterized in that: The control module further parses the session modification and switching type signaling, obtains the session identifier, tunnel IP and TEID before modification, tunnel IP and TEID after modification, Qos, and bearer rate information of the session, and performs algorithm matching with the existing information stored in the diversion rule information database. The situation is as follows: if there is a match, the existing diversion information is modified; if there is no match, new diversion information is created; at the same time, the control module notifies the data forwarding module that after the session modification or switching is completed, the downlink data packets matching the old diversion information are sent to the corresponding base station through the new diversion path; and further parses the session release and deletion type signaling, obtains the session identifier of the session, and deletes the diversion information stored in the diversion rule information database; after forwarding the cached data packets, the data forwarding module no longer diverts the corresponding type of data packets.
6. A traffic diversion method based on the diversion gateway device according to any one of claims 1 to 5, characterized in that: The method is as follows: Receive and copy the signaling between the base station and the 5G core network through the control module of the offload gateway device; Sense, parse, and learn 5G network signaling to obtain the destination IP, source IP, tunnel identifier, and quality of service information for each session's uplink and downlink data flows; Based on the results of 5G signaling learning, the combined traffic diversion information is stored in the traffic diversion rule information library; Based on a high-performance diversion rule information database, the data forwarding module of the diversion gateway device quickly queries the diversion information and forwards data packets.
7. The diversion method according to claim 6, characterized in that: The signaling between the base station and the 5G core network is received and copied by the control module of the offload gateway device as follows: The control module obtains the network signaling message copied by the data forwarding module, and filters the destination IP address to retain only the message sent to the 5G core network and the message sent by the 5G core network to the base station directed by the offload gateway; The control module filters the filtered signaling messages according to the protocol type, retains only the SCTP protocol type messages, and discards the rest of the messages.
8. The diversion method according to claim 6, characterized in that: 5G network signaling is sensed, parsed, and learned to obtain the destination IP, source IP, tunnel identifier, and quality of service information for each session's uplink and downlink data flows. Specific information is as follows: The control module unpacks the SCTP protocol message and checks whether the NGAP binary stream can be obtained: If the NGAP binary stream can be obtained, 5G signaling perception is performed; If the NGAP binary stream cannot be obtained, it will be discarded directly; The control module parses the NGAP message according to the ASN.1 code to obtain the 5G session signaling type, and then further judges the signaling type to obtain only the session creation, session modification, session release, Xn handover and N2 handover and session-related signaling messages. The rest of the messages are directly discarded; The control module further parses the session creation type signaling to obtain the session identifier, uplink tunnel IP and TEID, downlink tunnel IP and TEID, as well as the slice, QoS, and bearer rate information of the corresponding session; The control module performs algorithm matching based on the analysis results and the user IP and data packet source and destination addresses reported by the data forwarding surface, and combines them into the diversion information table IP-Session table, which means that each user has at least one diversion path, base station IP and TEID <--> diversion gateway <--> UPF IP and TEID.
9. The diversion method according to claim 6, characterized in that: Based on the results of 5G signaling learning, the combined traffic diversion information is stored in the traffic diversion rule information library as follows: The diversion information is stored in the diversion rule information database for query by the data forwarding module when forwarding traffic data; When the 5G terminal sends traffic data, two results are obtained by querying the traffic diversion rule information database, as follows: ① When uplink data packets do not meet the diversion rules: For uplink packets that do not meet the local diversion rules, they are transparently transmitted and sent to the 5G core network along the original path; ② When the uplink data packet meets the diversion rules: For the uplink data packet that meets the diversion rules, the data forwarding plane removes the GTP data encapsulation header, adds a new data encapsulation header, and the private data is sent directly to the private cloud.
10. The diversion method according to any one of claims 6 to 9, characterized in that: Based on a high-performance traffic diversion rule information database, the data forwarding module of the offload gateway device quickly queries the traffic diversion information and forwards the data packets as follows: When receiving data packets from the 5G core network or private cloud, based on the IP information contained in the returned data packet, the learned diversion rule information table IP-Session is searched to obtain the diversion path of the returned data packet, and the stored GTP header is added to direct it to the corresponding base station. The control module further analyzes the session modification and handover type signaling to obtain the session identifier, the tunnel IP and TEID before and after the modification, the QoS, and the bearer rate information. The control module then performs an algorithmic match with the existing information stored in the traffic diversion rule database, obtaining two possible results: ① If a match is found, the existing traffic diversion information is modified; ② If a match is found, new traffic diversion information is created. At the same time, the control module notifies the data forwarding module to send the downlink data packets matching the old diversion information to the corresponding base station through the new diversion path after the session modification or switching is completed; The control module further parses the session release and deletion type signaling, obtains the session identifier of the session, and deletes the diversion information stored in the diversion rule database; After forwarding the cached data packets, the data forwarding module will no longer divert data packets of the corresponding type.
Citation Information
Patent Citations
Data transmission method, gateway, first service switch and equipment
CN115550109A
Shunting method and system based on 5G signaling and service and guaranteeing Qos
CN116782305A