CN111405682B - Data forwarding method and gateway - Google Patents

Data forwarding method and gateway Download PDF

Info

Publication number
CN111405682B
CN111405682B CN202010197609.8A CN202010197609A CN111405682B CN 111405682 B CN111405682 B CN 111405682B CN 202010197609 A CN202010197609 A CN 202010197609A CN 111405682 B CN111405682 B CN 111405682B
Authority
CN
China
Prior art keywords
gateway
target
pdu session
service
data
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.)
Active
Application number
CN202010197609.8A
Other languages
Chinese (zh)
Other versions
CN111405682A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202010197609.8A priority Critical patent/CN111405682B/en
Publication of CN111405682A publication Critical patent/CN111405682A/en
Application granted granted Critical
Publication of CN111405682B publication Critical patent/CN111405682B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a data forwarding method and a gateway, which relate to the technical field of communication and are used for reducing the protocol data unit PDU session capacity pressure of operator network equipment. Comprising the following steps: receiving a first request message of a terminal; the first request message is used for requesting service data of a target service to be forwarded through the gateway; the first request message comprises a service type of the target service; judging whether a target protocol data unit PDU session exists between a gateway and a preset network according to the service type of the target service; the target PDU session is used for bearing target service; if a target PDU session exists between the gateway and a preset network, an indication message is sent to the terminal; the indication message is used for indicating the terminal to send service data to the gateway; after receiving the service data, the service data is forwarded through the target PDU session. The embodiment of the invention is applied to data forwarding of operators.

Description

Data forwarding method and gateway
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data forwarding method and a gateway.
Background
Currently, in a large-scale internet of things service scenario defined by a fifth Generation mobile communication technology (5 th-Generation, 5G), each internet of things device may perform data interaction with an application server (Application Server, AS) through a 5G network. Specifically, a subscriber identification (Subscriber Identity Module, SIM) card is arranged in the Internet of things equipment, a protocol data unit (ProtocolDataUnit, PDU) session is requested to be established to the 5G network through the SIM card, and data interaction is performed with the AS through the established PDU session.
However, with the large-scale development of the internet of things service, the number of internet of things devices increases dramatically, and each internet of things device needs to establish a PDU session with the 5G network alone, which results in that a large number of PDU sessions are stored in the 5G network device, thereby increasing the PDU session capacity pressure of the operator network device.
Disclosure of Invention
The embodiment of the invention provides a data forwarding method and a gateway, which are used for reducing PDU session capacity pressure of operator network equipment.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical scheme:
in a first aspect, a first request message of a terminal is received; the first request message is used for requesting service data of a target service to be forwarded through the gateway; the first request message comprises the service type of the target service; judging whether a target protocol data unit PDU session exists between the gateway and a preset network according to the service type of the target service; wherein the target PDU session is used to carry the target service; if a target PDU session exists between the gateway and a preset network, an indication message is sent to the terminal; the indication message is used for indicating the terminal to send the service data to the gateway; and forwarding the service data through the target PDU session after receiving the service data.
In a second aspect, a gateway is provided, where the gateway includes a receiving unit, a judging unit, and a sending unit: the receiving unit is used for receiving a first request message of the terminal; the first request message is used for requesting service data of a target service to be forwarded through the gateway; the first request message comprises the service type of the target service; the judging unit is used for judging whether a target protocol data unit PDU session exists between the gateway and a preset network according to the service type of the target service; wherein the target PDU session is used to carry the target service; the sending unit is configured to send an indication message to the terminal if a target PDU session exists between the gateway and a preset network; the indication message is used for indicating the terminal to send the service data to the gateway; the sending unit is further configured to forward the service data through the target PDU session after the gateway receives the service data.
In a third aspect, a computer readable storage medium storing one or more programs is provided, wherein the one or more programs comprise instructions, which when executed by a computer, cause the computer to perform the data forwarding method as in the first aspect.
In a fourth aspect, there is provided a gateway comprising: a processor, a memory, and a communication interface; wherein the communication interface is used for the gateway to communicate with other devices or networks; the memory is configured to store one or more programs, the one or more programs comprising computer-executable instructions that, when executed by the gateway, cause the gateway to perform the data forwarding method as described in the first aspect.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the data forwarding method as in the first aspect.
The data forwarding method provided by the embodiment of the invention is applied to the gateway, and the gateway can determine the service type of the target service corresponding to the service data from the first request message after receiving the first request message of the service data which is required to be sent by the terminal through the gateway. Furthermore, the gateway judges whether a target PDU session capable of bearing the target service exists between the gateway and a preset network according to the service type of the target service, and can determine whether to establish the target PDU session according to the judging result. And when the gateway determines that the target PDU session exists between the gateway and the preset network, the gateway sends an indication message to the terminal so as to indicate that the terminal can send service data to the gateway. Further, after receiving the service data sent by the terminal, the gateway may forward the service data through the target PDU session. It can be understood that, through the above technical scheme, when the terminal needs to forward data through the gateway, the gateway can determine whether a target PDU session exists between the gateway and the preset network, if so, the existing target PDU session is directly utilized to forward data, and a new PDU session is not required to be established for different types of services of different terminals, thereby reducing PDU session capacity pressure of the operator network device.
Drawings
Fig. 1 is a schematic diagram of a network system according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a data forwarding method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a network system according to a second embodiment of the present invention;
fig. 4 is a schematic flow chart of a data forwarding method according to a second embodiment of the present invention;
fig. 5 is a schematic flow chart III of a data forwarding method according to an embodiment of the present invention;
fig. 6 is a schematic flow chart of a data forwarding method according to an embodiment of the present invention;
fig. 7 is a schematic flow chart fifth of a data forwarding method according to an embodiment of the present invention;
fig. 8 is a flowchart of a data forwarding method according to a sixth embodiment of the present invention;
fig. 9 is a schematic diagram of a gateway structure according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a gateway structure according to a second embodiment of the present invention;
fig. 11 is a schematic diagram of a gateway structure according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention.
In the description of the present invention, "/" means "or" unless otherwise indicated, for example, A/B may mean A or B. "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. Furthermore, "at least one" means one or more, and "a plurality" means two or more. The terms "first," "second," and the like do not limit the number and order of execution, and the terms "first," "second," and the like do not necessarily differ.
The inventive concept of the present invention is described below: currently, three major service scenarios are defined in 5G, namely enhanced mobile broadband service, ultra-low latency ultra-high reliability service, and large-scale internet of things service. In a large-scale internet of things service scene defined by 5G, each internet of things device can perform data interaction with an AS through a 5G network. Specifically, a SIM card is arranged in the Internet of things equipment, the Internet of things equipment can request to establish a PDU session from a 5G network through the SIM card, and data interaction is carried out with an AS through the established PDU session.
However, with the large-scale development of the internet of things service, the number of internet of things devices increases dramatically, the number of connections of the large-scale internet of things will reach the level of millions of connections per square kilometer, and the demands for code number resources of operators will be tens of millions or even hundreds of millions. Meanwhile, if each piece of internet of things equipment needs to establish a PDU session independently, each piece of internet of things equipment needs to establish a PDU session independently with the 5G network, a large number of PDU sessions are stored in the 5G network equipment of the operator, and therefore PDU session capacity pressure of the network equipment of the operator is increased.
Based on the technology, the invention considers whether the business of different internet of things equipment with the same business type can be processed in batches, namely, one PDU session is established for the internet of things equipment with the same business type, and a plurality of internet of things terminals with the same business type can share the same PDU session. Therefore, one PDU session does not need to be newly established for each piece of Internet of things equipment, PDU session capacity pressure of the operator network equipment can be reduced, and the technical problems can be solved.
Based on the above inventive concept, an embodiment of the present invention provides a data forwarding method, which is applied to a gateway 101 in a network system 10 AS shown in fig. 1, where the network system 10 further includes a terminal 102 and an AS103. The terminal 102 may be an internet of things terminal with a monitoring environment and a data transmission function, and the gateway 101 may be a proxy session management gateway (Proxy Session Management Gateway), which is a network element device defined for batch proxy processing of data service session functions. The gateway 101 performs data interaction with the AS103 through a preset network.
As shown in fig. 2, the data forwarding method provided in the embodiment of the present invention may specifically include: S201-S204:
s201, the gateway receives a first request message of the terminal.
The first request message is used for requesting service data of a target service to be forwarded through the gateway. The first request message includes a traffic type of the target traffic.
As a possible implementation manner, after the gateway registers the terminal, the gateway receives the first request message sent by the terminal.
It should be noted that a terminal usually has only one target service, and one target service usually corresponds to only one service type, and the terminal may perform signaling interaction with the gateway through WiFi (Wireless-Fidelity), bluetooth connection or wired connection.
In one implementation, the gateway has a standard defined subscriber permanent subscription identity (Subscription Permanent Identifier, SUPI), and the terminal does not need to have a standardized terminal identity, but can also establish a connection with the gateway through the SUPI of the gateway.
S202, the gateway judges whether a target protocol data unit PDU session exists between the gateway and a preset network according to the service type of the target service.
Wherein the target PDU session is used to carry the target traffic.
As a possible implementation manner, after determining the service type of the target service from the first request message, the gateway queries whether the target PDU session exists between the gateway and the preset network.
In one implementation, the target PDU session may be a PDU session established by the gateway according to the same type of traffic requirements of other terminals.
Optionally, as shown in fig. 3, in the data forwarding method provided in the embodiment of the present invention, the preset network may be a 5G network.
Among other things, the 5G network includes access and mobility management function (Access and Mobility Management function, AMF) devices, next generation radio access network (NG Radio Access Network, NG-RAN), user plane function (User Plane Function, UPF) devices, session management function (Session Management Function, SMF) devices.
In one possible design, the gateway may be used as a proxy session management gateway for multiple terminals, and connected to multiple terminals and the AMF device and NG-RAN of the 5G network, respectively, i.e. any one of the multiple terminals may perform data interaction with the AMF device and NG-RAN of the 5G network through the gateway.
The gateway performs data interaction with the AS through a preset network, and specifically further comprises that SMF equipment and UPF equipment of the 5G network are respectively connected with the AS and perform data interaction with the AS.
It should be noted that, as shown in fig. 3, the gateway is specifically connected to the AMF device through an N1 interface.
As one possible design, the service type of any one of the plurality of terminals may be the same as or different from the service type of other terminals of the plurality of terminals.
Optionally, as shown in fig. 4, in the data forwarding method provided in the embodiment of the present invention, S202 may specifically include S2021 to S2022:
s2021, the gateway judges whether at least one PDU session exists between the gateway and a preset network.
As a possible implementation, after receiving the first request message sent by the terminal, the gateway queries whether at least one PDU session already exists in the context information stored by itself.
Wherein the context information is used for storing at least one PDU session between the gateway and the pre-set network.
It can be appreciated that, through S2021, the gateway can be caused to query whether the terminal that sent the first request message is the first terminal that initiates the service.
S2022, if yes, the gateway judges whether a target PDU session exists in at least one PDU session according to a target user routing strategy (UE Route Selection Policy, URSP) corresponding to the service type of the target service.
Wherein the URSP of the target PDU session is the same as the target URSP.
It should be noted that the urs of the PDU Session may specifically include a traffic and Session continuity mode (Service and Session Continuity mode, SSC mode), a network slice selection identity (S-nsai), and a PDU Session Type (PDU Session Type).
As a possible implementation manner, after determining that at least one PDU Session exists between the gateway and the preset network, the gateway determines whether the parameters (SSC Mode/S-nsai/PDU Session Type) included in the urs of the at least one PDU Session match the parameters included in the target urs.
If the gateway determines that the parameters of the URSP of any one PDU session in the at least one PDU session are matched with the parameters of the target URSP, the gateway determines that the target PDU session exists in the at least one PDU session.
S203, if the target PDU session exists between the gateway and the preset network, the gateway sends an indication message to the terminal.
The indication message is used for indicating the terminal to send service data to the gateway.
As a possible implementation manner, the gateway generates an indication message and sends the indication message to the terminal after determining that the target PDU session exists between the gateway and the preset network.
It should be noted that, the indication message is also used to indicate that the terminal has established connection with the AS through the gateway and the preset network.
Optionally, as shown in fig. 4, S203 of the data forwarding method provided in the embodiment of the present invention specifically further includes S2031 to S2034:
s2031, the gateway determines whether or not a target quality of service (Quality of Service, qoS) flow exists within the target PDU session.
Wherein the target QoS flow meets QoS requirements of the target service.
As one possible implementation, the gateway determines the 5QI (5G QoS Identifier,5G QoS identification) of the target QoS flow for the target service and queries the target QoS flow from at least one QoS flow of the target PDU session based on the 5QI of the target QoS flow.
S2032, if the target QoS flow does not exist in the target PDU session, the gateway sends a second request message to the preset network.
The second request message is used for requesting the preset network to establish the target QoS flow in the target PDU session.
As one possible implementation, if there is no QoS flow with the target in at least one QoS flow of the target PDU session, the gateway requests the preset network to establish the target QoS flow in the target PDU session.
It should be noted that, as shown in fig. 3, in the case where the preset network is a 5G network, the gateway sends the second request message to the preset network through an AMF device or NG-RAN of the 5G network.
S2033, the gateway sends an indication message to the terminal after determining that the preset network establishes the target QoS flow in the target PDU session.
S2034, if the target QoS flow exists in the target PDU session, the gateway sends an indication message to the terminal.
As one possible implementation, the gateway generates and sends an indication message to the terminal after determining that the target QoS flow exists in the target PDU session.
In one possible design, after determining that the target QoS flow exists in the target PDU session, the gateway establishes association between the application descriptor of the terminal and the identifier of the target PDU session and the 5QI of the target QoS flow in the management list of the gateway, so that the gateway can query the identifier of the target PDU session and the 5QI of the target QoS flow according to the application description in the process of forwarding data.
S204, after receiving the service data, the gateway forwards the service data through the target PDU session.
As a possible implementation manner, the gateway receives the service data sent by the terminal, and after receiving the service data sent by the terminal, queries the management list of the gateway for the identifier of the target PDU session associated with the application descriptor corresponding to the service data and the 5QI of the target QoS flow. And forwarding service data to the AS through the target PDU session between the gateway and the preset network and the target QoS flow in the target PDU session.
It should be noted that, AS shown in fig. 3, the preset network forwards the service data to the AS, and specifically forwards the service data to the AS through an SMF device or a UPF device of the preset network.
Optionally, as shown in fig. 4, forwarding service data through the target PDU session in S204 in the embodiment of the present application may specifically include S2041-S2042:
s2041, after receiving the service data, the gateway loads a unique identifier in the service data to generate transmission data.
The unique identifier is used for uniquely identifying service data sent by the terminal.
As a possible implementation manner, after receiving the service data, the gateway generates a unique identifier in a management list of the gateway, and loads the unique identifier into the service data to generate the transmission data.
In the management list of the gateway, the unique identifier corresponds to the address of the terminal that transmits the service data.
S2042, the gateway transmits the transmission data to a preset network through the target PDU session.
Optionally, as shown in fig. 4, after S2042, the data forwarding method provided in the embodiment of the present application specifically further includes S2043-S2045:
s2043, the gateway receives return data of the preset network.
The returned data is data sent to the terminal by the AS through a preset network, and corresponds to the sent data.
When sending the return data to the terminal, the AS loads the same unique identifier in the return data, and is used for representing that the return data corresponds to the sending data.
As one possible implementation, the gateway receives the return data sent by the preset network through the target PDU session and the target QoS flow in the target PDU session.
It should be noted that, AS shown in fig. 3, the preset network receives the return data of the AS, and specifically, receives the return data sent by the AS through the SMF device or the UPF device of the preset network.
S2044, the gateway judges whether the returned data comprises a unique identifier.
As one possible implementation, the gateway parses the return data to determine if the return data includes a unique identifier.
And S2045, if the return data comprises the unique identifier, the gateway transmits the return data to the terminal.
As a possible implementation, the gateway, after determining that the unique identifier is included in the return data, queries the address of the terminal from the management list and forwards the return data to the terminal according to the address of the terminal.
Optionally, as shown in fig. 5, in the data forwarding method provided in the embodiment of the present invention, after S202, S205 to S206 may be specifically further included:
s205, if the target PDU session does not exist between the gateway and the preset network, the gateway sends a third request message to the preset network.
The third request message is used for requesting to establish a target PDU session with a preset network. The third request message includes a target urs p of the target service.
As a possible implementation manner, if the gateway determines that the target PDU session does not exist between the gateway and the preset network, a third request message is sent to the preset network, so that the preset network establishes the target PDU session between the gateway and the preset network according to the target urs of the target service.
It should be noted that, establishing a target PDU session between the gateway and the preset network in the preset network specifically further includes establishing a target QoS flow corresponding to the target service in the target PDU session.
In one possible design, as shown in fig. 3, in the case where the preset network is a 5G network, the gateway sends a third request message to the preset network through an AMF device or NG-RAN of the 5G network.
In another possible design, as shown in fig. 3, in the case where the preset network is a 5G network, the 5G network further includes a policy control function (Policy Control Function, PCF) device. Before the 5G network establishes a target PDU session between the gateway and the 5G network, PCF equipment issues a policy for the gateway as one of the preconditions for the 5G network to establish the target PDU session.
S206, after establishing the target PDU session between the gateway and the preset network, the gateway sends an indication message to the terminal.
As one possible implementation, the gateway generates an indication message and transmits the indication message to the terminal after determining that the target PDU session has been established between the gateway and the preset network and that the target QoS flow is included in the newly-established target PDU session.
Before the terminal sends the first request message to the gateway, the terminal needs to register on the gateway. Optionally, as shown in fig. 6, before S201 of the data forwarding method provided in the embodiment of the present invention, S1 to S3 are specifically further included:
S1, the gateway receives a request registration message of the terminal.
The request registration message is used for requesting the terminal to register on the gateway, and the request registration message comprises an application descriptor of a target service of the terminal.
It should be noted that, the application descriptor is used to reflect the service type of the target service, and each terminal corresponds to a unique application descriptor, and the application descriptor may specifically refer to the definition of 3GPP (3 rd Generation Partnership Project, third generation partnership project), and is composed of an OSId (Open Science Identity, open scientific identifier) and OSAppId (Open Science App Identity), which is not particularly limited by the present invention.
In one possible design, the request registration message also includes the address of the terminal.
S2, the gateway distributes temporary identifiers for the terminal according to the application identifiers of the target service of the terminal.
Wherein the temporary identifier is associated with an application descriptor of a target service of the terminal, the temporary identifier being used for uniquely identifying the terminal in a management list of the gateway.
As a possible implementation manner, the gateway generates the temporary identifier according to the application identifier of the target service of the terminal after receiving the request registration message.
The temporary identifier uniquely corresponds to the terminal and also uniquely corresponds to the address of the terminal.
And S3, the gateway sends a registration success message to the terminal.
The registration success message comprises a temporary identifier, and the registration success message is used for indicating that the terminal registration is successful.
As a possible implementation manner, the gateway sends a registration success message to the terminal after generating the temporary identifier.
After the gateway sends the registration success message to the terminal, the gateway marks the terminal as registered in the management list of the gateway.
After the terminal is disconnected due to replacement, elimination, and the like, the network device of the operator still stores the target PDU session corresponding to the terminal, and in order to reduce the PDU session capacity pressure of the network device of the operator, as shown in fig. 7, optionally, the data forwarding method provided by the embodiment of the present invention further includes S4-S7:
s4, the gateway receives a request de-registration message sent by the terminal.
The request de-registration message comprises a temporary identifier allocated by the gateway to the terminal, and is used for requesting the gateway to delete the temporary identifier of the terminal in a management list of the gateway.
S5, the gateway inquires the target PDU session according to the temporary identification of the terminal.
As a possible implementation manner, the gateway queries the management list of the gateway for the target PDU session corresponding to the terminal according to the temporary identifier in the registration message sent by the terminal.
S6, the gateway sends a first request release message to a preset network.
The first request release message is used for requesting the preset network to release the target PDU session between the gateway and the preset network.
As a possible implementation manner, the gateway generates a first request release message and sends the first request release message to the preset network.
S7, after the gateway determines that the target PDU session between the gateway and the preset network is released, deleting the temporary identifier in the management list of the gateway.
After deleting the temporary identifier in the management list of the gateway, the gateway marks the terminal as unregistered in the management list of the gateway.
In one possible design, the gateway deletes the temporary identifier in the management list after determining a preset time for which the target PDU session between the gateway and the preset network has been released.
The preset time can be set in the gateway by an operation and maintenance personnel.
In another implementation, after determining that the target PDU session between the gateway and the preset network has been released, the gateway queries all terminals corresponding to the target PDU session from the management list of the gateway.
Further, the gateway sends an instruction deregistration message to all terminals corresponding to the target PDU session, and deletes all temporary identifications corresponding to all terminals from the management list after receiving the acceptance deregistration message sent by all terminals.
All terminals corresponding to the target PDU session include terminals forwarding service data through the target PDU session.
After receiving the indication deregistration message, all terminals corresponding to the target PDU session respond to the indication deregistration message and send an acceptance deregistration message to the gateway.
In one implementation manner, as shown in fig. 7, the data forwarding method provided in the embodiment of the present invention may further include S8-S9 after S5:
s8, the gateway sends a second request release message to the preset network.
Wherein the second request release message includes 5QI of the target QoS flow in the target PDU session, and the second request release message is used for requesting the preset network to release the target QoS flow in the target PDU session.
S9, after the gateway determines that the target QoS flow in the target PDU session is released, deleting the temporary identifier in the management list of the gateway.
Specifically, the embodiment of this step may refer to the above step S7, which is not described herein again.
It should be noted that, after deleting the temporary identifier in the management list, the gateway also deletes the association between the application descriptor of the terminal in the management list and the identifier of the target PDU session and the 5QI of the target QoS flow.
In one implementation, the gateway queries all terminals corresponding to the target QoS flow from the management list of the gateway after determining that the target QoS flow in the target PDU session has been released.
Further, the gateway sends an instruction deregistration message to all terminals corresponding to the target QoS flow, and after receiving the acceptance deregistration message sent by all terminals, deletes all temporary identifications corresponding to all terminals from the management list.
All terminals corresponding to the target QoS flow include terminals forwarding service data through the target QoS flow.
After receiving the indication deregistration message, all terminals corresponding to the target QoS flow respond to the indication deregistration message and send an acceptance deregistration message to the gateway.
In a possible design, in the practical application process of the embodiment of the present invention, the gateway also has a function of managing devices, and can actively perform the action of registering the terminal and the PDU session according to the management requirement of the operation and maintenance personnel, and the specific implementation process can refer to the steps S4-S9, which are not repeated here.
Optionally, as shown in fig. 8, in the actual application of the data forwarding method provided by the embodiment of the present invention, in order to enable the terminal to establish a session with the 5G network through the gateway, the method specifically further includes S301-S307:
s301, the terminal sends a first request message to the gateway.
It should be noted that, for the specific implementation process of this step, reference may be made to step S201 in the above embodiment, which is not described herein again.
S302, the gateway judges whether a target PDU session exists between the gateway and the 5G network and whether a target QoS stream exists in the target PDU session.
The specific implementation process of this step may refer to step S202 and step S2031 in the above embodiment, and will not be described herein.
In one implementation manner, as shown in fig. 8, after S302, the data forwarding method provided in the embodiment of the present invention may specifically include S303:
s303, if the target PDU session does not exist between the gateway and the 5G network, the gateway sends a third request message to the 5G network.
The specific implementation method of this step may refer to step S205 in the above embodiment, and will not be described herein.
In another implementation manner, as shown in fig. 8, after S302, the data forwarding method provided in the embodiment of the present invention may specifically further include S304:
S304, if a target PDU session exists between the gateway and the 5G network and no target QoS flow exists in the target PDU session, the gateway sends a second request message to the 5G network.
The specific implementation method of this step may refer to step S2032 in the above embodiment, and will not be described herein.
In another implementation manner, as shown in fig. 8, after S302, the data forwarding method provided in the embodiment of the present invention may specifically further include S305:
s305, if the PDU session and the target Qos flow associated with the application descriptor of the target service exist between the gateway and the 5G network, the gateway establishes association between the identification of the terminal and the identification of the target PDU session and the 5QI of the target QoS.
For the specific implementation of this step, reference may be made to the specific implementation method in step S2034 provided in the foregoing embodiment, which is not described herein again.
In one possible design, as shown in fig. 8, the data forwarding method provided in the embodiment of the present invention may specifically include S306 after steps S303 and S304:
s306, the gateway establishes association between the identification of the terminal and the identification of the target PDU session and 5QI of the target QoS.
For the specific implementation of this step, reference may be made to the specific implementation method in step S2034 provided in the foregoing embodiment, which is not described herein again.
In one possible design, the data forwarding method provided in the embodiment of the present invention may specifically include S307 after steps S305 and S306:
s307, the gateway sends an indication message to the terminal.
For the specific implementation of this step, reference may be made to step S203 provided in the foregoing embodiment, which is not described herein again.
The data forwarding method provided by the embodiment of the invention is applied to the gateway, and the gateway can determine the service type of the target service corresponding to the service data from the first request message after receiving the first request message of the service data which is required to be sent by the terminal through the gateway. Furthermore, the gateway judges whether a target PDU session capable of bearing the target service exists between the gateway and a preset network according to the service type of the target service, and can determine whether to establish the target PDU session according to the judging result. And when the gateway determines that the target PDU session exists between the gateway and the preset network, the gateway sends an indication message to the terminal so as to indicate that the terminal can send service data to the gateway. Further, after receiving the service data sent by the terminal, the gateway may forward the service data through the target PDU session. It can be understood that, through the above technical scheme, when the terminal needs to forward data through the gateway, the gateway can determine whether a target PDU session exists between the gateway and the preset network, if so, the existing target PDU session is directly utilized to forward data, and a new PDU session is not required to be established for different types of services of different terminals, thereby reducing PDU session capacity pressure of the operator network device.
The embodiment of the present invention may divide the functional modules or functional units of the gateway 101 according to the above method example, for example, each functional module or functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated modules may be implemented in hardware, or in software functional modules or functional units. The division of the modules or units in the embodiment of the present invention is schematic, which is merely a logic function division, and other division manners may be implemented in practice.
In the case of dividing the respective functional modules by the respective functions, the embodiment of the present invention provides a possible schematic configuration of the gateway 101 related to the above embodiment, as shown in fig. 9, the gateway 101 includes a receiving unit 1011, a judging unit 1012, and a transmitting unit 1013:
a receiving unit 1011 for receiving the first request message of the terminal. Wherein the first request message is used for requesting forwarding of service data of the target service through the gateway 101. The first request message includes a traffic type of the target traffic.
A judging unit 1012, configured to judge whether a target protocol data unit PDU session exists between the gateway 101 and the preset network according to the service type of the target service. Wherein the target PDU session is used to carry the target traffic.
A transmitting unit 1013 configured to transmit an indication message to the terminal if the target PDU session exists between the gateway 101 and the preset network. The indication message is used for indicating the terminal to send service data to the gateway 101.
The transmitting unit 1013 is further configured to forward the service data through the target PDU session after the gateway 101 receives the service data.
Optionally, as shown in fig. 9, the determining unit 1012 provided in the embodiment of the present invention is specifically configured to determine whether at least one PDU session exists between the gateway 101 and the preset network.
The judging unit 1012 is specifically further configured to judge whether a target PDU session exists in the at least one PDU session according to a target user routing policy urs corresponding to the service type of the target service if the at least one PDU session exists between the gateway 101 and the preset network. Wherein the URSP of the target PDU session is the same as the target URSP.
Optionally, as shown in fig. 9, the determining unit 1012 provided in the embodiment of the present invention is further configured to determine whether a target quality of service QoS flow exists in the target PDU session. Wherein the target QoS flow meets QoS requirements of the target service.
The sending unit 1013 is specifically configured to send an indication message to the terminal if the judging unit 1012 determines that the target QoS flow exists in the target PDU session.
Optionally, as shown in fig. 9, the sending unit 1013 provided in the embodiment of the present invention is further configured to send a third request message to the preset network if the target PDU session does not exist between the gateway 101 and the preset network. The third request message is used for requesting to establish a target PDU session with a preset network.
The transmitting unit 1013 is further configured to transmit an indication message to the terminal after the target PDU session is established between the gateway 101 and the preset network.
The transmitting unit 1013 is further configured to forward the service data through the target PDU session after the gateway 101 receives the service data.
Optionally, as shown in fig. 10, the transmitting unit 1013 provided in the embodiment of the present invention specifically includes a generating subunit 10131 and a transmitting subunit 10132.
The generating subunit 10131 is configured to load the unique identifier into the service data after the gateway 101 receives the service data, and generate the transmission data. Wherein the unique identifier is used to uniquely identify the service data.
A transmitting subunit 10132, configured to transmit the transmission data to the preset network through the target PDU session after the generating subunit 10131 generates the transmission data.
The receiving unit 1011 is further configured to receive return data of the preset network.
The transmitting unit 1013 is specifically further configured to transmit the return data to the terminal if the return data includes the unique identifier.
Optionally, as shown in fig. 10, the gateway 101 provided in the embodiment of the present invention further includes a generating unit 1014.
The receiving unit 1011 is also configured to receive a request registration message of the terminal.
A generating unit 1014, configured to allocate a temporary identifier to the terminal according to an application identifier of the target service of the terminal.
The transmitting unit 1013 is further configured to transmit a registration success message to the terminal.
Optionally, as shown in fig. 10, the gateway 101 provided in the embodiment of the present invention further includes a query unit 1015 and a deletion unit 1016.
The receiving unit 1011 is further configured to receive a request deregistration message sent by a terminal.
And an inquiring unit 1015, configured to inquire about the target PDU session according to the temporary identifier of the terminal.
A transmitting unit 1013 for transmitting a first request release message to a preset network.
A deleting unit 1016, configured to delete the temporary identifier in the management list of the gateway 101 after the gateway 101 determines that the target PDU session between the gateway 101 and the preset network has been released.
Optionally, as shown in fig. 10, the sending unit 1013 provided in the embodiment of the present invention is further configured to send a second request release message to a preset network.
The deleting unit 1016 is further configured to delete the temporary identifier in the management list of the gateway 101 after the gateway 101 determines that the target QoS flow in the target PDU session has been released.
Figure 11 shows a further possible structural schematic of the gateway 101 involved in the above embodiments. The gateway 101 includes: a processor 402 and a communication interface 403. The processor 402 is configured to control and manage the actions of the apparatus, e.g., perform various steps in the method flows shown in the method embodiments described above, and/or to perform other processes of the techniques described herein. The communication interface 403 is used to support communication of the gateway 101 with other network entities. Gateway 101 may also include a memory 401 and a bus 404, memory 401 for storing program codes and data for the device.
Wherein the processor 402 may implement or execute the various exemplary logic blocks, elements, and circuits described in connection with the present disclosure. The processor may be a central processing unit, a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various exemplary logic blocks, units and circuits described in connection with this disclosure. A processor may also be a combination that performs computing functions, e.g., including one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
Memory 401 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk or solid state disk; the memory may also comprise a combination of the above types of memories.
Bus 404 may be an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, or the like. The bus 404 may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 11, but not only one bus or one type of bus.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional units is illustrated, and in practical application, the above-described functional allocation may be performed by different functional units, that is, the internal structure of the apparatus is divided into different functional units, so as to perform all or part of the functions described above. The specific working processes of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which are not described herein.
The embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores instructions, when the computer executes the instructions, the computer executes each step in the method flow shown in the method embodiment.
Embodiments of the present invention provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform the data forwarding method described in the method embodiments above.
The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: electrical connections having one or more wires, portable computer diskette, hard disk. Random access Memory (Random Access Memory, RAM), read-Only Memory (ROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), registers, hard disk, optical fiber, portable compact disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any other form of computer-readable storage medium suitable for use by a person or persons of skill in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuit, ASIC). In embodiments of the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
Since the gateway, the computer readable storage medium and the computer program product in the embodiments of the present invention can be applied to the above-mentioned method, the technical effects obtained by the method can also refer to the above-mentioned method embodiments, and the embodiments of the present invention are not described herein again.
The foregoing is merely illustrative of specific embodiments of the present invention, and the scope of the present invention is not limited thereto, but any changes or substitutions within the technical scope of the present invention should be covered by the scope of the present invention.

Claims (10)

1. A method for forwarding data, applied to a gateway, the method comprising:
receiving a first request message of a terminal; the first request message is used for requesting service data of a target service to be forwarded through the gateway; the first request message comprises the service type of the target service;
judging whether a target protocol data unit PDU session exists between the gateway and a preset network according to the service type of the target service; wherein the target protocol data unit PDU session is used for carrying the target service;
if a target protocol data unit PDU session exists between the gateway and a preset network, sending an indication message to the terminal; the indication message is used for indicating the terminal to send the service data to the gateway;
After receiving the service data, forwarding the service data through the target protocol data unit PDU session;
judging whether a target protocol data unit PDU session exists between the gateway and a preset network according to the service type of the target service, specifically including:
judging whether at least one PDU session exists between the gateway and the preset network;
if yes, judging whether the PDU session of the target protocol data unit exists in the at least one PDU session according to a target user routing strategy URSP corresponding to the service type of the target service; wherein the URSP of the target protocol data unit PDU session is the same as the target user routing policy URSP.
2. The data forwarding method of claim 1 wherein prior to sending an indication message to the terminal, the method further comprises:
judging whether a target QoS flow exists in the PDU session; wherein the target quality of service QoS flow meets QoS requirements of the target service;
the method for sending the indication message to the terminal specifically comprises the following steps:
and if the target QoS flow exists in the PDU session, sending the indication message to the terminal.
3. The data forwarding method according to claim 2, wherein after said determining whether a target protocol data unit PDU session exists between the gateway and a preset network according to a service type of the target service, the method further comprises:
if the target protocol data unit PDU session does not exist between the gateway and the preset network, a third request message is sent to the preset network; the third request message is used for requesting to establish the target protocol data unit PDU session with the preset network;
after establishing the target protocol data unit PDU session between the gateway and the preset network, sending the indication message to the terminal;
and after receiving the service data, forwarding the service data through the target protocol data unit PDU session.
4. A data forwarding method according to any of claims 1-3, wherein forwarding the service data via the target protocol data unit PDU session, in particular comprises:
after receiving the service data, loading a unique identifier in the service data to generate transmission data; wherein the unique identifier is used for uniquely identifying the service data;
Transmitting the transmission data to the preset network through the target protocol data unit PDU session;
after forwarding the service data through the target protocol data unit PDU session, the method further comprises:
receiving return data of the preset network;
and if the unique identifier is included in the return data, the return data is sent to the terminal.
5. A gateway, which is characterized in that the gateway comprises a receiving unit, a judging unit and a sending unit:
the receiving unit is used for receiving a first request message of the terminal; the first request message is used for requesting service data of a target service to be forwarded through the gateway; the first request message comprises the service type of the target service;
the judging unit is used for judging whether a target protocol data unit PDU session exists between the gateway and a preset network according to the service type of the target service; wherein the target protocol data unit PDU session is used for carrying the target service;
the sending unit is configured to send an indication message to the terminal if a target protocol data unit PDU session exists between the gateway and a preset network; the indication message is used for indicating the terminal to send the service data to the gateway;
The sending unit is further configured to forward the service data through the target protocol data unit PDU session after the gateway receives the service data;
the judging unit is specifically configured to judge whether at least one PDU session exists between the gateway and the preset network;
the judging unit is specifically further configured to judge whether there is the target protocol data unit PDU session in the at least one PDU session according to a target user routing policy urs corresponding to the service type of the target service if there is at least one PDU session between the gateway and the preset network; wherein the URSP of the target protocol data unit PDU session is the same as the target user routing policy URSP.
6. The gateway of claim 5, wherein the gateway is configured to,
the judging unit is further configured to judge whether a target quality of service QoS flow exists in the target protocol data unit PDU session; wherein the target quality of service QoS flow meets QoS requirements of the target service;
the sending unit is specifically configured to send the indication message to the terminal if the judging unit determines that the target QoS flow exists in the PDU session of the target protocol data unit.
7. The gateway of claim 6, wherein the gateway is configured to,
the sending unit is further configured to send a third request message to the preset network if the target protocol data unit PDU session does not exist between the gateway and the preset network; the third request message is used for requesting to establish the target protocol data unit PDU session with the preset network;
the sending unit is further configured to send the indication message to the terminal after the target protocol data unit PDU session is established between the gateway and the preset network;
the sending unit is further configured to forward the service data through the target protocol data unit PDU session after the gateway receives the service data.
8. The gateway according to any of claims 5-7, wherein the sending unit specifically comprises a generating subunit and a sending subunit;
the generating subunit is configured to load a unique identifier in the service data after the gateway receives the service data, and generate sending data; wherein the unique identifier is used for uniquely identifying the service data;
The sending subunit is configured to send the sending data to the preset network through the target protocol data unit PDU session after the generating subunit generates the sending data;
the receiving unit is further used for receiving the return data of the preset network;
the sending unit is specifically further configured to send the return data to the terminal if the return data includes the unique identifier.
9. A computer readable storage medium storing one or more programs, wherein the one or more programs comprise instructions, which when executed by a computer, cause the computer to perform the data forwarding method of any of claims 1-4.
10. A gateway, comprising: a processor, a memory, and a communication interface; wherein the communication interface is used for the gateway to communicate with other devices or networks; the memory is configured to store one or more programs, the one or more programs comprising computer-executable instructions that, when executed by the gateway, cause the gateway to perform the data forwarding method of any of claims 1-4.
CN202010197609.8A 2020-03-19 2020-03-19 Data forwarding method and gateway Active CN111405682B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010197609.8A CN111405682B (en) 2020-03-19 2020-03-19 Data forwarding method and gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010197609.8A CN111405682B (en) 2020-03-19 2020-03-19 Data forwarding method and gateway

Publications (2)

Publication Number Publication Date
CN111405682A CN111405682A (en) 2020-07-10
CN111405682B true CN111405682B (en) 2024-04-16

Family

ID=71413456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010197609.8A Active CN111405682B (en) 2020-03-19 2020-03-19 Data forwarding method and gateway

Country Status (1)

Country Link
CN (1) CN111405682B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114071594A (en) * 2020-07-31 2022-02-18 展讯通信(上海)有限公司 Service maintaining method, device, computer equipment and storage medium
CN114095365B (en) * 2020-08-24 2023-07-21 中移物联网有限公司 Processing method and device of Internet of things service based on 5G message
CN112153675B (en) * 2020-09-01 2023-06-23 中国联合网络通信集团有限公司 Service opening method and device
CN112217812B (en) 2020-09-30 2023-04-21 腾讯科技(深圳)有限公司 Method for controlling media stream service transmission and electronic equipment
CN114501490B (en) * 2020-11-13 2024-04-02 维沃移动通信有限公司 Service transfer method, terminal and network side equipment
CN115915072A (en) * 2021-08-26 2023-04-04 大唐移动通信设备有限公司 End-to-end PDU session management method, device and network equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010037309A1 (en) * 2008-09-24 2010-04-08 华为技术有限公司 Method and system for accessing packet data network service, gateway and terminal
CN107896182A (en) * 2017-11-30 2018-04-10 新华三技术有限公司 Message forwarding method and device
CN109548175A (en) * 2017-08-15 2019-03-29 华为技术有限公司 A kind of conversation processing method and device
CN109964468A (en) * 2016-11-14 2019-07-02 华为技术有限公司 Conversation processing method, device and system
CN109982383A (en) * 2017-12-28 2019-07-05 华为技术有限公司 Data transmission method for uplink, device and equipment
CN109996307A (en) * 2017-12-29 2019-07-09 华为技术有限公司 A kind of data routing method and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102224248B1 (en) * 2017-06-09 2021-03-08 삼성전자주식회사 Method for establishing protocol data unit in communication system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010037309A1 (en) * 2008-09-24 2010-04-08 华为技术有限公司 Method and system for accessing packet data network service, gateway and terminal
CN109964468A (en) * 2016-11-14 2019-07-02 华为技术有限公司 Conversation processing method, device and system
CN109548175A (en) * 2017-08-15 2019-03-29 华为技术有限公司 A kind of conversation processing method and device
CN107896182A (en) * 2017-11-30 2018-04-10 新华三技术有限公司 Message forwarding method and device
CN109982383A (en) * 2017-12-28 2019-07-05 华为技术有限公司 Data transmission method for uplink, device and equipment
CN109996307A (en) * 2017-12-29 2019-07-09 华为技术有限公司 A kind of data routing method and terminal

Also Published As

Publication number Publication date
CN111405682A (en) 2020-07-10

Similar Documents

Publication Publication Date Title
CN111405682B (en) Data forwarding method and gateway
KR102347430B1 (en) Session processing methods and related devices
CN110691384B (en) Network slice using method and device
CN113596191B (en) Data processing method, network element equipment and readable storage medium
CN116614846A (en) Data forwarding method, device and system
CN114830818A (en) QoS management method, relay terminal, PCF network element, SMF network element and remote terminal
CN111885733B (en) Resource allocation method, device, storage medium and network equipment
CN101194484A (en) Communication path distributing entity and method
TW201737753A (en) Network access method, and associated equipment and system
CN110431866B (en) Control plane connection management method and device
CN111314899B (en) Message processing method, related device and system
CN107277882B (en) Data routing method, device and base station
CN111757312A (en) Session processing method and device
CN113194519A (en) Network slice access method, NSSF, AMF and system
WO2023035925A1 (en) Service processing method, apparatus and system
CN114189893B (en) O-RAN capability opening method, communication system, device and storage medium
CN114172951B (en) MEC sharing method, communication device and storage medium
CN113366814B (en) Method for managing resource allocation in edge computing system
CN108377519B (en) Method and device for processing session connection
CN110831076A (en) PDU session processing method and device
KR102169718B1 (en) Method and Apparatus for Session Group Control for massive machine type communications mMTC
US20160143023A1 (en) Management device, communication system, and communication control method
CN102448115A (en) Communication management method for mobile communication
CN116887349A (en) Communication method and device
CN105208604A (en) Traffic management method in mobile network

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