CN116017581A - 5G flow splitting method, device and storage medium - Google Patents

5G flow splitting method, device and storage medium Download PDF

Info

Publication number
CN116017581A
CN116017581A CN202211608539.6A CN202211608539A CN116017581A CN 116017581 A CN116017581 A CN 116017581A CN 202211608539 A CN202211608539 A CN 202211608539A CN 116017581 A CN116017581 A CN 116017581A
Authority
CN
China
Prior art keywords
information
preset
target
gtp
data packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211608539.6A
Other languages
Chinese (zh)
Other versions
CN116017581B (en
Inventor
梁红彬
罗周生
阳志胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Qiantong Technology Co ltd
Original Assignee
Shenzhen Qiantong Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Qiantong Technology Co ltd filed Critical Shenzhen Qiantong Technology Co ltd
Priority to CN202211608539.6A priority Critical patent/CN116017581B/en
Publication of CN116017581A publication Critical patent/CN116017581A/en
Application granted granted Critical
Publication of CN116017581B publication Critical patent/CN116017581B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to the technical field of communication and discloses a 5G flow distribution method, a device and a storage medium, wherein the 5G flow distribution method comprises the steps of receiving a target data packet sent by a 5G terminal; determining a final flow direction of the target packet based on the target I P information; if the final flow direction is the 5G core network, the target data packet is sent to the 5G core network; and if the final flow direction is the data processing equipment, transmitting the target data packet to the data processing equipment based on the information in a preset I P-GTP information list, wherein the preset I P information list in the I P-GTP information list corresponds to the preset GTP information list one by one.

Description

5G flow splitting method, device and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a 5G traffic splitting method, device, and storage medium.
Background
The 5G communication technology is also called as 5 th generation mobile communication technology, and the 5G communication has the characteristics of high bandwidth, low delay, large link and the like. These characteristics of 5G make it a preferred solution for industry communications.
The 5G industry communication comprises typical application scenes such as industrial interconnection, and the scenes require that the data end-to-end time delay of production control and the like is as low as possible; the business attribute of the data is high, and the data is required to be not discharged from a manufacturer park; requiring that the data be stored locally, etc.
The 5G communication adopts advanced control plane and user plane thoroughly separation technology (CUPS), and network element UPF of the user plane can be deployed according to the requirement. However, because the UPF has interaction relation with other control surfaces of the 5G core network, control, management and the like. If UPF network elements are deployed on demand even in a factory building, the entire 5G network topology becomes very huge and complex, the system configuration increases in stages, so that effective management cannot be performed at all, and the controllability of 5G communication resources is low. Therefore, how to improve the controllability of the 5G communication resources is a technical problem to be solved.
Disclosure of Invention
The application provides a 5G traffic distribution method, a device and a storage medium, so as to improve controllability of 5G communication resources.
In a first aspect, the present application provides a 5G traffic splitting method, where the 5G traffic splitting method includes:
receiving a target data packet sent by a 5G terminal, wherein the target data packet comprises target IP information and target GTP information;
determining a final flow direction of the target data packet based on the target IP information;
if the final flow direction is the 5G core network, the target data packet is sent to the 5G core network;
and if the final flow direction is the data processing equipment, transmitting the target data packet to the data processing equipment based on the information in a preset IP-GTP information list, wherein the preset IP information list and the preset GTP information list in the IP-GTP information list are in one-to-one correspondence.
Further, if the final flow direction is the data processing device, the target data packet is sent to the data processing device based on information in a preset IP-GTP information list, where the preset IP information list and the preset GTP information list in the IP-GTP information list are in one-to-one correspondence, and the method includes:
comparing the target IP information with the preset IP information list;
if the preset IP information list does not contain the preset IP information which is the same as the target IP information, storing the target IP information and the GTP information into the preset IP-GTP information list, and then sending the target data packet to the data processing equipment;
if the preset IP information list contains preset IP information identical to the target IP information and GTP information corresponding to the preset IP information is different, deleting the GTP information corresponding to the preset IP information, storing the target GTP information corresponding to the target IP information into the preset IP-GTP information list, and then sending the target data packet to the data processing equipment;
and if the preset IP information which is the same as the target IP information exists in the preset IP information list and GTP information corresponding to the preset IP information is the same as the target GTP, sending the target data packet to the data processing equipment.
Further, if the preset IP information which is the same as the target IP information exists in the preset IP information list and the GTP information corresponding to the preset IP information is different, deleting the GTP information corresponding to the preset IP information includes:
and sending a resource release instruction to the data processing equipment so as to inform the data processing equipment to release the processing resources of the preset IP information and the corresponding preset GTP.
Further, if the final flow direction is the data processing device, the target data packet is sent to the data processing device based on the information in the preset IP-GTP information list, including:
and deleting target GTP information in the target data packet when the final flow direction is determined to be the data processing equipment, and sending the processed target data packet to the data processing equipment.
Further, if the final flow direction is the data processing device, after sending the target data packet to the data processing device based on the information in the preset IP-GTP information list, the method includes:
when receiving a return data packet fed back by the data processing device, adding return GTP information corresponding to the return IP information into the return data packet based on the return IP information contained in the return data packet and the preset IP-GTP information list.
Further, the 5G traffic splitting further comprises:
if a new connection instruction sent by the 5G terminal is received, acquiring the target data packet corresponding to the reconnected 5G terminal, and updating the mapping relation between the target IP address and the target GTP information in the preset IP-GTP information list based on the target data packet corresponding to the reconnected 5G terminal;
if a restarting instruction sent by the 5G base station is received, notifying the data processing equipment to release all resources, and updating the mapping relation between all preset IP addresses and preset GTP information through the preset IP-GTP information list;
and in a preset time period, if the target data packet sent by the 5G terminal is not received, deleting the mapping relation corresponding to the 5G terminal, and releasing the resources corresponding to the 5G terminal through the data processing equipment to realize 5G network distribution.
Further, the target data packet includes uplink data and downlink data, and the 5G traffic splitting method further includes:
binding the terminal IP address information corresponding to the uplink data and the downlink data with a Tunnel Endpoint Identifier (TEID) in the GTP information to generate an uplink TEID and a downlink TEID, wherein the uplink TEID is distributed through the 5G core network, and the downlink TEID is distributed through the 5G base station;
and determining the uplink TEID and the TEID as GTP information.
Further, the 5G traffic splitting method further includes:
configuring a preset local shunting rule based on a rule configuration unit, wherein the local shunting rule comprises IP information and GTP information;
if the target data packet meets the local shunting rule, determining the final flow direction of the target data packet as the data processing equipment;
and if the target data packet does not meet the local shunting rule, determining that the final flow direction of the target data packet is the 5G core network.
In a second aspect, the present application further provides a 5G flow splitting device, the 5G flow splitting device comprising:
the data packet receiving module is used for receiving a target data packet sent by the 5G terminal, wherein the target data packet comprises target IP information and target GTP information;
a final flow direction confirming module, configured to determine a final flow direction of the target data packet based on the target IP information;
a 5G core network flow direction module, configured to send the target data packet to a 5G core network if the final flow direction is the 5G core network;
and the processing equipment flow direction module is used for sending the target data packet to the data processing equipment based on the information in the preset IP-GTP information list if the final flow direction is the data processing equipment, wherein the preset IP information list in the IP-GTP information list corresponds to the preset GTP information list one by one.
In a third aspect, the present application also provides a computer readable storage medium storing a computer program, which when executed by a processor causes the processor to implement a 5G traffic splitting method as described above.
The application discloses a 5G traffic distribution method, a device and a storage medium, wherein the 5G traffic distribution method comprises the steps of receiving a target data packet sent by a 5G terminal, wherein the target data packet comprises target IP information and target GTP information; determining a final flow direction of the target data packet based on the target IP information; if the final flow direction is the 5G core network, the target data packet is sent to the 5G core network; and if the final flow direction is the data processing equipment, transmitting the target data packet to the data processing equipment based on the information in a preset IP-GTP information list, wherein the preset IP information list and the preset GTP information list in the IP-GTP information list are in one-to-one correspondence. According to the method and the device, the final flow direction is determined through the target IP information, and when the target data packet is determined to be sent to the data processing equipment, the target data packet is processed according to the IP-GTP information list and is sent to the data processing equipment, so that the controllability of 5G communication resources is improved, and the technical problem of low controllability of the 5G communication resources is solved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a 5G flow splitting method according to a first embodiment of the present application;
FIG. 2 is a schematic diagram of the operation of the 5G flow splitting device;
fig. 3 is a schematic flow chart of a 5G flow splitting method according to a second embodiment of the present application;
fig. 4 is a schematic flow chart of a 5G flow splitting method according to a third embodiment of the present application;
fig. 5 is a schematic diagram of GTP information format of the present application;
fig. 6 is a schematic block diagram of a 5G flow diversion device provided in an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The flow diagrams depicted in the figures are merely illustrative and not necessarily all of the elements and operations/steps are included or performed in the order described. For example, some operations/steps may be further divided, combined, or partially combined, so that the order of actual execution may be changed according to actual situations.
It is to be understood that the terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
The embodiment of the application provides a 5G flow diversion method, a device and a storage medium. The 5G flow diversion method can be applied to a server, the final flow direction is determined through target IP information, and when the target data packet is determined to be sent to data processing equipment, the target data packet is processed according to an IP-GTP information list and sent to the data processing equipment, so that the controllability of 5G communication resources is improved, and the technical problem of low controllability of the 5G communication resources is solved. The server may be an independent server or a server cluster.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic flow chart of a 5G flow diversion method according to a first embodiment of the present application. The 5G flow diversion method can be applied to a server and used for determining the final flow direction through the target IP information, and when the target data packet is determined to be sent to the data processing equipment, the target data packet is processed according to the IP-GTP information list and sent to the data processing equipment, so that the controllability of 5G communication resources is improved, and the technical problem of low controllability of the 5G communication resources is solved.
As shown in fig. 1, the 5G flow diversion method specifically includes steps S10 to S40.
Step S10, receiving a target data packet sent by a 5G terminal, wherein the target data packet comprises target IP information and target GTP information;
step S20, determining the final flow direction of the target data packet based on the target IP information;
step S30, if the final flow direction is the 5G core network, the target data packet is sent to the 5G core network;
and step S40, if the final flow direction is the data processing equipment, the target data packet is sent to the data processing equipment based on the information in a preset IP-GTP information list, wherein the preset IP information list and the preset GTP information list in the IP-GTP information list are in one-to-one correspondence.
In a specific embodiment, as shown in fig. 2, fig. 2 is a schematic working diagram of a 5G traffic splitting device, where the device is connected in series between a 5G base station and an operator's equipment, and service data of all industrial park 5G terminals are forwarded to a target address by the device. The traffic direction according to the traffic data can be divided into uplink traffic and downlink traffic data. The uplink flow is the service data sent to the destination address by the 5G terminal through the 5G base station and the device of the invention; the downlink flow is the business data which is sent to the 5G terminal of the industrial park after the business server responds to the terminal request and is sent from the server through the device and the base station. The upstream traffic data may be classified into intra-campus traffic data and off-campus traffic data according to the destination address. Before the device of the invention, the on-campus and off-campus traffic data will be sent to a 5G core network deployed at the operator, where the on-campus traffic data is routed back to the on-campus industrial data processing facility.
Traffic data on the campus also needs to be routed to the operator's room to be routed to data processing equipment local to the campus, which tends to increase the delay of the data and also leaves the possibility of exposing the traffic data. The device can directly shunt the service data in the 5G terminal uplink park of the industrial park to the industrial data processing equipment according to the preconfigured rule without forwarding through an operator 5G core network.
The 5G flow splitting device is composed of a plurality of functional modules and comprises: the system comprises a system main controller, a configuration module, a high-speed data message processing module, a rule matching module, a statistics module and a log module.
The main controller is responsible for coordinating the calling and supervision of each functional module, so that the whole device operates orderly;
the configuration module is configured to configure local traffic data offload rules, which may be one or a combination of some of the following rules, including: an uplink data message destination IP address; a target IP port of the uplink data message; a target IP protocol of the uplink data message; the target domain name of the uplink data message. The number of the rules is not less than 1000, and the configuration can be completed, modified, deleted and other daily management through CLI commands or management interfaces.
The rule matching module is used for storing the rule of the configuration module and expanding the rule according to a certain algorithm so as to quickly match whether the uplink service data message can trigger the local shunting rule or not, and the module is mainly called by the data message processing module.
The data message processing module is used for processing (receiving and transmitting) uplink and downlink service data, and when the uplink data message is received from the network, the module determines whether to perform local shunting processing on the data message by calling a rule matching module. If the local shunting condition is not met, the data is directly forwarded according to the original path. If the local shunting condition is met, the local shunting of the data is finished by forwarding the local shunting condition to the local data processing equipment through the routing equipment. The downlink data sent from the local data processing equipment are all forwarded to the 5G base station, and the routing of the data from the equipment to the industrial 5G terminal is completed.
The statistics module is used for counting the data traffic of the uplink and downlink local shunting, and can count the traffic according to time periods or days or weeks. The statistical result is stored in the equipment according to a certain naming rule in real time.
The log module is mainly used for outputting and storing system operation log and state information, and the information can be output to a designated position according to configuration so as to enable management personnel to monitor the system operation state in real time.
The embodiment discloses a 5G traffic distribution method, a device and a storage medium, wherein the 5G traffic distribution method comprises the steps of receiving a target data packet sent by a 5G terminal, wherein the target data packet comprises target IP information and target GTP information; determining a final flow direction of the target data packet based on the target IP information; if the final flow direction is the 5G core network, the target data packet is sent to the 5G core network; and if the final flow direction is the data processing equipment, transmitting the target data packet to the data processing equipment based on the information in a preset IP-GTP information list, wherein the preset IP information list and the preset GTP information list in the IP-GTP information list are in one-to-one correspondence. The one-to-one correspondence between the IP information list and the GTP information list is matched by the device through online learning, so that the device is used as a preset condition when processing specific data packets. According to the method and the device, the final flow direction is determined through the target IP information, and when the target data packet is determined to be sent to the data processing equipment, the target data packet is processed according to the IP-GTP information list and is sent to the data processing equipment, so that the controllability of 5G communication resources is improved, and the technical problem of low controllability of the 5G communication resources is solved.
Referring to fig. 3, fig. 3 is a schematic flow chart of a 5G flow diversion method according to a first embodiment of the present application. The 5G flow diversion method can be applied to a server and used for determining the final flow direction through the target IP information, and when the target data packet is determined to be sent to the data processing equipment, the target data packet is processed according to the IP-GTP information list and sent to the data processing equipment, so that the controllability of 5G communication resources is improved, and the technical problem of low controllability of the 5G communication resources is solved.
Based on the embodiment shown in fig. 1, in this embodiment, as shown in fig. 2, the step S40 specifically includes steps S41 to S44.
S41, comparing the target IP information with the preset IP information list;
step S42, if the preset IP information which is the same as the target IP information does not exist in the preset IP information list, storing the target IP information and the GTP information into the preset IP-GTP information list, and then sending the target data packet to the data processing equipment;
step S43, if the preset IP information list has preset IP information identical to the target IP information and GTP information corresponding to the preset IP information is different, deleting the GTP information corresponding to the preset IP information, storing the target GTP information corresponding to the target IP information into the preset IP-GTP information list, and then transmitting the target data packet to the data processing equipment;
step S44, if the preset IP information which is the same as the target IP information exists in the preset IP information list and GTP information corresponding to the preset IP information is the same as the target GTP, the target data packet is sent to the data processing equipment.
In a specific embodiment, if the network access operation of the terminal occurs in a certain service flow, that is, the last service flow has not completed the state of the terminal, so that the last service data is in a waiting state because the binding relationship between the terminal UE IP and the TEID may be refreshed when the service data passes through the device, and there is no failure in forwarding the downlink service data generated by the campus industrial data processing device, where the campus industrial data processing device cannot acquire the entire link routing condition.
If there are a lot of network terminals in the above situation, for example, a local power trip accident causes all the 5G terminals in the area to reselect to the network, so that many data links are in waiting state for the industrial data processing equipment in the campus.
An abnormally high number of data links in a waiting state may result in insufficient available resources of the campus industrial data processing device or a failure to process the service data of the normal terminal in time, resulting in confusion of the entire campus device.
The device makes pairing binding for the TEID information of the GTP header of the user and the UE IP address information, so that the UE IP address can be searched through the GTP header TEID information, and the GTP header TEID information can also be obtained through the UE IP address searching. Specifically, uplink GTP TEID information of a certain user is allocated by the core network, and header TEID information of downlink GTP is allocated by the base station.
And obtaining two results by querying a rule base.
The first result is that the upstream packet does not meet the local offload requirement.
The second type of resulting upstream packet meets the local offload requirement.
For the uplink data packet which does not meet the local shunting requirement in the first case, the device does not process, and continues to send the original data packet to the operator 5G core network according to the original routing mode.
For the uplink data packet meeting the local shunting requirement in the second case, the device removes the GTP data encapsulation packet header to restore the data into the original IP data packet, so that the data packet can directly finish routing in the IP equipment.
The device increases statistics of the split data packets, including the number of the data packets, the number of bytes and the like.
The device sends the IP data packet processed by the steps according to the target IP address.
And the local park uplink data packet reaches the park industrial data processing equipment through the routing equipment to complete the local shunting flow.
Based on the embodiment shown in fig. 3, in this embodiment, the step S43 further includes:
and sending a resource release instruction to the data processing equipment so as to inform the data processing equipment to release the processing resources of the preset IP information and the corresponding preset GTP.
Based on the embodiment shown in fig. 1, in this embodiment, the step S40 includes:
and deleting target GTP information in the target data packet when the final flow direction is determined to be the data processing equipment, and sending the processed target data packet to the data processing equipment.
Based on the embodiment shown in fig. 1, in this embodiment, the step S40 includes:
when receiving a return data packet fed back by the data processing device, adding return GTP information corresponding to the return IP information into the return data packet based on the return IP information contained in the return data packet and the preset IP-GTP information list.
In a specific embodiment, the device encapsulates the original IP packet from the second source in a GTP packet format, that is, obtains the context of the terminal by searching the IP address of the corresponding terminal, including the downlink TEID, and fills the GTP packet header.
The device sends the encapsulated data packet from the second source to the 5G base station, and the 5G base station sends the data packet to the 5G terminal of the corresponding park through wireless.
Referring to fig. 4, fig. 4 is a schematic flow chart of a 5G flow diversion method according to a third embodiment of the present application. The 5G flow splitting method can be applied to a server, and is used for searching GTP information to be determined, which is matched with target GTP information, in a preset IP-GTP information list after the target GTP information is determined through a target IP address, and sending a data packet to a 5G core network under the condition that the target GTP information is the same as the GTP information to be determined, so that the controllability of 5G communication resources is improved, and the technical problem of low controllability of the 5G communication resources is solved.
In this embodiment, the 5G flow diversion further includes steps S50 to S70.
Step S50, if a new connection instruction sent by the 5G terminal is received, acquiring the target data packet corresponding to the reconnected 5G terminal, and updating the mapping relation between the target IP address and the target GTP information in the preset IP-GTP information list based on the target data packet corresponding to the reconnected 5G terminal;
step S60, if a restarting instruction sent by the 5G base station is received, notifying the data processing equipment to release all resources, and updating the mapping relation between all preset IP addresses and preset GTP information through the preset IP-GTP information list;
and step S70, deleting the mapping relation corresponding to the 5G terminal if the target data packet sent by the 5G terminal is not received in a preset time period, and releasing the resources corresponding to the 5G terminal through the data processing equipment so as to realize 5G network shunting.
In a specific embodiment, a link creation report of a 5G terminal of a 5G base station (i.e., a message that the 5G terminal uses a new IP address to perform flow processing) is received, based on the IP address in the link creation report, a list of IP-GTP header information of the 5G terminal (the IP address and GTP header information are in one-to-one correspondence with the 5G terminal, the IP address is used for letting the core network identify the 5G terminal, the GTP header is used for letting the 5G base station identify the 5G terminal) look up a corresponding IP address, if there is a corresponding IP address, a corresponding industrial data processing device is notified to release resources corresponding to the IP address, and a mapping relation of the IP-GTP header information of the new 5G terminal is created in the list based on the GTP header information of an existing data packet, and a response instruction is sent to the industrial data processing device to perform processing.
And releasing the processing resources of the industrial data processing equipment corresponding to the IP addresses of all terminals corresponding to the restarting equipment according to the received restarting information of the 5G base station. (the difference between the first is that the active new connection instruction of the 5G terminal (the terminal needs to reacquire the IP address in general) and the second is that the restart of the 5G base station, the IP address of the 5G terminal is not necessarily changed, but the GTP header information corresponding to the IP address is changed
If a certain IP address in the list does not receive the information of the 5G terminal for a long time, deleting the IP address mapping and notifying the industrial data processing equipment to release the corresponding resource.
Based on the embodiment shown in fig. 1, in this embodiment, the 5G flow splitting method includes:
binding the terminal IP address information corresponding to the uplink data and the downlink data with a Tunnel Endpoint Identifier (TEID) in the GTP information to generate an uplink TEID and a downlink TEID, wherein the uplink TEID is distributed through the 5G core network, and the downlink TEID is distributed through the 5G base station;
and determining the uplink TEID and the TEID as GTP information.
In a specific embodiment, after the uplink packet is sent from the 5G terminal to the base station, the base station packages the uplink packet into a GTP-U format and sends the GTP-U format to the 5G core network, where the format is shown in fig. 5, and fig. 5 is a schematic diagram of the GTP information format.
When the uplink data packet flows through the device, the device opens the GTP header of the uplink data packet (namely, passes through the length of the GTP header), so that the information of the destination IP address, the port, the protocol and the like of the data packet is obtained.
The device encapsulates the original IP data packet from the second source in GTP data packet format, namely, obtains the context of the terminal by searching the IP address of the corresponding terminal, including downlink TEID, and fills the GTP packet header.
Based on all the above embodiments, the 5G traffic splitting method further includes:
configuring a preset local shunting rule based on a rule configuration unit, wherein the local shunting rule comprises IP information and GTP information;
if the target data packet meets the local shunting rule, determining the final flow direction of the target data packet as the data processing equipment;
and if the target data packet does not meet the local shunting rule, determining that the final flow direction of the target data packet is the 5G core network.
In a specific embodiment, the main controller invokes the parameter configuration module to complete initial configuration of the system, including network configuration and distribution rule configuration. When the system is restarted after configuring the diversion rule, the configured diversion rule is read.
The device expands the distribution rules and stores the distribution rules in warehouse so as to facilitate subsequent quick searching of the corresponding rules.
The configuration module monitors and inputs the local shunting rule configuration (adding, modifying and deleting operations) in real time and stores the result in real time, and the operation can be completed through network management or CLI. The splitting rule is exemplified as follows:
rule #1: dstlip= 192.168.1.128and dstPort =3000
Rule #2: dstlip= 192.168.2.88or dstPort =4000
Rule #3: dstlip range=192.168.3. X (x=1-128)
Rule #4: dstPort range=5000-5020
Rule #5: protocol=snmp
The device collects uplink service data initiated by the 5G terminal of the industrial park through the 5G base station in real time.
Referring to fig. 6, fig. 6 is a schematic block diagram of a 5G flow splitting device according to an embodiment of the present application, where the 5G flow splitting device is configured to perform the foregoing 5G flow splitting method. The 5G traffic splitting device may be configured on a server.
As shown in fig. 6, the 5G flow splitting device includes:
a data packet receiving module 10, configured to receive a target data packet sent by a 5G terminal, where the target data packet includes target IP information and target GTP information;
a final flow direction confirmation module 20, configured to determine a final flow direction of the target packet based on the target IP information;
a 5G core network flow direction module 30, configured to send the target data packet to a 5G core network if the final flow direction is the 5G core network;
and a processing device flow module 40, configured to send the target data packet to the data processing device based on information in a preset IP-GTP information list if the final flow direction is the data processing device, where the preset IP information list and the preset GTP information list in the IP-GTP information list are in one-to-one correspondence.
Further, the processing device flow module 40 further includes an IP information comparison module, which specifically includes:
the IP information comparison unit is used for comparing the target IP information with the preset IP information list;
a first sending unit, configured to store, if preset IP information identical to the target IP information does not exist in the preset IP information list, the target IP information and the GTP information into the preset IP-GTP information list, and then send the target data packet to the data processing device;
a second sending unit, configured to delete GTP information corresponding to the preset IP information if preset IP information identical to the target IP information exists in the preset IP information list and GTP information corresponding to the preset IP information is different, and store the target GTP information corresponding to the target IP information into the preset IP-GTP information list, and then send the target data packet to the data processing device;
and a third sending unit, configured to send the target data packet to the data processing device if preset IP information that is the same as the target IP information exists in the preset IP information list and GTP information corresponding to the preset IP information is the same as the target GTP.
Further, the IP information comparison module further includes a resource release unit, which specifically includes:
and the resource release subunit is used for sending a resource release instruction to the data processing equipment so as to inform the data processing equipment to release the processing resources of the preset IP information and the corresponding preset GTP.
Further, the processing device flow direction module 40 further includes:
and the data packet processing unit is used for deleting target GTP information in the target data packet when the final flow direction is determined to be the data processing equipment, and sending the processed target data packet to the data processing equipment.
Further, the 5G traffic splitting device further includes a GTP information adding module, specifically including:
and adding a GTP information unit, configured to, when receiving a return data packet fed back by the data processing device, add, to the return data packet, return GTP information corresponding to the return IP information based on return IP information contained in the return data packet and the preset IP-GTP information list.
Further, the 5G flow diversion device further includes an instruction module, specifically including:
a new connection instruction unit, configured to obtain the target data packet corresponding to the reconnected 5G terminal if a new connection instruction sent by the 5G terminal is received, and update, in the preset IP-GTP information list, a mapping relationship between the target IP address and the target GTP information based on the target data packet corresponding to the reconnected 5G terminal;
a restart instruction unit, configured to update, if a restart instruction sent by the 5G base station is received, mapping relationships between all preset IP addresses and preset GTP information through the preset IP-GTP information list;
and the mapping relation deleting unit is used for deleting the mapping relation corresponding to the 5G terminal and releasing the resources corresponding to the 5G terminal through the data processing equipment so as to realize 5G network shunting if the target data packet sent by the 5G terminal is not received in a preset time period.
Further, the 5G traffic splitting device further includes a GTP information determining module, specifically including:
a TEID generating unit, configured to bind terminal IP address information corresponding to the uplink data and the downlink data respectively with a tunnel endpoint identifier TEID in the GTP information, and generate an uplink TEID and a downlink TEID, where the uplink TEID is allocated through the 5G core network, and the downlink TEID is allocated through the 5G base station;
and the GTP information determining unit is used for determining the uplink TEID and the TEID as GTP information.
Further, the 5G traffic splitting device further includes a splitting rule configuration module, specifically including:
the local shunting rule configuration unit is used for configuring a preset local shunting rule based on the rule configuration unit, wherein the local shunting rule comprises IP information and GTP information;
the first shunting unit is used for determining the final flow direction of the target data packet as the data processing equipment if the target data packet meets the local shunting rule;
and the second flow dividing unit is used for determining that the final flow direction of the target data packet is the 5G core network if the target data packet does not meet the local flow dividing rule.
It should be noted that, for convenience and brevity of description, specific working processes of the apparatus and the modules described above may refer to corresponding processes in the foregoing method embodiments, which are not described herein again.
The apparatus described above may be implemented in the form of a computer program which is executable on a computer device.
Embodiments of the present application further provide a computer readable storage medium, where the computer readable storage medium stores a computer program, where the computer program includes program instructions, and the processor executes the program instructions to implement any one of the 5G traffic splitting methods provided in the embodiments of the present application.
The computer readable storage medium may be an internal storage unit of the computer device according to the foregoing embodiment, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, which are provided on the computer device.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. The 5G flow diversion method is characterized by comprising the following steps of:
receiving a target data packet sent by a 5G terminal, wherein the target data packet comprises target IP information and target GTP information;
determining a final flow direction of the target data packet based on the target IP information;
if the final flow direction is the 5G core network, the target data packet is sent to the 5G core network;
and if the final flow direction is the data processing equipment, transmitting the target data packet to the data processing equipment based on the information in a preset IP-GTP information list, wherein the preset IP information list and the preset GTP information list in the IP-GTP information list are in one-to-one correspondence.
2. The 5G traffic offload method according to claim 1, wherein if the final flow direction is a data processing apparatus, the target data packet is sent to the data processing apparatus based on information in a preset IP-GTP information list, where the preset IP information list and the preset GTP information list in the IP-GTP information list are in one-to-one correspondence, and the method includes:
comparing the target IP information with the preset IP information list;
if the preset IP information list does not contain the preset IP information which is the same as the target IP information, storing the target IP information and the GTP information into the preset IP-GTP information list, and then sending the target data packet to the data processing equipment;
if the preset IP information list contains preset IP information identical to the target IP information and GTP information corresponding to the preset IP information is different, deleting the GTP information corresponding to the preset IP information, storing the target GTP information corresponding to the target IP information into the preset IP-GTP information list, and then sending the target data packet to the data processing equipment;
and if the preset IP information which is the same as the target IP information exists in the preset IP information list and GTP information corresponding to the preset IP information is the same as the target GTP, sending the target data packet to the data processing equipment.
3. The method for 5G traffic splitting according to claim 2, wherein if the preset IP information that is the same as the target IP information exists in the preset IP information list and GTP information corresponding to the preset IP information is different, deleting the GTP information corresponding to the preset IP information includes:
and sending a resource release instruction to the data processing equipment so as to inform the data processing equipment to release the processing resources of the preset IP information and the corresponding preset GTP.
4. The 5G traffic offload method of claim 1, wherein if the final flow direction is a data processing apparatus, sending the target data packet to the data processing apparatus based on information in a preset IP-GTP information list, comprising:
and deleting target GTP information in the target data packet when the final flow direction is determined to be the data processing equipment, and sending the processed target data packet to the data processing equipment.
5. The 5G traffic offload method according to claim 1, wherein if the final flow direction is a data processing apparatus, after sending the target data packet to the data processing apparatus based on information in a preset IP-GTP information list, the method comprises:
when receiving a return data packet fed back by the data processing device, adding return GTP information corresponding to the return IP information into the return data packet based on the return IP information contained in the return data packet and the preset IP-GTP information list.
6. The 5G traffic splitting method of claim 1, wherein the 5G traffic splitting further comprises:
if a new connection instruction sent by the 5G terminal is received, acquiring the target data packet corresponding to the reconnected 5G terminal, and updating the mapping relation between the target IP address and the target GTP information in the preset IP-GTP information list based on the target data packet corresponding to the reconnected 5G terminal;
if a restarting instruction sent by the 5G base station is received, notifying the data processing equipment to release all resources, and updating the mapping relation between all preset IP addresses and preset GTP information through the preset IP-GTP information list;
and in a preset time period, if the target data packet sent by the 5G terminal is not received, deleting the mapping relation corresponding to the 5G terminal, and releasing the resources corresponding to the 5G terminal through the data processing equipment to realize 5G network distribution.
7. The 5G traffic splitting method of claim 1, wherein the target data packet comprises upstream data and downstream data, the 5G traffic splitting method further comprising:
binding the terminal IP address information corresponding to the uplink data and the downlink data with a Tunnel Endpoint Identifier (TEID) in the GTP information to generate an uplink TEID and a downlink TEID, wherein the uplink TEID is distributed through the 5G core network, and the downlink TEID is distributed through the 5G base station;
and determining the uplink TEID and the TEID as GTP information.
8. The 5G flow splitting method of any of claims 1-7, further comprising:
configuring a preset local shunting rule based on a rule configuration unit, wherein the local shunting rule comprises IP information and GTP information;
if the target data packet meets the local shunting rule, determining the final flow direction of the target data packet as the data processing equipment;
and if the target data packet does not meet the local shunting rule, determining that the final flow direction of the target data packet is the 5G core network.
9. A 5G flow splitting device, the 5G flow splitting device comprising:
the data packet receiving module is used for receiving a target data packet sent by the 5G terminal, wherein the target data packet comprises target IP information and target GTP information;
a final flow direction confirming module, configured to determine a final flow direction of the target data packet based on the target IP information;
a 5G core network flow direction module, configured to send the target data packet to a 5G core network if the final flow direction is the 5G core network;
and the processing equipment flow direction module is used for sending the target data packet to the data processing equipment based on the information in the preset IP-GTP information list if the final flow direction is the data processing equipment, wherein the preset IP information list in the IP-GTP information list corresponds to the preset GTP information list one by one.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, causes the processor to implement the 5G traffic splitting method according to any of claims 1 to 7.
CN202211608539.6A 2022-12-14 2022-12-14 5G flow splitting method, device and storage medium Active CN116017581B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211608539.6A CN116017581B (en) 2022-12-14 2022-12-14 5G flow splitting method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211608539.6A CN116017581B (en) 2022-12-14 2022-12-14 5G flow splitting method, device and storage medium

Publications (2)

Publication Number Publication Date
CN116017581A true CN116017581A (en) 2023-04-25
CN116017581B CN116017581B (en) 2024-06-21

Family

ID=86036397

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211608539.6A Active CN116017581B (en) 2022-12-14 2022-12-14 5G flow splitting method, device and storage medium

Country Status (1)

Country Link
CN (1) CN116017581B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120076120A1 (en) * 2010-09-24 2012-03-29 Movik Networks Destination Learning and Mobility detection in Transit Network Device in LTE & UMTS Radio Access Networks
CN104639451A (en) * 2013-11-14 2015-05-20 中兴通讯股份有限公司 Data flow distribution method and controller
CN105577501A (en) * 2014-10-16 2016-05-11 成都鼎桥通信技术有限公司 Lower-hanging equipment network access communication realization method of private network client terminal equipment and apparatus thereof
CN107333295A (en) * 2017-06-09 2017-11-07 京信通信系统(中国)有限公司 A kind of data distribution method and gateway
CN109688608A (en) * 2019-01-02 2019-04-26 广州汇智通信技术有限公司 A kind of voice data shunt method and system
US10624148B1 (en) * 2018-11-05 2020-04-14 Microsoft Tehnology Licensing, LLC Implementation of core cellular networking stack on cloud infrastructure
CN111328108A (en) * 2020-02-21 2020-06-23 杭州迪普信息技术有限公司 5G service data processing method and device and shunting equipment
EP3726815A1 (en) * 2015-09-23 2020-10-21 Google LLC Distributed software defined wireless packet core system
CN112752303A (en) * 2021-01-06 2021-05-04 深圳市日海飞信信息系统技术有限公司 Local shunting method, device and equipment for vertical industry
CN114727291A (en) * 2022-03-31 2022-07-08 中国电信股份有限公司 Local distribution system, method, device, network equipment and storage medium
CN114980100A (en) * 2022-05-16 2022-08-30 中国电信股份有限公司 Service data distribution method and device, electronic equipment and storage medium
CN115002827A (en) * 2021-03-01 2022-09-02 中兴通讯股份有限公司 Local edge distribution method and system, distribution service device and base station

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120076120A1 (en) * 2010-09-24 2012-03-29 Movik Networks Destination Learning and Mobility detection in Transit Network Device in LTE & UMTS Radio Access Networks
CN104639451A (en) * 2013-11-14 2015-05-20 中兴通讯股份有限公司 Data flow distribution method and controller
CN105577501A (en) * 2014-10-16 2016-05-11 成都鼎桥通信技术有限公司 Lower-hanging equipment network access communication realization method of private network client terminal equipment and apparatus thereof
EP3726815A1 (en) * 2015-09-23 2020-10-21 Google LLC Distributed software defined wireless packet core system
CN107333295A (en) * 2017-06-09 2017-11-07 京信通信系统(中国)有限公司 A kind of data distribution method and gateway
US10624148B1 (en) * 2018-11-05 2020-04-14 Microsoft Tehnology Licensing, LLC Implementation of core cellular networking stack on cloud infrastructure
CN109688608A (en) * 2019-01-02 2019-04-26 广州汇智通信技术有限公司 A kind of voice data shunt method and system
CN111328108A (en) * 2020-02-21 2020-06-23 杭州迪普信息技术有限公司 5G service data processing method and device and shunting equipment
CN112752303A (en) * 2021-01-06 2021-05-04 深圳市日海飞信信息系统技术有限公司 Local shunting method, device and equipment for vertical industry
CN115002827A (en) * 2021-03-01 2022-09-02 中兴通讯股份有限公司 Local edge distribution method and system, distribution service device and base station
CN114727291A (en) * 2022-03-31 2022-07-08 中国电信股份有限公司 Local distribution system, method, device, network equipment and storage medium
CN114980100A (en) * 2022-05-16 2022-08-30 中国电信股份有限公司 Service data distribution method and device, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
KDDI, CHINA MOBILE, AT AMP;AMP;T, QUALCOMM INC.: "SP-170513 "PGW selection for 5GC UE"", 3GPP TSG_SA\\TSG_SA, no. 76, 2 June 2017 (2017-06-02) *
何宇锋;林奕琳;单雨威;: "5G MEC分流方案探讨", 移动通信, no. 09, 15 September 2020 (2020-09-15) *

Also Published As

Publication number Publication date
CN116017581B (en) 2024-06-21

Similar Documents

Publication Publication Date Title
EP3879879B1 (en) Time sensitive networking communication method and apparatus thereof
US20220060416A1 (en) Routing Rule Management Method and Communications Apparatus
CN113596191B (en) Data processing method, network element equipment and readable storage medium
CN110326345B (en) Method, device and system for configuring network slice
US11528239B2 (en) Time-sensitive networking communication method and apparatus for configuring virtual switching node
US20210274418A1 (en) Information Transmission Method and Apparatus
CN105684382A (en) Packet control method, switch and controller
US10855576B2 (en) Information transmission method and device
CN111935017B (en) Cross-network application calling method and device and routing equipment
CN111049752A (en) Load balancing method and device for multiple transmission lines
WO2022082724A1 (en) Method and apparatus for multicast service support in time sensitive network
CN114221781A (en) Flow filtering method and system, electronic device and storage medium
CN113824576A (en) Slice data transmission method and device, electronic equipment and readable medium
WO2022151420A1 (en) Method, apparatus, and system for transmitting data packet
CN109120657B (en) Service configuration method and node
CN113765800B (en) Method, device, system, equipment and readable storage medium for transmitting message
CN116017581B (en) 5G flow splitting method, device and storage medium
EP4373045A1 (en) Dbng-up backup method and apparatus
WO2017193814A1 (en) Service chain generation method and system
CN110474781B (en) Method and device for forwarding multicast data
CN113783971A (en) Address management method, network device, and storage medium
CN114430310A (en) Information processing method and device, broadband access server and storage medium
CN110011820B (en) Method and device for connecting systems and computer storage medium
CN112235212B (en) Message forwarding method and programmable frame type switching equipment
EP4040728A1 (en) Filtering information configuration method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant