CN111405682A - Data forwarding method and gateway - Google Patents

Data forwarding method and gateway Download PDF

Info

Publication number
CN111405682A
CN111405682A CN202010197609.8A CN202010197609A CN111405682A CN 111405682 A CN111405682 A CN 111405682A CN 202010197609 A CN202010197609 A CN 202010197609A CN 111405682 A CN111405682 A CN 111405682A
Authority
CN
China
Prior art keywords
target
gateway
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.)
Granted
Application number
CN202010197609.8A
Other languages
Chinese (zh)
Other versions
CN111405682B (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

Images

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

Abstract

The invention discloses a data forwarding method and a gateway, relates to the technical field of communication, and is used for reducing the session capacity pressure of a Protocol Data Unit (PDU) of operator network equipment. The method comprises the following steps: receiving a first request message of a terminal; the first request message is used for requesting to forward the service data of the target service 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 a gateway and a preset network or not according to the service type of the target service; wherein, the target PDU conversation is used for bearing 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 service data to the gateway; and after receiving the service data, forwarding the service data 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 the fifth Generation mobile communication technology (5th-Generation, 5G), each internet of things device may perform data interaction with an Application Server (AS) through a 5G network. Specifically, a Subscriber Identity Module (SIM) card is arranged in the internet of things device, a Protocol Data Unit (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 the internet of things devices increases dramatically, and each internet of things device needs to establish a PDU session with the 5G network independently, which may cause a large number of PDU sessions to be 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 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 to forward the service data of the target service 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 or not according to the service type of the target service; wherein, the target PDU session is used for bearing 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 after receiving the service data, forwarding the service data through the target PDU session.
In a second aspect, a gateway is provided, which includes a receiving unit, a determining unit, and a sending unit: the receiving unit is used for receiving a first request message of a terminal; the first request message is used for requesting to forward the service data of the target service 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 for bearing 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, there is provided a computer readable storage medium storing one or more programs, wherein the one or more programs include instructions, which when executed by a computer, cause the computer to perform the data forwarding method of 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 used for storing one or more programs, the one or more programs comprise computer executable instructions, and when the gateway runs, the processor executes the computer executable instructions stored by the memory so as to cause the gateway to execute the data forwarding method of the first aspect.
In a fifth aspect, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the data forwarding method of 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 that the terminal needs to send the service data through the gateway. And then, 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, so that the gateway can determine whether the target PDU session needs to be newly established according to the judgment 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. Furthermore, after receiving the service data sent by the terminal, the gateway can forward the service data through the target PDU session. It can be understood that, by the above technical solution, 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, and if so, the existing target PDU session is directly utilized to forward data, and a new PDU session does not need to be established for different types of services of different terminals, thereby reducing the PDU session capacity pressure of the operator network device.
Drawings
Fig. 1 is a first schematic structural diagram of a network system according to an embodiment of the present invention;
fig. 2 is a first flowchart of a data forwarding method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a network system according to an embodiment of the present invention;
fig. 4 is a schematic flow chart of a data forwarding method according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of a data forwarding method according to an embodiment of the present invention;
fig. 6 is a fourth schematic flowchart of a data forwarding method according to an embodiment of the present invention;
fig. 7 is a fifth flowchart of a data forwarding method according to an embodiment of the present invention;
fig. 8 is a sixth schematic flow chart of a data forwarding method according to an embodiment of the present invention;
fig. 9 is a first schematic structural diagram of a gateway according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a gateway structure according to an embodiment of the present invention;
fig. 11 is a schematic diagram of a gateway structure provided in the 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 drawings in the embodiments of the present invention.
In the description of the present invention, "/" means "or" unless otherwise specified, for example, a/B may mean a or B. "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. Further, "at least one" means one or more, "a plurality" means two or more. The terms "first", "second", and the like do not necessarily limit the number and execution order, and the terms "first", "second", and the like do not necessarily limit the difference.
The inventive concept of the present invention is described below: currently, 5G defines three major service scenarios, namely, enhanced mobile broadband service, ultra-low delay and 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 may perform data interaction with the AS through the 5G network. Specifically, the internet of things equipment is provided with an SIM card, and the internet of things equipment can request the 5G network to establish the PDU session through the SIM card and perform data interaction with the AS through the established PDU session.
However, with the large-scale development of the internet of things service, the number of the internet of things devices increases dramatically, the number of the large-scale internet of things will reach the level of millions of connections per square kilometer, and the demand for the 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, which causes a large number of PDU sessions to be stored in the 5G network equipment of the operator, thereby increasing the PDU session capacity pressure of the network equipment of the operator.
Based on the technology, the invention considers whether the services of different internet of things equipment with the same service type can be processed in batch, namely, a PDU session is established for the internet of things equipment with the same service type, and a plurality of internet of things terminals with the same service type can share the same PDU session. Therefore, a PDU session does not need to be newly established for each piece of Internet of things equipment, PDU session capacity pressure of operator network equipment can be reduced, and the technical problem can be solved.
Based on the above inventive concept, the embodiment of the present invention provides a data forwarding method, which is applied to a gateway 101 in a network system 10 shown in fig. 1, where the network system 10 further includes a terminal 102 and an AS 103. The terminal 102 may be an internet of things terminal having functions of monitoring an environment and transmitting data, and the Gateway 101 may specifically 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 and the AS103 perform data interaction 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 to forward the service data of the target service through the gateway. The first request message includes a service type of the target service.
As a possible implementation manner, after registering the terminal, the gateway receives a first request message sent by the terminal.
It should be noted that, a terminal usually has only one target service, and a target service usually corresponds to only one service type, and the terminal may perform signaling interaction with the gateway through a Wireless-Fidelity (WiFi), a bluetooth connection, or a wired connection.
In one implementation, the gateway has a standard-defined user permanent subscription identity (SUPI), and the terminal does not need to have a standardized terminal identity and can 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 for bearing the target service.
As a possible implementation manner, after determining the service type of the target service from the first request message, the gateway queries whether a target PDU session exists between the gateway and a preset network.
In one implementation, the target PDU session may be a PDU session that the gateway establishes based on the same type of traffic needs 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 specifically be a 5G network.
The 5G Network includes an Access and Mobility Management Function (AMF) device, a next generation Radio Access Network (NG-RAN), a User Plane Function (UPF) device, and a Session Management Function (SMF) device.
In a possible design, the gateway may serve as a proxy session management gateway for multiple terminals, and is connected to the multiple terminals and the AMF device and the NG-RAN of the 5G network, respectively, that is, any one of the multiple terminals may perform data interaction with the AMF device and the NG-RAN of the 5G network through the gateway.
The gateway performs data interaction with the AS through a preset network, and specifically comprises an SMF device and a UPF device of the 5G network which 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 a possible design, the service type of any one of the terminals may be the same as or different from the service types of the other terminals in the 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-S2022:
s2021, the gateway judges whether at least one PDU session exists between the gateway and a preset network.
As a possible implementation manner, 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 the gateway.
Wherein the context information is used for storing at least one PDU session between the gateway and a preset network.
It is understood that, through S2021, the gateway can be enabled to inquire whether the terminal sending the first request message is the first terminal initiating 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 Policy (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 URSP of the PDU Session may specifically include a Service and Session Continuity mode (SSC mode), a network slice selection identifier (S-NSSAI), 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 above-mentioned parameter (SSC Mode/S-NSSAI/PDU SessionType) included in the URSP of the at least one PDU session matches the above-mentioned parameter included in the target URSP.
And 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, determining that the target PDU session exists in the at least one PDU session.
S203, if the target PDU conversation 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 the service data to the gateway.
As a possible implementation manner, after determining that a target PDU session exists between the gateway and the preset network, the gateway generates an indication message and sends the indication message to the terminal.
It should be noted that the indication message is also used to indicate that the terminal has established a connection with the AS through the gateway and the predetermined network.
Optionally, as shown in fig. 4, S203 of the data forwarding method provided in the embodiment of the present invention specifically includes S2031 to S2034:
s2031, the gateway judges whether there is a Quality of Service (QoS) flow in the target PDU session.
Wherein the target QoS flow satisfies the QoS requirement of the target service.
As a possible implementation, the gateway determines a 5QI (5G QoS identifier ) of a target QoS flow of the target service and queries the target QoS flow from at least one QoS flow of the target PDU session according to the 5QI of the target QoS flow.
S2032, if the target PDU conversation does not have the target QoS flow, 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 a possible implementation, if there is no QoS flow with the target QoS flow in at least one QoS flow of the target PDU session, the gateway requests the pre-provisioned 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 that the predetermined network is a 5G network, the gateway sends the second request message to the predetermined network through the AMF device or the NG-RAN of the 5G network.
S2033, after determining that the preset network establishes the target QoS flow in the target PDU session, the gateway sends an indication message to the terminal.
S2034, if the target PDU conversation has the target QoS flow, the gateway sends the indication message to the terminal.
As a possible implementation manner, after determining that the target QoS flow exists in the target PDU session, the gateway generates an indication message and sends the indication message to the terminal.
In one possible design, after determining that the target QoS flow exists in the target PDU session, the gateway associates the application descriptor of the terminal with the identifier of the target PDU session and the 5QI of the target QoS flow in a management list of the gateway, respectively, 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 descriptor in the subsequent data forwarding process.
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, the gateway queries, in a management list of the gateway, an identifier of a target PDU session and a 5QI of a target QoS flow, which are associated with an application descriptor corresponding to the service data. And forwarding the service data to the AS through a target PDU session between the gateway and the preset network and a 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, specifically, the service data is forwarded to the AS through an SMF device or a UPF device of the preset network.
Optionally, as shown in fig. 4, the forwarding of the service data through the target PDU session in S204 in the embodiment of the present application may specifically include S2041 to S2042:
s2041, after receiving the service data, the gateway loads the unique identifier in the service data to generate sending data.
The unique identifier is used for uniquely identifying the 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 sending data.
Note that, 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 sends the sending 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 further includes S2043-S2045:
s2043, the gateway receives the return data of the preset network.
The return data is data sent by the AS to the terminal through a preset network, and the return data corresponds to the sending data.
It should be noted that, when the AS sends the return data to the terminal, the same unique identifier is loaded in the return data to represent that the return data corresponds to the sending data.
As a possible implementation, the gateway receives the return data sent by the pre-configured 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 an SMF device or a UPF device of the preset network.
S2044, the gateway judges whether the return data comprises the unique identifier.
As a possible implementation manner, the gateway parses the return data, and determines whether the return data includes the unique identifier.
S2045, if the return data comprises the unique identifier, the gateway sends the return data to the terminal.
As a possible implementation manner, after determining that the return data includes the unique identifier, the gateway 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, the method may further include S205-S206:
and 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.
And the third request message is used for requesting the establishment of a target PDU session with a preset network. The third request message includes a target URSP for 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, the gateway sends a third request message 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 URSP 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 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 that the predetermined network is a 5G network, the gateway sends the third request message to the predetermined network through the AMF device or the NG-RAN of the 5G network.
In another possible design, as shown in fig. 3, in a case where the predetermined network is a 5G network, the 5G network further includes a Policy Control Function (PCF) device. Before the 5G network establishes the target PDU session between the gateway and the 5G network, the PCF equipment issues a strategy for the gateway, which is one of the preconditions for the 5G network to establish the target PDU session.
S206, after the target PDU conversation is established between the gateway and the preset network, the gateway sends an indication message to the terminal.
As a possible implementation manner, after determining that a target PDU session is established between the gateway and the preset network and that the newly-established target PDU session includes the target QoS flow, the gateway generates an indication message and sends the indication message to the terminal.
The terminal needs to register at the gateway before it sends the first request message to the gateway. Optionally, as shown in fig. 6, before S201 of the data forwarding method provided in the embodiment of the present invention, the method specifically includes S1-S3:
and S1, the gateway receives the request registration message of the terminal.
The registration request message is used for requesting to register the terminal on the gateway, and the registration request 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, each terminal corresponds to a unique application descriptor, and the application descriptor may specifically refer to the definition of 3GPP (3rd Generation Partnership Project) and be composed of an OSId (Open Science Identity) and an osipid (Open Science App Identity), and the present invention is not limited in particular.
In one possible design, the request to register message further includes an address of the terminal.
And S2, the gateway allocates a temporary identifier for the terminal according to the application identifier of the target service of the terminal.
The temporary identifier is associated with an application descriptor of a target service of the terminal, and the temporary identifier is used for uniquely identifying the terminal in a management list of the gateway.
As a possible implementation manner, after receiving the registration request message, the gateway generates a temporary identifier according to the application identifier of the target service of the terminal.
It should be noted that 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 the temporary identifier, and the registration success message is used for indicating that the terminal is successfully registered.
As a possible implementation manner, after generating the temporary identifier, the gateway sends a registration success message to the terminal.
It should be noted that, after the gateway sends the registration success message to the terminal, the terminal is marked as registered in the management list of the gateway.
As the terminal is offline due to replacement, elimination, or the like, the network device of the operator still stores the target PDU session corresponding to the terminal, and optionally, as shown in fig. 7, in order to reduce the PDU session capacity pressure of the network device of the operator, the data forwarding method provided in the embodiment of the present invention further includes S4-S7:
and S4, the gateway receives the request de-registration message sent by the terminal.
The message requesting de-registration includes a temporary identifier allocated to the terminal by the gateway, and the message requesting de-registration 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 conversation according to the temporary identification of the terminal.
As a possible implementation manner, the gateway queries a target PDU session corresponding to the terminal in a management list of the gateway according to the temporary identifier in the request de-registration message sent by the terminal.
And S6, the gateway sends a first request release message to the preset network.
The first request release message includes an identifier of a target PDU session, and the first request release message is used for requesting a 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.
And S7, deleting the temporary identifier in the management list of the gateway after the gateway determines that the target PDU session between the gateway and the preset network is released.
It should be noted that, 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 the target PDU session between the gateway and the preset network to be released.
The preset time can be set by the operation and maintenance personnel in the gateway.
In another implementation manner, after determining that the target PDU session between the gateway and the preset network is released, the gateway queries all terminals corresponding to the target PDU session from a management list of the gateway.
Further, the gateway transmits an instruction de-registration message to all terminals corresponding to the target PDU session, and deletes all temporary identifications corresponding to all the terminals from the management list after receiving an acceptance de-registration message transmitted by all the terminals.
All terminals corresponding to the target PDU session include terminals forwarding service data through the target PDU session.
It should be noted that, after receiving the instruction de-registration message, all terminals corresponding to the target PDU session send an accept de-registration message to the gateway in response to the instruction de-registration message.
In an implementation manner, as shown in fig. 7, after S5, the data forwarding method provided in the embodiment of the present invention may further include S8-S9:
and S8, the gateway sends a second request release message to the preset network.
The second request release message includes a 5QI of the target QoS flow in the target PDU session, and the second request release message is used for requesting the default network to release the target QoS flow in the target PDU session.
S9, the gateway deletes the temporary mark in the management list of the gateway after determining that the target QoS flow in the target PDU conversation is released.
Specifically, the step S7 can be referred to for implementation of this step, and details thereof are not repeated herein.
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, the identifier of the target PDU session and the 5QI of the target QoS flow.
In one implementation, after determining that the target QoS flow in the target PDU session is released, the gateway queries all terminals corresponding to the target QoS flow from a management list of the gateway.
Further, the gateway transmits an instruction de-registration message to all terminals corresponding to the target QoS flow, and deletes all temporary identifications corresponding to all the terminals from the management list after receiving an acceptance de-registration message transmitted by all the terminals.
Wherein, all terminals corresponding to the target QoS flow comprise terminals for forwarding service data through the target QoS flow.
It should be noted that, after receiving the instruction de-registration message, all terminals corresponding to the target QoS flow send an accept de-registration message to the gateway in response to the instruction de-registration message.
In a possible design, in an actual application process of the embodiment of the present invention, the gateway also has a function of a management device, and can actively perform an action of deregistering a terminal and a PDU session according to a management requirement of an operation and maintenance worker, and a specific implementation process may refer to the above steps S4-S9, which is not described herein again.
Optionally, as shown in fig. 8, in an actual application, in order to enable the terminal to establish a session with the 5G network through the gateway, the data forwarding method provided in the embodiment of the present invention may further include S301 to S307:
s301, the terminal sends a first request message to the gateway.
It should be noted that, the specific implementation process of this step may refer to step S201 in the foregoing embodiment, and 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 flow exists in the target PDU session.
It should be noted that, the specific implementation process of this step may refer to step S202 and step S2031 in the foregoing embodiment, and details are not described here.
In an 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:
and 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.
It should be noted that, the specific implementation method of this step may refer to step S205 in the foregoing embodiment, and details are not described here.
In another implementation, as shown in fig. 8, after S302, the data forwarding method provided in the embodiment of the present invention may 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.
It should be noted that, the specific implementation method of this step may refer to step S2032 in the foregoing embodiment, and details are not described here.
In another implementation, as shown in fig. 8, after S302, the data forwarding method provided in the embodiment of the present invention may further include S305:
s305, if a PDU session and a target QoS flow which are associated with the application descriptor of the target service exist between the gateway and the 5G network, the gateway establishes association between the identifier of the terminal and the identifier of the target PDU session and the 5QI of the target QoS.
It should be noted that, for a specific implementation manner of this step, reference may be made to the specific implementation method in step S2034 provided in the foregoing embodiment, and details are not described here again.
In a possible design, as shown in fig. 8, after steps S303 and S304, the data forwarding method provided in the embodiment of the present invention may specifically include step S306:
s306, the gateway establishes the association between the terminal identification and the identification of the target PDU session and the 5QI of the target QoS.
It should be noted that, for a specific implementation manner of this step, reference may be made to the specific implementation method in step S2034 provided in the foregoing embodiment, and details are not described here again.
In a possible design, after steps S305 and S306, the data forwarding method provided in the embodiment of the present invention may specifically include step S307:
s307, the gateway sends an indication message to the terminal.
It should be noted that, for a specific implementation manner of this step, reference may be made to step S203 provided in the foregoing embodiment, and details are not described here 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 that the terminal needs to send the service data through the gateway. And then, 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, so that the gateway can determine whether the target PDU session needs to be newly established according to the judgment 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. Furthermore, after receiving the service data sent by the terminal, the gateway can forward the service data through the target PDU session. It can be understood that, by the above technical solution, 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, and if so, the existing target PDU session is directly utilized to forward data, and a new PDU session does not need to be established for different types of services of different terminals, thereby reducing the PDU session capacity pressure of the operator network device.
In the embodiment of the present invention, the gateway 101 may be divided into functional modules or functional units according to the above method examples, 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 module may be implemented in a form of hardware, or may be implemented in a form of a software functional module or a functional unit. The division of the modules or units in the embodiments of the present invention is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In the case of dividing each functional module according to each function, the embodiment of the present invention provides a schematic diagram of a possible structure of the gateway 101 according to the above-described embodiment, and as shown in fig. 9, the gateway 101 includes a receiving unit 1011, a determining unit 1012, and a transmitting unit 1013:
a receiving unit 1011 is configured to receive a first request message of a terminal. The first request message is used to request to forward service data of the target service through the gateway 101. The first request message includes a service type of the target service.
A determining unit 1012, configured to determine whether a target protocol data unit PDU session exists between the gateway 101 and a preset network according to the service type of the target service. Wherein, the target PDU session is used for bearing the target service.
A sending unit 1013, configured to send an indication message to the terminal if a target PDU session exists between the gateway 101 and the preset network. The indication message is used to instruct the terminal to send service data to the gateway 101.
The sending 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 according to the embodiment of the present invention is specifically configured to determine whether at least one PDU session exists between the gateway 101 and a preset network.
The determining unit 1012 is further specifically configured to, if at least one PDU session exists between the gateway 101 and the preset network, determine whether a target PDU session exists in the at least one PDU session according to a target user routing policy URSP corresponding to a service type of the target service. 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 according to the embodiment of the present invention is further configured to determine whether a target QoS flow exists in the target PDU session. Wherein the target QoS flow satisfies the QoS requirement of the target service.
The sending unit 1013 is specifically configured to send an indication message to the terminal if the determining 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 the third request message to the preset network if the target PDU session does not exist between the gateway 101 and the preset network. And the third request message is used for requesting the establishment of a target PDU session with a preset network.
The sending unit 1013 is further configured to send an indication message to the terminal after the target PDU session is established between the gateway 101 and the preset network.
The sending 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 sending unit 1013 provided in the embodiment of the present invention specifically includes a generating subunit 10131 and a sending subunit 10132.
A generating sub-unit 10131, configured to load the unique identifier into the service data after the gateway 101 receives the service data, and generate the sending data. Wherein the unique identifier is used to uniquely identify the service data.
A transmission sub-unit 10132 for transmitting the transmission data to a preset network through the target PDU session after the generation sub-unit 10131 generates the transmission data.
The receiving unit 1011 is further configured to receive return data of a preset network.
The transmitting unit 1013 is 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 further configured to receive a registration request message of the terminal.
A generating unit 1014, configured to assign a temporary identifier to the terminal according to the application identifier of the target service of the terminal.
The sending unit 1013 is further configured to send a registration success message to the terminal.
Optionally, as shown in fig. 10, the gateway 101 according to the embodiment of the present invention further includes an inquiring unit 1015 and a deleting unit 1016.
The receiving unit 1011 is further configured to receive a request de-registration message sent by the terminal.
The querying unit 1015 is configured to query the target PDU session according to the temporary identifier of the terminal.
The sending unit 1013 is configured to send a first release request 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 is 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 release request message to the 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 is released.
Fig. 11 shows a schematic diagram of another possible structure 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 used to control and manage the actions of the device, for example, to perform the various steps in the method flows shown in the above-described method embodiments, and/or to perform other processes for the techniques described herein. Communication interface 403 is used to support communication of the gateway 101 with other network entities. The gateway 101 may further comprise a memory 401 and a bus 404, the memory 401 being used for storing program codes and data of the devices.
The processor 402 may implement or execute various illustrative logical blocks, units, and circuits described in connection with the present disclosure. The processor may be a central processing unit, general purpose processor, digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, units, and circuits described in connection with the present disclosure. A processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, a DSP and a microprocessor, or 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, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
The bus 404 may be an Extended Industry Standard Architecture (EISA) bus or the like. The bus 404 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 11, but this is not intended to represent only one bus or type of bus.
It is clear to those skilled in the art from the foregoing description of the embodiments that, for convenience and simplicity of description, the foregoing division of the functional units is merely used as an example, and in practical applications, the above function distribution may be performed by different functional units according to needs, that is, the internal structure of the device may be divided into different functional units to perform all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed by a computer, the computer executes each step in the method flow shown in the above 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 above method embodiments.
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 any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, and a hard disk. Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read-Only Memory (EPROM), registers, a hard disk, an optical fiber, a portable Compact disk Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any other form of computer-readable storage medium, in any suitable combination, or as appropriate 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. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuit (ASIC). In embodiments of the 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 may be applied to the method described above, reference may also be made to the method embodiments for obtaining technical effects, and details of the embodiments of the present invention are not described herein again.
The above description is only an embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions within the technical scope of the present invention are intended to be covered by the scope of the present invention.

Claims (12)

1. A data forwarding method is applied to a gateway, and the method comprises the following steps:
receiving a first request message of a terminal; the first request message is used for requesting to forward the service data of the target service 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 or not according to the service type of the target service; wherein, the target PDU session is used for bearing 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 after receiving the service data, forwarding the service data through the target PDU session.
2. The data forwarding method according to claim 1, wherein the determining whether a target PDU session exists between the gateway and a preset network according to the service type of the target service specifically includes:
judging whether at least one PDU session exists between the gateway and the preset network;
if yes, judging whether the target PDU session 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 PDU session is the same as the target URSP.
3. The data forwarding method of claim 2, wherein before sending the indication message to the terminal, the method further comprises:
judging whether a target service quality QoS flow exists in the target PDU session; wherein the target QoS flow satisfies the QoS requirement of the target service;
sending an indication message to the terminal, specifically including:
and if the target QoS flow exists in the target PDU session, sending the indication message to the terminal.
4. The data forwarding method of claim 3, wherein after the determining whether a target Protocol Data Unit (PDU) session exists between the gateway and a predetermined network according to the service type of the target service, the method further comprises:
if the target PDU session does not exist between the gateway and the preset network, sending a third request message to the preset network; the third request message is used for requesting to establish the target PDU session with the preset network;
after the target PDU session is established between the gateway and the preset network, the indication message is sent to the terminal;
and after receiving the service data, forwarding the service data through the target PDU session.
5. The data forwarding method according to any one of claims 1 to 4, wherein the forwarding the service data through the target PDU session specifically includes:
after receiving the service data, loading a unique identifier in the service data to generate sending data; wherein the unique identifier is used for uniquely identifying the service data;
sending the sending data to the preset network through the target PDU session;
after forwarding the service data through the target PDU session, the method further includes:
receiving return data of the preset network;
and if the return data comprises the unique identifier, sending the return data to the terminal.
6. A gateway is characterized by comprising a receiving unit, a judging unit and a sending unit:
the receiving unit is used for receiving a first request message of a terminal; the first request message is used for requesting to forward the service data of the target service 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 for bearing 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.
7. The gateway according to claim 6,
the judging unit is specifically configured to judge whether at least one PDU session exists between the gateway and the preset network;
the determining unit is further specifically configured to determine, if at least one PDU session exists between the gateway and the preset network, whether the target PDU session exists in the at least one PDU session according to a target user routing policy URSP corresponding to a service type of the target service; wherein the URSP of the target PDU session is the same as the target URSP.
8. The gateway according to claim 7,
the judging unit is further configured to judge whether a target quality of service (QoS) flow exists in the target PDU session; wherein the target QoS flow satisfies the QoS requirement of the target service;
the sending unit is specifically configured to send the indication message to the terminal if the determining unit determines that the target QoS flow exists in the target PDU session.
9. The gateway according to claim 8,
the sending unit is further configured to send a third request message to the preset network if the target PDU session does not exist between the gateway and the preset network; the third request message is used for requesting to establish the target PDU session with the preset network;
the sending unit is further configured to send the indication message to the terminal after the target 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 PDU session after the gateway receives the service data.
10. The gateway according to any of claims 6 to 9, wherein the sending unit 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 PDU session after the generating subunit generates the sending data;
the receiving unit is further configured to receive return data of the preset network;
the sending unit is further specifically configured to send the return data to the terminal if the return data includes the unique identifier.
11. A computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computer, cause the computer to perform the data forwarding method of any of claims 1-5.
12. 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 used for storing one or more programs, the one or more programs comprising computer-executable instructions, and when the gateway runs, the processor executes the computer-executable instructions stored by the memory to cause the gateway to execute the data forwarding method of any one of claims 1 to 5.
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 true CN111405682A (en) 2020-07-10
CN111405682B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112153675A (en) * 2020-09-01 2020-12-29 中国联合网络通信集团有限公司 Service opening method and device
CN114095365A (en) * 2020-08-24 2022-02-25 中移物联网有限公司 Method and device for processing Internet of things service based on 5G message
WO2022068622A1 (en) * 2020-09-30 2022-04-07 腾讯科技(深圳)有限公司 Method for controlling media streaming service transmission, user terminal, network node, system, storage medium, and electronic device
CN114501490A (en) * 2020-11-13 2022-05-13 维沃移动通信有限公司 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 (7)

* 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
US20180359795A1 (en) * 2017-06-09 2018-12-13 Samsung Electronics Co., Ltd Method for establishing protocol data unit session in communication system
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

Patent Citations (7)

* 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
US20180359795A1 (en) * 2017-06-09 2018-12-13 Samsung Electronics Co., Ltd Method for establishing protocol data unit session in communication 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

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114095365A (en) * 2020-08-24 2022-02-25 中移物联网有限公司 Method and device for processing Internet of things service based on 5G message
CN114095365B (en) * 2020-08-24 2023-07-21 中移物联网有限公司 Processing method and device of Internet of things service based on 5G message
CN112153675A (en) * 2020-09-01 2020-12-29 中国联合网络通信集团有限公司 Service opening method and device
CN112153675B (en) * 2020-09-01 2023-06-23 中国联合网络通信集团有限公司 Service opening method and device
WO2022068622A1 (en) * 2020-09-30 2022-04-07 腾讯科技(深圳)有限公司 Method for controlling media streaming service transmission, user terminal, network node, system, storage medium, and electronic device
US11909793B2 (en) 2020-09-30 2024-02-20 Tencent Technology (Shenzhen) Company Limited Method, user terminal, network node, and system for controlling transmission of media stream service, storage medium, and electronic device
CN114501490A (en) * 2020-11-13 2022-05-13 维沃移动通信有限公司 Service transfer method, terminal and network side 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

Also Published As

Publication number Publication date
CN111405682B (en) 2024-04-16

Similar Documents

Publication Publication Date Title
CN111405682B (en) Data forwarding method and gateway
CN109314917B (en) Network slice selection strategy updating method and device
US11228951B2 (en) Session handling method and related device
CN110049070B (en) Event notification method and related equipment
CN113596191B (en) Data processing method, network element equipment and readable storage medium
US20220322135A1 (en) Method for managing qos, relay terminal, pcf network element, smf network element, and remote terminal
CN111885733B (en) Resource allocation method, device, storage medium and network equipment
KR20090025250A (en) Wimax network, wimax network element and method of handling qos
WO2019091307A1 (en) Communication method and device
CN110431866B (en) Control plane connection management method and device
US10764183B2 (en) Data flow transmission method, device, and system
CN110856213B (en) Method and device for switching data transmission modes, storage medium and electronic equipment
CN103379479B (en) A kind of determine ID and the method for notifying parameters information, system and equipment
CN113709905A (en) Communication method, device and computer readable storage medium
WO2023035925A1 (en) Service processing method, apparatus and system
CN111565235A (en) Method and device for obtaining address of multimedia message service server
US20210410207A1 (en) Data sending method, terminal device, and storage medium
CN115334490A (en) Network fragmentation Access control (NSAC) discovery and roaming enhancements
CN114189893A (en) O-RAN capability opening method, communication system, device and storage medium
CN115915137A (en) Network function service authorization method and device
CN108377519B (en) Method and device for processing session connection
US10142877B2 (en) Management device, communication system, and communication control method
CN102448115A (en) Communication management method for mobile communication
WO2024038561A1 (en) Network information processing device, network information processing method, and program
CN111371843B (en) Data storage method and device

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