CN111131506B - Message processing method and device - Google Patents

Message processing method and device Download PDF

Info

Publication number
CN111131506B
CN111131506B CN201911417824.8A CN201911417824A CN111131506B CN 111131506 B CN111131506 B CN 111131506B CN 201911417824 A CN201911417824 A CN 201911417824A CN 111131506 B CN111131506 B CN 111131506B
Authority
CN
China
Prior art keywords
redirection
message
user plane
rule
gateway user
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
CN201911417824.8A
Other languages
Chinese (zh)
Other versions
CN111131506A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201911417824.8A priority Critical patent/CN111131506B/en
Publication of CN111131506A publication Critical patent/CN111131506A/en
Priority to PCT/CN2020/139892 priority patent/WO2021136132A1/en
Application granted granted Critical
Publication of CN111131506B publication Critical patent/CN111131506B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/148Migration or transfer of sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1403Architecture for metering, charging or billing
    • H04L12/1407Policy-and-charging control [PCC] architecture
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing

Abstract

The embodiment of the application provides a message processing method and a device, wherein the message processing method comprises the following steps: the method comprises the steps that gateway user plane equipment receives a first message from gateway control plane equipment, wherein the first message comprises a primary redirection identifier, and the primary redirection identifier is used for indicating that primary redirection operation is carried out on a message meeting redirection conditions; the gateway user plane equipment receives a first data message and determines that the first data message meets the redirection condition; and the gateway user plane equipment performs redirection operation on the first data message once. By adopting the embodiment of the application, one-time redirection can be realized under a network architecture with a separated control plane and a separated user plane.

Description

Message processing method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for processing a packet.
Background
In a communication system, there are various service scenarios of redirection, for example, when a user surfs the internet, the user is redirected to a welcome web page, and when the user surfs the internet, the user is redirected to a traffic reminding page for reminding the user of traffic usage, or when insufficient balance occurs in the user communication process, the user is redirected to a recharge page, and so on. Redirection is further classified into one-time redirection and one-time redirection. The primary redirection is to perform only one redirection operation, for example, only a welcome page is displayed when a user surfs the internet at an airport and opens a webpage of an airport cloud service for the first time. The constant redirection means that the user opens each webpage and performs redirection operation, for example, when the user traffic is insufficient, the user opens each webpage and redirects to a top-up page.
In the prior art, in a network architecture in which a control plane and a user plane are not separated, a primary redirection and a constant redirection may be implemented through a Gx interface between a Policy and Charging Rules Function (PCRF) network element and a gateway and a Gy interface between an Online Charging System (OCS) and the gateway. Currently, in a network architecture in which the control plane is separated from the user plane, only always redirection can be implemented.
Disclosure of Invention
The embodiment of the application provides a message processing method and a communication device, which can realize one-time redirection operation in a network architecture with a control plane and a user plane separated, and meet the application scene of one-time redirection.
In a first aspect, a message processing method is provided, where the message processing method may be executed by a gateway user plane device, and may also be executed by a component (e.g., a processor, a chip, or a system-on-chip) of the gateway user plane device. The method comprises the following steps: the method comprises the steps that a gateway user plane device receives a first message from a gateway control plane device, wherein the first message comprises a primary redirection identifier, and the primary redirection identifier is used for indicating that primary redirection operation is carried out on a message meeting redirection conditions. Optionally, the one-time redirection identifier may exist in various ways, for example, whether the one-time redirection is identified by one bit.
The gateway user plane device receives the first data message and determines that the first data message satisfies a redirection condition, wherein the redirection condition may be defined in various ways. For example, the redirection condition may define a session type of the packet, and if the session type of the first data packet matches the session type defined in the redirection condition, the first data packet satisfies the redirection condition. Or, the redirection condition may define a message detection rule, and if the attribute information of the first data message matches the message detection rule defined in the redirection condition, the first data message satisfies the redirection condition.
And under the condition that the gateway user plane equipment determines that the first data message meets the redirection condition, the gateway user plane equipment performs redirection operation on the first data message once. Optionally, the performing, by the gateway user plane device, a redirection operation on the first data packet may include: the gateway user plane device determines whether the history carries out over-redirection operation on the message meeting the redirection condition. And if the gateway user plane equipment does not perform the redirection operation on the message meeting the redirection condition in history, performing the redirection operation on the first data message. And if the redirection operation is determined to be performed on the message meeting the redirection condition by the gateway user plane equipment history, the redirection operation is not performed on the first data message.
By implementing the embodiment of the application, under a network architecture with separated control plane and user plane, the gateway control plane device can send a primary redirection identifier to the gateway user plane device, so that the gateway user plane device can perform a primary redirection operation on the first data message meeting the redirection condition according to the primary redirection identifier, and an application scene of primary redirection is met.
In one possible design, the first message may include a first message detection rule, a first forwarding action rule associated with the first message detection rule, the first forwarding action rule including a one-time redirection identifier. The primary redirection identifier may be in a redirection Information (e.g., Redirect Information) cell in the first forwarding operation rule, and optionally, the first forwarding operation rule may further include a redirection parameter, where the redirection parameter is used for performing a redirection operation. The redirection parameter may also be in a redirection information cell in the first forwarding operation rule.
The first packet detection rule may be used to define a redirection condition, for example, if the attribute information of the packet matches the first packet detection rule, the packet satisfies the redirection condition. It is to be understood that the first packet detection rule may include one or more packet detection rules, and it may be determined that the packet satisfies the redirection condition if the attribute information of the packet matches one of the one or more packet detection rules.
Correspondingly, after receiving the first data message, the gateway user plane device obtains the attribute information of the first data message. And judging whether the attribute information of the first data message is matched with a first message detection rule, and if the attribute information of the first data message is matched with the first message detection rule, determining that the first data message meets the redirection condition.
Further, the gateway user plane device obtains a first forwarding operation rule associated with the first packet detection rule, and performs a redirection operation on the first data packet when it is determined that the first forwarding operation rule includes a redirection identifier.
By implementing the embodiment, the gateway control plane device can send a redirection identifier to the gateway user plane device through the first forwarding operation rule associated with the first message detection rule, so that not only is a redirection condition defined, but also the redirection identifier is issued once, and the overhead is saved.
In one possible design, the first message may include a first packet detection rule, a first volume reporting rule associated with the first packet detection rule, and a first forwarding action rule associated with the first volume reporting rule, where the first forwarding action rule includes a one-time redirection identifier. The primary redirection identifier may be in a redirection Information (e.g., Redirect Information) cell in the first forwarding operation rule, and optionally, the first forwarding operation rule may further include a redirection parameter, where the redirection parameter is used for performing a redirection operation. Wherein, the redirection parameter may also be in the first forwarding operation rule.
The first packet detection rule may be used to define a redirection condition, for example, if the attribute information of the packet matches the first packet detection rule, the packet satisfies the redirection condition. It is to be understood that the first packet detection rule may include one or more packet detection rules, and it may be determined that the packet satisfies the redirection condition if the attribute information of the packet matches one of the one or more packet detection rules.
Correspondingly, after receiving the first data message, the gateway user plane device obtains the attribute information of the first data message. And judging whether the attribute information of the first data message is matched with a first message detection rule, and if the attribute information of the first data message is matched with the first message detection rule, determining that the first data message meets the redirection condition.
Further, the gateway user plane device obtains a first volume reporting rule associated with the first message detection rule, obtains a first forwarding operation rule associated with the first volume reporting rule, and performs a redirection operation on the first data message when it is determined that the first forwarding operation rule includes a redirection identifier. The first message detection rule may be configured to perform a first message detection rule on the message to be detected.
By implementing the embodiment, the gateway control plane device can send a first message detection rule to the gateway user plane device, the first message detection rule is associated with a first quantity reporting rule, and a primary redirection identifier is indicated to the gateway user plane device through a first forwarding operation rule associated with the first quantity reporting rule.
In one possible design, the redirecting the first data packet by the gateway user plane device may include: the gateway user plane device determines whether a redirection operation record exists. The redirection operation record is used for indicating that the redirection operation is performed on the message meeting the redirection condition. Namely, after the gateway user plane device performs redirection operation on the message meeting the redirection condition, the gateway user plane device sets the redirection operation record, so that whether the message meeting the redirection condition is subjected to redirection operation or not is determined when the message meeting the redirection condition is subsequently received.
If the redirection operation record exists, the gateway user plane equipment does not perform redirection operation on the first data message.
If the redirection operation record does not exist, the gateway user plane equipment performs redirection operation on the first data message, and sets the redirection operation record, and when the gateway user plane equipment subsequently receives the message meeting the redirection condition again, the gateway user plane equipment can know that the message meeting the redirection condition is subjected to over-redirection operation through the redirection operation record.
By implementing the embodiment, the gateway user plane device determines whether the history of the gateway user plane device performs redirection operation on the message meeting the redirection condition by setting the redirection operation record, so that the purpose of one redirection operation is realized, and the application scene of one redirection is met.
Optionally, the redirection operation record may be a record obtained by setting an identifier, and if the identifier is in an effective state, it indicates that the history of the gateway user plane device does not perform a redirection operation on the message meeting the redirection condition, and the gateway user plane device performs a redirection operation on the received message. Further, after the gateway user plane device performs redirection operation on the message, the identifier is set to be in an invalid state, and when the message meeting the redirection condition is subsequently received, the identifier is determined to be in the invalid state, so that redirection operation is not performed on the subsequently received message.
Optionally, the redirection operation record may also be a redirection operation record locally recorded by the gateway user plane device for the redirection condition, and if the redirection operation record does not exist locally, it indicates that the history of the gateway user plane device has not performed a redirection operation on a packet meeting the redirection condition, and the gateway user plane device performs a redirection operation on the received packet. Further, the gateway user plane device may locally record a redirection operation record to indicate that the redirection operation has been performed on the message that satisfies the redirection condition. When a message meeting the redirection condition is subsequently received, the redirection operation record is determined to exist locally, so that the redirection operation is not performed on the subsequently received message.
The existing mode of the redirection operation record may be various, and the embodiment of the present application is not limited, and the above two modes are only examples.
In a second aspect, a message processing method is provided, where the message processing method may be executed by a gateway user plane device, or may be executed by a component (e.g., a processor, a chip, or a system-on-chip) of the gateway user plane device. The method comprises the following steps: the gateway user plane device receives a second message from the gateway control plane device, where the second message includes a white list, where the white list includes a filter element, and optionally, the filter element may be an Internet Protocol (IP) address of a server.
Optionally, when the charging or policy service entity indicates the last resource quota to the gateway control plane device, the white list is sent to the gateway control plane device. For example, the charging or policy service entity sends a Final Unit Indication (FUI) to the gateway control plane device, where the FUI includes a white list.
Further, the gateway control plane device sends the white list to the gateway user plane device through a second message, and the gateway control plane device is configured to manage a session of the gateway user plane device. Correspondingly, the gateway user plane device receives the second message and obtains a white list.
The gateway user plane device receives the second data packet and determines whether the resource quota associated with the second data packet is exhausted, where the resource quota associated with the second data packet may be a resource quota of a service data stream to which the second data packet belongs.
If the resource quota associated with the second data message is exhausted, it is further determined whether the second data message matches a filter element of the white list. Optionally, if the filter element is an IP address of the server, the IP address of the server included in the second data message is matched with the IP address of the server in the filter element, and it is determined that the second data message is matched with the filter element. The white list may include at least one filter element and the second data message may be a match to one or more of the at least one filter element.
And if the second data message is matched with the filtering element of the white list, the gateway user plane equipment normally forwards the second data message, wherein the normal forwarding can be understood as not discarding the second data message, not executing redirection operation on the second data message, but forwarding according to a destination address contained in the second data message.
By implementing the embodiment of the application, the message meeting the white list can still be normally forwarded under the condition that the resource quota is exhausted under the network architecture with the control plane and the user plane separated.
In one possible design, the second message includes a second packet detection rule, a second quantity reporting rule associated with the second packet detection rule, and a second forwarding action rule associated with the second quantity reporting rule, where the second forwarding action rule includes the white list. Optionally, the second forwarding action rule may further include redirection information, where the redirection information is used to perform a redirection operation on the packet.
In one possible design, the determining, by the gateway user plane device, that the resource quota associated with the second data message is exhausted may include: the gateway user plane device obtains attribute information of the second data packet, where the attribute information may include, but is not limited to, a data stream to which the second data packet belongs, an IP address of a terminal device that sends the second data packet, and the like.
Further, whether the attribute information of the second data message is matched with a second message detection rule is determined, if the attribute information of the second data message is determined to be matched with the second message detection rule, a second usage reporting rule associated with the second message detection rule is further acquired, and whether the resource quota indicated by the second usage reporting rule is exhausted is determined. And if the resource quota indicated by the second quantity reporting rule is exhausted, determining that the resource quota associated with the second data message is exhausted.
By implementing the embodiment, the gateway control plane device may determine whether the resource quota associated with the second data packet is exhausted through the resource quota indicated by the usage reporting rule, and the determination method is simple and convenient to implement.
In a possible design, when determining that the resource quota indicated by the second volume reporting rule is exhausted, the gateway user plane device further obtains a second forwarding action rule associated with the second volume reporting rule, and obtains a white list from the second forwarding action rule, thereby determining whether the second data message is matched with a filtering element in the white list.
And under the condition that the gateway user plane equipment determines that the second data message is matched with the filtering elements in the white list, normally forwarding the second data message.
By implementing the embodiment of the application, the message which accords with the white list can be normally forwarded under the condition that the resource quota indicated by the second quantity reporting rule is exhausted.
In one possible design, the gateway user plane device may discard the second data message if it is determined that the second data message does not match the filter element.
In one possible design, the second message also includes redirection information, which may be, for example, included in the second forwarding action rule. And under the condition that the second data message is determined not to be matched with the filtering element, the gateway user plane equipment carries out redirection operation on the second data message according to the redirection information. For example, the user may be redirected to a top-up page.
By implementing the embodiment of the application, under the condition that the resource quota is exhausted, the message does not conform to the white list, and the message can be processed in a discarding or redirecting mode, so that various service scene requirements are met.
In a third aspect, a communication device is provided for implementing the method described in the first aspect. The communication device may be a gateway user plane device. For example, an apparatus includes: a transceiving unit and a processing unit. The receiving and sending unit is configured to receive a first message from a gateway control plane device, where the first message includes a primary redirection identifier, and the primary redirection identifier is used to indicate that a primary redirection operation is performed on a packet that meets a redirection condition. The transceiver unit is further configured to receive a first data packet. The processing unit is configured to determine that the first data packet satisfies the redirection condition. The processing unit is further configured to perform a redirection operation on the first data packet.
In one possible design, the first message includes a first packet detection rule, and a first forwarding action rule associated with the first packet detection rule, where the first forwarding action rule includes the one-time redirection identifier.
The processing unit is further configured to obtain attribute information of the first data packet, and determine that the attribute information of the first data packet matches the first packet detection rule.
Optionally, the processing unit is further configured to obtain the first forwarding operation rule associated with the first packet detection rule, and determine that the first forwarding operation rule includes the primary redirection identifier.
In one possible design, the first message includes a first packet detection rule, a first volume reporting rule associated with the first packet detection rule, and a first forwarding operation rule associated with the first volume reporting rule, where the first forwarding operation rule includes the one-time redirection identifier.
The processing unit is further configured to obtain attribute information of the first data packet, and determine that the attribute information of the first data packet matches the first packet detection rule. The processing unit is further configured to acquire the first volume reporting rule associated with the first packet detection rule; and acquiring the first forwarding operation rule associated with the first quantity reporting rule, and determining that the first forwarding operation rule comprises the primary redirection identifier.
In one possible design, the processing unit is further configured to determine whether a redirection operation record exists, where the redirection operation record is used to indicate that a redirection operation has been performed on a packet that meets the redirection condition; if the redirection operation record exists, not performing redirection operation on the first data message; if the redirection operation record does not exist, carrying out redirection operation on the first data message, and setting the redirection operation record.
In a fourth aspect, a communication device is provided for implementing the method described in the second aspect above. The communication device may be a gateway user plane device. For example, an apparatus includes: a transceiving unit and a processing unit. The transceiver unit is configured to receive a second message from a gateway control plane device, where the second message includes a white list, and the white list includes a filtering element. The transceiver unit is further configured to receive a second data packet. The processing unit is to determine that a resource quota associated with the second data message is exhausted. And the transceiver unit is further configured to forward the second data message when the processing unit determines that the second data message matches the filter element.
In one possible design, the second message includes a second packet detection rule, a second quantity reporting rule associated with the second packet detection rule, and a second forwarding action rule associated with the second quantity reporting rule, where the second forwarding action rule includes the white list.
In a possible design, the processing unit is further configured to obtain attribute information of the second data packet, and determine that the attribute information of the second data packet matches the second packet detection rule, and the processing unit is further configured to obtain the second volume reporting rule associated with the second packet detection rule, and determine that the resource quota indicated by the second volume reporting rule is exhausted.
In a possible design, the processing unit is further configured to obtain the second forwarding action rule associated with the second volume reporting rule, and obtain the white list from the second forwarding action rule.
In one possible design, the processing unit is further configured to discard the second data packet if it is determined that the second data packet does not match the filter element.
In a possible design, the second message further includes redirection information, and the processing unit is further configured to, if it is determined that the second data packet does not match the filter element, perform a redirection operation on the second data packet according to the redirection information.
In a fifth aspect, the present application further provides a communication device for implementing the method described in the first aspect. The communication device includes a system-on-chip. For example the communication device comprises a processor for implementing the functions in the method described in the first aspect above. The communication device may also include a memory for storing program instructions and data. The memory is coupled to the processor, and the processor may call and execute the program instructions stored in the memory, so as to implement the functions of the method described in the above first aspect. The communication device may further comprise a communication interface for the communication device to communicate with other devices. Illustratively, the communication device is a gateway user plane equipment and the other equipment is a gateway control plane equipment.
In one possible arrangement, the communication interface may be a transceiver. A transceiver for receiving the data messages and transmitting the redirected data messages. The processor is configured to determine that the attribute information of the first data packet matches the first packet detection rule, which may specifically refer to the descriptions in the foregoing aspects and is not described in detail.
In a sixth aspect, the present application further provides a communication device for implementing the method described in the second aspect. The communication device includes a system-on-chip. For example the communication device comprises a processor for implementing the functions in the method described in the second aspect above. The communication device may also include a memory for storing program instructions and data. The memory is coupled to the processor, and the processor can call and execute the program instructions stored in the memory, so as to implement the functions in the method described in the second aspect. The communication device may further comprise a communication interface for the communication device to communicate with other devices. Illustratively, if the communication device is a gateway user plane device, the other device is a gateway control plane device.
In one possible arrangement, the communication interface may be a transceiver. A transceiver for transmitting the redirected data message and receiving a message or data message. The processor is configured to determine that the attribute information of the second data message matches the second message detection rule, which may specifically refer to the descriptions in the foregoing aspects and is not described in detail.
In a seventh aspect, there is also provided a computer-readable storage medium, comprising: computer software instructions; the computer software instructions, when executed in the communication device, cause the communication device to perform the method of the first or second aspect described above.
In an eighth aspect, the present application also provides a computer program product comprising instructions which, when run in a communication apparatus, cause the communication apparatus to perform the method of the first or second aspect.
In a ninth aspect, the present application provides a chip system, where the chip system includes a processor and may further include a memory, and is configured to implement the function of the gateway in the foregoing method. The chip system may be formed by a chip, and may also include a chip and other discrete devices.
In a tenth aspect, the present application further provides a communication system comprising a gateway control plane device and a gateway user plane device as described in the third or fourth aspect.
In addition, the technical effects brought by the design manners of any aspect can be referred to the technical effects brought by different design manners in the first aspect or the second aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present application, the drawings required to be used in the embodiments or the background art of the present application will be described below.
Fig. 1A is a schematic block diagram of a wireless communication system according to an embodiment of the present application;
fig. 1B is a block diagram of another wireless communication system according to an embodiment of the present application;
fig. 2 is a flowchart of a message processing method according to an embodiment of the present application;
FIG. 3 is a flow chart of a process for one redirection provided by an embodiment of the present application;
fig. 4 is a flowchart of another message processing method according to an embodiment of the present application;
FIG. 5 is a flow diagram of white list processing provided by an embodiment of the present application;
fig. 6 is a schematic diagram illustrating a communication apparatus according to the present application;
fig. 7 is a schematic diagram of another communication device provided in the present application.
Detailed Description
The terminology used in the description of the embodiments section of the present application is for the purpose of describing particular embodiments of the present application only and is not intended to be limiting of the present application.
The terms "first," "second," and "third," etc. in the description and claims of this application and the above-described drawings are used for distinguishing between different objects and not for limiting a particular order.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The technical scheme of the embodiment of the application can be applied to various communication systems, for example: long Term Evolution (LTE) system, Universal Mobile Telecommunications System (UMTS), fifth generation (5G) system, New Radio (NR) system, and other new systems that appear with the development of technology.
Fig. 1A shows a schematic diagram of a 5G system that can be applied to the present application. As shown in fig. 1A, the system can be divided into two parts, an access network and a core network. The access network is used for implementing functions related to radio access, and mainly includes Radio Access Network (RAN) equipment. The core network mainly comprises the following key logic network elements: a User Plane Function (UPF), an access and mobility management Function (AMF), a Session Management Function (SMF), a Policy Control Function (PCF), a Unified Data management Function (UDM), an Authentication Server Function (AUSF), and a Unified Data Repository (UDR). The system 100 may further include a User Equipment (UE), a Data Network (DN), and an Application Function (AF). The interfaces between the network elements are shown in fig. 1A. It should be understood that the network elements may also communicate using a service interface.
A UE may also be referred to as a terminal device. The terminal device may communicate with one or more Core Networks (CNs) via the RAN device. A terminal device may be called an access terminal, subscriber unit, subscriber station, mobile, remote station, remote terminal, mobile device, user terminal, wireless network device, user agent, gateway device, or user equipment. The terminal may be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with wireless communication capability, a computing device or other device connected to a wireless modem, a vehicle-mounted device, a wearable device or internet of things, a terminal device in a vehicle network, a terminal device in a future network in any form, and so on.
The RAN device is a device for accessing a terminal device to a wireless network, and may specifically be a base station. The base stations may include various forms of base stations, such as: macro base stations, micro base stations (also referred to as small stations), relay stations, access points, etc. The method specifically comprises the following steps: an Access Point (AP) in a Wireless Local Area Network (WLAN), a Base Transceiver Station (BTS) in a global system for mobile communications (GSM) or Code Division Multiple Access (CDMA), a base station (NodeB, NB) in a Wideband Code Division Multiple Access (WCDMA), an Evolved Node B (eNB, or eNodeB) in LTE, or a relay station or access point, or a base station in a vehicle-mounted device, a wearable device, and a next generation Node B (the next generation Node B, G NB) in a 5G system, or a base station in a future Evolved Public Land Mobile Network (PLMN) network, and the like.
The UDM is mainly responsible for functions such as managing subscription data and user access authorization, and may be regarded as an fe (front end) of the UDR network element, and does not actually store the user subscription data.
And the UDR is mainly responsible for the access function of the type data such as subscription data, strategy data, application data and the like.
AUSF, which is mainly responsible for authenticating the user to determine whether the user/device is allowed to access the network.
The PCF is mainly responsible for performing policy control functions such as charging, QoS bandwidth guarantee, mobility management, UE policy decision, and the like for the session and the service flow level. In the framework, PCFs connected to the AMF and SMF correspond to AM PCF (PCF for Access and Mobility Control) and SM PCF (PCF for Session Management), respectively, and may not be the same PCF entity in an actual deployment scenario.
The SMF is mainly responsible for all control plane functions of UE session management, including selection and control of UPF, address allocation and management of Internet Protocol (IP), quality of service (QoS) management of a session, Policy and Charging Control (PCC) policy acquisition from a PCF, and the like.
The AMF is mainly responsible for registration management of the UE, connection management of the UE, reachability management of the UE, access authorization and authentication of the UE, security function of the UE, mobility management of the UE, network slice (network slice) selection, SMF selection, and other functions. The AMF serves as an anchor point of the N1/N2 interface signaling connection and provides the SMF with the routing of the N1/N2 interface Session Management (SM) message, and maintains and manages the state information of the UE.
The UPF is mainly responsible for processing user packets, such as forwarding and charging, and may be used as an anchor point connected to a Protocol Data Unit (PDU) session (session), that is, a PDU session anchor Point (PSA), and is responsible for filtering, data transmission/forwarding, rate control, generating charging information, processing a user plane QoS, performing uplink transmission authentication, verifying a transmission level, caching a downlink packet, triggering a downlink data notification, and the like, of a data packet of the UE. The UPF may also serve as a branch point for a multi-homed PDU session.
The AF, which may be an application server, may belong to the operator or to a third party.
DN, a network providing data transmission services to users, such as IP Multimedia Services (IMS), internet, etc. The DN may include an Application Server (AS), which is a software framework and provides an environment for running an application program, and is used to provide services such AS security, data, transaction support, load balancing large distributed system management, and the like for the application program. And the UE acquires the application message through communication with the AS.
The interfaces between the various network elements involved in fig. 1A are shown in fig. 1A, e.g. the PCF and SMF are connected by an N7 interface, the PCF and AMF are connected by an N15 interface, etc.
It should be understood that the embodiments of the present application are not limited to be applied only to the system architecture shown in fig. 1A. For example, a communication system to which the message processing method of the embodiment of the present application may be applied may include more or fewer network elements or devices.
Fig. 1B shows a schematic diagram of an LTE system that can be applied to the present application. The terminal equipment in the system can be accessed to a core network through an evolved universal Radio access network (E-UTRAN).
Specifically, optionally, the core network may include the following key logic network elements: an access and Mobility Management Entity (MME), a PGW-C, PGW-U, SGW-C, SGW-U, Policy and Charging control (PCRF), a Home Subscriber Server (HSS), a Serving GPRS Support Node (SGSN), and a third party Server, among others. The interfaces between the network elements are shown in fig. 1B. The functions of the network elements are described in detail below:
a UE may also be referred to as a terminal device. The terminal device may communicate with one or more Core Networks (CNs) via the access network device. A terminal device may be called an access terminal, subscriber unit, subscriber station, mobile, remote station, remote terminal, mobile device, user terminal, wireless network device, user agent, gateway device, or user equipment. The terminal may be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with wireless communication capability, a computing device or other device connected to a wireless modem, a vehicle-mounted device, a wearable device or internet of things, a terminal device in a vehicle network, a terminal device in a future network in any form, and so on.
And the PCRF is mainly responsible for policy control and charging control, makes decisions according to the service information used by the user and the policy information signed by the user, determines the policies for using and charging the user service, and issues the policies to a policy execution entity in the gateway.
The HSS is mainly used for storing a database of user subscription information, and the stored information comprises: user identification information, user security control information, user location information, user policy control information, and the like.
The SGSN, as an important component of GPRS/TD-SCDMA (WCDMA) core network packet domain equipment, mainly completes the functions of packet data packet routing forwarding, mobility management, session management, logical link management, authentication and encryption, ticket generation and output, and the like.
The MME is mainly responsible for processing control signaling such as user access control, service bearing control, paging, switching control and the like.
The third-party server, which may be an application server, may belong to the operator, or may belong to a third party.
The SGW-C and the PGW-C are used as session management functional entities to realize session access and management, selection of the SGW-U and the PGW-U, full interconnection between the SGW-C and the SGW-U, and full interconnection between the PGW-C and the PGW-U, so that all session or non-session message interaction processes between a control plane (SGW-C, PGW-C) and a user plane (SGW-U, PGW-U) are realized. The control plane needs to perform service interaction with peripheral entities, maintain a session, for example, interact with the PCRF through a Gx interface, and interact with the OCS through a Gy interface to implement online charging, and is a centralized interface of external signaling.
The SGW-U and PGW-U, as functional entities of the user plane, can perform session or non-session message interaction with the control plane through the Sx interface, and can issue the S1-U interface address of the home terminal to the (R) AN side and implement session management, and also issue the routing policy of the UE IP address of the session to the SGi side, so that the downlink packet can find the user plane to perform data forwarding processing.
In the network architecture shown in fig. 1A and fig. 1B in which the control plane is separated from the user plane, in the prior art, the gateway control plane device sends redirection information to the gateway user plane device, and when the gateway user plane device receives each packet, the gateway user plane device performs a redirection operation according to the redirection information, that is, in the prior art, the redirection can be performed all the time, and an application scenario of one-time redirection cannot be satisfied.
In the application, the gateway control surface device issues a redirection type identifier (whether the redirection type identifier is a primary redirection or not, or whether the redirection type identifier is a primary redirection or a direct redirection) to the gateway user surface device, so that the gateway user surface device can execute a corresponding redirection operation according to the redirection type identifier, and the requirements of different application scenarios are met.
Before describing the method of the present application in detail, a brief description of some concepts involved in the present application will be provided.
The gateway user plane device in this embodiment of the present application may be a UPF in fig. 1A, or may also be a PGW-U in fig. 1B, and it may also be a gateway user plane device in other communication systems, which is not limited in this embodiment of the present application.
The gateway control plane device in the embodiment of the present application may be the SMF in fig. 1A, or may also be the PGW-C in fig. 1B, and it may also be a gateway control plane device in other communication systems, which is not limited in the embodiment of the present application.
The Packet Detection Rule (PDR) in the embodiment of the present application may be issued by the gateway control plane device to the gateway user plane device, and is configured to detect a received Packet and perform corresponding processing on the Packet. Optionally, the PDR may include an identification PDR ID of the PDR, Packet Detection Information (PDI), and a processing rule associated with the PDR. The processing Rule may include, but is not limited to, at least one of a Forwarding Action Rule (FAR), a Usage Reporting Rule (URR), and a QoS Enforcement Rule (QER).
The PDI may include at least one type of packet detection information, configured to detect attribute information of a packet, determine that the packet matches the PDR if the attribute information of the packet matches one or more of the at least one type of packet detection information, and perform corresponding processing on the packet according to a processing rule associated with the PDR. For example, the PDI may include data flow detection information and an Internet Protocol (IP) address of the terminal device, and the like.
Optionally, the FAR may indicate a forwarding action on the packet, for example, may indicate that the packet is forwarded to the redirection server, and the PDR may associate the FAR, that is, detect that the packet is matched with the PDI in the PDR, that is, forward the packet according to the packet forwarding rule indicated in the FAR associated with the PDR.
Optionally, the URR may indicate to perform an online charging action on the message, for example, may perform flow charging on the message, indicate the remaining amount of the resource quota, and the like, and the PDR may associate the URR, that is, detect that the message matches with the PDI in the PDR, perform flow charging on the message by the URR associated with the PDR, consume the resource quota, and further may obtain the remaining amount of the resource quota indicated by the URR from the URR.
Further optionally, the URR may be associated with the FAR, and when the resource quota indicated by the URR is exhausted (for example, the remaining amount of the resource quota indicated by the URR is less than or equal to 0), the packet may be forwarded according to a packet forwarding rule indicated in the FAR, for example, a redirect forwarding operation may be performed according to redirect information in the FAR.
In this embodiment of the present application, performing a redirection operation on a packet that meets the redirection condition may refer to performing a redirection operation on a packet that meets the redirection condition received for the first time, and not performing a redirection operation on a packet that does not meet the redirection condition received for the first time. It is to be understood that the packets satisfying the redirection condition may include at least one packet.
In this embodiment of the present application, forwarding the second data packet may be understood as forwarding according to a destination address included in the second data packet.
Referring to fig. 2, a schematic flow chart of a message processing method according to an embodiment of the present application is shown, where the message processing method according to the embodiment of the present application includes, but is not limited to, the following steps:
s101, a gateway control surface device sends a first message, wherein the first message comprises a primary redirection identifier, and the primary redirection identifier is used for indicating that primary redirection operation is performed on a message meeting redirection conditions.
In one embodiment, the charging or policy service entity issues redirection information to the gateway control plane device, and indicates that the type of redirection is one-time redirection, where the redirection information may also be referred to as redirection parameter, and the redirection information is used for performing redirection operation. For example, the redirection information may be a Uniform Resource Locator (URL), and may be used to redirect the packet to the redirection server, and the redirection server returns the redirection page to the user according to the URL, where optionally, the redirection page may be different in different scenarios, for example, when the balance of the user is insufficient, the redirection page may be redirected to the recharge page.
Correspondingly, the gateway control plane device receives the redirection information sent by the charging or policy service entity, and determines that the executed redirection type is one-time redirection. The gateway control plane device sends a first message to the gateway user plane device. The first message includes a primary redirection identifier and redirection information, the primary redirection identifier is used to indicate that a primary redirection operation is performed on a message meeting a redirection condition, and the primary redirection operation may be, for example, a redirection operation is performed on a message meeting the redirection condition that is received for the first time, and a redirection operation is not performed on a message meeting the redirection condition that is not received for the first time.
The redirection condition may be that a session type of a session to which the packet belongs is matched with a session type indicated in the first message, or the redirection condition may be that packet attribute information is matched with a packet detection rule indicated in the first message, and the like.
The primary redirection identifier may be identified in a variety of ways, which is not limited in the embodiment of the present application. Optionally, a redirection may be identified by a bit difference, or a redirection may be identified all the time, for example, a redirection may be identified by a bit "1", and a redirection may be identified by a bit "0", or an implicit manner, for example, if the first message does not include a redirection identifier, a redirection is performed by default, and if the first message includes a redirection identifier, a redirection is indicated.
Correspondingly, after receiving the first message, the gateway user plane device can obtain the redirection identifier, and execute a corresponding redirection operation according to the redirection identifier. If the message is a redirection identifier, only performing redirection operation once on the message meeting the redirection condition according to the redirection information, and if the message is a permanent redirection identifier, performing redirection operation each time on the message meeting the redirection condition according to the redirection information.
Optionally, if the gateway control plane device is an SMF and the gateway user plane device is an UPF, the SMF sends the first message to the UPF through the Sx interface. And if the gateway control plane equipment is the PGW-C and the gateway user plane equipment is the PGW-U, the PGW-C sends a first message to the PGW-U through the N4 interface.
In an alternative embodiment, the first message may be a Session level message, such as an activation message or an update message. The first message may include a first message detection rule and a first forwarding rule associated with the first message detection rule, where the first forwarding rule includes a redirection identifier and redirection information. Optionally, the redirection Information (for example, redirection Information) in the first forwarding operation rule may be extended to issue a primary redirection identifier, and optionally, the redirection Information cell further includes redirection Information.
In another optional implementation, the first message may be a Session-level message, and the first message may include a first packet detection rule, a first volume reporting rule associated with the first packet detection rule, and a first forwarding operation rule associated with the first volume reporting rule, where the first forwarding operation rule includes a primary redirection identifier and redirection information. Optionally, the redirection Information (for example, redirection Information) in the first forwarding operation rule may be extended to issue a primary redirection identifier, and optionally, the redirection Information cell further includes redirection Information.
S102, the gateway user plane equipment receives the first data message and determines that the first data message meets the redirection condition.
In an embodiment, the first data packet satisfies the redirection condition, which may be determined according to a definition of the redirection condition, for example, if the redirection condition indicates that the session type of the session to which the packet belongs is matched with the session type indicated in the first message, the first data packet satisfies the redirection condition, and correspondingly, the session type to which the first data packet belongs is the same as the session type indicated in the first message, and it is determined that the first data packet satisfies the redirection condition. For another example, the redirection condition means that the message attribute information matches the message detection rule indicated by the first message, and correspondingly, the attribute information of the first data message matches the message detection rule in the redirection condition, and it is determined that the first data message satisfies the redirection condition.
In an alternative embodiment, if the first message includes the first message detection rule and the first forwarding operation rule associated with the first message detection rule, the first forwarding operation rule includes a redirection identifier and redirection information. The primary redirection identification indicates that primary redirection operation is carried out on the message with the message attribute information matched with the first message detection rule.
Correspondingly, after the gateway user plane device receives the first data packet, it is determined that the attribute information of the first data packet matches the first packet detection rule, the first forwarding operation rule associated with the first packet detection rule is further obtained, and a redirection operation is performed on the first data packet when it is determined that the first forwarding operation rule includes a redirection identifier, where a description of the redirection operation performed on the first data packet refers to the description of step S103, which is not repeated for the moment.
Optionally, the first packet detection rule includes detection information of the data flow, that is, a redirection operation is performed on a packet belonging to a specific data flow. For example, the first packet detection rule may include detection information of data flow 1, where the first data packet is a packet belonging to data flow 1, and after receiving the first data packet, the gateway user plane device may determine that the first data packet belongs to data flow 1 according to attribute information of the first data packet, where the attribute information of the first data packet is matched with the first packet detection rule.
Further, a first forwarding operation rule associated with the first message detection rule is obtained, and if the first forwarding operation rule includes a redirection identifier, a redirection operation is performed on the first data message. It can be understood that, in addition, a redirection operation may also be performed on the first data packet under the condition that it is determined that the one redirection identifier is valid, and the embodiment of the present application is not limited.
In another optional implementation manner, if the first message includes a first packet detection rule, a first volume reporting rule associated with the first packet detection rule, and a first forwarding operation rule associated with the first volume reporting rule, the first forwarding operation rule includes a primary redirection identifier and redirection information. The primary redirection identification indicates that primary redirection operation is carried out on the message with the message attribute information matched with the first message detection rule.
Correspondingly, after the gateway user plane device receives the first data packet, it is determined that the attribute information of the first data packet matches the first packet detection rule, and further obtains a first volume reporting rule associated with the first packet detection rule and a first forwarding action rule associated with the first volume reporting rule, and performs a redirection operation on the first data packet when it is determined that the first forwarding action rule includes a redirection identifier, where reference is made to the description of step S103 for describing a redirection operation performed on the first data packet, which is not repeated for the moment.
Optionally, the first packet detection rule includes packet detection information of the data flow, that is, a redirection operation is performed on a packet belonging to a specific data flow. For example, the first packet detection rule may include detection information of data flow 1, where the first data packet is a packet belonging to data flow 1, and after receiving the first data packet, the gateway user plane device may determine, according to attribute information of the first data packet, that the first data packet belongs to data flow 1, and then the attribute information of the first data packet matches the first packet detection rule.
Further, a first quantity reporting rule associated with the first message detection rule and a first forwarding operation rule associated with the first quantity reporting rule are obtained, and the first forwarding operation rule comprises a redirection identifier, so that a redirection operation is performed on the first data message. It can be understood that, in addition, a redirection operation may also be performed on the first data packet under the condition that it is determined that the one redirection identifier is valid, and the embodiment of the present application is not limited.
S103, the gateway user plane equipment performs a redirection operation on the first data message.
Optionally, step S103 may include, but is not limited to, the following steps S1031-S1033.
And S1031, the gateway user plane device determines whether a redirection operation record exists, the redirection operation record is used for indicating that the redirection operation is performed on the message meeting the redirection condition, if the redirection operation record exists, step S1032 is executed, and if the redirection operation record does not exist, step S1033 is executed.
S1032, the gateway ue does not perform redirection operation on the first data packet.
S1033, the gateway user plane device performs redirection operation on the first data message, and sets the redirection operation record.
Optionally, the redirection operation record may be a record for setting an identifier, for example, if a message meeting the redirection condition is subjected to a redirection operation, the identifier is set to be invalid, and if a message meeting the redirection condition is received again next time, it is detected that the identifier is invalid, and the message may not be subjected to the redirection operation.
Optionally, the redirection operation record may also be a redirection operation record locally recorded by the gateway user plane device, for example, if a redirection operation is performed on a packet meeting the redirection condition, a redirection operation record for the redirection condition is locally recorded, where the redirection operation record is used to indicate that a redirection operation has been performed on a packet meeting the redirection condition. If the message meeting the redirection condition is received again next time, a redirection operation record aiming at the redirection condition is detected to exist locally, and the message can not be redirected again.
The redirection operation may refer to forwarding the first data packet to a redirection server according to the redirection information, so as to trigger the server to return a corresponding redirection page.
It can be understood that, if the gateway user performs the redirection operation on the first data packet, the redirection operation record is set for the redirection condition, so that when the packet meeting the redirection condition is subsequently received again, it can be determined according to the redirection operation record that the redirection operation has been performed on the packet meeting the redirection condition, and the redirection operation is not performed on the subsequently received packet meeting the redirection condition any more, thereby achieving the purpose of one redirection operation.
By implementing the embodiment of the application, the gateway control surface equipment issues the redirection type identifier (whether the redirection type identifier is a primary redirection or not, or whether the redirection type identifier is a primary redirection or a permanent redirection) to the gateway user surface equipment, so that the gateway user surface equipment can execute corresponding redirection operation according to the redirection type identifier, and the requirements of different application scenarios are met. If the gateway control plane device does not issue the redirection type identifier to the gateway user plane device, the gateway user plane device defaults to execute a always-redirecting operation according to the redirection information, and cannot realize a once-redirecting operation and meet an once-redirecting application scenario.
The method shown in fig. 2 is described in more detail in connection with fig. 3. For convenience of understanding, in fig. 3, it is described by taking an example that the gateway control plane device is a PGW-C or SMF, the gateway user plane device is a PGW-U or UPF, the first message is a Session-level message, the first message detection rule is a PDR1 or PDR2, the first forwarding rule associated with PDR1 is FAR1, the first quantity reporting rule associated with PDR2 is URR2, and the first forwarding rule associated with URR2 is FAR 2. As shown, this embodiment includes, but is not limited to, the following steps:
s201, a charging or policy service entity informs a PGW-C or an SMF of a redirection parameter and that the redirection type is a primary redirection;
the PGW-C or SMF may issue a primary redirection identifier to the PGW-U or UPF in two ways, where the first way is to issue the primary redirection identifier through FAR1 associated with PDR1, the second way is to issue the primary redirection identifier through URR2 associated with PDR2 and FAR2 associated with URR2, and the first way and the second way are described below respectively.
One way includes, but is not limited to, step S202-step S204.
S202, the PGW-C or SMF indicates a redirection identifier to the PGW-U or UPF through a Session level message of Sxb/N4 interface, the Session level message includes PDR1 and FAR1 associated with PDR1, wherein, the redirection type identifier is issued in an extension of redirection Information cell in FAR1 associated with PDR1, such as including a redirection identifier. The PDR1 may include, among other things, detection information for user data stream 1.
S203, the PGW-U or UPF receives the message belonging to the user data flow 1, the attribute information of the message is matched with the PDR1, the FAR1 associated with the PDR1 is obtained, the FAR1 contains a redirection identifier, the redirection identifier is effective, the redirection operation is not recorded locally for the FAR1, and the message is redirected once, namely, the message is redirected and forwarded to a redirection server according to the redirection parameters.
The PGW-U or UPF locally records that a redirection operation has been made to the FAR 1.
S204, the PGW-U or UPF receives the message belonging to the user data flow 1 again, the attribute information of the message is matched with the PDR1, the FAR1 associated with the PDR1 is obtained, the FAR1 contains a redirection identifier, the redirection identifier is effective, the local record is judged to have performed redirection operation once aiming at the FAR1, then the redirection operation is not repeatedly executed once, and the message is forwarded to the server in a routing mode.
The second mode includes, but is not limited to, step S205-step S207.
S205, the PGW-C or SMF indicates a redirection identification to the PGW-U or UPF through a Session level message of Sxb/N4 interface, the Session level message includes PDR2, URR2 associated with PDR2, and FAR2 associated with URR2, wherein, the issuing of the redirection type identification is extended in a redirection Information cell in FAR2, such as including a redirection identification. PDR2 may include, among other things, detection information for user data stream 2.
S206, the PGW-U or UPF receives the message belonging to the user data flow 2, the attribute information of the message is matched with PDR2, URR2 associated with PDR2 and FAR2 associated with URR2 are obtained, the FAR2 contains a primary redirection identifier, the primary redirection identifier is effective, the redirection operation for FAR2 is not recorded locally, and then the message is redirected and forwarded to a redirection server according to the redirection parameters.
The PGW-U or UPF locally records that a redirection operation has been made to the FAR 2.
S207, the PGW-U or UPF receives the message belonging to the user data stream 2 again, the attribute information of the message is matched with the PDR2, the URR2 associated with the PDR2 and the FAR2 associated with the URR2 are obtained, the FAR2 contains a primary redirection identifier, the primary redirection identifier is effective, it is judged that the local record has already performed a redirection operation for the FAR2, the redirection operation is not repeatedly executed, and the message is forwarded to the server in a routing manner.
Referring to fig. 4, a schematic flow chart of another message processing method according to the embodiment of the present application is shown, where as shown in the drawing, the message processing method according to the embodiment of the present application includes, but is not limited to, the following steps:
s301, the gateway control plane device sends a second message to the gateway user plane device, wherein the second message includes a white list, and the white list includes a filtering element.
In an embodiment, when the charging or policy service entity issues the last resource quota to the gateway control plane device, a white list is indicated to the gateway control plane device, where the white list may include one or more filter elements, and optionally, the filter element may be an IP address of the server.
The charging or policy service entity may issue a white list to the gateway control plane device through Final Unit Indication (FUI). Optionally, the charging or policy service entity may further indicate redirection information to the gateway control plane device, and the redirection information may also be indicated to the gateway control plane device through FUI.
The gateway control plane device sends a second message to the gateway user plane device managed by the gateway control plane device, where the second message includes a white list, and optionally, the second message may further include redirection information if the charging or policy service entity indicates the redirection information to the gateway control plane device.
Accordingly, after receiving the second message, the gateway user plane device may obtain the white list, or may further obtain redirection information from the second message.
Optionally, if the gateway control plane device is an SMF and the gateway user plane device is an UPF, the SMF sends the second message to the UPF through the Sx interface. And if the gateway control plane equipment is the PGW-C and the gateway user plane equipment is the PGW-U, the PGW-C sends a second message to the PGW-U through the N4 interface.
In an optional implementation manner, the second message may be a Session-level message, such as an activation message or an update message, and the second message may include a second packet detection rule, a second volume reporting rule associated with the second packet detection rule, and a second forwarding action rule associated with the second volume reporting rule, where the second forwarding action rule includes a white list, and further optionally, the second forwarding action rule may further include redirection information. Optionally, the white list may be issued by expanding in a redirection Information (e.g., redirection Information) cell in the second forwarding action rule, and optionally, the redirection Information cell further includes redirection Information. And the second volume reporting rule is used for online charging of all messages associated with the second message detection rule and resource quota consumption. And further acquiring a second forwarding action rule associated with the second volume reporting rule under the condition that the resource quota indicated by the second volume reporting rule is exhausted, wherein the second forwarding action rule comprises a message processing rule under the condition that the resource quota is exhausted.
S302, the gateway user plane device receives the second data message and determines that the resource quota associated with the second data message is exhausted.
In one embodiment, after receiving the second data packet, the gateway user plane device determines whether a resource quota associated with the second data packet is exhausted. For example, the gateway user plane device obtains attribute information of the second data packet, matches the attribute information of the second data packet with the second packet detection rule, if the attribute information of the second data packet matches the second packet detection rule, obtains a second traffic reporting rule associated with the second packet detection rule, and may determine whether the resource quota associated with the second data packet is exhausted according to the second traffic reporting rule. If the second volume reporting rule indicates that the resource quota is exhausted, the resource quota associated with the second data message is exhausted, further, a second forwarding action rule associated with the second volume reporting rule is obtained, a white list in the second forwarding action rule is further obtained, and step S303 is executed.
If it is determined that the resource quota associated with the second data message is not exhausted, the message can be forwarded normally, the flow is counted, and the resource quota associated with the second data message, that is, the resource quota indicated by the second traffic reporting rule, is consumed.
S303, the gateway ue determines whether the second data packet matches the filter element, if so, performs step S304, and if not, performs step S305.
In one embodiment, the gateway user plane device further determines whether the second data message matches a filter element in the whitelist upon determining that the resource quota associated with the second data message is exhausted. If the filter element included in the white list is the IP address of the server, the matching between the second data packet and the filter element in the white list may mean that the IP address of the server included in the second data packet matches the IP address of the server in the white list.
And S304, under the condition that the second data message is determined to be matched with the filtering element, the gateway user plane equipment forwards the second data message.
In an embodiment, if the second data packet matches a filter element in the white list, it is determined that the second data packet can be normally forwarded, and a purpose of normally forwarding a packet conforming to the white list still can be achieved when the resource quota is exhausted.
Optionally, when the gateway user plane device forwards the second data packet, the flow of the second data packet may not be counted, that is, the second data packet is allowed to be forwarded freely, and the resource quota is not consumed. Optionally, the flow of the second data packet may also be counted, but the second data packet may also be forwarded normally, which is not limited in this embodiment of the present application.
S305, under the condition that the second data message is determined not to be matched with the filtering element, the gateway user plane equipment discards the second data message; alternatively, the first and second electrodes may be,
and under the condition that the second data message is determined not to be matched with the filtering element, the gateway user plane equipment carries out redirection operation on the second data message according to the redirection information.
In one embodiment, if it is determined that the second data packet does not match the filter element in the white list, the second data packet is not allowed to be forwarded normally when the resource quota is exhausted. Optionally, the second forwarding action rule does not include redirection information, and the gateway user plane device may discard the second data packet. Optionally, if the second forwarding action rule includes redirection information, the gateway user plane device may perform redirection operation on the second data message according to the redirection information, for example, forward the second data message to a redirection server according to the redirection information, and the redirection server returns a redirection page, where the redirection page may be a recharge page, and the like.
By implementing the embodiment of the application, the gateway control surface equipment can issue the white list to the gateway user surface equipment, so that the gateway user surface equipment can normally forward the message matched with the white list when the resource quota associated with the message is exhausted, and the message not matched with the white list is redirected or directly discarded, thereby meeting various user requirements.
The method shown in fig. 4 is described in more detail in connection with fig. 5. For convenience of understanding, in fig. 5, it is described by taking an example that the gateway control plane device is a PGW-C or an SMF, the gateway user plane device is a PGW-U or an UPF, the second message is a Session level message, the second packet detection rule is a PDR, the second traffic reporting rule associated with the PDR is a URR, and the second forwarding action rule associated with the URR is a FAR. The first mode refers to discarding the message when the message is not matched with the white list, and the second mode refers to performing redirection operation on the message when the message is not matched with the white list. The following describes the first and second modes, respectively.
One approach includes, but is not limited to, steps S401-S405.
S401, when the charging or policy service entity issues the last resource quota, the SMF/PGW-C FUI is notified, and the FUI contains white list information.
S402, the PGW-C or SMF sends a Session level message to the PGW-U or UPF through Sxb/N4 interface, the message comprises PDR1, URR1 associated with PDR1 and FAR1 associated with URR1, the message also comprises PDR11, PDR11 is associated with URR1, URR1 is associated with FAR1, and the FAR1 contains white list. The PDR1 may contain detection information of the user data stream 1, and the PDR11 may contain detection information of the user data stream 11.
S403, the PGW-U or UPF receives the message belonging to the user data stream 1, the attribute information of the message is matched with the PDR1, and further the URR1 associated with the PDR1 is obtained, the URR1 indicates that the resource quota is available, so that the message is forwarded, the flow is counted, and the resource quota is consumed.
S404, the PGW-U or the UPF receives the message belonging to the user data flow 1 again, the attribute information of the message is matched with the PDR1, the URR1 associated with the PDR1 is further obtained, the resource quota indicated by the URR1 is exhausted, the FAR1 associated with the URR1 is obtained, and the FAR1 contains a white list. If the message is matched with the filtering elements of the white list in the FAR1, the message can be forwarded normally without counting the flow.
S405, the PGW-U or the UPF receives a message belonging to the user data stream 11, the attribute information of the message is matched with the PDR11, the URR1 associated with the PDR11 is further obtained, if the resource quota indicated by the URR1 is exhausted, the FAR1 associated with the URR1 is obtained, and the FAR1 contains a white list. If the message does not match the white listed filter element in FAR1, the message is discarded.
The second mode includes, but is not limited to, step S406-step S410.
S406, when the charging or policy service entity issues the last resource quota, the SMF/PGW-C FUI is notified, and the FUI contains white list information and redirection information.
S407, the PGW-C or SMF sends a Session level message to the PGW-U or UPF through Sxb/N4 interface, the message includes PDR2, URR2 associated with PDR2 and FAR2 associated with URR2, the message may also include PDR22, wherein PDR22 is associated with URR2, URR2 is associated with FAR2, the FAR2 includes white list and redirection information. The PDR2 may contain detection information of the user data stream 2, and the PDR22 may contain detection information of the user data stream 22.
S408, the PGW-U or the UPF receives the message belonging to the user data stream 2, the attribute information of the message is matched with the PDR2, the URR2 associated with the PDR2 is further obtained, and the URR2 indicates that the resource quota is available, so that the message is forwarded, the flow is counted, and the resource quota is consumed.
S409, the PGW-U or the UPF receives the message belonging to the user data stream 2 again, the attribute information of the message is matched with the PDR2, the URR2 associated with the PDR2 is further obtained, if the resource quota indicated by the URR2 is exhausted, the FAR2 associated with the URR2 is obtained, and the FAR2 contains the white list and the redirection information. If the message is matched with the filtering elements of the white list in the FAR2, the message can be forwarded normally without counting the flow.
S410, a PGW-U or a UPF receives a message belonging to a user data stream 22, the attribute information of the message is matched with a PDR22, a URR2 associated with the PDR22 is further obtained, if the resource quota indicated by the URR2 is exhausted, a FAR2 associated with the URR2 is obtained, and the FAR2 contains a white list and redirection information. If the message is not matched with the filtering elements of the white list in the FAR2, the message is redirected according to the redirection information, that is, the message is redirected and forwarded to a redirection server.
It is understood that, in order to implement the functions of the above embodiments, the gateway user equipment includes corresponding hardware structures and/or software modules for performing the respective functions. Those of skill in the art will readily appreciate that the various illustrative elements and method steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software driven hardware depends on the particular application scenario and design constraints imposed on the solution.
Fig. 6 and 7 are schematic structural diagrams of a possible communication device provided in an embodiment of the present application. These communication devices can be used to implement the functions of the gateway user plane device in the above method embodiments, and therefore, the beneficial effects of the above method embodiments can also be achieved. In the embodiment of the present application, the communication device may be a UPF shown in fig. 1A or a PGW-C shown in fig. 1B, or may be a module (e.g., a chip) applied to the UPF or the PGW-C.
As shown in fig. 6, the communication device 1100 includes a processing unit 1110 and a transceiving unit 1120. The communication apparatus 1100 is used to implement the functions of the gateway user plane device in the method embodiment shown in any one of fig. 2 to 5.
When the communication apparatus 1100 is used to implement the functionality of the gateway user equipment in the method embodiment shown in fig. 2: the transceiver 1120 is configured to perform corresponding receiving actions in S101 and step S102; the processing unit 1110 is configured to perform the determination action in S102 and steps S1031, S1032, and S1033.
When the communication apparatus 1100 is used to implement the functionality of the gateway user plane device in the method embodiment shown in fig. 3: the transceiver 1120 is configured to perform S202; the processing unit 1110 is configured to execute S203 and S204.
When the communication apparatus 1100 is used to implement the functionality of the gateway user plane device in the method embodiment shown in fig. 4: the transceiver 1120 is configured to perform the receiving operation of the pair S301 and the receiving operation in step S302; the processing unit 1110 is configured to perform the determination action in S302, S303, S304, and S305.
When the communication apparatus 1100 is used to implement the functionality of the gateway user plane device in the method embodiment shown in fig. 5: the transceiver 1120 is configured to perform S402 and S407; the processing unit 1110 is configured to execute S403, S404, S405, S408, S409, and S410.
The more detailed description of the processing unit 1110 and the transceiver 1120 can be directly obtained by referring to the related description in the method embodiments shown in fig. 2 to fig. 5, which is not repeated herein.
As shown in fig. 7, the communication device 1200 includes a processor 1210 and an interface circuit 1220. The processor 1210 and the interface circuit 1220 are coupled to each other. It is understood that the interface circuit 1220 may be a transceiver or an input-output interface. Optionally, the communication device 1200 may further include a memory 1230 for storing instructions to be executed by the processor 1210 or for storing input data required by the processor 1210 to execute the instructions or for storing data generated by the processor 1210 after executing the instructions.
When the communication device 1200 is used to implement the methods shown in fig. 2 to 5, the processor 1210 is configured to perform the functions of the processing unit 1110, and the interface circuit 1220 is configured to perform the functions of the transceiver 1120.
The embodiment of the application also provides a processing device, which comprises a processor and an interface; the processor is configured to perform the method of any of the method embodiments shown in fig. 2 to 5.
It should be understood that the processing means may be a chip. For example, the processing device may be a Field Programmable Gate Array (FPGA), a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, a system on chip (SoC), a Central Processing Unit (CPU), a Network Processor (NP), a digital signal processing circuit (DSP), a microcontroller (micro controller unit, MCU), a Programmable Logic Device (PLD) or other integrated chip. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
It will be appreciated that the memory in the embodiments of the subject application can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. The non-volatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), double data rate SDRAM, enhanced SDRAM, SLDRAM, Synchronous Link DRAM (SLDRAM), and direct rambus RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
The method steps in the embodiments of the present application may be implemented by hardware, or may be implemented by software instructions executed by a processor. The software instructions may be comprised of corresponding software modules that may be stored in Random Access Memory (RAM), flash Memory, Read-Only Memory (ROM), Programmable ROM (PROM), Erasable PROM (EPROM), Electrically EPROM (EEPROM), registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known 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 ASIC. In addition, the ASIC may reside in a network device or a terminal device. Of course, the processor and the storage medium may reside as discrete components in a network device or a terminal device.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are performed in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, a network appliance, a user device, or other programmable apparatus. The computer program or instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer program or instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire or wirelessly. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that integrates one or more available media. The usable medium may be a magnetic medium, such as a floppy disk, a hard disk, a magnetic tape; or optical media such as Digital Video Disks (DVDs); it may also be a semiconductor medium, such as a Solid State Drive (SSD).
In the embodiments of the present application, unless otherwise specified or conflicting with respect to logic, the terms and/or descriptions in different embodiments have consistency and may be mutually cited, and technical features in different embodiments may be combined to form a new embodiment according to their inherent logic relationship.
In the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning 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, wherein A and B can be singular or plural. In the description of the text of the present application, the character "/" generally indicates that the former and latter associated objects are in an "or" relationship; in the formula of the present application, the character "/" indicates that the preceding and following related objects are in a relationship of "division".
It is to be understood that the various numerical references referred to in the embodiments of the present application are merely for descriptive convenience and are not intended to limit the scope of the embodiments of the present application. The sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of the processes should be determined by their functions and inherent logic.

Claims (6)

1. A method for message processing, comprising:
the method comprises the steps that gateway user plane equipment receives a first message from gateway control plane equipment, wherein the first message comprises a primary redirection identifier, and the primary redirection identifier is used for indicating that primary redirection operation is carried out on a message meeting redirection conditions;
the gateway user plane equipment receives a first data message and determines that the first data message meets the redirection condition;
and the gateway user plane equipment performs redirection operation on the first data message once.
2. The method of claim 1, wherein the first message comprises a first packet detection rule, a first forwarding action rule associated with the first packet detection rule, the first forwarding action rule comprising the one-time redirection identification;
the determining, by the gateway user plane device, that the first data packet satisfies the redirection condition includes:
the gateway user plane equipment acquires the attribute information of the first data message and determines that the attribute information of the first data message is matched with the first message detection rule;
before the gateway user plane device performs a redirection operation on the first data packet, the method further includes:
and the gateway user plane equipment acquires the first forwarding operation rule associated with the first message detection rule and determines that the first forwarding operation rule comprises the primary redirection identifier.
3. The method of claim 1, wherein the first message comprises a first packet detection rule, a first volume reporting rule associated with the first packet detection rule, and a first forwarding action rule associated with the first volume reporting rule, the first forwarding action rule comprising the one-time redirection identifier;
the determining, by the gateway user plane device, that the first data packet satisfies the redirection condition includes:
the gateway user plane equipment acquires the attribute information of the first data message and determines that the attribute information of the first data message is matched with the first message detection rule;
before the gateway user plane device performs a redirection operation on the first data packet, the method further includes:
the gateway user plane equipment acquires the first quantity reporting rule associated with the first message detection rule;
and the gateway user plane equipment acquires the first forwarding operation rule associated with the first quantity reporting rule and determines that the first forwarding operation rule comprises the primary redirection identifier.
4. The method according to any of claims 1-3, wherein the performing, by the gateway user plane device, a redirection operation on the first datagram comprises:
the gateway user plane equipment determines whether a redirection operation record exists or not, wherein the redirection operation record is used for indicating that the redirection operation is performed on the message meeting the redirection condition;
if the redirection operation record exists, the gateway user plane equipment does not carry out redirection operation on the first data message;
if the redirection operation record does not exist, the gateway user plane equipment performs redirection operation on the first data message and sets the redirection operation record.
5. A communications apparatus, comprising: at least one processor, a memory, a bus and an interface circuit, wherein the memory is for storing a computer program such that the computer program when executed by the at least one processor implements the method of any one of claims 1 to 4.
6. A computer-readable storage medium, comprising: computer software instructions;
the computer software instructions, when run in a communication device or a chip built in a communication device, cause the communication device apparatus to perform the method of any of claims 1 to 4.
CN201911417824.8A 2019-12-31 2019-12-31 Message processing method and device Active CN111131506B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911417824.8A CN111131506B (en) 2019-12-31 2019-12-31 Message processing method and device
PCT/CN2020/139892 WO2021136132A1 (en) 2019-12-31 2020-12-28 Packet processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911417824.8A CN111131506B (en) 2019-12-31 2019-12-31 Message processing method and device

Publications (2)

Publication Number Publication Date
CN111131506A CN111131506A (en) 2020-05-08
CN111131506B true CN111131506B (en) 2021-10-01

Family

ID=70506842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911417824.8A Active CN111131506B (en) 2019-12-31 2019-12-31 Message processing method and device

Country Status (2)

Country Link
CN (1) CN111131506B (en)
WO (1) WO2021136132A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131506B (en) * 2019-12-31 2021-10-01 华为技术有限公司 Message processing method and device
CN114124737B (en) * 2020-08-25 2023-07-11 华为技术有限公司 Method and device for controlling user equipment to access network
CN113572774B (en) * 2021-07-27 2023-04-28 杭州迪普科技股份有限公司 Message forwarding method and device in network equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420729A (en) * 2007-10-26 2009-04-29 华为技术有限公司 Method, system and apparatus for implementing redirection
CN102123370A (en) * 2010-01-12 2011-07-13 中兴通讯股份有限公司 System and method for redirecting access of user
CN103329483A (en) * 2010-11-16 2013-09-25 瑞典爱立信有限公司 Service redirection from a policy and charging control architecture
CN104301161A (en) * 2013-07-17 2015-01-21 华为技术有限公司 Computing method, computing device and communication system for business quality index
CN107580349A (en) * 2016-07-05 2018-01-12 中兴通讯股份有限公司 A kind of reorientation method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107548047A (en) * 2016-06-28 2018-01-05 中兴通讯股份有限公司 A kind of information notice method, OCS, GW and system
US11394811B2 (en) * 2018-02-15 2022-07-19 Telefonaktiebolaget Lm Ericsson (Publ) Redirection handling
CN111131506B (en) * 2019-12-31 2021-10-01 华为技术有限公司 Message processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420729A (en) * 2007-10-26 2009-04-29 华为技术有限公司 Method, system and apparatus for implementing redirection
CN102123370A (en) * 2010-01-12 2011-07-13 中兴通讯股份有限公司 System and method for redirecting access of user
CN103329483A (en) * 2010-11-16 2013-09-25 瑞典爱立信有限公司 Service redirection from a policy and charging control architecture
CN104301161A (en) * 2013-07-17 2015-01-21 华为技术有限公司 Computing method, computing device and communication system for business quality index
CN107580349A (en) * 2016-07-05 2018-01-12 中兴通讯股份有限公司 A kind of reorientation method and device

Also Published As

Publication number Publication date
CN111131506A (en) 2020-05-08
WO2021136132A1 (en) 2021-07-08

Similar Documents

Publication Publication Date Title
CN112312339B (en) Charging method, charging system and communication device
CN109167847B (en) IPv6 address generation method, SMF and communication system
CN108781361B (en) Method and apparatus for processing data packets
US20210168151A1 (en) Method for implementing user plane security policy, apparatus, and system
CN111131506B (en) Message processing method and device
US20140233505A1 (en) Providing a Deny Response that Specifies a Delay Time
CN115039425A (en) Extending Npcf _ EventExposure by using a condition monitoring event
KR20160047584A (en) Systems and methods for traffic detection network control
US20150163731A1 (en) Temporary credential assignment when connecting to roaming wireless networks
WO2017071327A1 (en) Data transmission processing method and device
CN106921585B (en) Data message sending method, device and system
WO2020253735A1 (en) Congestion control method and device
CN111225013A (en) Transmission strategy determination method, strategy control method and device
CN113055879B (en) User identification access method and communication device
CN116210253A (en) Communication method, device and system
US20220360670A1 (en) System and method to enable charging and policies for a ue with one or more user identities
CN113747479B (en) Method, equipment and system for acquiring network resources
CN114424600B (en) Communication method, device, system and storage medium
CN111586602B (en) Policy management method and device
CN110366204A (en) Communication means and communication device
CN112073925A (en) Method and device for processing data packet
CN113412606A (en) Packet Switched (PS) data turn-off feature initiated in a network
CN113923682B (en) Communication method, device and system
US11606303B1 (en) Device initiated quality of service
US11108914B2 (en) Method and system for revenue maximization in a communication 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