CN109548063B - Method, device, equipment and storage medium for processing message - Google Patents

Method, device, equipment and storage medium for processing message Download PDF

Info

Publication number
CN109548063B
CN109548063B CN201710853359.7A CN201710853359A CN109548063B CN 109548063 B CN109548063 B CN 109548063B CN 201710853359 A CN201710853359 A CN 201710853359A CN 109548063 B CN109548063 B CN 109548063B
Authority
CN
China
Prior art keywords
pdr
group
target
pdrs
message
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
CN201710853359.7A
Other languages
Chinese (zh)
Other versions
CN109548063A (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 CN201710853359.7A priority Critical patent/CN109548063B/en
Publication of CN109548063A publication Critical patent/CN109548063A/en
Application granted granted Critical
Publication of CN109548063B publication Critical patent/CN109548063B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Abstract

The disclosure provides a method, a device, equipment and a storage medium for processing a message, and belongs to the technical field of wireless communication. The method comprises the following steps: receiving a message to be processed; searching a target PDR group matched with the session information from a plurality of groups of message detection rules PDRs corresponding to the user plane equipment according to the session information of the session to which the message belongs, wherein each group of PDRs comprises at least one PDR of at least one strategy type; and matching a target PDR from the target PDR group according to the attribute information of the message, and processing the message based on the target PDR. According to the method and the device, each PDR is grouped, when the user plane equipment is matched with the target PDR, the target PDR group matched with the session information is searched first, and then the target PDI is searched from the target PDR group, so that the time is shortened, and the efficiency is improved.

Description

Method, device, equipment and storage medium for processing message
Technical Field
The present disclosure relates to the field of wireless communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for processing a packet.
Background
In a fifth generation mobile communication technology (5G) communication system, in order to monitor a service, a message transmitted between a terminal device and a server needs to pass through a 5G core network User Plane (NG-UP). And the NG-UP processes the message and transmits the processed message to the terminal equipment or the server.
Currently, a 5G core network Control Plane (NG-CP) issues a Packet Detection Rule (PDR) to the NG-UP. The PDR includes a plurality of Packet Detection Information (PDI), one or more PDR identifiers, and a processing rule corresponding to each PDR identifier. The processing Rule includes at least one of a Forwarding Action Rule (FAR), a Usage Reporting Rule (URR), and a QoS Enforcement Rule (QER). When the NG-UP receives the message, the NG-UP matches with each message detection information in the PDR according to the attribute information of the message, selects the message detection information matched with the message from the PDR, obtains a PDR identification corresponding to the message detection information, and processes the message according to the processing rule corresponding to the PDR identification.
In the course of implementing the present disclosure, the inventors found that the prior art has at least the following problems:
in the method, the NG-UP needs to match with each message detection information in the PDR according to the attribute information of the message when selecting the message detection information. The PDR includes more message detection information, and as the service of the terminal device increases, the PDR includes more and more message detection information. Therefore, the time consumption for selecting the message detection information matched with the received message from the PDR by the method is long, and the message processing efficiency is low.
Disclosure of Invention
The embodiment of the disclosure provides a method, a device, equipment and a storage medium for processing a message, which can solve the problem of low message processing efficiency. The technical scheme is as follows:
in a first aspect, a method for processing a packet is provided, where the method is applied to a user plane device, and the method includes:
receiving a message to be processed;
searching a target PDR group matched with the session information from a plurality of groups of message detection rules PDRs corresponding to the user plane equipment according to the session information of the session to which the message belongs, wherein each group of PDRs comprises at least one PDR of at least one strategy type;
and matching a target PDR from the target PDR group according to the attribute information of the message, and processing the message based on the target PDR.
In the embodiment of the present disclosure, when a user plane device receives a message, according to session information of a session to which the message belongs, a target PDR group matched with the session information is searched from a plurality of PDR groups corresponding to the user plane device, where each PDR group includes at least one PDR of at least one policy type; and matching the target PDR from the target PDR group according to the attribute information of the message, and processing the message based on the target PDR. Because each PDR is grouped, when the user plane equipment is matched with the target PDR, the target PDR group matched with the session information is searched first, and then the target PDI is searched from the target PDR group, so that the time is shortened, and the efficiency is improved.
In a possible implementation manner, before searching a target packet detection rule PDR group matched with the session information from a plurality of packet detection rule PDR groups corresponding to the user plane device according to the session information of the session to which the packet belongs, the method further includes:
when the control plane equipment reaches an issuing condition, receiving a plurality of PDRs (packet data reduction) sent by the control plane equipment through an Sx interface between the control plane equipment and the user plane equipment, wherein a designated field in each PDR carries a packet identifier of a packet to which the PDR belongs;
and dividing the PDRs into a plurality of groups of PDRs according to the grouping identification of the grouping to which each PDR belongs.
In the disclosed embodiment, multiple sets of PDRs are received over the Sx interface. And, add the packet identification of the packet to which the PDR belongs in a specified field in the PDR. The user plane device then groups the PDRs according to the group identification. The designated field may be any field in the PDR or a field added in the PDR.
In one possible implementation manner, the PDRs are carried in an Sx session establishment request message, or the PDRs are carried in an Sx session update request message.
In the embodiment of the present disclosure, not only multiple groups of PDRs may be carried in the Sx session establishment request message, but also multiple groups of PDRs may be carried in the Sx session update request message, thereby increasing application scenarios.
In a possible implementation manner, the searching, according to the session information of the session to which the packet belongs, a target PDR group matching the session information from a plurality of groups of packet detection rules PDRs corresponding to the user plane device includes:
determining the session information of the session to which the message belongs;
acquiring a target PDR group identifier corresponding to the session information from the corresponding relation between the session information and the PDR group identifier according to the session information;
and searching the target PDR group corresponding to the target PDR group identification from a plurality of groups of PDRs corresponding to the user plane according to the target PDR group identification.
In the embodiment of the present disclosure, the user plane device stores the correspondence between the session information and the PDR group identifier. And determining the target PDR group according to the session information, thereby improving the accuracy of determining the target PDR group.
In a possible implementation manner, the selecting a target PDR from the target PDR group according to the attribute information of the packet includes:
searching at least one PDR matched with the attribute information from the target PDR group according to the attribute information of the message;
determining the priority level of each selected PDR;
and selecting the target PDR with the highest priority level from the target PDR group according to the selected priority level of each PDR.
In the disclosed embodiment, the priority level of the PDR takes effect in the same PDR packet, and different PDR packets are not coupled to each other. When the user plane equipment selects the target PDR, the target PDR with the highest priority level is selected according to the priority level of each PDR in the target PDR group.
In a possible implementation manner, the processing the packet based on the target PDR includes:
acquiring each target processing rule included by the target PDR;
and processing the message according to each target processing rule.
In the embodiment of the present disclosure, the PDR includes a PDI and a processing rule, and when a certain PDR is hit, the packet is processed according to the processing rule included in the PDR.
In a second aspect, a method for processing a packet is provided, where the method is applied in a control plane device, and the method includes:
acquiring the strategy type of each message detection rule PDR corresponding to the user plane equipment;
grouping each PDR according to the strategy type of each PDR to obtain a plurality of groups of PDRs, wherein each group of PDRs comprises at least one PDR of at least one strategy type;
and when the issuing condition is met, sending the multiple groups of PDRs to the user plane equipment through an Sx interface between the control plane equipment and the user plane equipment.
In the embodiment of the present disclosure, the control plane device groups each PDR according to the policy type of each PDR to obtain a plurality of PDR groups. Therefore, the multiple PDRs of different types do not need to consider the overlapping coupling relation of PDIs and the priority matching and execution sequence, and the planning difficulty of the PDRs of the Sx interface is greatly reduced.
In one possible implementation, the method further includes:
for each group of PDRs, determining a priority level of each PDR in the group of PDRs;
the priority level of each PDR is noted in the PDR group.
In the disclosed embodiment, the priority level of the PDR takes effect in the same PDR packet, and different PDR packets are not coupled to each other.
In a possible implementation manner, the multiple PDRs are carried in the Sx session establishment request message, or the multiple PDRs are carried in the Sx session update request message.
In the embodiment of the present disclosure, not only multiple groups of PDRs may be carried in the Sx session establishment request message, but also multiple groups of PDRs may be carried in the Sx session update request message, thereby increasing application scenarios.
In one possible implementation, the sending the multiple sets of PDRs to the user plane device includes:
determining the group identification of the group to which each PDR belongs;
and adding the group identification of the group to which the PDR belongs in a specified field in each PDR, and sending each PDR after the group identification is added to the user plane equipment.
In the disclosed embodiment, multiple sets of PDRs are received over the Sx interface. And, add the packet identification of the packet to which the PDR belongs in a specified field in the PDR. The user plane device then groups the PDRs according to the group identification. The designated field may be any field in the PDR or a field added in the PDR.
In a possible implementation manner, before the sending, when the delivery condition is reached, the multiple PDRs to the user plane device through an Sx interface between the control plane device and the user plane device, the method further includes:
acquiring a PDR to be deleted, and deleting the PDR to be deleted from a PDR group in which the PDR to be deleted is positioned; and/or the presence of a gas in the gas,
the method comprises the steps of obtaining a PDR to be added, determining a PDR group corresponding to the PDR to be added according to the strategy type of the PDR to be added, and adding the PDR to be added into the determined PDR group.
In the disclosed embodiments, updating the PDR may be implemented. In addition, because an AVP of a PDR Group (or called PDRType) is added for defining the grouping identification of the PDR, all PDRs in a Session realize grouping based on the grouping identification, and different PDR groups are not coupled with each other, when updating the PDR, the overlapping combination relation of the filtering condition and the strategy of each service plan does not need to be considered, and the actual operation difficulty is reduced.
In a third aspect, an apparatus for processing a packet is provided, where the apparatus includes:
a receiving unit, configured to receive a message to be processed;
a matching unit, configured to search, according to session information of a session to which the packet belongs, a target PDR group matching the session information from multiple groups of packet detection rules PDRs corresponding to a user plane device, where each group of PDRs includes at least one PDR of at least one policy type;
the matching unit is further configured to match a target PDR from the target PDR group according to the attribute information of the packet;
and the processing unit is used for processing the message based on the target PDR.
In one possible implementation, the apparatus further includes:
the receiving unit is configured to receive, through an Sx interface between the control plane device and the user plane device, multiple PDRs sent by the control plane device when the control plane device reaches an issue condition, where a specified field in each PDR carries a packet identifier of a packet to which the specified field belongs;
and the dividing unit is used for dividing the PDRs into a plurality of groups of PDRs according to the grouping identification of the grouping to which each PDR belongs.
In one possible implementation manner, the PDRs are carried in an Sx session establishment request message, or the PDRs are carried in an Sx session update request message.
In a possible implementation manner, the matching unit is further configured to determine session information of a session to which the packet belongs; acquiring a target PDR group identifier corresponding to the session information from the corresponding relation between the session information and the PDR group identifier according to the session information; and searching the target PDR group corresponding to the target PDR group identification from a plurality of groups of PDRs corresponding to the user plane according to the target PDR group identification.
In a possible implementation manner, the matching unit is further configured to search, according to the attribute information of the packet, at least one PDR that matches the attribute information from the target PDR group; determining the priority level of each selected PDR; and selecting the target PDR with the highest priority level from the target PDR group according to the selected priority level of each PDR.
In a possible implementation manner, the processing unit is further configured to obtain each target processing rule included in the target PDR; and processing the message according to each target processing rule.
In a fourth aspect, an apparatus for processing a packet is provided, where the apparatus includes:
an obtaining unit, configured to obtain a policy type of each packet detection rule PDR corresponding to a user plane device;
a grouping unit, configured to group each PDR according to the policy type of each PDR to obtain multiple groups of PDRs, where each group of PDRs includes at least one PDR of at least one policy type;
and the sending unit is used for sending the multiple groups of PDRs to the user plane equipment through an Sx interface between the control plane equipment and the user plane equipment when the sending condition is met.
In one possible implementation, the apparatus further includes:
a determining unit, configured to determine, for each group of PDRs, a priority level of each PDR in the PDR group;
and the marking unit is used for marking the priority level of each PDR in the PDR group.
In a possible implementation manner, the multiple PDRs are carried in the Sx session establishment request message, or the multiple PDRs are carried in the Sx session update request message.
In a possible implementation manner, the sending unit determines a packet identifier of a packet to which each PDR belongs, adds the packet identifier of the packet to which each PDR belongs to a specified field in each PDR, and sends each PDR to which the packet identifier is added to the user plane device.
In one possible implementation, the apparatus further includes:
the updating unit is used for acquiring the PDR to be deleted and deleting the PDR to be deleted from the PDR group where the PDR to be deleted is located; and/or the presence of a gas in the gas,
the updating unit is further configured to acquire a PDR to be added, determine a PDR group corresponding to the PDR to be added according to the policy type of the PDR to be added, and add the PDR to be added to the determined PDR group.
The technical scheme provided by the embodiment of the disclosure has the following beneficial effects:
in the embodiment of the present disclosure, when a user plane device receives a message, according to session information of a session to which the message belongs, a target PDR group matched with the session information is searched from a plurality of PDR groups corresponding to the user plane device, where each PDR group includes at least one PDR of at least one policy type; and matching the target PDR from the target PDR group according to the attribute information of the message, and processing the message based on the target PDR. Because each PDR is grouped, when the user plane equipment is matched with the target PDR, the target PDR group matched with the session information is searched first, and then the target PDI is searched from the target PDR group, so that the time is shortened, and the efficiency is improved.
Drawings
Fig. 1 is a schematic diagram of a communication system provided by an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a user plane device provided in an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a control surface device according to an embodiment of the present disclosure;
fig. 4-1 is a signaling interaction diagram for processing a packet according to an embodiment of the present disclosure;
fig. 4-2 is a signaling interaction diagram for processing a packet according to an embodiment of the present disclosure;
fig. 4-3 are signaling interaction diagrams for processing a packet according to an embodiment of the present disclosure;
fig. 4-4 are schematic diagrams of a PDR packet provided by an embodiment of the present disclosure;
fig. 5 is a signaling interaction diagram for processing a packet according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a device for processing a packet according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a device for processing a packet according to an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
An embodiment of the present disclosure provides a communication system, and referring to fig. 1, the communication system includes: user plane device 101, control plane device 102, transmitting device 103, and receiving device 104. The control plane device 102 communicates with the user plane device 101 via the Sx interface. The user plane device 101 communicates with the transmitting device 103 and the receiving device 104, respectively, via a wireless or wired network.
The control plane device 102 is configured to group each PDR corresponding to the user plane device 101 according to the policy type of each PDR corresponding to the sending device 103, so as to obtain multiple groups of PDRs. Each set of PDRs includes at least one PDR of at least one policy type, each PDR includes a PDI and a processing rule including at least one processing rule of FAR, URR, and QER. The control plane device 102 issues multiple sets of PDRs to the user plane device 101.
The user plane device 101 is configured to receive multiple PDRs sent by the control plane device 102, and store the multiple PDRs.
The sending device 103 is configured to send a message to the user plane device 101.
The user plane device 101 is further configured to receive the packet, determine session information of a session to which the packet belongs, and search, according to the session information, a target PDR group matched with the session information from multiple groups of PDRs, where it should be noted that one or multiple matched target PDR groups may be used here. The user plane device 101 searches a target PDR corresponding to the attribute information from the target PDR group according to the attribute information of the packet, and processes the packet according to the target PDR. It should be noted that the target PDR may include a plurality of processing rules, and the user plane device 101 processes the packet according to each processing rule included in the target PDR. The user plane device 101 is further configured to send the processed message to the receiving device 104.
The receiving device 104 is configured to receive the processed message sent by the user plane device 101.
The communication system may be a third Generation mobile communication (3G) system, a fourth Generation mobile communication (4G) system, or a fifth Generation mobile communication (5G) system. The user plane equipment 101 may be any network element with user plane functionality. For example, the User Plane device 101 may be an NG-UP, a User Plane PDN GateWay (PGW-UP), a User Plane service GateWay (SGW-UP), a traffic detection Function entity User Plane service GateWay (TDF-UP), an evolved packet User Plane Data GateWay (ePDG-UP), a Distributed GateWay (Distributed GW, DGW), and a Remote deployment GateWay (Remote GW, RGW). The control plane device 102 may be any network element having control plane functionality. For example, the Control Plane device 102 may be an NG-CP, a Control Plane PDN GateWay (PGW-CU), a Control Plane Serving GateWay (SGW-CU), a Traffic Detection Function Control Plane Serving GateWay (TDF-CP), an evolved Packet Control Plane Data GateWay (ePDG-CP), a Centralized GateWay (CGW), or a Mobility Management Entity (MME). The transmitting device 103 may be a terminal device or a server. The receiving device 104 may be a terminal device or a server.
An embodiment of the present disclosure provides a user plane device, referring to fig. 2, the user plane device includes: a transceiver 201, a processor 202, a memory 203, and a bus 204. Wherein, the transceiver 201, the processor 202 and the memory 203 are communicated with each other through a bus 204; the transceiver 201 is used for communication between the terminal device 20 and the sending device, the receiving device and the control plane device, respectively, the memory 203 is used for storing first configuration information and instructions, the instructions include computer operation instructions, and the processor 202 executes the instructions stored in the memory 203, so that the user plane device executes the following method for processing messages.
Receiving a message to be processed;
receiving a message to be processed;
searching a target message detection rule PDR group matched with the session information from a plurality of groups of message detection rule PDR groups corresponding to the user plane equipment according to the session information of the session to which the message belongs, wherein each group of PDR comprises at least one PDR of at least one strategy type;
and matching the target PDR from the target PDR group according to the attribute information of the message, and processing the message based on the target PDR.
In a possible implementation manner, before searching a target packet detection rule PDR group matched with the session information from a plurality of groups of packet detection rule PDR groups corresponding to the user plane device according to the session information of the session to which the packet belongs, the method further includes:
when the control surface equipment reaches an issuing condition, receiving a plurality of PDRs (packet data Rate) sent by the control surface equipment through an Sx interface between the control surface equipment and the user surface equipment, wherein a specified field in each PDR carries a packet identifier of a packet to which the PDR belongs;
and dividing the PDRs into a plurality of PDR groups according to the grouping identification of the grouping to which each PDR belongs.
In one possible implementation, the PDRs are carried in an Sx session establishment request message or an Sx session update request message.
In a possible implementation manner, searching a target PDR group matching with the session information from multiple groups of packet detection rules PDRs corresponding to the user plane device according to the session information of the session to which the packet belongs includes:
determining the session information of the session to which the message belongs;
acquiring a target PDR group identifier corresponding to the session information from the corresponding relation between the session information and the PDR group identifier according to the session information;
and searching the target PDR group corresponding to the target PDR group identification from a plurality of groups of PDRs corresponding to the user plane according to the target PDR group identification.
In one possible implementation manner, selecting a target PDR from the target PDR group according to the attribute information of the packet includes:
according to the attribute information of the message, at least one PDR matched with the attribute information is searched from the target PDR group;
determining the priority level of each selected PDR;
and selecting the target PDR with the highest priority level from the target PDR group according to the selected priority level of each PDR.
In one possible implementation, sending the multiple sets of PDRs to the user plane device includes:
determining the group identification of the group to which each PDR belongs;
and adding the group identification of the group to which the PDR belongs in a specified field in each PDR, and sending each PDR after the group identification is added to the user plane equipment.
In one possible implementation, processing the packet based on the target PDR includes:
acquiring each target processing rule included in the target PDR;
and processing the message according to each target processing rule.
An embodiment of the present disclosure provides a control plane device, referring to fig. 3, including: a transceiver 301, a processor 302, a memory 303, and a bus 304. The transceiver 301, the processor 302 and the memory 303 are communicated with each other through a bus 304; the transceiver 301 is used for communication between the control plane device and the user plane device, the memory 303 is used for storing instructions including computer operation instructions, and the processor 302 executes the instructions stored in the memory 303, so that the control plane device performs the following method for processing messages.
Acquiring the strategy type of each message detection rule PDR corresponding to the user plane equipment;
grouping each PDR according to the strategy type of each PDR to obtain a plurality of groups of PDRs, wherein each group of PDRs comprises at least one PDR of at least one strategy type;
and when the issuing condition is met, sending a plurality of groups of PDRs to the user plane equipment through an Sx interface between the control plane equipment and the user plane equipment.
In one possible implementation, the method further includes:
for each group of PDRs, determining the priority level of each PDR in the group of PDRs;
the priority level of each PDR is noted in the PDR group.
In one possible implementation, the multiple PDRs are carried in the Sx session establishment request message, or the multiple PDRs are carried in the Sx session update request message.
In a possible implementation manner, when the delivery condition is reached, before sending multiple PDRs to the user plane device through an Sx interface between the control plane device and the user plane device, the method further includes:
acquiring a PDR to be deleted, and deleting the PDR to be deleted from a PDR group in which the PDR to be deleted is positioned; and/or the presence of a gas in the gas,
and acquiring a PDR to be added, determining a PDR group corresponding to the PDR to be added according to the strategy type of the PDR to be added, and adding the PDR to be added into the determined PDR group.
The embodiment of the present disclosure provides a method for processing a packet, which is described in the embodiment of the present disclosure by taking an example in which a control plane device issues multiple sets of PDRs to a user plane device, and the method is applied between the user plane device and the control plane device. Referring to fig. 4-1, the method includes:
step 401: the control plane device obtains the policy type of each PDR corresponding to the user plane device.
In this embodiment of the present disclosure, the control plane device groups each PDR according to a policy type of each PDR corresponding to the user plane device. Therefore, the control plane device needs to acquire a policy type of each PDR corresponding to the user plane device. Wherein the control plane device controls the user plane device; the control plane device stores the identifier of each PDR corresponding to each user plane device. Correspondingly, the steps can be as follows: the control plane equipment acquires the identification of each PDR corresponding to the user plane equipment; and acquiring the strategy type of each PDR corresponding to the user plane equipment according to the identification of each PDR corresponding to the user plane equipment.
The control plane device includes a correspondence between the identity of each PDR and the policy type. Correspondingly, the step of the control plane device obtaining the policy type of each PDR corresponding to the user plane device according to the identifier of each PDR corresponding to the user plane device may be: and the control plane equipment acquires the strategy type of each PDR corresponding to the user plane equipment from the corresponding relation between the PDR identification and the strategy type according to the identification of each PDR corresponding to the user plane equipment. The policy type may be PDPQoS, content charging, service-based bandwidth control, header enhancement, gating, and the like.
For example, the user plane device corresponds to 10 PDRs, PDR1-PDR 10. The control surface equipment determines the strategy types of PDR1 and PDR2 as PDPQoS; determining the policy type of the PDR3 and the PDR4 as content charging; determining the strategy types of the PDR5 and the PDR6 as bandwidth control; determining the strategy type of PDR7 and PDR8 as head enhancement; the strategy type of PDR9 and PDR10 was determined to be gated.
Step 402: the control plane equipment groups each PDR according to the strategy type of each PDR to obtain a plurality of groups of PDRs, wherein each group of PDRs comprises at least one PDR of at least one strategy type.
The control plane device may divide PDRs of the same policy type into one PDR group, or may divide PDRs of multiple policy types into one PDR group. And, each PDR group includes one or more PDRs therein. Each PDR includes a PDI and a processing rule, which may include at least one of a FAR, a QER, and a URR.
(I): when each group of PDRs includes a PDR of policy type, this step may be: and the control surface equipment divides the PDRs with the same strategy type into the same PDR group according to the strategy type of each PDR to obtain a plurality of groups of PDRs.
For example, the policy types of the PDR1 and PDR2 are PDPQoS, the policy types of the PDR3 and PDR4 are content charging, the policy types of the PDR5 and PDR6 are bandwidth control, the policy types of the PDR7 and PDR8 are header enhancement, and the policy types of the PDR9 and PDR10 are gating. The control surface equipment divides PDR1 and PDR2 into PDR Group1, PDR3 and PDR4 into PDR Group2, PDR5 and PDR6 into PDR Group3, PDR7 and PDR8 into PDR Group4, and PDR9 and PDR10 into PDR Group 5.
(II): when each group of PDRs includes PDRs of multiple policy types, this step may be: the control plane equipment determines the strategy types divided into the same group, and divides the PDRs of the strategy types divided into the same group into the same PDR group according to the strategy type of each PDR and the strategy types divided into the same group, so as to obtain a plurality of groups of PDRs.
When the control plane device determines policy types divided into the same group, the control plane device may divide any of a plurality of policy types into the same group. The control plane device may also divide multiple policy types with similar services into the same group according to the policy type of each PDR. In the embodiment of the present disclosure, the manner in which the control plane device determines the policy types divided into the same group is not particularly limited.
For example, the policy types of the PDR1 and PDR2 are PDPQoS, the policy types of the PDR3 and PDR4 are content charging, the policy types of the PDR5 and PDR6 are bandwidth control, the policy types of the PDR7 and PDR8 are header enhancement, and the policy types of the PDR9 and PDR10 are gating. The control plane device determines to divide PDPQoS and PDR of content charging into the same group, and divides PDR of bandwidth control, header enhancement and gate control into the same group. The control plane device divides PDR1-PDR4 into PDR Group1 and PDR5-PDR10 into PDR Group 2.
It should be noted that the number of PDRs included in each PDR group may be equal or may not be equal. Furthermore, the types of the policy types corresponding to the PDRs included in each PDR group may be equal or unequal. In the embodiments of the present disclosure, there is no particular limitation thereto. In the embodiment of the present disclosure, PDRs of the same policy type need to be divided into the same PDR group.
Since each PDR group includes multiple PDRs, a message may hit multiple PDRs at the same time, and a message only needs to be processed by one PDR. Therefore, in the embodiment of the present disclosure, the control plane device may set a priority level for the PDRs in each group of PDRs in each PDR, and subsequently, when one packet hits multiple PDRs at the same time, may select a PDR for the packet according to the priority level of the hit PDR.
Step 403: for each set of PDRs, the control plane device determines a priority level for each PDR in the set of PDRs, and marks the priority level for each PDR in the PDR packet.
In the disclosed embodiment, the priority level of the PDR takes effect in the same PDR packet, and different PDR packets are not coupled to each other. Therefore, the control plane device needs to set a priority level for the PDRs within each group of PDRs individually. When the control plane device identifies the priority level of each PDR in the PDR packet, the control plane device may set a Precedence in each PDR packet, and store the priority level of each PDR in the group in the Precedence of the group.
For example, PDR1-PDR4 are divided into PDR Group1, and PDR5-PDR10 are divided into PDR Group 2. The control plane device sets the priority level relationships of PDR1-PDR4 as: the priority level of the PDR1 is greater than the priority level of the PDR2, the priority level of the PDR2 is greater than the priority level of the PDR3, and the priority level of the PDR3 is greater than the priority level of the PDR 4. The control plane device sets the priority level relationships of PDR5-PDR10 as: the priority level of the PDR5 is greater than the priority level of the PDR6, the priority level of the PDR6 is greater than the priority level of the PDR7, the priority level of the PDR7 is greater than the priority level of the PDR8, the priority level of the PDR8 is greater than the priority level of the PDR9, and the priority level of the PDR9 is greater than the priority level of the PDR 10.
Step 404: when the sending condition is reached, the control plane device sends a plurality of groups of PDRs to the user plane device through an Sx interface between the control plane device and the user plane device.
The issuing condition may be at least one of an on-line condition of the sending device, a change in a service of the sending device, a triggering of the user plane device to establish a new PDN connection, a triggering of the user plane device to establish a new TDF connection, a triggering of the user plane device to update a PDN connection, and a triggering of the user plane device to update a TDF connection. The multiple groups of PDRs may be carried in Sx session establishment request messages, Sx session update request messages, designated messages, or designated network elements. The designated message is a message for realizing similar PDR classification and grouping information between the user plane equipment and the control plane equipment, and the designated network element is a network element for realizing similar PDR classification and grouping information between the user plane equipment and the control plane equipment.
(I): when the down sending condition is sending equipment online, the step can be as follows: when the control plane device detects that the sending device is online, the control plane device sends a plurality of groups of PDRs to the user plane device through an Sx interface between the control plane device and the user plane device.
In the embodiment of the present disclosure, the control plane device may generate a plurality of PDR sets according to a plurality of sets of PDRs, where one PDR set includes one set of PDRs. The control plane device can directly send a plurality of PDR sets when sending a plurality of groups of PDRs to the user plane device through the Sx interface. The user plane device divides the plurality of PDRs into a plurality of groups of PDRs based on the plurality of PDR sets. In this embodiment of the present disclosure, the control plane device may further mark, in each PDR, a packet identifier of a packet to which the control plane device belongs, and then directly send, through the Sx interface, to the user plane device, where the user plane device divides the plurality of PDRs into a plurality of groups of PDRs based on the plurality of PDRs and the packet identifier in each PDR.
In order to label the packets to which each PDR belongs, the control plane device determines the packet identity of the packet to which each PDR belongs. And for each PDR, adding the group identification of the group to which the PDR belongs in a specified field in the PDR, and sending each PDR after the group identification is added to the user plane equipment. The designated field may be any original field in the PDR or a field newly added in the PDR. The packet identification may be a packet number or the like.
Because the message sent between the sending device and the receiving device needs to pass through the user plane device; therefore, when the sending device is online, the sending device needs to access the user plane device. That is, when the sending device is online, the sending device sends an access request to the user plane device, where the access request carries the device identifier of the sending device. And the user plane equipment receives the access request and sends a first notification message to the control plane equipment, wherein the first notification message carries the equipment identifier of the sending equipment. And the control plane equipment receives the first notification message and determines that the sending equipment is on line according to the first notification message. The device Identifier of the sending device may be a Globally Unique Identifier (GUID) of the sending device.
(II): when the issuing condition is that the service of the sending device changes, the step may be: when the control surface device detects that the service of the sending device changes, and the control surface device detects that the sending device is online, the control surface device sends a plurality of groups of PDRs to the user surface device through an Sx interface between the control surface device and the user surface device.
When the service of the sending device changes, the terminal sends a change request to the user plane device, where the change request carries the device identifier of the sending device. And the user plane equipment receives the change request and sends a second notification message to the control plane equipment, wherein the second notification message carries the equipment identifier of the sending equipment. And the control plane equipment receives the second notification message and determines that the service of the sending equipment is changed according to the second notification message.
(III): when the issuing condition is to trigger the user plane device to establish a new PDN connection or trigger the user plane device to establish a new TDF connection, the step may be: when triggering the user plane equipment to establish a new PDN connection or triggering the user plane to establish a new TDF connection, the control plane equipment sends a plurality of groups of PDRs to the user plane equipment through an Sx interface.
It should be noted that, when the issuing condition is to trigger the user plane device to establish a new PDN connection or to trigger the user plane device to establish a new TDF connection, the multiple PDRs may be carried in the Sx session establishment request message.
For the first implementation, the control plane device is NG-CP, and the user plane device is NG-UP. Referring to fig. 4-2, when NG-UP needs to establish a PDN connection, the PDN sends a first establishment request to the NG-CP. And the NG-CP receives a first establishment request sent by the PDN, and determines to trigger the NG-UP to establish a new PDN connection according to the first establishment request. And the NG-CP sends Sx session establishment request information to the NG-UP, and the Sx session establishment request information carries the multiple groups of PDRs.
For the second implementation, when the NG-UP needs to establish the TDF connection, the TDF sends a second establishment request to the NG-CP. And the NG-CP receives a second establishment request sent by the TDF, and determines to trigger the user plane to establish a new TDF connection according to the second establishment request. And the NG-CP sends Sx session establishment request information to the NG-UP, and the Sx session establishment request information carries the multiple groups of PDRs.
And adding a PDR Group field in the PDR, wherein the PDR Group field carries the packet identification of the packet to which the PDR belongs. For example, the Sx session setup request message is shown in table 1 below.
TABLE 1
Figure BDA0001413006010000111
(IV): when the issuing condition is to trigger the user plane device to update the PDN connection and trigger the user plane device to update the TDF connection, the step may be: when the user plane equipment is triggered to update the PDN connection or the user plane equipment is triggered to update the TDF connection, the control plane equipment sends a plurality of groups of PDRs to the user plane equipment through an Sx interface.
It should be noted that, when the issuing condition is to trigger the user plane device to update the PDN connection or trigger the user plane device to update the TDF connection, the multiple PDRs may be carried in the Sx session update request message.
For the first implementation, referring to fig. 4-3, when the user plane device needs to update the PDN connection, the PDN sends a first update request to the control plane device. And the control plane equipment receives a first updating request sent by the PDN, and determines to trigger the user plane equipment to update the PDN connection according to the first updating request. And the control plane equipment sends Sx session update request information to the user plane equipment, wherein the Sx session update request information carries the multiple groups of PDRs.
For the second implementation, when the user plane equipment needs to update the TDF connection, the TDF sends a second update request to the control plane equipment. And the control plane equipment receives a second updating request sent by the TDF, and determines to trigger the user plane equipment to update the TDF connection according to the second updating request. And the control plane equipment sends Sx session update request information to the user plane equipment, wherein the Sx session update request information carries the multiple groups of PDRs.
Adding a PDR Group field in the existing PDR, wherein the PDR Group field carries the grouping identification of the grouping to which the PDR belongs. For example, the Sx session update request message is shown in table 2 below.
TABLE 2
Figure BDA0001413006010000121
For example, referring to fig. 4-4, the control surface equipment divides PDR1 and PDR2 into PDR Group1, PDR3 and PDR4 into PDR Group2, PDR5 and PDR6 into PDR Group3, PDR7 and PDR8 into PDR Group4, and PDR9 and PDR10 into PDR Group 5.
Step 405: the user plane equipment receives a plurality of groups of PDRs through the Sx interface and stores the plurality of groups of PDRs.
(I): when multiple PDRs are carried in the Sx session establishment request message, the step may be: and the user plane equipment receives the Sx session establishment request message, acquires a plurality of groups of PDRs from the Sx session establishment request message and stores the plurality of groups of PDRs.
It should be noted that, when the control plane device sends multiple sets of PDRs to the user plane device, the control plane device may directly send multiple PDRs to the user plane device, and a specified field of each PDR carries a packet identifier of a packet to which the PDR belongs. Correspondingly, the user plane equipment receives a plurality of PDRs sent by the control plane equipment, and divides the PDRs into a plurality of groups of PDRs according to the group identifier of the group to which each PDR belongs.
In order to inform the control plane device of the processing progress of the user plane device, when the user plane device receives the Sx session establishment request message, the user plane device sends an Sx session establishment response message to the control plane device, wherein the Sx session establishment response message is used for indicating that the user plane device has received the Sx session establishment request message. And the control plane equipment receives the Sx session establishment response message and interacts with the PDN or the TDF.
(II): when multiple PDRs are carried in the Sx session update request message, the step may be: and the user plane equipment receives the Sx conversation updating request message, acquires a plurality of groups of PDRs from the Sx conversation updating request message and stores the plurality of groups of PDRs.
In order to inform the control plane device of the processing progress of the user plane device, when the user plane device receives the Sx session update request message, the user plane device sends an Sx session update response message to the control plane device, wherein the Sx session update response message is used for indicating that the user plane device has received the Sx session update request message. And the control plane equipment receives the Sx session update response message and interacts with the initiating PDN or TDF.
In a possible implementation manner, the control plane device may further update the PDR, and when updating the PDR, the PDR may also be updated directly based on the policy type of the PDR to be updated, without considering the overlapping coupling relationship of PDIs and the priority matching and execution order, so as to greatly reduce the difficulty in planning the PDR of the current Sx interface. Accordingly, the procedure of the control plane device updating the PDR may be:
(I): when the control plane device deletes a certain PDR, the process of updating the PDR may be: and the control plane equipment acquires the PDR to be deleted and deletes the PDR to be deleted from the PDR group in which the PDR to be deleted is positioned.
The control plane equipment acquires the PDR group where the PDR to be deleted is located, and deletes the PDR to be deleted from the PDR group where the PDR to be deleted is located.
(II): when the control plane device adds a certain PDR, the process of updating the PDR may be: the control plane equipment acquires the PDR to be added, determines a PDR group corresponding to the PDR to be added according to the strategy type of the PDR to be added, and adds the PDR to be added to the determined PDR group.
When the control plane device updates the PDRs, the control plane device also updates the priority levels of the PDRs in the PDR packet. And after the control plane device updates the PDR, the control plane device sends the updated multiple PDRs to the user plane device. In order to save network resources, the control plane device may send only updated PDR packets without sending updated PDRs to the user plane device.
In the embodiment of the present disclosure, the control plane device groups each PDR according to the policy type of each PDR to obtain a plurality of PDR groups. Therefore, the multiple PDRs of different types do not need to consider the overlapping coupling relation of PDIs and the priority matching and execution sequence, and the planning difficulty of the PDRs of the Sx interface is greatly reduced.
The embodiment of the present disclosure provides a method for processing a message, which is described in the embodiment of the present disclosure by taking an example that a user plane device processes a message according to multiple groups of PDRs, and the method is applied between a sending device and the user plane device. Referring to fig. 5, the method includes:
step 501: and the sending equipment sends the message to the user plane equipment.
In order to monitor the service, the messages transmitted between the sending device and the receiving device need to pass through the user plane device. Therefore, when the sending device sends a message to the receiving device, the sending device first sends the message to the user plane device. After the user plane device processes the message, the processed message is sent to the receiving end.
The message may be a request message or a data message. For example, when the sending device is a terminal device and the receiving device is a server, the message may be a request message for requesting data from the server by the terminal device. For another example, when the sending device is a server and the receiving device is a terminal device, the message may be a data message of the server returning the request data of the terminal device.
In this embodiment of the present disclosure, the control plane device groups each PDR according to the policy type, so that when the user plane receives the packet sent by the sending device, the user plane device matches a PDR group corresponding to the packet through the following step 502.
Step 502: and the user plane equipment receives the message and searches a target PDR group matched with the session information according to the session information of the session to which the message belongs.
This step can be realized by the following steps (1) to (3), including:
(1): the user plane device determines the session information of the session to which the message belongs, wherein the session information includes a session identifier, device information of the sending device, or user attribute information corresponding to the sending device.
Since different sessions need to be handled by different policy type PDRs. Therefore, when the user plane device receives the message, it needs to determine the session information of the session to which the message belongs. And searching a target PDR group matched with the session information according to the session information.
(2): and the user plane equipment acquires the target PDR group identification corresponding to the session information from the corresponding relation between the session information and the PDR group identification according to the session information.
Before this step, the user plane device already stores the correspondence between the session information and the PDR group identifier. For example, session information 1 corresponds to PDR Group1, and session information 2 corresponds to PDR Group 2. If the session information of the session to which the message belongs is session information 1, the target Group identifier corresponding to the session information 1 is PDR Group 1.
(3): and the user plane equipment determines a target PDR group corresponding to the target PDR group identification.
One or more target PDR groups may be provided.
Step 503: and the user plane equipment matches the target PDR from the target PDR group according to the attribute information of the message.
The attribute information of the packet includes quintuple information of the packet. The target PDR group comprises at least one PDR, and each PDR comprises a PDI and a processing rule. Different attribute information corresponds to different PDIs. Correspondingly, the steps can be as follows:
and the user plane equipment matches PDI in each PDR in the target PDR group according to the attribute information of the message, matches a target PDI matched with the attribute information of the message from the target PDR, and determines the target PDR comprising the target PDI.
Storing the corresponding relation between the attribute information and the PDI in the user plane equipment; correspondingly, the step of the user plane device matching out the target PDI matched with the attribute information of the packet from the target PDR may be: and the user plane equipment acquires the target PDI corresponding to the attribute information from the corresponding relation between the attribute information and the PDI according to the attribute information of the message.
It should be noted that, if the user plane device matches a plurality of target PDIs matching with the attribute information of the packet from the target PDR, the user plane device may randomly select one PDI from the plurality of target PDIs, and determine a target PDR including the selected PDI.
In embodiments of the present disclosure, the user plane device may also match the target PDR from the set of target PDRs in conjunction with the priority level of the PDI. Accordingly, this step can be realized by the following steps (1) to (3), including:
(1): and the user plane equipment searches at least one PDR matched with the attribute information from the target PDR group according to the attribute information of the message.
(2): the user plane device determines a priority level for each selected PDR.
(3): and the user plane equipment selects a target PDR with the highest priority level from the target PDR group according to the selected priority level of each PDR.
Step 504: and the user plane equipment processes the message according to the target PDR.
And the user plane equipment acquires a processing rule from the target PDR and processes the message according to the processing rule. The processing rules include at least one of FAR, URR, and QER rules.
(I): when the processing rule includes FAR, the step may be: and the user plane equipment acquires the equipment identifier of the receiving equipment and forwards the message to the receiving equipment according to the equipment identifier of the receiving equipment.
(II): when the processing rule includes a URR, the step may be: and the user plane equipment counts the bandwidth of the sending equipment, and reports the bandwidth to the control plane equipment if the bandwidth exceeds the signed bandwidth of the sending equipment. And if the bandwidth does not exceed the subscription of the sending equipment, not reporting.
(III): when the processing rule includes QER, this step may be: and the user plane equipment counts the QER of the message.
In the embodiment of the present disclosure, when a user plane device receives a message, according to session information of a session to which the message belongs, a target PDR group matched with the session information is searched from a plurality of PDR groups corresponding to the user plane device, where each PDR group includes at least one PDR of at least one policy type; and matching the target PDR from the target PDR group according to the attribute information of the message, and processing the message based on the target PDR. Because each PDR is grouped, when the user plane equipment is matched with the target PDR, the target PDR group matched with the session information is searched first, and then the target PDI is searched from the target PDR group, so that the time is shortened, and the efficiency is improved.
The embodiment of the present disclosure provides a device for processing a packet, which can be applied to a user plane device and is used for executing steps executed by the user plane device in the method for processing a packet. Referring to fig. 6, the apparatus includes:
a receiving unit 601, configured to receive a message to be processed;
a matching unit 602, configured to search, according to session information of a session to which the packet belongs, a target PDR group matching the session information from multiple groups of packet detection rules PDRs corresponding to the user plane device, where each group of PDRs includes at least one PDR of at least one policy type;
the matching unit 602 is further configured to match a target PDR from the target PDR group according to the attribute information of the packet;
a processing unit 603, configured to process the packet based on the target PDR.
In one possible implementation, the apparatus further includes:
the receiving unit 601 is configured to receive, through an Sx interface between the control plane device and the user plane device, multiple PDRs sent by the control plane device when the control plane device reaches an issue condition, where a specified field in each PDR carries a packet identifier of a packet to which the PDR belongs;
and the dividing unit is used for dividing the PDRs into a plurality of groups of PDRs according to the grouping identification of the grouping to which each PDR belongs.
In one possible implementation, the PDRs are carried in an Sx session establishment request message or an Sx session update request message.
In a possible implementation manner, the matching unit 602 is further configured to determine session information of a session to which the packet belongs; acquiring a target PDR group identifier corresponding to the session information from the corresponding relation between the session information and the PDR group identifier according to the session information; and searching the target PDR group corresponding to the target PDR group identification from a plurality of groups of PDRs corresponding to the user plane according to the target PDR group identification.
In a possible implementation manner, the matching unit 602 is further configured to search, according to the attribute information of the packet, at least one PDR that matches the attribute information from the target PDR group; determining the priority level of each selected PDR; and selecting the target PDR with the highest priority level from the target PDR group according to the selected priority level of each PDR.
In a possible implementation manner, the processing unit 603 is further configured to obtain each target processing rule included in the target PDR; and processing the message according to each target processing rule.
In the embodiment of the present disclosure, when a user plane device receives a message, according to session information of a session to which the message belongs, a target PDR group matched with the session information is searched from a plurality of PDR groups corresponding to the user plane device, where each PDR group includes at least one PDR of at least one policy type; and matching the target PDR from the target PDR group according to the attribute information of the message, and processing the message based on the target PDR. Because each PDR is grouped, when the user plane equipment is matched with the target PDR, the target PDR group matched with the session information is searched first, and then the target PDI is searched from the target PDR group, so that the time is shortened, and the efficiency is improved.
The embodiment of the present disclosure provides a device for processing a packet, which can be applied to a user plane device and is used to execute steps executed by a control plane device in the method for processing a packet. Referring to fig. 7, the apparatus includes:
an obtaining unit 701, configured to obtain a policy type of each packet detection rule PDR corresponding to a user plane device;
a grouping unit 702, configured to group each PDR according to the policy type of each PDR to obtain multiple groups of PDRs, where each group of PDRs includes at least one PDR of at least one policy type;
a sending unit 703, configured to send the multiple groups of PDRs to the user plane device through an Sx interface between the control plane device and the user plane device when the delivery condition is met.
In one possible implementation, the apparatus further includes:
a determining unit, configured to determine, for each group of PDRs, a priority level of each PDR in the PDR group;
and the marking unit is used for marking the priority level of each PDR in the PDR group.
In one possible implementation, the multiple PDRs are carried in the Sx session establishment request message, or the multiple PDRs are carried in the Sx session update request message.
In one possible implementation manner, the sending unit 703 determines the packet identifier of the packet to which each PDR belongs, adds the packet identifier of the packet to which each PDR belongs to a specified field in each PDR, and sends each PDR to which the packet identifier is added to the user plane device.
In one possible implementation, the apparatus further includes:
the updating unit is used for acquiring the PDR to be deleted and deleting the PDR to be deleted from the PDR group where the PDR to be deleted is located; and/or the presence of a gas in the gas,
the updating unit is further configured to obtain a PDR to be added, determine a PDR packet corresponding to the PDR to be added according to the policy type of the PDR to be added, and add the PDR to be added to the determined PDR packet.
In the embodiment of the present disclosure, when a user plane device receives a message, according to session information of a session to which the message belongs, a target PDR group matched with the session information is searched from a plurality of PDR groups corresponding to the user plane device, where each PDR group includes at least one PDR of at least one policy type; and matching the target PDR from the target PDR group according to the attribute information of the message, and processing the message based on the target PDR. Because each PDR is grouped, when the user plane equipment is matched with the target PDR, the target PDR group matched with the session information is searched first, and then the target PDI is searched from the target PDR group, so that the time is shortened, and the efficiency is improved.
It should be noted that: in the device for processing a message according to the foregoing embodiment, when processing a message, only the division of each functional module is described as an example, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the apparatus for processing a message and the method for processing a message provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and will not be described herein again.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium is applied to a user plane device, and at least one instruction, at least one segment of program, a code set, or a set of instructions is stored in the computer-readable storage medium, where the instruction, the program, the code set, or the set of instructions is loaded and executed by a processor to implement the operations performed by the user plane device in the method for processing a packet according to the foregoing embodiments.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium is applied to a control plane device, and at least one instruction, at least one segment of program, a set of codes, or a set of instructions is stored in the computer-readable storage medium, where the instruction, the program, the set of codes, or the set of instructions is loaded and executed by a processor to implement the operations performed by the control plane device in the method for processing a packet according to the foregoing embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is intended to be exemplary only and not to limit the present disclosure, and any modification, equivalent replacement, or improvement made without departing from the spirit and scope of the present disclosure is to be considered as the same as the present disclosure.

Claims (26)

1. A method for processing a message is applied to a user plane device, and the method comprises the following steps:
receiving a message to be processed;
according to the session information of the session to which the message belongs, at least one target PDR group matched with the session information is searched from a plurality of groups of message detection rules PDRs corresponding to the user plane equipment, wherein each group of PDRs comprises at least one PDR of at least one strategy type;
and matching at least one target PDR from the at least one target PDR group according to the attribute information of the message, and processing the message based on the at least one target PDR.
2. The method according to claim 1, wherein before searching for at least one target PDR group matching the session information from multiple groups of PDR groups corresponding to the user plane device according to the session information of the session to which the packet belongs, the method further comprises:
when the control plane equipment reaches an issuing condition, receiving a plurality of PDRs (packet data reduction) sent by the control plane equipment through an Sx interface between the control plane equipment and the user plane equipment, wherein a designated field in each PDR carries a packet identifier of a packet to which the PDR belongs;
and dividing the PDRs into a plurality of groups of PDRs according to the grouping identification of the grouping to which each PDR belongs.
3. The method of claim 2, wherein the plurality of PDRs are carried in an Sx Session setup request message or wherein the plurality of PDRs are carried in an Sx Session update request message.
4. The method according to claim 1, wherein the searching for at least one target PDR group matching the session information from multiple groups of packet detection rules PDRs corresponding to the user plane device according to the session information of the session to which the packet belongs includes:
determining the session information of the session to which the message belongs;
acquiring at least one target PDR group identifier corresponding to the session information from the corresponding relation between the session information and the PDR group identifier according to the session information;
and searching the at least one target PDR group corresponding to the at least one target PDR group identifier from a plurality of groups of PDRs corresponding to the user plane according to the at least one target PDR group identifier.
5. The method according to any of claims 1-4, wherein said matching at least one target PDR from said at least one target PDR group according to said message attribute information comprises:
for each target PDR group, searching at least one PDR matched with the attribute information from the target PDR group according to the attribute information of the message;
determining the priority level of each selected PDR;
and selecting the target PDR with the highest priority level from the target PDR group according to the selected priority level of each PDR.
6. The method according to any of claims 1-4, wherein said processing said packet based on said at least one target PDR comprises:
acquiring each target processing rule included by the at least one target PDR;
and processing the message according to each target processing rule.
7. A method for processing a packet is applied to a control plane device, and the method includes:
acquiring the strategy type of each message detection rule PDR corresponding to the user plane equipment;
grouping each PDR according to the strategy type of each PDR to obtain a plurality of groups of PDRs, wherein each group of PDRs comprises at least one PDR of at least one strategy type;
and when the sending condition is met, sending the multiple groups of PDRs to the user plane equipment through an Sx interface between the control plane equipment and the user plane equipment, wherein the multiple groups of PDRs are used for matching with the session information of the session to which the message belongs and the attribute information of the message to obtain at least one target PDR in at least one target PDR group.
8. The method of claim 7, further comprising:
for each group of PDRs, determining a priority level of each PDR in the group of PDRs;
the priority level of each PDR is noted in the PDR group.
9. The method of claim 7, wherein the multiple PDRs are carried in an Sx Session setup request message or wherein the multiple PDRs are carried in an Sx Session update request message.
10. The method according to any of claims 7-9, wherein said sending said plurality of sets of PDRs to said user plane device comprises:
determining the group identification of the group to which each PDR belongs;
and adding the group identification of the group to which the PDR belongs in a specified field in each PDR, and sending each PDR after the group identification is added to the user plane equipment.
11. The method according to any of claims 7-9, wherein before sending the multiple PDRs to the user plane device through an Sx interface between the control plane device and the user plane device when the down-sending condition is reached, the method further comprises:
acquiring a PDR to be deleted, and deleting the PDR to be deleted from a PDR group in which the PDR to be deleted is positioned; and/or the presence of a gas in the gas,
the method comprises the steps of obtaining a PDR to be added, determining a PDR group corresponding to the PDR to be added according to the strategy type of the PDR to be added, and adding the PDR to be added into the determined PDR group.
12. An apparatus for processing a message, the apparatus comprising:
a receiving unit, configured to receive a message to be processed;
a matching unit, configured to search, according to session information of a session to which the packet belongs, at least one target PDR group matching the session information from multiple groups of packet detection rules PDRs corresponding to a user plane device, where each group of PDRs includes at least one PDR of at least one policy type;
the matching unit is further configured to match at least one target PDR from the at least one target PDR group according to the attribute information of the packet;
and the processing unit is used for processing the message based on the at least one target PDR.
13. The apparatus of claim 12, further comprising:
the receiving unit is configured to receive, through an Sx interface between the control plane device and the user plane device, multiple PDRs sent by the control plane device when the control plane device reaches an issue condition, where a specified field in each PDR carries a packet identifier of a packet to which the specified field belongs;
and the dividing unit is used for dividing the PDRs into a plurality of groups of PDRs according to the grouping identification of the grouping to which each PDR belongs.
14. The apparatus of claim 13, wherein the PDRs are carried in an Sx session setup request message or wherein the PDRs are carried in an Sx session update request message.
15. The apparatus of claim 12,
the matching unit is further configured to determine session information of a session to which the packet belongs; acquiring at least one target PDR group identifier corresponding to the session information from the corresponding relation between the session information and the PDR group identifier according to the session information; and searching the at least one target PDR group corresponding to the at least one target PDR group identifier from a plurality of groups of PDRs corresponding to the user plane according to the at least one target PDR group identifier.
16. The apparatus according to any one of claims 12 to 15,
the matching unit is further configured to, for each target PDR group, search for at least one PDR matching the attribute information from the target PDR group according to the attribute information of the packet; determining the priority level of each selected PDR; and selecting the target PDR with the highest priority level from the target PDR group according to the selected priority level of each PDR.
17. The apparatus according to any one of claims 12 to 15,
the processing unit is further configured to obtain each target processing rule included in the at least one target PDR; and processing the message according to each target processing rule.
18. An apparatus for processing a message, the apparatus comprising:
an obtaining unit, configured to obtain a policy type of each packet detection rule PDR corresponding to a user plane device;
a grouping unit, configured to group each PDR according to the policy type of each PDR to obtain multiple groups of PDRs, where each group of PDRs includes at least one PDR of at least one policy type;
and the sending unit is used for sending the multiple groups of PDRs to the user plane equipment through an Sx interface between the control plane equipment and the user plane equipment when the sending condition is met, wherein the multiple groups of PDRs are used for matching with the session information of the session to which the message belongs and the attribute information of the message to obtain at least one target PDR in at least one target PDR group.
19. The apparatus of claim 18, further comprising:
a determining unit, configured to determine, for each group of PDRs, a priority level of each PDR in the PDR group;
and the marking unit is used for marking the priority level of each PDR in the PDR group.
20. The apparatus of claim 18, wherein the multiple groups of PDRs are carried in an Sx session setup request message or wherein the multiple groups of PDRs are carried in an Sx session update request message.
21. The apparatus of any one of claims 18-20,
the sending unit determines the group identifier of the group to which each PDR belongs, adds the group identifier of the group to which each PDR belongs to the specified field in each PDR, and sends each PDR with the group identifier added to the user plane equipment.
22. The apparatus of any one of claims 18-20, further comprising:
the updating unit is used for acquiring the PDR to be deleted and deleting the PDR to be deleted from the PDR group where the PDR to be deleted is located; and/or the presence of a gas in the gas,
the updating unit is further configured to acquire a PDR to be added, determine a PDR group corresponding to the PDR to be added according to the policy type of the PDR to be added, and add the PDR to be added to the determined PDR group.
23. A user plane device, comprising: a network interface, a memory, a processor;
the network interface is used for receiving messages;
the memory is used for storing instructions and data;
the processor, configured to read the instructions and data stored in the memory, and execute the method for processing a message according to any one of claims 1 to 6.
24. A control plane apparatus, comprising: a network interface, a memory, a processor;
the network interface is used for receiving messages;
the memory is used for storing instructions and data;
the processor, configured to read the instructions and data stored in the memory, and execute the method for processing a message according to any one of claims 7 to 11.
25. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of processing a message according to any one of claims 1 to 6.
26. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of processing a message according to any one of claims 7 to 11.
CN201710853359.7A 2017-09-20 2017-09-20 Method, device, equipment and storage medium for processing message Active CN109548063B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710853359.7A CN109548063B (en) 2017-09-20 2017-09-20 Method, device, equipment and storage medium for processing message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710853359.7A CN109548063B (en) 2017-09-20 2017-09-20 Method, device, equipment and storage medium for processing message

Publications (2)

Publication Number Publication Date
CN109548063A CN109548063A (en) 2019-03-29
CN109548063B true CN109548063B (en) 2020-09-04

Family

ID=65827324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710853359.7A Active CN109548063B (en) 2017-09-20 2017-09-20 Method, device, equipment and storage medium for processing message

Country Status (1)

Country Link
CN (1) CN109548063B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111866759B (en) * 2019-04-30 2022-04-12 华为技术有限公司 Group communication method and device
CN112105088B (en) * 2019-06-17 2023-04-07 华为技术有限公司 Multicast communication method, device and system
CN112152923B (en) 2019-06-28 2021-12-28 北京华为数字技术有限公司 User plane rerouting method and device
CN113891301B (en) * 2019-07-22 2022-11-22 华为技术有限公司 Communication method and device
WO2022069931A1 (en) * 2020-10-01 2022-04-07 Telefonaktiebolaget Lm Ericsson (Publ) Methods providing consolidation of policies and related network nodes
WO2022165857A1 (en) * 2021-02-08 2022-08-11 华为技术有限公司 Communication method and device and computer readable storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060055190A (en) * 2004-11-18 2006-05-23 에스케이 텔레콤주식회사 Multimedia service quality evaluation method for wireless communication networks
CN101035131A (en) * 2007-02-16 2007-09-12 杭州华为三康技术有限公司 Protocol recognition method and device
CN101420674A (en) * 2007-10-25 2009-04-29 华为技术有限公司 NAT technique implementing method in PCC architecture, PCRF and AF
CN101720079A (en) * 2009-06-19 2010-06-02 中兴通讯股份有限公司 Service access method and tactical convergence system in network element tactical convergence network
CN102027713A (en) * 2008-05-16 2011-04-20 思达伦特网络有限责任公司 Providing trigger based traffic management
CN102137368A (en) * 2010-01-26 2011-07-27 中兴通讯股份有限公司 Enhanced policy and charge control method and system and PCC (Policy Charge Control) system
CN102148803A (en) * 2010-02-04 2011-08-10 华为技术有限公司 Method and device for matching messages
KR20120119625A (en) * 2011-04-22 2012-10-31 전자부품연구원 Hybrid link quality evaluation method for wireless network
WO2014014164A1 (en) * 2012-07-15 2014-01-23 Lg Electronics Inc. Method and apparatus for subset network coding with multiple antennas by relay node in wireless communication system
CN104284319A (en) * 2013-07-02 2015-01-14 中兴通讯股份有限公司 Congestion control based strategy control method, device and system
EP3094157A4 (en) * 2014-01-09 2017-08-09 Nec Corporation Mtc-iwf entity, pcrf entity, and control method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10292066B2 (en) * 2011-11-04 2019-05-14 Cisco Technology, Inc. System and method of modifying congestion control based on mobile system information

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060055190A (en) * 2004-11-18 2006-05-23 에스케이 텔레콤주식회사 Multimedia service quality evaluation method for wireless communication networks
CN101035131A (en) * 2007-02-16 2007-09-12 杭州华为三康技术有限公司 Protocol recognition method and device
CN101420674A (en) * 2007-10-25 2009-04-29 华为技术有限公司 NAT technique implementing method in PCC architecture, PCRF and AF
CN102027713A (en) * 2008-05-16 2011-04-20 思达伦特网络有限责任公司 Providing trigger based traffic management
CN101720079A (en) * 2009-06-19 2010-06-02 中兴通讯股份有限公司 Service access method and tactical convergence system in network element tactical convergence network
CN102137368A (en) * 2010-01-26 2011-07-27 中兴通讯股份有限公司 Enhanced policy and charge control method and system and PCC (Policy Charge Control) system
CN102148803A (en) * 2010-02-04 2011-08-10 华为技术有限公司 Method and device for matching messages
KR20120119625A (en) * 2011-04-22 2012-10-31 전자부품연구원 Hybrid link quality evaluation method for wireless network
WO2014014164A1 (en) * 2012-07-15 2014-01-23 Lg Electronics Inc. Method and apparatus for subset network coding with multiple antennas by relay node in wireless communication system
CN104284319A (en) * 2013-07-02 2015-01-14 中兴通讯股份有限公司 Congestion control based strategy control method, device and system
EP3094157A4 (en) * 2014-01-09 2017-08-09 Nec Corporation Mtc-iwf entity, pcrf entity, and control method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
3GPP TS 29.244 V14.1.0 (2017-09);3GPP;《Interface between the Control Plane and the User Plane of EPC》;20170918;第16-66页以及表5.2.1-1、表 7.5.2.2-1 *
3GPP.3GPP TS 29.244 V14.1.0 (2017-09).《Interface between the Control Plane and the User Plane of EPC》.2017, *
Pseudo-CR on Activating or deactivating a predefined group of PCC/ADC rules;Huawei;《3GPP TSG CT4 Meeting #78:C4-173173》;20170519;第1-16页 *

Also Published As

Publication number Publication date
CN109548063A (en) 2019-03-29

Similar Documents

Publication Publication Date Title
CN109548063B (en) Method, device, equipment and storage medium for processing message
CN113037513B (en) Charging management method, user plane functional entity and control plane functional entity
RU2571377C2 (en) System and method of control of services, advanced nodeb and data packet network gateway
WO2016033979A1 (en) Processing method, device and system for user service provision
US20230300726A1 (en) Data processing method and apparatus, network element device, storage medium, and program product
JP6730511B2 (en) Network policy update trigger method, management entity and core network device
US11233694B2 (en) Method and device for processing communication path
WO2016127612A1 (en) Monitoring processing method and device
CN107078946A (en) Processing method, the device and system of business stream process strategy
WO2016029345A1 (en) Network flow information statistics method and apparatus
US20230300106A1 (en) Data processing method, network element device and readable storage medium
CN111436030A (en) Method, device and system for reporting data usage
EP2555545A1 (en) Method and system for selecting mobility management entity of terminal group
WO2020169039A1 (en) Policy management method and device
US10511494B2 (en) Network control method and apparatus
CN112822221A (en) Server selection method, device, equipment and medium
JP2023542648A (en) Analytics-driven traffic classification rules
KR101929804B1 (en) Method and Apparatus for Managing Session Resource
CN109196895A (en) A kind of message transmitting method, apparatus and system
CN110087321B (en) Method and device for triggering terminal session, computer equipment and storage medium
EP3220671A1 (en) Group resource update processing method, device and system, and cse
CN106470421A (en) A kind of method and apparatus preventing malicious peer from illegally occupying resources of core network
WO2016091126A1 (en) Policy-making method, device and system
WO2016074455A1 (en) Group resource update processing method, device and system, and cse
CN102883308B (en) A kind of Origin-State-Id AVP sending method based on Diameter and device

Legal Events

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