WO2022267652A1 - Communication method, communication apparatus, and communication system - Google Patents
Communication method, communication apparatus, and communication system Download PDFInfo
- Publication number
- WO2022267652A1 WO2022267652A1 PCT/CN2022/087732 CN2022087732W WO2022267652A1 WO 2022267652 A1 WO2022267652 A1 WO 2022267652A1 CN 2022087732 W CN2022087732 W CN 2022087732W WO 2022267652 A1 WO2022267652 A1 WO 2022267652A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- description information
- data packet
- flow description
- target field
- reference value
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 159
- 238000004891 communication Methods 0.000 title claims abstract description 106
- 230000006870 function Effects 0.000 claims description 63
- 238000012545 processing Methods 0.000 claims description 21
- 238000011144 upstream manufacturing Methods 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 18
- 238000012986 modification Methods 0.000 claims description 16
- 230000004048 modification Effects 0.000 claims description 16
- 238000013475 authorization Methods 0.000 claims description 15
- 238000001514 detection method Methods 0.000 claims description 9
- 238000007726 management method Methods 0.000 description 34
- 238000010586 diagram Methods 0.000 description 13
- 230000000737 periodic effect Effects 0.000 description 8
- 238000012546 transfer Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 238000010295 mobile communication Methods 0.000 description 3
- 238000013523 data management Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000014759 maintenance of location Effects 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 101150119040 Nsmf gene Proteins 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/16—Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
- H04W28/24—Negotiating SLA [Service Level Agreement]; Negotiating QoS [Quality of Service]
Definitions
- the present application relates to the technical field of communication, and in particular to a communication method, a communication device and a communication system.
- the fifth generation (5th generation, 5G) network supports the quality of service (Quality of Service, QoS) flow granularity to guarantee the service quality of the business.
- QoS Quality of Service
- the session management network element sends the QoS Flow Identifier (QFI) and the QoS configuration (Profile) corresponding to the QFI to the access network device.
- QFI QoS Flow Identifier
- Profile QoS configuration
- the QoS configuration includes the 5G QoS identifier (5G QoS Identifier, 5QI), allocation and retention priority (Allocation and Retention Priority, ARP), guaranteed bit rate (Guarantee Bit Rate, GBR) and other parameter information, send QoS rules to the terminal, QoS rules include QFI, packet Filter and match priority information, send packet detection rule (Packet Detection Rule, PDR) to user plane network element, PDR includes QFI, packet filter and match priority information.
- 5G QoS Identifier, 5QI 5G QoS Identifier, 5QI
- allocation and retention priority Allocation and Retention Priority, ARP
- Guarantee Bit Rate Guarantee Bit Rate
- PDR Packet Detection Rule
- the uplink data packet is matched according to the packet filter in the QoS rule.
- the header of the uplink data packet is added.
- the QFI corresponding to the packet filter and then send the uplink data packet with the added QFI to the access network device.
- the user plane network element When the user plane network element receives a downlink data packet, it matches the downlink data packet according to the packet filter in the PDR. Increase the QFI corresponding to the packet filter, and then send the downlink data packet with the added QFI to the access network device.
- the access network device After receiving the uplink data packet or downlink data packet, the access network device obtains the QFI in the uplink data packet or downlink data packet, and then performs corresponding QoS guarantee according to the QoS configuration corresponding to the QFI.
- IP Internet Protocol
- Ethernet Ethernet
- Terminals or user plane network elements can filter the packet headers of data packets through IP type or Ethernet type packet filters. Identify or match, and complete the mapping from service flow to QoS flow, so as to implement differentiated processing of data packets according to the granularity of packet filters.
- Embodiments of the present application provide a communication method, a communication device, and a communication system, which are used to implement precise matching of data packets, thereby effectively distinguishing data packets of different service types.
- the embodiment of the present application provides a communication method, which can be executed by a communication device or a module applied to the communication device, and the communication device can be a terminal or a user plane network element.
- the method includes: matching the first data packet with the flow description information, wherein the flow description information includes an offset, a length and a reference value, and the offset is used to indicate the target field in the data packet to be matched
- the starting point, the length indicates the length of the target field, and the reference value is used to match the value of the target field
- the first data packet matches the flow description information add the flow description to the header of the first data packet
- the quality of service flow identifier QFI corresponding to the information is obtained to obtain a second data packet; and the second data packet is sent.
- the offset start point and the offset determine the start point of the target field in the first data packet; according to the start point of the target field in the first data packet and the length , determining the target field in the first data packet; judging whether the first data packet matches the flow description information according to the value of the target field in the first data packet and the reference value.
- the value of the target field can be acquired accurately, so as to achieve accurate matching on the first data packet.
- the offset starting point is pre-configured or predefined by the protocol.
- the stream description information further includes indication information, and the indication information is used to indicate the offset starting point.
- the offset starting point is the starting point of the payload in the first data packet or the starting point of the first data packet.
- the value of the target field in the first data packet when the value of the target field in the first data packet is the same as the reference value, it is determined that the first data packet matches the flow description information; or, when the first data packet The value of the target field is different from the reference value, and it is determined that the first data packet does not match the flow description information.
- the flow description information also includes a matching rule; when the value of the target field in the first data packet and the reference value meet the matching rule, it is determined that the first data packet and the flow The description information matches; or, when the value of the target field in the first data packet and the reference value do not satisfy the matching rule, it is determined that the first data packet does not match the flow description information.
- the matching rule is greater than, less than, equal to, or a functional relationship.
- the communication device is a terminal, and receives a QoS rule from a session management network element, and the QoS rule includes the QFI and the flow description information.
- the communication device is a user plane network element, and receives a packet detection rule PDR from a session management network element, and the PDR includes the QFI and the flow description information.
- the embodiment of the present application provides a communication method, and the method may be executed by a session management network element or a module applied to the session management network element.
- the method includes: receiving a policy charging control PCC rule from a policy control network element, where the PCC rule includes first flow description information; wherein, the first flow description information includes an offset, a length, and a reference value, and the offset It is used to indicate the starting point of the target field in the data packet to be matched, the length indicates the length of the target field, and the reference value is used to match the value of the target field; the packet detection rule PDR is generated according to the PCC rule; to the user
- the plane network element sends the PDR, which includes the first flow description information and the quality of service flow identifier QFI allocated for the PCC rule.
- the user plane network element can accurately match the target field of the service data packet according to the offset, length and reference value in the first flow description information , which can effectively distinguish data packets of different service types, thereby helping the network side to perform different controls on data packets of different service types.
- a QoS rule is generated according to the PCC rule; the QoS rule is sent to the terminal, and the QoS rule includes the QFI and the second flow description information.
- the second stream description information for the terminal it is possible to configure the second stream description information for the terminal, so that the terminal can accurately match the target field of the service data packet according to the offset, length and reference value in the second stream description information, and can realize effective Data packets of different service types are distinguished, thereby helping the network side to perform different controls on data packets of different service types.
- the first flow description information includes upstream flow description information and downstream flow description information
- the upstream flow description information is used to match the upstream flow
- the downstream flow description information is used to match the downstream flow
- the second flow description information is used to match the downstream flow
- the flow description information includes the upstream flow description information, or the second flow description information is the same as the first flow description information.
- the PCC rule also includes QoS parameters; generate a QoS configuration according to the PCC rule, and the QoS configuration includes the QoS parameters; send the QFI and the QoS configuration to the access network device.
- a session modification request from the terminal is received, and the session modification request includes the first flow description information; and the policy association update request is sent to the policy control network element, and the policy association update request includes The first stream describes information.
- the embodiment of the present application provides a communication method, and the method may be executed by a policy control network element or a module applied to the policy control network element.
- the method includes: obtaining flow description information, the flow description information includes an offset, a length and a reference value, the offset is used to indicate the starting point of the target field in the data packet to be matched, and the length indicates the target field length, the reference value is used to match the value of the target field; generate a policy and charging control PCC rule, the PCC rule includes the flow description information; send the PCC rule to the session management network element.
- a policy authorization request from an application function network element is received, and the policy authorization request includes the flow description information.
- a policy association update request from the session management network element is received, and the policy association update request includes the flow description information from the terminal.
- the embodiment of the present application provides a communication device.
- the device may be a communication device, and may also be a chip used for the communication device.
- the communication device may be a terminal or a user plane network element.
- the device has the function of realizing any realization method of the first aspect above. This function may be implemented by hardware, or may be implemented by executing corresponding software on the hardware.
- the hardware or software includes one or more modules corresponding to the above functions.
- the embodiment of the present application provides a communication device, and the device may be a session management network element, or may be a chip used for the session management network element.
- the device has the function of implementing any implementation method of the second aspect above. This function may be implemented by hardware, or may be implemented by executing corresponding software on the hardware.
- the hardware or software includes one or more modules corresponding to the above functions.
- the embodiment of the present application provides a communication device, and the device may be a policy control network element, or may be a chip for policy control.
- the device has the function of realizing any realization method of the third aspect above. This function may be implemented by hardware, or may be implemented by executing corresponding software on the hardware.
- the hardware or software includes one or more modules corresponding to the above functions.
- the embodiment of the present application provides a communication device, including a processor and a memory; the memory is used to store computer instructions, and when the device is running, the processor executes the computer instructions stored in the memory so that the device executes Any implementation method in the first aspect to the third aspect above.
- the embodiment of the present application provides a communication device, including a unit or means (means) for performing each step of any implementation method in the first aspect to the third aspect.
- the embodiment of the present application provides a communication device, including a processor and an interface circuit, the processor is configured to communicate with other devices through the interface circuit, and execute any implementation method in the first aspect to the third aspect above.
- the processor includes one or more.
- the embodiment of the present application provides a communication device, including a processor coupled to the memory, and the processor is used to call the program stored in the memory to execute any implementation method in the first aspect to the third aspect above .
- the memory may be located within the device or external to the device. And there may be one or more processors.
- the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores instructions, and when it is run on a communication device, the above-mentioned first to third aspects Any implementation method of is executed.
- the embodiment of the present application also provides a computer program product, the computer program product includes a computer program or instruction, when the computer program or instruction is run by a communication device, any of the above first to third aspects The implementation method is executed.
- the embodiment of the present application further provides a chip system, including: a processor, configured to execute any implementation method in the first aspect to the third aspect above.
- the embodiment of the present application further provides a communication system, the communication system includes a session management network element for performing any implementation method of the above second aspect and a session management network element for performing any implementation method of the above third aspect Policies control network elements.
- the communication system further includes a user plane network element configured to execute any implementation method of the foregoing first aspect.
- the embodiment of the present application further provides a communication system, the communication system includes a user plane network element for performing any implementation method of the above-mentioned first aspect and a network element for performing any implementation method of the above-mentioned second aspect Session management network element.
- FIG. 1 is a schematic diagram of a communication system provided by an embodiment of the present application.
- Figure 2(a) is a schematic diagram of a 5G network architecture based on a service architecture
- Figure 2(b) is a schematic diagram of a 5G network architecture based on a point-to-point interface
- FIG. 3(a) is a schematic diagram of a communication method provided by an embodiment of the present application.
- FIG. 3(b) is a schematic diagram of a communication method provided by an embodiment of the present application.
- FIG. 4 is a schematic diagram of a communication method provided by an embodiment of the present application.
- FIG. 5 is a schematic diagram of a communication device provided in an embodiment of the present application.
- FIG. 6 is a schematic diagram of a communication device provided by an embodiment of the present application.
- the present application provides a communication system, which includes a user plane network element and a session management network element.
- the system also includes a policy control network element.
- the session management network element is configured to receive a policy and charging control (Policy and Charging Control, PCC) rule from a policy control network element, where the PCC rule includes first flow description information; wherein, the first flow description information includes an offset , length and reference value, the offset is used to indicate the starting point of the target field in the data packet to be matched, the length indicates the length of the target field, and the reference value is used to match the value of the target field; according to the The PCC rule generates a PDR; sends the PDR to the user plane network element, the PDR includes the first flow description information and the QFI allocated for the PCC rule; the user plane network element is used to combine the first data packet with the first flow description information performing matching; when the first data packet matches the first flow description information, adding the QFI corresponding to the first flow description information to the header of the first data packet to obtain a second data packet; sending the second data packet.
- PCC Policy and Charging Control
- the session management network element is further configured to generate a QoS rule according to the PCC rule; and send the QoS rule to the terminal, and the QoS rule includes the QFI and the second flow description information.
- the first flow description information includes upstream flow description information and downstream flow description information
- the upstream flow description information is used to match the upstream flow
- the downstream flow description information is used to match the downstream flow
- the second flow description information is used to match the downstream flow
- the flow description information includes the upstream flow description information, or the second flow description information is the same as the first flow description information.
- the PCC rule also includes a QoS parameter;
- the session management network element is also used to generate a QoS configuration according to the PCC rule, and the QoS configuration includes the QoS parameter; and send the QoS parameter to the access network device The QFI and the QoS configuration.
- the session management network element is further configured to receive a session modification request from the terminal, where the session modification request includes the first flow description information; send the policy association update request to the policy control network element, The policy association update request includes the first flow description information.
- the user plane network element is configured to match the first data packet with the first flow description information; when the first data packet matches the first flow description information, in the first data packet Adding the QFI corresponding to the first flow description information to the packet header to obtain a second data packet; sending the second data packet.
- the user plane network element is configured to match the first data packet with the first flow description information, specifically including: determining the first flow description information according to the offset starting point and the offset The starting point of the target field in the data packet; according to the starting point and the length of the target field in the first data packet, determine the target field in the first data packet; according to the acquisition of the target field in the first data packet value and the reference value, and determine whether the first data packet matches the first flow description information.
- the offset starting point is pre-configured or predefined by the protocol.
- the first stream description information further includes indication information, where the indication information is used to indicate the offset starting point.
- the offset starting point is the starting point of the payload in the first data packet or the starting point of the first data packet.
- the user plane network element is configured to determine whether the first data packet matches the flow description information according to the value of the target field in the first data packet and the reference value, specifically including : used to determine that the first data packet matches the second description information of the flow when the value of the target field in the first data packet is the same as the reference value; or, when the value of the target field in the first data packet If the value is different from the reference value, it is determined that the first data packet does not match the first flow description information.
- the first flow description information also includes a matching rule;
- the user plane network element is configured to judge the first data flow according to the value of the target field in the first data packet and the reference value Whether the packet matches the first flow description information specifically includes: determining that the first data packet matches the first flow description information when the value of the target field in the first data packet and the reference value satisfy the matching rule; or , when the value of the target field in the first data packet and the reference value do not satisfy the matching rule, it is determined that the first data packet does not match the first flow description information.
- the matching rule is greater than, less than, equal to, or a functional relationship.
- the policy control network element is configured to obtain the first flow description information; generate the PCC rule; and send the PCC rule to the session management network element.
- the policy control network element is configured to obtain the first flow description information, specifically including: receiving a policy authorization request from an application function network element, where the policy authorization request includes the first flow description information.
- the policy control network element is used to obtain the first flow description information, which specifically includes: receiving a policy association update request from the session management network element, and the policy association update request includes information from the terminal.
- the first stream describes information.
- the system shown in Figure 1 can be used in the 5G network architecture shown in Figure 2(a) or Figure 2(b), of course, it can also be used in future network architectures, such as the sixth generation (6th generation, 6G) network architecture etc., this application does not make a limitation.
- Figure 2(a) is a schematic diagram of a 5G network architecture based on a service-based architecture.
- the 5G network architecture shown in Figure 2(a) may include a data network (data network, DN) and an operator network.
- DN data network
- Operator network operator network
- the operator network may include one or more of the following network elements: authentication server function (Authentication Server Function, AUSF) network element, network exposure function (network exposure function, NEF) network element, policy control function (policy control function, PCF) network element, unified data management (unified data management, UDM) network element, unified database (Unified Data Repository, UDR), network storage function (Network Repository Function, NRF) network element, application function (application function, AF) ) network elements, access and mobility management function (access and mobility management function, AMF) network elements, session management function (session management function, SMF) network elements, radio access network (radio access network, RAN) equipment and users Plane function (user plane function, UPF) network element, network slice selection function (Network Slice Selection Function, NSSF) network element (not shown in the figure), etc.
- network elements or devices other than radio access network devices may be referred to as core network elements or core network devices.
- the wireless access network equipment can be a base station (base station), an evolved base station (evolved NodeB, eNodeB), a transmission reception point (transmission reception point, TRP), and a next generation base station (next generation NodeB, gNB) in a 5G mobile communication system , a next-generation base station in a 6G mobile communication system, a base station in a future mobile communication system, or an access node in a wireless fidelity (Wireless Fidelity, WiFi) system, etc.; it can also be a module or unit that completes some functions of the base station, for example, It can be a centralized unit (central unit, CU) or a distributed unit (distributed unit, DU).
- the radio access network equipment may be a macro base station, a micro base station or an indoor station, or a relay node or a donor node. The embodiment of the present application does not limit the specific technology and specific equipment form adopted by the radio access network equipment.
- the terminal communicating with the RAN may also be called terminal equipment, user equipment (user equipment, UE), mobile station, mobile terminal, and so on.
- Terminals can be widely used in various scenarios, such as device-to-device (D2D), vehicle-to-everything (V2X) communication, machine-type communication (MTC), Internet of Things ( Internet of things, IOT), virtual reality, augmented reality, industrial control, automatic driving, telemedicine, smart grid, smart furniture, smart office, smart wearables, smart transportation, smart city, etc.
- Terminals can be mobile phones, tablet computers, computers with wireless transceiver functions, wearable devices, vehicles, drones, helicopters, airplanes, ships, robots, robotic arms, smart home devices, etc.
- the embodiment of the present application does not limit the specific technology and specific device form adopted by the terminal.
- Base stations and terminals can be fixed or mobile. Base stations and terminals can be deployed on land, including indoors or outdoors, handheld or vehicle-mounted; they can also be deployed on water; they can also be deployed on aircraft, balloons and artificial satellites in the air. The embodiments of the present application do not limit the application scenarios of the base station and the terminal.
- the AMF network element performs functions such as mobility management and access authentication/authorization. In addition, it is also responsible for transferring user policies between the terminal and the PCF.
- the SMF network element performs functions such as session management, execution of control policies issued by the PCF, selection of UPF, and allocation of Internet Protocol (IP) addresses for terminals.
- functions such as session management, execution of control policies issued by the PCF, selection of UPF, and allocation of Internet Protocol (IP) addresses for terminals.
- IP Internet Protocol
- the UPF network element as the interface UPF with the data network, completes functions such as user plane data forwarding, session/flow-based charging statistics, and bandwidth limitation.
- the UDM network element performs functions such as managing subscription data and user access authorization.
- UDR implements the access function of contract data, policy data, application data and other types of data.
- NEF network elements are used to support the opening of capabilities and events.
- the AF network element transmits the requirements from the application side to the network side, such as QoS requirements or user status event subscription.
- the AF may be a third-party functional entity, or an application service deployed by an operator, such as an IP Multimedia Subsystem (IP Multimedia Subsystem, IMS) voice call service.
- IP Multimedia Subsystem IP Multimedia Subsystem, IMS
- the PCF network element is responsible for policy control functions such as charging for sessions and service flow levels, QoS bandwidth guarantee, mobility management, and terminal policy decision-making.
- the NRF network element can be used to provide a network element discovery function, and provide network element information corresponding to the network element type based on the request of other network elements.
- NRF also provides network element management services, such as network element registration, update, de-registration, network element status subscription and push, etc.
- the AUSF network element is responsible for authenticating users to determine whether users or devices are allowed to access the network.
- the NSSF network element is used to select a network slice and count users in the network slice.
- DN is a network outside the operator's network.
- the operator's network can access multiple DNs, and various services can be deployed on the DN, which can provide data and/or voice services for terminals.
- DN is a private network of a smart factory.
- the sensors installed in the workshop of the smart factory can be terminals, and the control server of the sensors is deployed in the DN, and the control server can provide services for the sensors.
- the sensor can communicate with the control server, obtain instructions from the control server, and transmit the collected sensor data to the control server according to the instructions.
- DN is a company's internal office network.
- the mobile phone or computer of the company's employees can be a terminal, and the employee's mobile phone or computer can access information and data resources on the company's internal office network.
- Nausf, Nnef, Npcf, Nudm, Naf, Namf, and Nsmf are the service interfaces provided by the above-mentioned AUSF, NEF, PCF, UDM, AF, AMF, and SMF, respectively, and are used to call corresponding service operations.
- N1, N2, N3, N4, and N6 are interface serial numbers. The meanings of these interface serial numbers may refer to the meanings defined in the third generation partnership project (3rd generation partnership project, 3GPP) standard agreement, and no limitation is made here.
- Figure 2(b) is a schematic diagram of a 5G network architecture based on a point-to-point interface, and the introduction of the functions of the network elements can refer to the introduction of the functions of the corresponding network elements in Figure 2(a), and will not be repeated here.
- the main difference between Figure 2(b) and Figure 2(a) is that the interface between each control plane network element in Figure 2(a) is a service interface, and each control plane network element in Figure 2(b) The interface between them is a point-to-point interface.
- N1 the interface between the AMF and the terminal, which can be used to transmit QoS control rules and the like to the terminal.
- N2 the interface between the AMF and the RAN, which can be used to transfer radio bearer control information from the core network side to the RAN.
- N3 the interface between the RAN and the UPF, mainly used to transfer the uplink and downlink user plane data between the RAN and the UPF.
- N4 The interface between SMF and UPF, which can be used to transfer information between the control plane and the user plane, including controlling the distribution of forwarding rules, QoS control rules, traffic statistics rules, etc. Information reporting.
- N5 the interface between the AF and the PCF, which can be used for sending application service requests and reporting network events.
- N6 the interface between UPF and DN, used to transfer the uplink and downlink user data flow between UPF and DN.
- N7 the interface between PCF and SMF, which can be used to deliver protocol data unit (protocol data unit, PDU) session granularity and service data flow granularity control policy.
- protocol data unit protocol data unit
- PDU protocol data unit
- N8 The interface between AMF and UDM, which can be used for AMF to obtain subscription data and authentication data related to access and mobility management from UDM, and for AMF to register terminal current mobility management related information with UDM.
- N9 a user plane interface between UPF and UPF, used to transmit uplink and downlink user data flows between UPFs.
- N10 the interface between SMF and UDM, which can be used for SMF to obtain session management-related subscription data from UDM, and for SMF to register terminal current session-related information with UDM.
- N11 the interface between SMF and AMF, which can be used to transfer PDU session tunnel information between RAN and UPF, transfer control messages sent to terminals, transfer radio resource control information sent to RAN, etc.
- N12 the interface between AMF and AUSF, which can be used for AMF to initiate an authentication process to AUSF, which can carry SUCI as a subscription identifier;
- N13 the interface between UDM and AUSF, which can be used for AUSF to obtain user authentication vector from UDM to execute the authentication process.
- N15 the interface between the PCF and the AMF, which can be used to issue terminal policies and access control-related policies.
- N35 the interface between UDM and UDR, which can be used for UDM to obtain user subscription data information from UDR.
- N36 the interface between the PCF and the UDR, which can be used for the PCF to obtain policy-related subscription data and application data-related information from the UDR.
- the above-mentioned network element or function may be a network element in a hardware device, or a software function running on dedicated hardware, or a virtualization function instantiated on a platform (for example, a cloud platform).
- a platform for example, a cloud platform.
- the foregoing network element or function may be implemented by one device, or jointly implemented by multiple devices, or may be a functional module in one device, which is not specifically limited in this embodiment of the present application.
- the session management network element, user plane network element, and policy control network element in this application can be the SMF, UPF, and PCF in Figure 2(a) or Figure 2(b), respectively, or they can be The above-mentioned network elements with functions of SMF, UPF, and PCF are not limited in this application.
- SMF, UPF, and PCF are respectively used as an example of a session management network element, a user plane network element, and a policy control network element for description.
- the access network device in the embodiment of the present application may be a wireless access network device.
- a base station is used as an example of the access network device for description.
- data packets of multiple service flows may have the same IP header characteristics or Ethernet packet header characteristics, so only relying on existing packet filters may not be able to effectively distinguish data packets, resulting in failure to meet More fine-grained business requirements for uplink and downlink business flows. Let's illustrate with an example.
- real-time communication (real-time, RT) data packets usually require a delay within 10 milliseconds (ms), and the corresponding protocol is the 802.1Q protocol.
- the structure of the data packet is shown in Table 1.
- This data packet can be used for the transmission of periodic user data, event-driven information, alarm information, etc.
- the network side may generally adopt different QoS guarantee requirements for the above-mentioned data packets of different service types.
- the base station pre-allocates scheduling resources for periodic user data based on an uplink pre-scheduling policy configured by a separate 5QI, thereby greatly reducing uplink scheduling delay.
- the currently defined Ethernet type packet filter only supports identification to the Ethernet type field, and some switches will discard the information in the virtual local area network (virtual local area network, VLAN) tag field because they do not support the 802.1Q protocol , so that the RT data packet can only be identified based on characteristics such as source address, destination address, and Ethernet type.
- VLAN virtual local area network
- the headers of these data packets have the same source address, destination Address and Ethernet type, so that when the terminal or UPF identifies the header of the data packet according to the packet filter, it cannot judge the actual service type corresponding to the data packet, so that the mapping from the data packet to the QoS flow cannot be accurately completed.
- an embodiment of the present application provides a communication method, the method may be executed by a communication device or a module (such as a chip) used for the communication device, and the communication device may be a terminal or a UPF.
- this method comprises the following steps:
- Step 301a matching the first data packet with the flow description information.
- the flow description information includes an offset (offset), a length (length) and a reference value (value).
- the offset is used to indicate the starting point of the target field in the data packet to be matched. Specifically, the offset indicates the forward or backward offset from the offset starting point. When the offset is a positive number , which means backward offset from the offset start point, and when the offset is negative, it means forward offset from the offset start point.
- the offset is a positive number , which means backward offset from the offset start point, and when the offset is negative, it means forward offset from the offset start point.
- the starting point of the target field can be obtained.
- length indicates the length of the target field. Through the offset and length, the target field can be obtained.
- the reference value is used to match the value of the target field, that is, by judging the relationship between the actual value of the target field of the data packet to be matched and the reference value, it is judged whether the data packet matches the flow description information.
- matching the first data packet with the flow description information may specifically be: determine the starting point of the target field in the first data packet according to the offset starting point and the offset, and determine the starting point of the target field in the first data packet according to The starting point and length of the target field of the first data packet determine the target field in the first data packet, and judge whether the first data packet matches the flow description information according to the value and reference value of the target field in the first data packet.
- the offset start point may be pre-configured or predefined by the protocol, or may also be indicated by indication information, for example, the flow description information may further include indication information for indicating the offset start point.
- the offset starting point may be the starting point of the payload in the first data packet or the starting point of the first data packet.
- the first data packet matches the flow description information. Specifically, it may be: when the value of the target field in the first data packet matches the flow description information The reference value of the same, it is determined that the first data packet matches the flow description information; or, when the value of the target field in the first data packet is different from the reference value in the flow description information, it is determined that the first data packet does not match the flow description information match.
- judging whether the first data packet matches the flow description information according to the value of the target field in the first data packet and the reference value may also be: when the value of the target field in the first data packet matches the flow description information
- the reference value of the first data packet satisfies the matching rule, and it is determined that the first data packet matches the flow description information; or, when the value of the target field in the first data packet and the reference value in the flow description information do not meet the matching rule, it is determined that the first data packet Does not match stream description information.
- the matching rule may be carried in the above flow description information.
- the default offset starting point is the starting point of the payload (playload) in the data packet to be matched.
- the starting point of the payload is the starting point of the Frame ID.
- the length is 2 bytes
- the reference value is 1, wherein the reference value 1 indicates cyclic transmission, that is, it is used to indicate a periodic service data packet in the RT stream. Therefore, according to the offset and the length, the value of the Frame ID field in the service data packet (such as the first data packet) can be obtained.
- the value of the Frame ID field is 1, it means that the flow description information matches the first data packet, and when the value of the Frame ID field is not 1, it means that the flow description information does not match the first data packet superior.
- the matching rule is greater than (>)
- the matching rule is greater than (>)
- the value of the Frame ID field is greater than 1
- the value of the Frame ID field is less than or equal to 1
- modify the default offset starting point in the above example to the starting point of the data packet to be matched that is, the starting point of the packet header of the data packet, and its offset value is a, where a represents the starting point of the data packet
- the value of the Frame ID field can also be obtained according to the offset and length of the number of bytes between the starting point of the packet header and the starting point of the Frame ID field.
- indication information may also be carried in the flow description information, for example, the indication information indicates that the offset starting point is the starting point of the load (playload), then according to the indication information, offset and length, you can also obtain to the value of the Frame ID field.
- Step 302a when the first data packet matches the flow description information, add the QFI corresponding to the flow description information to the header of the first data packet to obtain the second data packet.
- Step 303a sending the second data packet.
- the second data packet is an uplink data packet; if the communication device executing the above method is a UPF, the second data packet is a downlink data packet.
- the service type corresponding to the data packet to be matched when the above-mentioned target field is used to indicate the service type corresponding to the data packet to be matched, if the service type is a periodic service or an aperiodic service, then through the flow description information, the service type corresponding to the different data packets Make a distinction.
- step 301a to step 303a through the offset, length and reference value, the target field of the service data packet is accurately matched, which can effectively distinguish the data packets of different service types, thus helping the network side to identify different service types packets perform different controls.
- FIG. 3(b) it is a schematic diagram of a communication method provided by an embodiment of the present application, and the method includes the following steps:
- step 301b the PCF acquires first flow description information.
- the first stream description information includes an offset, a length, and a reference value.
- an offset For meanings of the offset, length, and reference value, reference may be made to the foregoing description.
- the first flow description information may include upstream flow description information and/or downstream flow description information
- the upstream flow description information is used to match the upstream flow
- the downstream flow description information is used to match the downstream flow.
- the upstream description information includes a first offset, the first length, and a first reference value
- the downstream description information includes a second offset, a second length, and a second reference value.
- the first offset and the second offset may be the same or different
- the first length and the second length may be the same or different
- the first reference value and the second reference value may be the same or different.
- the PCF can obtain first-flow description information from an application function (AF) network element.
- AF application function
- the PCF receives a policy authorization request from an application function network element, where the policy authorization request includes first flow description information.
- the PCF can obtain the first flow description information from the SMF.
- the PCF receives the policy association update request from the SMF, the policy association update request includes the session modification request from the terminal, and the session modification request includes the first flow description information. That is, the terminal sends a session modification request carrying the first flow description information to the SMF, and then the SMF carries the first flow description information in the policy association update request and sends it to the PCF.
- step 302b the PCF generates a PCC rule, and the PCC rule includes the first flow description information.
- step 303b the PCF sends the PCC rule to the SMF.
- the SMF receives the PCC rule.
- step 304b the SMF generates a PDR according to the PCC rule, and the PDR includes the first flow description information and the QFI allocated for the PCC rule.
- step 305b the SMF sends a PDR to the UPF.
- the UPF receives the PDR.
- step 306b the SMF generates a QoS rule according to the PCC rule, and the QoS rule includes the second flow description information and the QFI allocated for the PCC rule.
- the second flow description information includes upstream flow description information, or the second flow description information is the same as the first flow description information, that is, the second flow description information includes upstream flow description information and downstream flow description information.
- step 307b the SMF sends the QoS rules to the terminal.
- the terminal receives the QoS rule.
- step 308b the SMF generates a QoS configuration (QoS profile) according to the PCC rule, and the QoS configuration includes QoS parameters.
- the QoS parameters include parameter information such as 5QI, ARP, and GBR.
- step 309b the SMF sends the QoS configuration and the QFI allocated for the PCC rule to the base station.
- the base station receives the QoS configuration and the QFI.
- flow description information can be configured for the terminal and/or UPF, so that the terminal and/UPF can match data packets according to the flow description information.
- FIG. 4 is a schematic diagram of a communication method provided by an embodiment of the present application. The method is described by taking the feature description of the RT type packet in the above-mentioned Profinet scenario as an example. In order to meet the differentiated scheduling requirements for periodic RT data packets, the method uses a packet filter configured with a fixed offset to identify or match periodic data packets and aperiodic data packets in the RT service flow.
- the method includes the following steps:
- Step 401 the terminal accesses the core network via the base station, and establishes a PDU session.
- step 402a the AF sends a policy authorization request to the PCF, and the policy authorization request includes the address of the terminal and flow description information.
- the PCF receives the policy authorization request.
- the policy authorization request may be directly sent by the AF to the PCF or sent to the PCF via the NEF, and the policy authorization request may be, for example, Npcf_PolicyAuthorization_Create/Update.
- the stream description information includes an offset (offset), a length (length) and a reference value (value).
- the flow description information includes a source address and a destination address.
- step 402b the SMF sends a policy association update request to the PCF, and the policy association update request includes flow description information.
- the PCF receives the policy association update request.
- the flow description information in the policy association update request is sent by the terminal to the SMF.
- the terminal sends a PDU session modification request to the SMF, and the PDU session modification request includes the flow description information.
- the PDU session modification request also includes the requested QoS (requested QoS), and the policy association update request may also include the requested QoS.
- both the above step 402a and step 402b are optional steps. As an implementation method, the above step 402a is performed but the above step 402b is not performed. As another implementation method, the above step 402b is performed but the above step 402a is not performed. As yet another implementation method, the above step 402a and step 402b are not executed.
- step 403 the PCF generates PCC rules.
- the PCC rule includes the above-mentioned flow description information and QoS parameters, and optionally also includes charging policies, flow control policies, and the like.
- the QoS parameters include parameter information such as 5QI, ARP, and GBR.
- the QoS parameter indicates the QoS guarantee to be performed on the service flow.
- the PCF when the above step 402a is executed, the PCF generates a PCC rule according to the flow description information provided by the AF.
- the PCF when the above step 402b is executed, the PCF generates a PCC rule according to the flow description information provided by the terminal.
- the PCF can determine the PCC rule according to the local policy, other event information reported by the SMF or the UDR subscription.
- step 404 the PCF sends the PCC rule to the SMF.
- the SMF receives the PCC rule.
- step 405 the SMF allocates a QFI for the PCC rule, and generates a QoS rule (rule), PDR, and QoS configuration (profile).
- SMF performs QoS flow binding according to QoS parameters in PCC rules.
- the SMF judges whether there is a QoS flow corresponding to the QoS parameter. If not, the SMF allocates a new QFI for the PCC rule. If it exists, the SMF uses the QFI of the QoS flow.
- the PDR generated by SMF contains flow description information in QFI and PCC rules.
- the QoS rules generated by SMF include the flow description information in QFI and PCC rules.
- the flow description information in the PCC rule includes upstream flow description information and downstream flow description information
- the QoS rule only includes upstream flow description information.
- the QoS configuration generated by SMF includes the QoS parameters in the PCC rules.
- step 406 the SMF sends a PDR to the UPF.
- SMF sends N4Session Modification to UPF, which carries PDR.
- Step 407 the SMF sends the QoS rule to the terminal via the AMF.
- the terminal receives the QoS rule.
- the SMF sends a PDU session modification request/response to the terminal via the AMF, which carries QoS rules.
- Step 408 the SMF sends the QFI and QoS configuration to the base station.
- the base station receives the QFI and QoS configuration.
- step 409 the UPF performs QoS flow matching on the downlink data packet according to the flow description information in the PDR.
- the UPF After the UPF receives the downlink data packet, it matches the downlink data packet according to the flow description information in the PDR. When the flow description information in the PDR matches the downlink data packet, the UPF encapsulates the QFI in the PDR in the header of the downlink data packet and forwards it to the base station.
- Step 410 the terminal performs QoS flow matching on the uplink data packet according to the flow description information in the QoS rule.
- UPF matches uplink data packets according to flow description information in QoS rules.
- the terminal encapsulates the QFI in the QoS rule in the header of the uplink data packet and forwards it to the base station.
- Step 411 the base station implements QoS guarantee for uplink data packets or downlink data packets according to QFI and QoS configuration.
- the base station After receiving the uplink data packet or the downlink data packet, the base station obtains the QFI in the uplink data packet or the downlink data packet, and then performs corresponding QoS guarantee according to the QoS configuration corresponding to the QFI.
- the network can perform more fine-grained service matching for the data packets of the service flow, so as to meet the finer-grained service requirements of the uplink and downlink service flows.
- the SMF, PCF, UPF, base station and terminal include hardware structures and/or software modules corresponding to each function.
- the present application can be implemented in the form of hardware or a combination of hardware and computer software with reference to the units and method steps of the examples described in the embodiments disclosed in the present application. Whether a certain function is executed by hardware or computer software drives the hardware depends on the specific application scenario and design constraints of the technical solution.
- FIG. 5 and FIG. 6 are schematic structural diagrams of possible communication devices provided by the embodiments of the present application. These communication devices can be used to implement the functions of the SMF, PCF, UPF, and terminal in the above method embodiments, and thus can also realize the beneficial effects of the above method embodiments.
- the communication device may be SMF, PCF, UPF and terminal, or may be a module (such as a chip) applied to SMF, PCF, UPF and terminal.
- a communication device 500 includes a processing unit 510 and a transceiver unit 520 .
- the communication device 500 is configured to implement functions of the SMF, PCF, UPF and terminal in the method embodiment shown in FIG. 3(a), FIG. 3(b) or FIG. 4 above.
- the data packet is matched with the flow description information, wherein the flow description information includes an offset, a length and a reference value, the offset is used to indicate the starting point of the target field in the data packet to be matched, and the The length indicates the length of the target field, and the reference value is used to match the value of the target field; when the first data packet matches the flow description information, add the flow to the header of the data packet.
- the quality of service flow identifier QFI corresponding to the description information is used to obtain a second data packet; the transceiver unit 520 is configured to send the second data packet.
- the processing unit 510 is configured to match the first data packet with the flow description information, specifically including: determining the first packet according to the offset starting point and the offset The starting point of the target field in a data packet; according to the starting point and the length of the target field in the first data packet, determine the target field in the first data packet; according to the The value of the target field and the reference value, and determine whether the first data packet matches the flow description information.
- the processing unit 510 is configured to judge the first data packet and the flow description information according to the value of the target field in the first data packet and the reference value Whether it matches, specifically includes: when the value of the target field in the first data packet is the same as the reference value, determining that the first data packet matches the flow description information; or, when the first data packet matches the flow description information; The value of the target field in a data packet is different from the reference value, and it is determined that the first data packet does not match the flow description information.
- the flow description information further includes a matching rule;
- the processing unit 510 is configured to determine the value of the target field in the first data packet and the reference value Whether the first data packet matches the flow description information specifically includes: when the value of the target field in the first data packet and the reference value satisfy the matching rule, determine the first data packet The packet matches the flow description information; or, when the value of the target field in the first data packet and the reference value do not satisfy the matching rule, determine that the first data packet matches the flow description information Mismatch.
- the transceiver unit 520 is configured to receive Controlling the policy charging control PCC rule of the network element, the PCC rule includes first flow description information; wherein, the first flow description information includes an offset, a length, and a reference value, and the offset is used to indicate the The starting point of the target field in the matched data packet, the length represents the length of the target field, and the reference value is used to match the value of the target field; the processing unit 510 is configured to rule generation packet detection rule PDR; the transceiver unit 520 is further configured to send the PDR to the user plane network element, the PDR includes the first flow description information and the quality of service flow identifier QFI allocated for the PCC rule .
- the first flow description information includes an offset, a length, and a reference value, and the offset is used to indicate the The starting point of the target field in the matched data packet, the length represents the length of the target field, and the reference value is used to match the value of the target field
- the processing unit 510 is configured to rule generation packet detection rule
- the processing unit 510 is further configured to generate a QoS rule according to the PCC rule; the transceiver unit 520 is further configured to send the QoS rule to the terminal, and the QoS rule includes The QFI and second stream description information.
- the PCC rules further include QoS parameters;
- the processing unit 510 is further configured to generate a QoS configuration according to the PCC rules, and the QoS configuration includes the QoS parameters;
- the transceiver unit 520 is further configured to send the QFI and the QoS configuration to the access network device.
- the transceiving unit 520 is further configured to receive a session modification request from the terminal, where the session modification request includes the first flow description information; and send to the policy control network element
- the policy association update request includes the first stream description information.
- the processing unit 510 is configured to obtain flow description information,
- the flow description information includes an offset, a length and a reference value, the offset is used to indicate the starting point of the target field in the data packet to be matched, the length indicates the length of the target field, and the The reference value is used to match the value of the target field;
- a policy and charging control PCC rule is generated, and the PCC rule includes the flow description information;
- the transceiver unit 520 is configured to send the PCC rule to a session management network element.
- processing unit 510 and the transceiver unit 520 can be directly obtained by referring to the relevant descriptions in the method embodiment shown in FIG. 3(a), FIG. 3(b) or FIG.
- the communication device 600 includes a processor 610 and an interface circuit 620 .
- the processor 610 and the interface circuit 620 are coupled to each other.
- the interface circuit 620 may be a transceiver or an input-output interface.
- the communication device 600 may further include a memory 630 for storing instructions executed by the processor 610 or storing input data required by the processor 610 to execute the instructions or storing data generated after the processor 610 executes the instructions.
- the processor 610 is used to implement the functions of the processing unit 510, and the interface circuit 620 is used to implement the transceiver unit 520 function.
- the terminal chip implements the functions of the terminal in the above method embodiment.
- the terminal chip receives information from other modules in the terminal (such as radio frequency modules or antennas), and the information is sent to the terminal by the base station; or, the terminal chip sends information to other modules in the terminal (such as radio frequency modules or antennas), and the The information is sent by the terminal to the base station.
- the processor in the embodiments of the present application can be a central processing unit (Central Processing Unit, CPU), and can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application-specific integrated circuits (Application Specific Integrated Circuit, ASIC), Field Programmable Gate Array (Field Programmable Gate Array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof.
- a general-purpose processor can be a microprocessor, or any conventional processor.
- the method steps in the embodiments of the present application may be implemented by means of hardware, or may be implemented by means of a processor executing software instructions.
- Software instructions can be composed of corresponding software modules, and software modules can be stored in random access memory, flash memory, read-only memory, programmable read-only memory, erasable programmable read-only memory, electrically erasable programmable read-only Memory, registers, hard disk, removable hard disk, 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.
- the storage medium may also be a component of the processor.
- the processor and storage medium can be located in the ASIC.
- the ASIC can be located in the base station or the terminal.
- the processor and the storage medium may also exist in the base station or the terminal as discrete components.
- all or part of them may be implemented by software, hardware, firmware or any combination thereof.
- software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
- the computer program product comprises one or more computer programs or instructions. When the computer program or instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present application are executed in whole or in part.
- the computer may be a general purpose computer, a special purpose computer, a computer network, a base station, user equipment or other programmable devices.
- the computer program or instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instructions may be downloaded from a website, computer, A server or data center transmits to another website site, computer, server or data center by wired or wireless means.
- the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrating one or more available media.
- the available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disk; it may also be a semiconductor medium, such as a solid state disk.
- the computer readable storage medium may be a volatile or a nonvolatile storage medium, or may include both volatile and nonvolatile types of storage media.
- “at least one” means one or more, and “multiple” means two or more.
- “And/or” describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural.
- the character “/” generally indicates that the contextual objects are an “or” relationship; in the formulas of this application, the character “/” indicates that the contextual objects are a "division” Relationship.
Landscapes
- Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present application provides a communication method, a communication apparatus, and a communication system. The method comprises: matching a first data packet and flow description information, wherein the flow description information comprises an offset, a length, and a reference value, the offset is used for indicating a starting point of a target field in a data packet to be matched, the length represents the length of the target field, and the reference value is used for matching the value of the target field; when the first data packet matches the flow description information, adding a QFI corresponding to the flow description information to a header of the first data packet to obtain a second data packet; and sending the data packet. According to the solution, the target field of a service data packet is exactly matched by means of an offset, a length, and a reference value, and thus data packets of different service types can be effectively distinguished, thereby facilitating a network side to execute different controls on the data packets of different service types.
Description
相关申请的交叉引用Cross References to Related Applications
本申请要求在2021年06月24日提交中国专利局、申请号为202110702409.8、申请名称为“一种通信方法、通信装置及通信系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110702409.8 and the application name "a communication method, communication device and communication system" submitted to the China Patent Office on June 24, 2021, the entire contents of which are incorporated by reference In this application.
本申请涉及通信技术领域,尤其涉及一种通信方法、通信装置及通信系统。The present application relates to the technical field of communication, and in particular to a communication method, a communication device and a communication system.
第五代(5th generation,5G)网络中支持以服务质量(Quality of Service,QoS)流粒度对业务服务质量进行保障。会话管理网元在建立QoS流或修改QoS流时,将QoS流标识(QoS Flow Identifier,QFI)及该QFI对应的QoS配置(Profile)发送至接入网设备,该QoS配置中包含5G QoS标识(5G QoS Identifier,5QI)、分配与保持优先级(Allocation and Retention Priority,ARP)、保障比特速率(Guarantee Bit Rate,GBR)等参数信息,将QoS规则发送给终端,QoS规则中包括QFI、包过滤器以及匹配优先级信息,将包检测规则(Packet Detection Rule,PDR)发送给用户面网元,PDR中包括QFI、包过滤器以及匹配优先级信息。The fifth generation (5th generation, 5G) network supports the quality of service (Quality of Service, QoS) flow granularity to guarantee the service quality of the business. When establishing a QoS flow or modifying a QoS flow, the session management network element sends the QoS Flow Identifier (QFI) and the QoS configuration (Profile) corresponding to the QFI to the access network device. The QoS configuration includes the 5G QoS identifier (5G QoS Identifier, 5QI), allocation and retention priority (Allocation and Retention Priority, ARP), guaranteed bit rate (Guarantee Bit Rate, GBR) and other parameter information, send QoS rules to the terminal, QoS rules include QFI, packet Filter and match priority information, send packet detection rule (Packet Detection Rule, PDR) to user plane network element, PDR includes QFI, packet filter and match priority information.
当终端需要发送上行数据包时,根据QoS规则中的包过滤器对该上行数据包进行匹配,当上行数据包与某个过包过滤器匹配上了,则在该上行数据包的包头增加该包过滤器对应的QFI,然后将增加了QFI的上行数据包发送给接入网设备。When the terminal needs to send an uplink data packet, the uplink data packet is matched according to the packet filter in the QoS rule. When the uplink data packet matches a certain packet filter, the header of the uplink data packet is added. The QFI corresponding to the packet filter, and then send the uplink data packet with the added QFI to the access network device.
当用户面网元收到下行数据包时,根据PDR中的包过滤器对该下行数据包进行匹配,当下行数据包与某个过包过滤器匹配上了,则在该下行数据包的包头增加该包过滤器对应的QFI,然后将增加了QFI的下行数据包发送给接入网设备。When the user plane network element receives a downlink data packet, it matches the downlink data packet according to the packet filter in the PDR. Increase the QFI corresponding to the packet filter, and then send the downlink data packet with the added QFI to the access network device.
接入网设备在收到上行数据包或下行数据包后,获取该上行数据包或下行数据包中的QFI,然后根据该QFI对应的QoS配置,执行相应的QoS保障。After receiving the uplink data packet or downlink data packet, the access network device obtains the QFI in the uplink data packet or downlink data packet, and then performs corresponding QoS guarantee according to the QoS configuration corresponding to the QFI.
协议当前定义了互联网协议(Internet Protocol,IP)类型及以太网(Ethernet)类型的包过滤器,终端或用户面网元通过IP类型或以太网类型的包过滤器,可以对数据包的包头进行识别或匹配,完成业务流到QoS流的映射,从而实现按照包过滤器粒度对数据包进行差异化处理。The protocol currently defines Internet Protocol (IP) type and Ethernet (Ethernet) type packet filters. Terminals or user plane network elements can filter the packet headers of data packets through IP type or Ethernet type packet filters. Identify or match, and complete the mapping from service flow to QoS flow, so as to implement differentiated processing of data packets according to the granularity of packet filters.
然而,依赖现有的包过滤器,无法对数据包进行更精确的区分。However, relying on existing packet filters, it is impossible to make more precise distinctions between data packets.
发明内容Contents of the invention
本申请实施例提供一种通信方法、通信装置及通信系统,用以实现对数据包做精确匹配,从而有效区分不同业务类型的数据包。Embodiments of the present application provide a communication method, a communication device, and a communication system, which are used to implement precise matching of data packets, thereby effectively distinguishing data packets of different service types.
第一方面,本申请实施例提供一种通信方法,该方法可以由通信设备或应用于通信设 备中的模块来执行,该通信设备可以是终端或用户面网元。该方法包括:将第一数据包与流描述信息进行匹配,其中,该流描述信息中包含偏移量、长度和参考值,该偏移量用于指示待匹配的数据包中的目标字段的起始点,该长度表示该目标字段的长度,该参考值用于匹配该目标字段的取值;当该第一数据包与该流描述信息匹配,在该第一数据包的包头添加该流描述信息对应的服务质量流标识QFI,得到第二数据包;发送该第二数据包。In the first aspect, the embodiment of the present application provides a communication method, which can be executed by a communication device or a module applied to the communication device, and the communication device can be a terminal or a user plane network element. The method includes: matching the first data packet with the flow description information, wherein the flow description information includes an offset, a length and a reference value, and the offset is used to indicate the target field in the data packet to be matched The starting point, the length indicates the length of the target field, and the reference value is used to match the value of the target field; when the first data packet matches the flow description information, add the flow description to the header of the first data packet The quality of service flow identifier QFI corresponding to the information is obtained to obtain a second data packet; and the second data packet is sent.
根据上述方案,通过偏移量、长度和参考值,对业务数据包的目标字段进行精确匹配,可以实现有效区分不同业务类型的数据包,从而有助于网络侧对不同业务类型的数据包执行不同的控制。According to the above scheme, by accurately matching the target field of the service data packet through the offset, length and reference value, it is possible to effectively distinguish data packets of different service types, thereby helping the network side to execute data packets of different service types. different controls.
在一种可能的实现方法中,根据偏移起始点和该偏移量,确定该第一数据包中的目标字段的起始点;根据该第一数据包中的目标字段的起始点和该长度,确定该第一数据包中的目标字段;根据该第一数据包中的目标字段的取值和该参考值,判断该第一数据包与该流描述信息是否匹配。In a possible implementation method, according to the offset start point and the offset, determine the start point of the target field in the first data packet; according to the start point of the target field in the first data packet and the length , determining the target field in the first data packet; judging whether the first data packet matches the flow description information according to the value of the target field in the first data packet and the reference value.
根据上述方案,可以实现准确获取目标字段的取值,从而实现对第一数据包进行精确匹配。According to the above solution, the value of the target field can be acquired accurately, so as to achieve accurate matching on the first data packet.
在一种可能的实现方法中,该偏移起始点是预配置的或协议预定义的。In a possible implementation method, the offset starting point is pre-configured or predefined by the protocol.
在一种可能的实现方法中,该流描述信息中还包含指示信息,该指示信息用于指示该偏移起始点。In a possible implementation method, the stream description information further includes indication information, and the indication information is used to indicate the offset starting point.
在一种可能的实现方法中,该偏移起始点是该第一数据包中的负荷的起始点或该第一数据包的起始点。In a possible implementation method, the offset starting point is the starting point of the payload in the first data packet or the starting point of the first data packet.
在一种可能的实现方法中,当该第一数据包中的目标字段的取值与该参考值相同,确定该第一数据包与该流描述信息匹配;或者,当该第一数据包中的目标字段的取值与该参考值不同,确定该第一数据包与该流描述信息不匹配。In a possible implementation method, when the value of the target field in the first data packet is the same as the reference value, it is determined that the first data packet matches the flow description information; or, when the first data packet The value of the target field is different from the reference value, and it is determined that the first data packet does not match the flow description information.
在一种可能的实现方法中,该流描述信息中还包含匹配规则;当该第一数据包中的目标字段的取值与该参考值满足该匹配规则,确定该第一数据包与该流描述信息匹配;或者,当该第一数据包中的目标字段的取值与该参考值不满足该匹配规则,确定该第一数据包与该流描述信息不匹配。In a possible implementation method, the flow description information also includes a matching rule; when the value of the target field in the first data packet and the reference value meet the matching rule, it is determined that the first data packet and the flow The description information matches; or, when the value of the target field in the first data packet and the reference value do not satisfy the matching rule, it is determined that the first data packet does not match the flow description information.
根据上述方案,通过匹配规则,可以实现更为灵活的匹配方式。According to the above scheme, a more flexible matching manner can be realized through matching rules.
在一种可能的实现方法中,该匹配规则为大于、小于、等于或函数关系。In a possible implementation method, the matching rule is greater than, less than, equal to, or a functional relationship.
在一种可能的实现方法中,该通信设备是终端,接收来自会话管理网元的服务质量QoS规则,该QoS规则中包含该QFI和该流描述信息。In a possible implementation method, the communication device is a terminal, and receives a QoS rule from a session management network element, and the QoS rule includes the QFI and the flow description information.
在一种可能的实现方法中,该通信设备是用户面网元,接收来自会话管理网元的包检测规则PDR,该PDR中包含该QFI和该流描述信息。In a possible implementation method, the communication device is a user plane network element, and receives a packet detection rule PDR from a session management network element, and the PDR includes the QFI and the flow description information.
第二方面,本申请实施例提供一种通信方法,该方法可以由会话管理网元或应用于会话管理网元中的模块来执行。该方法包括:接收来自策略控制网元的策略计费控制PCC规则,该PCC规则中包含第一流描述信息;其中,该第一流描述信息中包含偏移量、长度和参考值,该偏移量用于指示待匹配的数据包中的目标字段的起始点,该长度表示该目标字段的长度,该参考值用于匹配该目标字段的取值;根据该PCC规则生成包检测规则PDR;向用户面网元发送该PDR,该PDR中包含该第一流描述信息和为该PCC规则分配的服务质量流标识QFI。In a second aspect, the embodiment of the present application provides a communication method, and the method may be executed by a session management network element or a module applied to the session management network element. The method includes: receiving a policy charging control PCC rule from a policy control network element, where the PCC rule includes first flow description information; wherein, the first flow description information includes an offset, a length, and a reference value, and the offset It is used to indicate the starting point of the target field in the data packet to be matched, the length indicates the length of the target field, and the reference value is used to match the value of the target field; the packet detection rule PDR is generated according to the PCC rule; to the user The plane network element sends the PDR, which includes the first flow description information and the quality of service flow identifier QFI allocated for the PCC rule.
根据上述方案,可以实现为用户面网元配置第一流描述信息,从而用户面网元可以根 据第一流描述信息中的过偏移量、长度和参考值,对业务数据包的目标字段进行精确匹配,可以实现有效区分不同业务类型的数据包,从而有助于网络侧对不同业务类型的数据包执行不同的控制。According to the above solution, it is possible to configure the first flow description information for the user plane network element, so that the user plane network element can accurately match the target field of the service data packet according to the offset, length and reference value in the first flow description information , which can effectively distinguish data packets of different service types, thereby helping the network side to perform different controls on data packets of different service types.
在一种可能的实现方法中,根据该PCC规则生成QoS规则;向终端发送该QoS规则,该QoS规则中包含该QFI和第二流描述信息。In a possible implementation method, a QoS rule is generated according to the PCC rule; the QoS rule is sent to the terminal, and the QoS rule includes the QFI and the second flow description information.
根据上述方案,可以实现为终端配置第二流描述信息,从而终端可以根据第二流描述信息中的过偏移量、长度和参考值,对业务数据包的目标字段进行精确匹配,可以实现有效区分不同业务类型的数据包,从而有助于网络侧对不同业务类型的数据包执行不同的控制。According to the above solution, it is possible to configure the second stream description information for the terminal, so that the terminal can accurately match the target field of the service data packet according to the offset, length and reference value in the second stream description information, and can realize effective Data packets of different service types are distinguished, thereby helping the network side to perform different controls on data packets of different service types.
在一种可能的实现方法中,该第一流描述信息包括上行流描述信息和下行流描述信息,该上行流描述信息用于匹配上行流,该下行流描述信息用于匹配下行流;该第二流描述信息包括该上行流描述信息,或者该第二流描述信息与该第一流描述信息相同。In a possible implementation method, the first flow description information includes upstream flow description information and downstream flow description information, the upstream flow description information is used to match the upstream flow, and the downstream flow description information is used to match the downstream flow; the second flow description information is used to match the downstream flow; The flow description information includes the upstream flow description information, or the second flow description information is the same as the first flow description information.
在一种可能的实现方法中,该PCC规则中还包含QoS参数;根据该PCC规则,生成QoS配置,该QoS配置中包含该QoS参数;向接入网设备发送该QFI和该QoS配置。In a possible implementation method, the PCC rule also includes QoS parameters; generate a QoS configuration according to the PCC rule, and the QoS configuration includes the QoS parameters; send the QFI and the QoS configuration to the access network device.
在一种可能的实现方法中,接收来自该终端的会话修改请求,该会话修改请求中包含该第一流描述信息;向该策略控制网元发送该策略关联更新请求,该策略关联更新请求中包含该第一流描述信息。In a possible implementation method, a session modification request from the terminal is received, and the session modification request includes the first flow description information; and the policy association update request is sent to the policy control network element, and the policy association update request includes The first stream describes information.
第三方面,本申请实施例提供一种通信方法,该方法可以由策略控制网元或应用于策略控制网元中的模块来执行。该方法包括:获取流描述信息,该流描述信息中包含偏移量、长度和参考值,该偏移量用于指示待匹配的数据包中的目标字段的起始点,该长度表示该目标字段的长度,该参考值用于匹配该目标字段的取值;生成策略计费控制PCC规则,该PCC规则中包含该流描述信息;向会话管理网元发送该PCC规则。In a third aspect, the embodiment of the present application provides a communication method, and the method may be executed by a policy control network element or a module applied to the policy control network element. The method includes: obtaining flow description information, the flow description information includes an offset, a length and a reference value, the offset is used to indicate the starting point of the target field in the data packet to be matched, and the length indicates the target field length, the reference value is used to match the value of the target field; generate a policy and charging control PCC rule, the PCC rule includes the flow description information; send the PCC rule to the session management network element.
在一种可能的实现方法中,接收来自应用功能网元的策略授权请求,该策略授权请求中包含该流描述信息。In a possible implementation method, a policy authorization request from an application function network element is received, and the policy authorization request includes the flow description information.
在一种可能的实现方法中,接收来自该会话管理网元的策略关联更新请求,该策略关联更新请求中包含来自终端的该流描述信息。In a possible implementation method, a policy association update request from the session management network element is received, and the policy association update request includes the flow description information from the terminal.
第四方面,本申请实施例提供一种通信装置,该装置可以是通信设备,还可以是用于通信设备的芯片,该通信设备可以是终端或用户面网元。该装置具有实现上述第一方面的任意实现方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a fourth aspect, the embodiment of the present application provides a communication device. The device may be a communication device, and may also be a chip used for the communication device. The communication device may be a terminal or a user plane network element. The device has the function of realizing any realization method of the first aspect above. This function may be implemented by hardware, or may be implemented by executing corresponding software on the hardware. The hardware or software includes one or more modules corresponding to the above functions.
第五方面,本申请实施例提供一种通信装置,该装置可以是会话管理网元,还可以是用于会话管理网元的芯片。该装置具有实现上述第二方面的任意实现方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a fifth aspect, the embodiment of the present application provides a communication device, and the device may be a session management network element, or may be a chip used for the session management network element. The device has the function of implementing any implementation method of the second aspect above. This function may be implemented by hardware, or may be implemented by executing corresponding software on the hardware. The hardware or software includes one or more modules corresponding to the above functions.
第六方面,本申请实施例提供一种通信装置,该装置可以是策略控制网元,还可以是用于策略控制的芯片。该装置具有实现上述第三方面的任意实现方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a sixth aspect, the embodiment of the present application provides a communication device, and the device may be a policy control network element, or may be a chip for policy control. The device has the function of realizing any realization method of the third aspect above. This function may be implemented by hardware, or may be implemented by executing corresponding software on the hardware. The hardware or software includes one or more modules corresponding to the above functions.
第七方面,本申请实施例提供一种通信装置,包括处理器和存储器;该存储器用于存储计算机指令,当该装置运行时,该处理器执行该存储器存储的计算机指令,以使该装置 执行上述第一方面至第三方面中的任意实现方法。In the seventh aspect, the embodiment of the present application provides a communication device, including a processor and a memory; the memory is used to store computer instructions, and when the device is running, the processor executes the computer instructions stored in the memory so that the device executes Any implementation method in the first aspect to the third aspect above.
第八方面,本申请实施例提供一种通信装置,包括用于执行上述第一方面至第三方面中的任意实现方法的各个步骤的单元或手段(means)。In an eighth aspect, the embodiment of the present application provides a communication device, including a unit or means (means) for performing each step of any implementation method in the first aspect to the third aspect.
第九方面,本申请实施例提供一种通信装置,包括处理器和接口电路,所述处理器用于通过接口电路与其它装置通信,并执行上述第一方面至第三方面中的任意实现方法。该处理器包括一个或多个。In a ninth aspect, the embodiment of the present application provides a communication device, including a processor and an interface circuit, the processor is configured to communicate with other devices through the interface circuit, and execute any implementation method in the first aspect to the third aspect above. The processor includes one or more.
第十方面,本申请实施例提供一种通信装置,包括与存储器耦合的处理器,该处理器用于调用所述存储器中存储的程序,以执行上述第一方面至第三方面中的任意实现方法。该存储器可以位于该装置之内,也可以位于该装置之外。且该处理器可以是一个或多个。In the tenth aspect, the embodiment of the present application provides a communication device, including a processor coupled to the memory, and the processor is used to call the program stored in the memory to execute any implementation method in the first aspect to the third aspect above . The memory may be located within the device or external to the device. And there may be one or more processors.
第十一方面,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在通信装置上运行时,使得上述第一方面至第三方面中的任意实现方法被执行。In the eleventh aspect, the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores instructions, and when it is run on a communication device, the above-mentioned first to third aspects Any implementation method of is executed.
第十二方面,本申请实施例还提供一种计算机程序产品,该计算机程序产品包括计算机程序或指令,当计算机程序或指令被通信装置运行时,使得上述第一方面至第三方面中的任意实现方法被执行。In the twelfth aspect, the embodiment of the present application also provides a computer program product, the computer program product includes a computer program or instruction, when the computer program or instruction is run by a communication device, any of the above first to third aspects The implementation method is executed.
第十三方面,本申请实施例还提供一种芯片系统,包括:处理器,用于执行上述第一方面至第三方面中的任意实现方法。In a thirteenth aspect, the embodiment of the present application further provides a chip system, including: a processor, configured to execute any implementation method in the first aspect to the third aspect above.
第十四方面,本申请实施例还提供了一种通信系统,该通信系统包括用于执行上述第二方面的任意实现方法的会话管理网元和用于执行上述第三方面的任意实现方法的策略控制网元。In a fourteenth aspect, the embodiment of the present application further provides a communication system, the communication system includes a session management network element for performing any implementation method of the above second aspect and a session management network element for performing any implementation method of the above third aspect Policies control network elements.
在一种可能的实现方法中,该通信系统还包括用于执行上述第一方面的任意实现方法的用户面网元。In a possible implementation method, the communication system further includes a user plane network element configured to execute any implementation method of the foregoing first aspect.
第十五方面,本申请实施例还提供了一种通信系统,该通信系统包括用于执行上述第一方面的任意实现方法的用户面网元和用于执行上述第二方面的任意实现方法的会话管理网元。In a fifteenth aspect, the embodiment of the present application further provides a communication system, the communication system includes a user plane network element for performing any implementation method of the above-mentioned first aspect and a network element for performing any implementation method of the above-mentioned second aspect Session management network element.
图1为本申请实施例提供的一种通信系统示意图;FIG. 1 is a schematic diagram of a communication system provided by an embodiment of the present application;
图2(a)为基于服务化架构的5G网络架构示意图;Figure 2(a) is a schematic diagram of a 5G network architecture based on a service architecture;
图2(b)为基于点对点接口的5G网络架构示意图;Figure 2(b) is a schematic diagram of a 5G network architecture based on a point-to-point interface;
图3(a)为本申请实施例提供的一种通信方法示意图;FIG. 3(a) is a schematic diagram of a communication method provided by an embodiment of the present application;
图3(b)为本申请实施例提供的一种通信方法示意图;FIG. 3(b) is a schematic diagram of a communication method provided by an embodiment of the present application;
图4为本申请实施例提供的一种通信方法示意图;FIG. 4 is a schematic diagram of a communication method provided by an embodiment of the present application;
图5为本申请实施例提供的一种通信装置示意图;FIG. 5 is a schematic diagram of a communication device provided in an embodiment of the present application;
图6为本申请实施例提供的一种通信装置示意图。FIG. 6 is a schematic diagram of a communication device provided by an embodiment of the present application.
为了使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请作进一步地详细描述。方法实施例中的具体操作方法也可以应用于装置实施例或系统实施例中。In order to make the purpose, technical solution and advantages of the application clearer, the application will be further described in detail below in conjunction with the accompanying drawings. The specific operation methods in the method embodiments can also be applied to the device embodiments or system embodiments.
为实现对数据包做精确匹配,如图1所示,本申请提供一种通信系统,该系统包括用户面网元和会话管理网元。可选的,该系统还包括策略控制网元。In order to achieve precise matching of data packets, as shown in FIG. 1 , the present application provides a communication system, which includes a user plane network element and a session management network element. Optionally, the system also includes a policy control network element.
会话管理网元,用于接收来自策略控制网元的策略计费控制(Policy and Charging Control,PCC)规则,该PCC规则中包含第一流描述信息;其中,该第一流描述信息中包含偏移量、长度和参考值,该偏移量用于指示待匹配的数据包中的目标字段的起始点,该长度表示该目标字段的长度,该参考值用于匹配该目标字段的取值;根据该PCC规则生成PDR;向用户面网元发送该PDR,该PDR中包含该第一流描述信息和为该PCC规则分配的QFI;用户面网元,用于将第一数据包与该第一流描述信息进行匹配;当该第一数据包与该第一流描述信息匹配,在该第一数据包的包头添加该第一流描述信息对应的QFI,得到第二数据包;发送该第二数据包。The session management network element is configured to receive a policy and charging control (Policy and Charging Control, PCC) rule from a policy control network element, where the PCC rule includes first flow description information; wherein, the first flow description information includes an offset , length and reference value, the offset is used to indicate the starting point of the target field in the data packet to be matched, the length indicates the length of the target field, and the reference value is used to match the value of the target field; according to the The PCC rule generates a PDR; sends the PDR to the user plane network element, the PDR includes the first flow description information and the QFI allocated for the PCC rule; the user plane network element is used to combine the first data packet with the first flow description information performing matching; when the first data packet matches the first flow description information, adding the QFI corresponding to the first flow description information to the header of the first data packet to obtain a second data packet; sending the second data packet.
在一种可能的实现方法中,会话管理网元,还用于根据该PCC规则生成QoS规则;向终端发送该QoS规则,该QoS规则中包含该QFI和第二流描述信息。In a possible implementation method, the session management network element is further configured to generate a QoS rule according to the PCC rule; and send the QoS rule to the terminal, and the QoS rule includes the QFI and the second flow description information.
在一种可能的实现方法中,该第一流描述信息包括上行流描述信息和下行流描述信息,该上行流描述信息用于匹配上行流,该下行流描述信息用于匹配下行流;该第二流描述信息包括该上行流描述信息,或者该第二流描述信息与该第一流描述信息相同。In a possible implementation method, the first flow description information includes upstream flow description information and downstream flow description information, the upstream flow description information is used to match the upstream flow, and the downstream flow description information is used to match the downstream flow; the second flow description information is used to match the downstream flow; The flow description information includes the upstream flow description information, or the second flow description information is the same as the first flow description information.
在一种可能的实现方法中,该PCC规则中还包含QoS参数;会话管理网元,还用于根据该PCC规则,生成QoS配置,该QoS配置中包含该QoS参数;向接入网设备发送该QFI和该QoS配置。In a possible implementation method, the PCC rule also includes a QoS parameter; the session management network element is also used to generate a QoS configuration according to the PCC rule, and the QoS configuration includes the QoS parameter; and send the QoS parameter to the access network device The QFI and the QoS configuration.
在一种可能的实现方法中,会话管理网元,还用于接收来自该终端的会话修改请求,该会话修改请求中包含该第一流描述信息;向策略控制网元发送该策略关联更新请求,该策略关联更新请求中包含该第一流描述信息。In a possible implementation method, the session management network element is further configured to receive a session modification request from the terminal, where the session modification request includes the first flow description information; send the policy association update request to the policy control network element, The policy association update request includes the first flow description information.
在一种可能的实现方法中,用户面网元,用于将第一数据包与第一流描述信息进行匹配;当该第一数据包与该第一流描述信息匹配,在该第一数据包的包头添加该第一流描述信息对应的QFI,得到第二数据包;发送该第二数据包。In a possible implementation method, the user plane network element is configured to match the first data packet with the first flow description information; when the first data packet matches the first flow description information, in the first data packet Adding the QFI corresponding to the first flow description information to the packet header to obtain a second data packet; sending the second data packet.
在一种可能的实现方法中,用户面网元,用于该将第一数据包与第一流描述信息进行匹配,具体包括:用于根据偏移起始点和该偏移量,确定该第一数据包中的目标字段的起始点;根据该第一数据包中的目标字段的起始点和该长度,确定该第一数据包中的目标字段;根据该第一数据包中的目标字段的取值和该参考值,判断该第一数据包与该第一流描述信息是否匹配。In a possible implementation method, the user plane network element is configured to match the first data packet with the first flow description information, specifically including: determining the first flow description information according to the offset starting point and the offset The starting point of the target field in the data packet; according to the starting point and the length of the target field in the first data packet, determine the target field in the first data packet; according to the acquisition of the target field in the first data packet value and the reference value, and determine whether the first data packet matches the first flow description information.
在一种可能的实现方法中,该偏移起始点是预配置的或协议预定义的。In a possible implementation method, the offset starting point is pre-configured or predefined by the protocol.
在一种可能的实现方法中,该第一流描述信息中还包含指示信息,该指示信息用于指示该偏移起始点。In a possible implementation method, the first stream description information further includes indication information, where the indication information is used to indicate the offset starting point.
在一种可能的实现方法中,该偏移起始点是该第一数据包中的负荷的起始点或该第一数据包的起始点。In a possible implementation method, the offset starting point is the starting point of the payload in the first data packet or the starting point of the first data packet.
在一种可能的实现方法中,用户面网元,用于根据该第一数据包中的目标字段的取值和该参考值,判断该第一数据包与该流描述信息是否匹配,具体包括:用于当该第一数据包中的目标字段的取值与该参考值相同,确定该第一数据包与该流第二描述信息匹配;或者,当该第一数据包中的目标字段的取值与该参考值不同,确定该第一数据包与该第一流描述信息不匹配。In a possible implementation method, the user plane network element is configured to determine whether the first data packet matches the flow description information according to the value of the target field in the first data packet and the reference value, specifically including : used to determine that the first data packet matches the second description information of the flow when the value of the target field in the first data packet is the same as the reference value; or, when the value of the target field in the first data packet If the value is different from the reference value, it is determined that the first data packet does not match the first flow description information.
在一种可能的实现方法中,该第一流描述信息中还包含匹配规则;用户面网元,用于 根据该第一数据包中的目标字段的取值和该参考值,判断该第一数据包与该第一流描述信息是否匹配,具体包括:当该第一数据包中的目标字段的取值与该参考值满足该匹配规则,确定该第一数据包与该第一流描述信息匹配;或者,当该第一数据包中的目标字段的取值与该参考值不满足该匹配规则,确定该第一数据包与该第一流描述信息不匹配。In a possible implementation method, the first flow description information also includes a matching rule; the user plane network element is configured to judge the first data flow according to the value of the target field in the first data packet and the reference value Whether the packet matches the first flow description information specifically includes: determining that the first data packet matches the first flow description information when the value of the target field in the first data packet and the reference value satisfy the matching rule; or , when the value of the target field in the first data packet and the reference value do not satisfy the matching rule, it is determined that the first data packet does not match the first flow description information.
在一种可能的实现方法中,该匹配规则为大于、小于、等于或函数关系。In a possible implementation method, the matching rule is greater than, less than, equal to, or a functional relationship.
在一种可能的实现方法中,策略控制网元,用于获取该第一流描述信息;生成该PCC规则;向会话管理网元发送该PCC规则。In a possible implementation method, the policy control network element is configured to obtain the first flow description information; generate the PCC rule; and send the PCC rule to the session management network element.
在一种可能的实现方法中,策略控制网元,用于获取第一流描述信息,具体包括:用于接收来自应用功能网元的策略授权请求,该策略授权请求中包含该第一流描述信息。In a possible implementation method, the policy control network element is configured to obtain the first flow description information, specifically including: receiving a policy authorization request from an application function network element, where the policy authorization request includes the first flow description information.
在一种可能的实现方法中,策略控制网元,用于获取第一流描述信息,具体包括:用于接收来自该会话管理网元的策略关联更新请求,该策略关联更新请求中包含来自终端的该第一流描述信息。In a possible implementation method, the policy control network element is used to obtain the first flow description information, which specifically includes: receiving a policy association update request from the session management network element, and the policy association update request includes information from the terminal. The first stream describes information.
图1所示的系统可以用在图2(a)或图2(b)所示的5G网络架构中,当然,也可以用在未来网络架构,比如第六代(6th generation,6G)网络架构等,本申请不做限定。The system shown in Figure 1 can be used in the 5G network architecture shown in Figure 2(a) or Figure 2(b), of course, it can also be used in future network architectures, such as the sixth generation (6th generation, 6G) network architecture etc., this application does not make a limitation.
图2(a)为基于服务化架构的5G网络架构示意图。图2(a)所示的5G网络架构中可包括数据网络(data network,DN)和运营商网络。下面对其中的部分网元的功能进行简单介绍说明。Figure 2(a) is a schematic diagram of a 5G network architecture based on a service-based architecture. The 5G network architecture shown in Figure 2(a) may include a data network (data network, DN) and an operator network. The functions of some of the network elements are briefly introduced and described below.
其中,运营商网络可包括以下网元中的一个或多个:鉴权服务器功能(Authentication Server Function,AUSF)网元、网络开放功能(network exposure function,NEF)网元、策略控制功能(policy control function,PCF)网元、统一数据管理(unified data management,UDM)网元、统一数据库(Unified Data Repository,UDR)、网络存储功能(Network Repository Function,NRF)网元、应用功能(application function,AF)网元、接入与移动性管理功能(access and mobility management function,AMF)网元、会话管理功能(session management function,SMF)网元、无线接入网(radio access network,RAN)设备以及用户面功能(user plane function,UPF)网元、网络切片选择功能(Network Slice Selection Function,NSSF)网元(图中未示出)等。上述运营商网络中,除无线接入网设备之外的网元或设备可以称为核心网网元或核心网设备。Wherein, the operator network may include one or more of the following network elements: authentication server function (Authentication Server Function, AUSF) network element, network exposure function (network exposure function, NEF) network element, policy control function (policy control function, PCF) network element, unified data management (unified data management, UDM) network element, unified database (Unified Data Repository, UDR), network storage function (Network Repository Function, NRF) network element, application function (application function, AF) ) network elements, access and mobility management function (access and mobility management function, AMF) network elements, session management function (session management function, SMF) network elements, radio access network (radio access network, RAN) equipment and users Plane function (user plane function, UPF) network element, network slice selection function (Network Slice Selection Function, NSSF) network element (not shown in the figure), etc. In the above operator network, network elements or devices other than radio access network devices may be referred to as core network elements or core network devices.
无线接入网设备可以是基站(base station)、演进型基站(evolved NodeB,eNodeB)、发送接收点(transmission reception point,TRP)、5G移动通信系统中的下一代基站(next generation NodeB,gNB)、6G移动通信系统中的下一代基站、未来移动通信系统中的基站或无线保真(wireless fidelity,WiFi)系统中的接入节点等;也可以是完成基站部分功能的模块或单元,例如,可以是集中式单元(central unit,CU),也可以是分布式单元(distributed unit,DU)。无线接入网设备可以是宏基站,也可以是微基站或室内站,还可以是中继节点或施主节点等。本申请的实施例对无线接入网设备所采用的具体技术和具体设备形态不做限定。The wireless access network equipment can be a base station (base station), an evolved base station (evolved NodeB, eNodeB), a transmission reception point (transmission reception point, TRP), and a next generation base station (next generation NodeB, gNB) in a 5G mobile communication system , a next-generation base station in a 6G mobile communication system, a base station in a future mobile communication system, or an access node in a wireless fidelity (Wireless Fidelity, WiFi) system, etc.; it can also be a module or unit that completes some functions of the base station, for example, It can be a centralized unit (central unit, CU) or a distributed unit (distributed unit, DU). The radio access network equipment may be a macro base station, a micro base station or an indoor station, or a relay node or a donor node. The embodiment of the present application does not limit the specific technology and specific equipment form adopted by the radio access network equipment.
与RAN通信的终端也可以称为终端设备、用户设备(user equipment,UE)、移动台、移动终端等。终端可以广泛应用于各种场景,例如,设备到设备(device-to-device,D2D)、车物(vehicle to everything,V2X)通信、机器类通信(machine-type communication,MTC)、物联网(internet of things,IOT)、虚拟现实、增强现实、工业控制、自动驾驶、远程医疗、 智能电网、智能家具、智能办公、智能穿戴、智能交通、智慧城市等。终端可以是手机、平板电脑、带无线收发功能的电脑、可穿戴设备、车辆、无人机、直升机、飞机、轮船、机器人、机械臂、智能家居设备等。本申请的实施例对终端所采用的具体技术和具体设备形态不做限定。The terminal communicating with the RAN may also be called terminal equipment, user equipment (user equipment, UE), mobile station, mobile terminal, and so on. Terminals can be widely used in various scenarios, such as device-to-device (D2D), vehicle-to-everything (V2X) communication, machine-type communication (MTC), Internet of Things ( Internet of things, IOT), virtual reality, augmented reality, industrial control, automatic driving, telemedicine, smart grid, smart furniture, smart office, smart wearables, smart transportation, smart city, etc. Terminals can be mobile phones, tablet computers, computers with wireless transceiver functions, wearable devices, vehicles, drones, helicopters, airplanes, ships, robots, robotic arms, smart home devices, etc. The embodiment of the present application does not limit the specific technology and specific device form adopted by the terminal.
基站和终端可以是固定位置的,也可以是可移动的。基站和终端可以部署在陆地上,包括室内或室外、手持或车载;也可以部署在水面上;还可以部署在空中的飞机、气球和人造卫星上。本申请的实施例对基站和终端的应用场景不做限定。Base stations and terminals can be fixed or mobile. Base stations and terminals can be deployed on land, including indoors or outdoors, handheld or vehicle-mounted; they can also be deployed on water; they can also be deployed on aircraft, balloons and artificial satellites in the air. The embodiments of the present application do not limit the application scenarios of the base station and the terminal.
AMF网元,执行移动性管理、接入鉴权/授权等功能。此外,还负责在终端与PCF间传递用户策略。The AMF network element performs functions such as mobility management and access authentication/authorization. In addition, it is also responsible for transferring user policies between the terminal and the PCF.
SMF网元,执行会话管理、PCF下发控制策略的执行、UPF的选择、终端的互联网协议(internet protocol,IP)地址分配等功能。The SMF network element performs functions such as session management, execution of control policies issued by the PCF, selection of UPF, and allocation of Internet Protocol (IP) addresses for terminals.
UPF网元,作为和数据网络的接口UPF,完成用户面数据转发、基于会话/流级的计费统计,带宽限制等功能。The UPF network element, as the interface UPF with the data network, completes functions such as user plane data forwarding, session/flow-based charging statistics, and bandwidth limitation.
UDM网元,执行管理签约数据、用户接入授权等功能。The UDM network element performs functions such as managing subscription data and user access authorization.
UDR,执行签约数据、策略数据、应用数据等类型数据的存取功能。UDR implements the access function of contract data, policy data, application data and other types of data.
NEF网元,用于支持能力和事件的开放。NEF network elements are used to support the opening of capabilities and events.
AF网元,传递应用侧对网络侧的需求,例如,QoS需求或用户状态事件订阅等。AF可以是第三方功能实体,也可以是运营商部署的应用服务,如IP多媒体子系统(IP Multimedia Subsystem,IMS)语音呼叫业务。The AF network element transmits the requirements from the application side to the network side, such as QoS requirements or user status event subscription. The AF may be a third-party functional entity, or an application service deployed by an operator, such as an IP Multimedia Subsystem (IP Multimedia Subsystem, IMS) voice call service.
PCF网元,负责针对会话、业务流级别进行计费、QoS带宽保障及移动性管理、终端策略决策等策略控制功能。The PCF network element is responsible for policy control functions such as charging for sessions and service flow levels, QoS bandwidth guarantee, mobility management, and terminal policy decision-making.
NRF网元,可用于提供网元发现功能,基于其他网元的请求,提供网元类型对应的网元信息。NRF还提供网元管理服务,如网元注册、更新、去注册以及网元状态订阅和推送等。The NRF network element can be used to provide a network element discovery function, and provide network element information corresponding to the network element type based on the request of other network elements. NRF also provides network element management services, such as network element registration, update, de-registration, network element status subscription and push, etc.
AUSF网元,负责对用户进行鉴权,以确定是否允许用户或设备接入网络。The AUSF network element is responsible for authenticating users to determine whether users or devices are allowed to access the network.
NSSF网元,用于选择网络切片,对网络切片内的用户进行计数等。The NSSF network element is used to select a network slice and count users in the network slice.
DN,是位于运营商网络之外的网络,运营商网络可以接入多个DN,DN上可部署多种业务,可为终端提供数据和/或语音等服务。例如,DN是某智能工厂的私有网络,智能工厂安装在车间的传感器可为终端,DN中部署了传感器的控制服务器,控制服务器可为传感器提供服务。传感器可与控制服务器通信,获取控制服务器的指令,根据指令将采集的传感器数据传送给控制服务器等。又例如,DN是某公司的内部办公网络,该公司员工的手机或者电脑可为终端,员工的手机或者电脑可以访问公司内部办公网络上的信息、数据资源等。DN is a network outside the operator's network. The operator's network can access multiple DNs, and various services can be deployed on the DN, which can provide data and/or voice services for terminals. For example, DN is a private network of a smart factory. The sensors installed in the workshop of the smart factory can be terminals, and the control server of the sensors is deployed in the DN, and the control server can provide services for the sensors. The sensor can communicate with the control server, obtain instructions from the control server, and transmit the collected sensor data to the control server according to the instructions. For another example, DN is a company's internal office network. The mobile phone or computer of the company's employees can be a terminal, and the employee's mobile phone or computer can access information and data resources on the company's internal office network.
图2(a)中Nausf、Nnef、Npcf、Nudm、Naf、Namf、Nsmf分别为上述AUSF、NEF、PCF、UDM、AF、AMF和SMF提供的服务化接口,用于调用相应的服务化操作。N1、N2、N3、N4,以及N6为接口序列号。这些接口序列号的含义可参见第三代合作伙伴计划(3rd generation partnership project,3GPP)标准协议中定义的含义,在此不做限制。In Figure 2(a), Nausf, Nnef, Npcf, Nudm, Naf, Namf, and Nsmf are the service interfaces provided by the above-mentioned AUSF, NEF, PCF, UDM, AF, AMF, and SMF, respectively, and are used to call corresponding service operations. N1, N2, N3, N4, and N6 are interface serial numbers. The meanings of these interface serial numbers may refer to the meanings defined in the third generation partnership project (3rd generation partnership project, 3GPP) standard agreement, and no limitation is made here.
图2(b)为基于点对点接口的5G网络架构示意图,其中的网元的功能的介绍可以参考图2(a)中对应的网元的功能的介绍,不再赘述。图2(b)与图2(a)的主要区别在于:图2(a) 中的各个控制面网元之间的接口是服务化的接口,图2(b)中的各个控制面网元之间的接口是点对点的接口。Figure 2(b) is a schematic diagram of a 5G network architecture based on a point-to-point interface, and the introduction of the functions of the network elements can refer to the introduction of the functions of the corresponding network elements in Figure 2(a), and will not be repeated here. The main difference between Figure 2(b) and Figure 2(a) is that the interface between each control plane network element in Figure 2(a) is a service interface, and each control plane network element in Figure 2(b) The interface between them is a point-to-point interface.
在图2(b)所示的架构中,各个网元之间的接口名称及功能如下:In the architecture shown in Figure 2(b), the interface names and functions between each network element are as follows:
1)、N1:AMF与终端之间的接口,可以用于向终端传递QoS控制规则等。1), N1: the interface between the AMF and the terminal, which can be used to transmit QoS control rules and the like to the terminal.
2)、N2:AMF与RAN之间的接口,可以用于传递核心网侧至RAN的无线承载控制信息等。2), N2: the interface between the AMF and the RAN, which can be used to transfer radio bearer control information from the core network side to the RAN.
3)、N3:RAN与UPF之间的接口,主要用于传递RAN与UPF间的上下行用户面数据。3), N3: the interface between the RAN and the UPF, mainly used to transfer the uplink and downlink user plane data between the RAN and the UPF.
4)、N4:SMF与UPF之间的接口,可以用于控制面与用户面之间传递信息,包括控制面向用户面的转发规则、QoS控制规则、流量统计规则等的下发以及用户面的信息上报。4), N4: The interface between SMF and UPF, which can be used to transfer information between the control plane and the user plane, including controlling the distribution of forwarding rules, QoS control rules, traffic statistics rules, etc. Information reporting.
5)、N5:AF与PCF之间的接口,可以用于应用业务请求下发以及网络事件上报。5), N5: the interface between the AF and the PCF, which can be used for sending application service requests and reporting network events.
6)、N6:UPF与DN的接口,用于传递UPF与DN之间的上下行用户数据流。6), N6: the interface between UPF and DN, used to transfer the uplink and downlink user data flow between UPF and DN.
7)、N7:PCF与SMF之间的接口,可以用于下发协议数据单元(protocol data unit,PDU)会话粒度以及业务数据流粒度控制策略。7), N7: the interface between PCF and SMF, which can be used to deliver protocol data unit (protocol data unit, PDU) session granularity and service data flow granularity control policy.
8)、N8:AMF与UDM间的接口,可以用于AMF向UDM获取接入与移动性管理相关签约数据与鉴权数据,以及AMF向UDM注册终端当前移动性管理相关信息等。8), N8: The interface between AMF and UDM, which can be used for AMF to obtain subscription data and authentication data related to access and mobility management from UDM, and for AMF to register terminal current mobility management related information with UDM.
9)、N9:UPF和UPF之间的用户面接口,用于传递UPF间的上下行用户数据流。9), N9: a user plane interface between UPF and UPF, used to transmit uplink and downlink user data flows between UPFs.
10)、N10:SMF与UDM间的接口,可以用于SMF向UDM获取会话管理相关签约数据,以及SMF向UDM注册终端当前会话相关信息等。10), N10: the interface between SMF and UDM, which can be used for SMF to obtain session management-related subscription data from UDM, and for SMF to register terminal current session-related information with UDM.
11)、N11:SMF与AMF之间的接口,可以用于传递RAN和UPF之间的PDU会话隧道信息、传递发送给终端的控制消息、传递发送给RAN的无线资源控制信息等。11), N11: the interface between SMF and AMF, which can be used to transfer PDU session tunnel information between RAN and UPF, transfer control messages sent to terminals, transfer radio resource control information sent to RAN, etc.
12)、N12:AMF和AUSF间的接口,可以用于AMF向AUSF发起鉴权流程,其中可携带SUCI作为签约标识;12), N12: the interface between AMF and AUSF, which can be used for AMF to initiate an authentication process to AUSF, which can carry SUCI as a subscription identifier;
13)、N13:UDM与AUSF间的接口,可以用于AUSF向UDM获取用户鉴权向量,以执行鉴权流程。13), N13: the interface between UDM and AUSF, which can be used for AUSF to obtain user authentication vector from UDM to execute the authentication process.
14)、N15:PCF与AMF之间的接口,可以用于下发终端策略及接入控制相关策略。14), N15: the interface between the PCF and the AMF, which can be used to issue terminal policies and access control-related policies.
15)、N35:UDM与UDR间的接口,可以用于UDM从UDR中获取用户签约数据信息。15), N35: the interface between UDM and UDR, which can be used for UDM to obtain user subscription data information from UDR.
16)、N36:PCF与UDR间的接口,可以用于PCF从UDR中获取策略相关签约数据以及应用数据相关信息。16), N36: the interface between the PCF and the UDR, which can be used for the PCF to obtain policy-related subscription data and application data-related information from the UDR.
可以理解的是,上述网元或者功能既可以是硬件设备中的网络元件,也可以是在专用硬件上运行软件功能,或者是平台(例如,云平台)上实例化的虚拟化功能。可选的,上述网元或者功能可以由一个设备实现,也可以由多个设备共同实现,还可以是一个设备内的一个功能模块,本申请实施例对此不作具体限定。It can be understood that the above-mentioned network element or function may be a network element in a hardware device, or a software function running on dedicated hardware, or a virtualization function instantiated on a platform (for example, a cloud platform). Optionally, the foregoing network element or function may be implemented by one device, or jointly implemented by multiple devices, or may be a functional module in one device, which is not specifically limited in this embodiment of the present application.
本申请中的会话管理网元、用户面网元、策略控制网元分别可以是图2(a)或图2(b)中的SMF、UPF、PCF,也可以是未来通信如6G网络中具有上述SMF、UPF、PCF的功能的网元,本申请对此不限定。在本申请的实施例中,以SMF、UPF、PCF分别作为会话管理网元、用户面网元、策略控制网元的一个举例进行描述。The session management network element, user plane network element, and policy control network element in this application can be the SMF, UPF, and PCF in Figure 2(a) or Figure 2(b), respectively, or they can be The above-mentioned network elements with functions of SMF, UPF, and PCF are not limited in this application. In the embodiment of the present application, SMF, UPF, and PCF are respectively used as an example of a session management network element, a user plane network element, and a policy control network element for description.
本申请实施例中的接入网设备可以是无线接入网设备,为便于说明,在本申请的实施例中,以基站作为接入网设备的一个举例进行描述。The access network device in the embodiment of the present application may be a wireless access network device. For convenience of description, in the embodiment of the present application, a base station is used as an example of the access network device for description.
目前,在实际场景中,多个业务流的数据包可能具有相同的IP包头特征或以太网包头特征,因此仅依赖现有的包过滤器,可能无法对数据包做有效的区分,导致无法满足上下行业务流更细粒度的业务需求。下面结合一个示例进行说明。At present, in actual scenarios, data packets of multiple service flows may have the same IP header characteristics or Ethernet packet header characteristics, so only relying on existing packet filters may not be able to effectively distinguish data packets, resulting in failure to meet More fine-grained business requirements for uplink and downlink business flows. Let's illustrate with an example.
以工业场景Profinet为例,实时通信(real-time,RT)的数据包通常对时延要求在10毫秒(ms)以内,对应的协议为802.1Q协议。数据包的结构如表1所示。Taking Profinet in industrial scenarios as an example, real-time communication (real-time, RT) data packets usually require a delay within 10 milliseconds (ms), and the corresponding protocol is the 802.1Q protocol. The structure of the data packet is shown in Table 1.
表1Table 1
该数据包可用于周期用户数据、事件驱动信息、报警信息等的传输。网络侧可对于上述不同业务类型的数据包通常可采用不同的QoS保障需求。比如,针对周期用户数据,由基站基于单独的5QI所配置的上行预调度策略对周期用户数据进行预先分配调度资源,从而极大降低上行调度时延。This data packet can be used for the transmission of periodic user data, event-driven information, alarm information, etc. The network side may generally adopt different QoS guarantee requirements for the above-mentioned data packets of different service types. For example, for periodic user data, the base station pre-allocates scheduling resources for periodic user data based on an uplink pre-scheduling policy configured by a separate 5QI, thereby greatly reducing uplink scheduling delay.
当前所定义的以太网类型的包过滤器仅支持识别至以太网类型字段,且部分交换机由于不支持802.1Q协议,因此将会对虚拟局域网(virtual local area network,VLAN)标签字段的信息进行丢弃,从而导致只能基于源地址、目的地址以及以太网类型等特征对RT数据包进行识别。然而,对于上述几种不同业务类型的RT数据包,即周期用户数据的数据包、携带事件驱动信息的数据包、携带报警信息的数据包,这些数据包的包头具有携带相同的源地址、目的地址以及以太网类型,从而导致终端或UPF根据包过滤器对数据包的包头进行识别时,无法判断数据包对应的实际业务类型,从而无法准确完成数据包至QoS流的映射。The currently defined Ethernet type packet filter only supports identification to the Ethernet type field, and some switches will discard the information in the virtual local area network (virtual local area network, VLAN) tag field because they do not support the 802.1Q protocol , so that the RT data packet can only be identified based on characteristics such as source address, destination address, and Ethernet type. However, for the above-mentioned RT data packets of different service types, that is, data packets of periodic user data, data packets carrying event-driven information, and data packets carrying alarm information, the headers of these data packets have the same source address, destination Address and Ethernet type, so that when the terminal or UPF identifies the header of the data packet according to the packet filter, it cannot judge the actual service type corresponding to the data packet, so that the mapping from the data packet to the QoS flow cannot be accurately completed.
为解决上述问题,本申请实施例提供一种通信方法,该方法可以由通信设备或用于通信设备的模块(如芯片等)执行,该通信设备可以是终端或UPF。参考图3(a),该方法包括以下步骤:To solve the above problem, an embodiment of the present application provides a communication method, the method may be executed by a communication device or a module (such as a chip) used for the communication device, and the communication device may be a terminal or a UPF. With reference to Fig. 3 (a), this method comprises the following steps:
步骤301a,将第一数据包与流描述信息进行匹配。 Step 301a, matching the first data packet with the flow description information.
其中,流描述信息中包含偏移量(offset)、长度(length)和参考值(value)。Wherein, the flow description information includes an offset (offset), a length (length) and a reference value (value).
偏移量用于指示待匹配的数据包中的目标字段的起始点,具体的,偏移量表示从偏移起始点开始往前或往后的偏移量,当偏移量为正数时,表示从偏移起始点开始往后偏移,当偏移量为负数时,表示从偏移起始点开始往前偏移。通过偏移量,可以获取目标字段的起始点。长度表示目标字段的长度。通过偏移量和长度,可以获取到目标字段。参考值用于匹配目标字段的取值,也即通过判断待匹配的数据包的目标字段的实际取值与该参考值之间的关系,来判断该数据包是否与该流描述信息匹配。The offset is used to indicate the starting point of the target field in the data packet to be matched. Specifically, the offset indicates the forward or backward offset from the offset starting point. When the offset is a positive number , which means backward offset from the offset start point, and when the offset is negative, it means forward offset from the offset start point. Through the offset, the starting point of the target field can be obtained. length indicates the length of the target field. Through the offset and length, the target field can be obtained. The reference value is used to match the value of the target field, that is, by judging the relationship between the actual value of the target field of the data packet to be matched and the reference value, it is judged whether the data packet matches the flow description information.
作为一种实现方法,将第一数据包与流描述信息进行匹配,具体可以是:根据偏移起始点和偏移量确定第一数据包中的目标字段的起始点,根据第一数据包中的目标字段的起始点和长度确定第一数据包中的目标字段,以及根据第一数据包中的目标字段的取值和参考值判断第一数据包与流描述信息是否匹配。其中,该偏移起始点可以是预先配置或协议预定义的,或者还可以是通过指示信息指示的,比如在该流描述信息中还可以包含指示信息,用于指示偏移起始点。该偏移起始点可以是第一数据包中的负荷(payload)的起始点 或第一数据包的起始点。As an implementation method, matching the first data packet with the flow description information may specifically be: determine the starting point of the target field in the first data packet according to the offset starting point and the offset, and determine the starting point of the target field in the first data packet according to The starting point and length of the target field of the first data packet determine the target field in the first data packet, and judge whether the first data packet matches the flow description information according to the value and reference value of the target field in the first data packet. Wherein, the offset start point may be pre-configured or predefined by the protocol, or may also be indicated by indication information, for example, the flow description information may further include indication information for indicating the offset start point. The offset starting point may be the starting point of the payload in the first data packet or the starting point of the first data packet.
其中,根据第一数据包中的目标字段的取值和参考值判断第一数据包与流描述信息是否匹配,具体可以是:当第一数据包中的目标字段的取值与流描述信息中的参考值相同,确定第一数据包与流描述信息匹配;或者,当第一数据包中的目标字段的取值与流描述信息中的参考值不同,确定第一数据包与流描述信息不匹配。Wherein, according to the value of the target field in the first data packet and the reference value, it is judged whether the first data packet matches the flow description information. Specifically, it may be: when the value of the target field in the first data packet matches the flow description information The reference value of the same, it is determined that the first data packet matches the flow description information; or, when the value of the target field in the first data packet is different from the reference value in the flow description information, it is determined that the first data packet does not match the flow description information match.
或者,根据第一数据包中的目标字段的取值和参考值判断第一数据包与流描述信息是否匹配,也可以是:当第一数据包中的目标字段的取值与流描述信息中的参考值满足匹配规则,确定第一数据包与流描述信息匹配;或者,当第一数据包中的目标字段的取值与流描述信息中的参考值不满足匹配规则,确定第一数据包与流描述信息不匹配。该匹配规则可以是携带于上述流描述信息中。可选的,该匹配规则可以是大于(>)、小于(<)、等于(=)或函数关系。Or, judging whether the first data packet matches the flow description information according to the value of the target field in the first data packet and the reference value, may also be: when the value of the target field in the first data packet matches the flow description information The reference value of the first data packet satisfies the matching rule, and it is determined that the first data packet matches the flow description information; or, when the value of the target field in the first data packet and the reference value in the flow description information do not meet the matching rule, it is determined that the first data packet Does not match stream description information. The matching rule may be carried in the above flow description information. Optionally, the matching rule may be greater than (>), less than (<), equal to (=) or a functional relationship.
下面结合前述的ProfinetNet场景的示例进行说明。The following will be described in conjunction with the aforementioned example of the ProfinetNet scenario.
在一个示例中,默认偏移起始点为待匹配的数据包中的负荷(playload)的起始点,参考表1,playload的起始点为Frame ID的起始点。当偏移量为0,长度为2字节,参考值为1,其中参考值为1表示周期传输(cyclic transmission),也即用于表示RT流中的周期性业务数据包。因此,根据偏移量和长度,可以获取到业务数据包(比如第一数据包)中的Frame ID字段的取值。并且当Frame ID字段的取值为1时,表示流描述信息与该第一数据包匹配上了,当Frame ID字段的取值不为1时,表示流描述信息与该第一数据包没有匹配上。或者,当上述流描述信息中还包含匹配规则,比如该匹配规则为大于(>),则当Frame ID字段的取值大于1时,表示流描述信息与该第一数据包匹配上了,当Frame ID字段的取值小于或等于1时,表示流描述信息与该第一数据包没有匹配上。In one example, the default offset starting point is the starting point of the payload (playload) in the data packet to be matched. Referring to Table 1, the starting point of the payload is the starting point of the Frame ID. When the offset is 0, the length is 2 bytes, and the reference value is 1, wherein the reference value 1 indicates cyclic transmission, that is, it is used to indicate a periodic service data packet in the RT stream. Therefore, according to the offset and the length, the value of the Frame ID field in the service data packet (such as the first data packet) can be obtained. And when the value of the Frame ID field is 1, it means that the flow description information matches the first data packet, and when the value of the Frame ID field is not 1, it means that the flow description information does not match the first data packet superior. Alternatively, when the above-mentioned flow description information also includes a matching rule, for example, the matching rule is greater than (>), then when the value of the Frame ID field is greater than 1, it means that the flow description information matches the first data packet, when When the value of the Frame ID field is less than or equal to 1, it means that the flow description information does not match the first data packet.
在另一个示例中,将上述示例中的默认偏移起始点修改为待匹配的数据包的起始点,也即数据包的包头起始点,其偏移量取值为a,其中a表示从数据包的包头起始点至Frame ID字段的起始点之间的字节数,则根据偏移量和长度,也可以获取到Frame ID字段的取值。In another example, modify the default offset starting point in the above example to the starting point of the data packet to be matched, that is, the starting point of the packet header of the data packet, and its offset value is a, where a represents the starting point of the data packet The value of the Frame ID field can also be obtained according to the offset and length of the number of bytes between the starting point of the packet header and the starting point of the Frame ID field.
在另一个示例中,也可以在流描述信息中携带指示信息,比如该指示信息指示偏移起始点为负荷(playload)的起始点,则根据该指示信息、偏移量和长度,也可以获取到Frame ID字段的取值。In another example, indication information may also be carried in the flow description information, for example, the indication information indicates that the offset starting point is the starting point of the load (playload), then according to the indication information, offset and length, you can also obtain to the value of the Frame ID field.
步骤302a,当第一数据包与流描述信息匹配,在第一数据包的包头添加流描述信息对应的QFI,得到第二数据包。 Step 302a, when the first data packet matches the flow description information, add the QFI corresponding to the flow description information to the header of the first data packet to obtain the second data packet.
步骤303a,发送第二数据包。 Step 303a, sending the second data packet.
如果执行上述方法的通信设备是终端,则该第二数据包是上行数据包,如果执行上述方法的通信设备是UPF,则该第二数据包是下行数据包。If the communication device executing the above method is a terminal, the second data packet is an uplink data packet; if the communication device executing the above method is a UPF, the second data packet is a downlink data packet.
可选的,当上述目标字段用于指示待匹配的数据包对应的业务类型时,如业务类型是周期性业务或非周期性业务,则通过该流描述信息,对不同数据包对应的业务类型进行区分。Optionally, when the above-mentioned target field is used to indicate the service type corresponding to the data packet to be matched, if the service type is a periodic service or an aperiodic service, then through the flow description information, the service type corresponding to the different data packets Make a distinction.
根据上述步骤301a至步骤303a,通过偏移量、长度和参考值,对业务数据包的目标字段进行精确匹配,可以实现有效区分不同业务类型的数据包,从而有助于网络侧对不同业务类型的数据包执行不同的控制。According to the above step 301a to step 303a, through the offset, length and reference value, the target field of the service data packet is accurately matched, which can effectively distinguish the data packets of different service types, thus helping the network side to identify different service types packets perform different controls.
下面介绍向UPF和/或终端配置流描述信息的实现方法。参考图3(b),为本申请实施例提供的一种通信方法示意图,该方法包括以下步骤:The implementation method of configuring the flow description information to the UPF and/or the terminal is introduced below. Referring to FIG. 3(b), it is a schematic diagram of a communication method provided by an embodiment of the present application, and the method includes the following steps:
步骤301b,PCF获取第一流描述信息。In step 301b, the PCF acquires first flow description information.
该第一流描述信息中包含偏移量、长度和参考值,该偏移量、长度和参考值的含义可以参考前述描述。The first stream description information includes an offset, a length, and a reference value. For meanings of the offset, length, and reference value, reference may be made to the foregoing description.
其中,该第一流描述信息中可以包含上行流描述信息和/或下行流描述信息,上行流描述信息用于匹配上行流,下行流描述信息用于匹配下行流。上行流描述信息中包含第一偏移量、第一长度和第一参考值,下行流描述信息中包含第二偏移量、第二长度和第二参考值。其中,第一偏移量与第二偏移量可以相同也可以不同,第一长度与第二长度可以相同也可以不同,第一参考值与第二参考值可以相同也可以不同。Wherein, the first flow description information may include upstream flow description information and/or downstream flow description information, the upstream flow description information is used to match the upstream flow, and the downstream flow description information is used to match the downstream flow. The upstream description information includes a first offset, the first length, and a first reference value, and the downstream description information includes a second offset, a second length, and a second reference value. Wherein, the first offset and the second offset may be the same or different, the first length and the second length may be the same or different, and the first reference value and the second reference value may be the same or different.
作为一种实现方法,PCF可以从应用功能(AF)网元获取第一流描述信息。例如,PCF接收来自应用功能网元的策略授权请求,该策略授权请求中包含第一流描述信息。As an implementation method, the PCF can obtain first-flow description information from an application function (AF) network element. For example, the PCF receives a policy authorization request from an application function network element, where the policy authorization request includes first flow description information.
作为另一种实现方法,PCF可以从SMF获取第一流描述信息。例如,PCF接收来自SMF的策略关联更新请求,该策略关联更新请求中包含来自终端的会话修改请求,该会话修改请求中包含第一流描述信息。也即,终端向SMF发送携带第一流描述信息的会话修改请求,然后SMF将该第一流描述信息携带于策略关联更新请求中发送至PCF。As another implementation method, the PCF can obtain the first flow description information from the SMF. For example, the PCF receives the policy association update request from the SMF, the policy association update request includes the session modification request from the terminal, and the session modification request includes the first flow description information. That is, the terminal sends a session modification request carrying the first flow description information to the SMF, and then the SMF carries the first flow description information in the policy association update request and sends it to the PCF.
步骤302b,PCF生成PCC规则,该PCC规则中包含第一流描述信息。In step 302b, the PCF generates a PCC rule, and the PCC rule includes the first flow description information.
步骤303b,PCF向SMF发送PCC规则。相应地,SMF接收该PCC规则。In step 303b, the PCF sends the PCC rule to the SMF. Correspondingly, the SMF receives the PCC rule.
步骤304b,SMF根据PCC规则生成PDR,该PDR中包含第一流描述信息和为PCC规则分配的QFI。In step 304b, the SMF generates a PDR according to the PCC rule, and the PDR includes the first flow description information and the QFI allocated for the PCC rule.
步骤305b,SMF向UPF发送PDR。相应地,UPF接收该PDR。In step 305b, the SMF sends a PDR to the UPF. Correspondingly, the UPF receives the PDR.
可选的,还执行以下步骤306b至步骤307b。Optionally, the following steps 306b to 307b are also performed.
步骤306b,SMF根据PCC规则生成QoS规则,该QoS规则中包含第二流描述信息和为PCC规则分配的QFI。In step 306b, the SMF generates a QoS rule according to the PCC rule, and the QoS rule includes the second flow description information and the QFI allocated for the PCC rule.
其中,该第二流描述信息包括上行流描述信息,或者第二流描述信息与第一流描述信息相同,即第二流描述信息是上行流描述信息和下行流描述信息。Wherein, the second flow description information includes upstream flow description information, or the second flow description information is the same as the first flow description information, that is, the second flow description information includes upstream flow description information and downstream flow description information.
步骤307b,SMF向终端发送QoS规则。相应地,终端接收该QoS规则。In step 307b, the SMF sends the QoS rules to the terminal. Correspondingly, the terminal receives the QoS rule.
可选的,还执行以下步骤308b至步骤309b。Optionally, the following steps 308b to 309b are also performed.
步骤308b,SMF根据PCC规则生成QoS配置(QoS profile),该QoS配置中包含QoS参数。In step 308b, the SMF generates a QoS configuration (QoS profile) according to the PCC rule, and the QoS configuration includes QoS parameters.
该QoS参数包括5QI、ARP、GBR等参数信息。The QoS parameters include parameter information such as 5QI, ARP, and GBR.
步骤309b,SMF向基站发送QoS配置和为PCC规则分配的QFI。相应地,基站接收该QoS配置和该QFI。In step 309b, the SMF sends the QoS configuration and the QFI allocated for the PCC rule to the base station. Correspondingly, the base station receives the QoS configuration and the QFI.
根据上述方案,可以实现为终端和/或UPF配置流描述信息,从而终端和/UPF可以根据流描述信息对数据包进行匹配。According to the above solution, flow description information can be configured for the terminal and/or UPF, so that the terminal and/UPF can match data packets according to the flow description information.
下面结合一个具体示例,对上述图3(a)和图3(b)的方案进行说明。The solutions in Fig. 3(a) and Fig. 3(b) above will be described below with reference to a specific example.
图4为本申请实施例提供的一种通信方法示意图,该方法是以上述Profinet场景的RT类型报文特征描述为例进行说明。为满足对周期性RT数据包的差异化调度需求,该方法采用配置固定偏移量的包过滤器实现RT业务流中的周期数据包和非周期数据包的识别或 匹配。FIG. 4 is a schematic diagram of a communication method provided by an embodiment of the present application. The method is described by taking the feature description of the RT type packet in the above-mentioned Profinet scenario as an example. In order to meet the differentiated scheduling requirements for periodic RT data packets, the method uses a packet filter configured with a fixed offset to identify or match periodic data packets and aperiodic data packets in the RT service flow.
该方法包括以下步骤:The method includes the following steps:
步骤401,终端经由基站接入核心网,并建立PDU会话。Step 401, the terminal accesses the core network via the base station, and establishes a PDU session.
步骤402a,AF向PCF发送策略授权请求,该策略授权请求中包含终端的地址和流描述信息。相应地,PCF接收该策略授权请求。In step 402a, the AF sends a policy authorization request to the PCF, and the policy authorization request includes the address of the terminal and flow description information. Correspondingly, the PCF receives the policy authorization request.
可选的,该策略授权请求可以是AF直接发给PCF或者是经由NEF发给PCF,该策略授权请求比如可以是Npcf_PolicyAuthorization_Create/Update。Optionally, the policy authorization request may be directly sent by the AF to the PCF or sent to the PCF via the NEF, and the policy authorization request may be, for example, Npcf_PolicyAuthorization_Create/Update.
该流描述信息中包含偏移量(offset)、长度(length)和参考值(value)。可选的,该流描述信息中包含源地址和目的地址。可选的,该流描述信息中还包含匹配规则,该匹配规则可以是大于(>)、小于(<)、等于(=)或函数关系。The stream description information includes an offset (offset), a length (length) and a reference value (value). Optionally, the flow description information includes a source address and a destination address. Optionally, the flow description information further includes a matching rule, and the matching rule may be greater than (>), less than (<), equal to (=) or a functional relationship.
步骤402b,SMF向PCF发送策略关联更新请求,该策略关联更新请求中包含流描述信息。相应地,PCF接收该策略关联更新请求。In step 402b, the SMF sends a policy association update request to the PCF, and the policy association update request includes flow description information. Correspondingly, the PCF receives the policy association update request.
其中,策略关联更新请求中的流描述信息是终端发送给SMF的,具体的,终端向SMF发送PDU会话修改请求,该PDU会话修改请求中包含流描述信息。可选的,该PDU会话修改请求中还包含请求的QoS(requested QoS),则策略关联更新请求中还可以包含该请求的QoS。The flow description information in the policy association update request is sent by the terminal to the SMF. Specifically, the terminal sends a PDU session modification request to the SMF, and the PDU session modification request includes the flow description information. Optionally, the PDU session modification request also includes the requested QoS (requested QoS), and the policy association update request may also include the requested QoS.
该流描述信息可以参考步骤402a的描述。For the stream description information, refer to the description of step 402a.
需要说明的是,上述步骤402a和步骤402b均为可选步骤。作为一种实现方法,执行上述步骤402a但不执行上述步骤402b。作为另一种实现方法,执行上述步骤402b但不执行上述步骤402a。作为又一种实现方法,上述步骤402a和步骤402b均不执行。It should be noted that both the above step 402a and step 402b are optional steps. As an implementation method, the above step 402a is performed but the above step 402b is not performed. As another implementation method, the above step 402b is performed but the above step 402a is not performed. As yet another implementation method, the above step 402a and step 402b are not executed.
步骤403,PCF生成PCC规则。In step 403, the PCF generates PCC rules.
该PCC规则中包含上述流描述信息和QoS参数,可选的还包含计费策略、流控策略等。The PCC rule includes the above-mentioned flow description information and QoS parameters, and optionally also includes charging policies, flow control policies, and the like.
该QoS参数包含5QI、ARP、GBR等参数信息。该QoS参数则表示需对该业务流所执行的QoS保障。The QoS parameters include parameter information such as 5QI, ARP, and GBR. The QoS parameter indicates the QoS guarantee to be performed on the service flow.
作为一种实现方法,当执行上述步骤402a,则PCF根据AF提供的流描述信息生成PCC规则。As an implementation method, when the above step 402a is executed, the PCF generates a PCC rule according to the flow description information provided by the AF.
作为另一种实现方法,当执行上述步骤402b,则PCF根据终端提供的流描述信息生成PCC规则。As another implementation method, when the above step 402b is executed, the PCF generates a PCC rule according to the flow description information provided by the terminal.
作为另一种实现方法,当部执行上述步骤402a和步骤402b,则PCF可以根据本地策略、SMF上报的其他事件信息或UDR签约,确定PCC规则。As another implementation method, when the above step 402a and step 402b are not executed, the PCF can determine the PCC rule according to the local policy, other event information reported by the SMF or the UDR subscription.
步骤404,PCF向SMF发送PCC规则。相应地,SMF接收该PCC规则。In step 404, the PCF sends the PCC rule to the SMF. Correspondingly, the SMF receives the PCC rule.
步骤405,SMF为该PCC规则分配QFI,以及生成QoS规则(rule)、PDR以及QoS配置(profile)。In step 405, the SMF allocates a QFI for the PCC rule, and generates a QoS rule (rule), PDR, and QoS configuration (profile).
SMF根据PCC规则中的QoS参数执行QoS流绑定。SMF判断是否已经存在与该QoS参数对应的QoS流,如果不存在,则SMF为该PCC规则分配新的QFI,如果存在,则SMF使用该QoS流的QFI。SMF performs QoS flow binding according to QoS parameters in PCC rules. The SMF judges whether there is a QoS flow corresponding to the QoS parameter. If not, the SMF allocates a new QFI for the PCC rule. If it exists, the SMF uses the QFI of the QoS flow.
SMF生成的PDR中包含QFI和PCC规则中的流描述信息。The PDR generated by SMF contains flow description information in QFI and PCC rules.
SMF生成的QoS规则中包含QFI和PCC规则中的流描述信息。可选的,PCC规则中的流描述信息包括上行流描述信息和下行流描述信息,该QoS规则中仅包含上行流描述信 息。The QoS rules generated by SMF include the flow description information in QFI and PCC rules. Optionally, the flow description information in the PCC rule includes upstream flow description information and downstream flow description information, and the QoS rule only includes upstream flow description information.
SMF生成的QoS配置中包含PCC规则中的QoS参数。The QoS configuration generated by SMF includes the QoS parameters in the PCC rules.
步骤406,SMF向UPF发送PDR。In step 406, the SMF sends a PDR to the UPF.
作为一种实现方法,SMF向UPF发送N4Session Modification,其中携带PDR。As an implementation method, SMF sends N4Session Modification to UPF, which carries PDR.
步骤407,SMF经由AMF向终端发送QoS规则。相应地,终端接收该QoS规则。Step 407, the SMF sends the QoS rule to the terminal via the AMF. Correspondingly, the terminal receives the QoS rule.
作为一种实现方法,SMF经由AMF向终端发送PDU会话修改请求/响应,其中携带QoS规则。As an implementation method, the SMF sends a PDU session modification request/response to the terminal via the AMF, which carries QoS rules.
步骤408,SMF向基站发送QFI和QoS配置。相应地,基站接收该QFI和QoS配置。Step 408, the SMF sends the QFI and QoS configuration to the base station. Correspondingly, the base station receives the QFI and QoS configuration.
步骤409,UPF根据PDR中的流描述信息,对下行数据包执行QoS流的匹配。In step 409, the UPF performs QoS flow matching on the downlink data packet according to the flow description information in the PDR.
UPF接收到下行数据包后,根据PDR中的流描述信息对下行数据包进行匹配。当PDR中的流描述信息与下行数据包匹配时,则UPF将该PDR中的QFI封装在下行数据包的包头中,并转发给基站。After the UPF receives the downlink data packet, it matches the downlink data packet according to the flow description information in the PDR. When the flow description information in the PDR matches the downlink data packet, the UPF encapsulates the QFI in the PDR in the header of the downlink data packet and forwards it to the base station.
其中,UPF根据PDR中的流描述信息对下行数据包进行匹配的具体方法,可以参考前述描述,不再赘述。Wherein, the specific method for the UPF to match the downlink data packet according to the flow description information in the PDR can refer to the foregoing description and will not be repeated here.
步骤410,终端根据QoS规则中的流描述信息,对上行数据包执行QoS流的匹配。Step 410, the terminal performs QoS flow matching on the uplink data packet according to the flow description information in the QoS rule.
UPF根据QoS规则中的流描述信息对上行数据包进行匹配。当QoS规则中的流描述信息与上行数据包匹配时,则终端将该QoS规则中的QFI封装在上行数据包的包头中,并转发给基站。UPF matches uplink data packets according to flow description information in QoS rules. When the flow description information in the QoS rule matches the uplink data packet, the terminal encapsulates the QFI in the QoS rule in the header of the uplink data packet and forwards it to the base station.
其中,终端根据QoS规则中的流描述信息对上行数据包进行匹配的具体方法,可以参考前述描述,不再赘述。Wherein, for the specific method for the terminal to match the uplink data packet according to the flow description information in the QoS rule, reference may be made to the foregoing description, and details are not repeated here.
步骤411,基站根据QFI和QoS配置,对上行数据包或下行数据包执行QoS保障。Step 411, the base station implements QoS guarantee for uplink data packets or downlink data packets according to QFI and QoS configuration.
基站在收到上行数据包或下行数据包后,获取该上行数据包或下行数据包中的QFI,然后根据该QFI对应的QoS配置,执行相应的QoS保障。After receiving the uplink data packet or the downlink data packet, the base station obtains the QFI in the uplink data packet or the downlink data packet, and then performs corresponding QoS guarantee according to the QoS configuration corresponding to the QFI.
根据上述方案,通过引入更为灵活的包过滤器形式,使得网络可针对业务流的数据包执行更为精细的业务匹配,从而可以满足上下行业务流更细粒度的业务需求。According to the above solution, by introducing a more flexible form of packet filter, the network can perform more fine-grained service matching for the data packets of the service flow, so as to meet the finer-grained service requirements of the uplink and downlink service flows.
可以理解的是,为了实现上述实施例中功能,SMF、PCF、UPF、基站和终端包括了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本申请中所公开的实施例描述的各示例的单元及方法步骤,本申请能够以硬件或硬件和计算机软件相结合的形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用场景和设计约束条件。It can be understood that, in order to realize the functions in the above embodiments, the SMF, PCF, UPF, base station and terminal include hardware structures and/or software modules corresponding to each function. Those skilled in the art should easily realize that the present application can be implemented in the form of hardware or a combination of hardware and computer software with reference to the units and method steps of the examples described in the embodiments disclosed in the present application. Whether a certain function is executed by hardware or computer software drives the hardware depends on the specific application scenario and design constraints of the technical solution.
图5和图6为本申请的实施例提供的可能的通信装置的结构示意图。这些通信装置可以用于实现上述方法实施例中SMF、PCF、UPF和终端的功能,因此也能实现上述方法实施例所具备的有益效果。在本申请的实施例中,该通信装置可以是SMF、PCF、UPF和终端,也可以是应用于SMF、PCF、UPF和终端的模块(如芯片)。FIG. 5 and FIG. 6 are schematic structural diagrams of possible communication devices provided by the embodiments of the present application. These communication devices can be used to implement the functions of the SMF, PCF, UPF, and terminal in the above method embodiments, and thus can also realize the beneficial effects of the above method embodiments. In the embodiment of the present application, the communication device may be SMF, PCF, UPF and terminal, or may be a module (such as a chip) applied to SMF, PCF, UPF and terminal.
如图5所示,通信装置500包括处理单元510和收发单元520。通信装置500用于实现上述图3(a)、图3(b)或图4中所示的方法实施例中SMF、PCF、UPF和终端的功能。As shown in FIG. 5 , a communication device 500 includes a processing unit 510 and a transceiver unit 520 . The communication device 500 is configured to implement functions of the SMF, PCF, UPF and terminal in the method embodiment shown in FIG. 3(a), FIG. 3(b) or FIG. 4 above.
当通信装置500用于实现图3(a)、图3(b)或图4所示的方法实施例中终端或用户面网元(UPF)的功能时:处理单元510,用于将第一数据包与流描述信息进行匹配,其中,所述流描述信息中包含偏移量、长度和参考值,所述偏移量用于指示待匹配的数据包中的 目标字段的起始点,所述长度表示所述目标字段的长度,所述参考值用于匹配所述目标字段的取值;当所述第一数据包与所述流描述信息匹配,在所述数据包的包头添加所述流描述信息对应的服务质量流标识QFI,得到第二数据包;收发单元520,用于发送所述第二数据包。When the communication device 500 is used to implement the functions of a terminal or a user plane network element (UPF) in the method embodiment shown in FIG. 3(a), FIG. 3(b) or FIG. The data packet is matched with the flow description information, wherein the flow description information includes an offset, a length and a reference value, the offset is used to indicate the starting point of the target field in the data packet to be matched, and the The length indicates the length of the target field, and the reference value is used to match the value of the target field; when the first data packet matches the flow description information, add the flow to the header of the data packet The quality of service flow identifier QFI corresponding to the description information is used to obtain a second data packet; the transceiver unit 520 is configured to send the second data packet.
在一种可能的实现方法中,所述处理单元510,用于将第一数据包与流描述信息进行匹配,具体包括:用于根据偏移起始点和所述偏移量,确定所述第一数据包中的目标字段的起始点;根据所述第一数据包中的目标字段的起始点和所述长度,确定所述第一数据包中的目标字段;根据所述第一数据包中的目标字段的取值和所述参考值,判断所述第一数据包与所述流描述信息是否匹配。In a possible implementation method, the processing unit 510 is configured to match the first data packet with the flow description information, specifically including: determining the first packet according to the offset starting point and the offset The starting point of the target field in a data packet; according to the starting point and the length of the target field in the first data packet, determine the target field in the first data packet; according to the The value of the target field and the reference value, and determine whether the first data packet matches the flow description information.
在一种可能的实现方法中,所述处理单元510,用于根据所述第一数据包中的目标字段的取值和所述参考值,判断所述第一数据包与所述流描述信息是否匹配,具体包括:用于当所述第一数据包中的目标字段的取值与所述参考值相同,确定所述第一数据包与所述流描述信息匹配;或者,当所述第一数据包中的目标字段的取值与所述参考值不同,确定所述第一数据包与所述流描述信息不匹配。In a possible implementation method, the processing unit 510 is configured to judge the first data packet and the flow description information according to the value of the target field in the first data packet and the reference value Whether it matches, specifically includes: when the value of the target field in the first data packet is the same as the reference value, determining that the first data packet matches the flow description information; or, when the first data packet matches the flow description information; The value of the target field in a data packet is different from the reference value, and it is determined that the first data packet does not match the flow description information.
在一种可能的实现方法中,所述流描述信息中还包含匹配规则;所述处理单元510,用于根据所述第一数据包中的目标字段的取值和所述参考值,判断所述第一数据包与所述流描述信息是否匹配,具体包括:用于当所述第一数据包中的目标字段的取值与所述参考值满足所述匹配规则,确定所述第一数据包与所述流描述信息匹配;或者,当所述第一数据包中的目标字段的取值与所述参考值不满足所述匹配规则,确定所述第一数据包与所述流描述信息不匹配。In a possible implementation method, the flow description information further includes a matching rule; the processing unit 510 is configured to determine the value of the target field in the first data packet and the reference value Whether the first data packet matches the flow description information specifically includes: when the value of the target field in the first data packet and the reference value satisfy the matching rule, determine the first data packet The packet matches the flow description information; or, when the value of the target field in the first data packet and the reference value do not satisfy the matching rule, determine that the first data packet matches the flow description information Mismatch.
当通信装置500用于实现图3(a)、图3(b)或图4所示的方法实施例中会话管理网元(SMF)的功能时:所述收发单元520,用于接收来自策略控制网元的策略计费控制PCC规则,所述PCC规则中包含第一流描述信息;其中,所述第一流描述信息中包含偏移量、长度和参考值,所述偏移量用于指示待匹配的数据包中的目标字段的起始点,所述长度表示所述目标字段的长度,所述参考值用于匹配所述目标字段的取值;所述处理单元510,用于根据所述PCC规则生成包检测规则PDR;所述收发单元520,还用于向用户面网元发送所述PDR,所述PDR中包含所述第一流描述信息和为所述PCC规则分配的服务质量流标识QFI。When the communication device 500 is used to realize the function of the session management network element (SMF) in the method embodiment shown in FIG. 3(a), FIG. 3(b) or FIG. 4: the transceiver unit 520 is configured to receive Controlling the policy charging control PCC rule of the network element, the PCC rule includes first flow description information; wherein, the first flow description information includes an offset, a length, and a reference value, and the offset is used to indicate the The starting point of the target field in the matched data packet, the length represents the length of the target field, and the reference value is used to match the value of the target field; the processing unit 510 is configured to rule generation packet detection rule PDR; the transceiver unit 520 is further configured to send the PDR to the user plane network element, the PDR includes the first flow description information and the quality of service flow identifier QFI allocated for the PCC rule .
在一种可能的实现方法中,所述处理单元510,还用于根据所述PCC规则生成QoS规则;所述收发单元520,还用于向终端发送所述QoS规则,所述QoS规则中包含所述QFI和第二流描述信息。In a possible implementation method, the processing unit 510 is further configured to generate a QoS rule according to the PCC rule; the transceiver unit 520 is further configured to send the QoS rule to the terminal, and the QoS rule includes The QFI and second stream description information.
在一种可能的实现方法中,所述PCC规则中还包含QoS参数;所述处理单元510,还用于根据所述PCC规则,生成QoS配置,所述QoS配置中包含所述QoS参数;所述收发单元520,还用于向接入网设备发送所述QFI和所述QoS配置。In a possible implementation method, the PCC rules further include QoS parameters; the processing unit 510 is further configured to generate a QoS configuration according to the PCC rules, and the QoS configuration includes the QoS parameters; The transceiver unit 520 is further configured to send the QFI and the QoS configuration to the access network device.
在一种可能的实现方法中,所述收发单元520,还用于接收来自所述终端的会话修改请求,所述会话修改请求中包含所述第一流描述信息;向所述策略控制网元发送所述策略关联更新请求,所述策略关联更新请求中包含所述第一流描述信息。In a possible implementation method, the transceiving unit 520 is further configured to receive a session modification request from the terminal, where the session modification request includes the first flow description information; and send to the policy control network element The policy association update request includes the first stream description information.
当通信装置500用于实现图3(a)、图3(b)或图4所示的方法实施例中策略控制网元(PCF)的功能时:处理单元510,用于获取流描述信息,所述流描述信息中包含偏移量、长度和参考值,所述偏移量用于指示待匹配的数据包中的目标字段的起始点,所述长度表示所述 目标字段的长度,所述参考值用于匹配所述目标字段的取值;生成策略计费控制PCC规则,所述PCC规则中包含所述流描述信息;收发单元520,用于向会话管理网元发送所述PCC规则。When the communication device 500 is used to realize the function of the policy control network element (PCF) in the method embodiment shown in FIG. 3(a), FIG. 3(b) or FIG. 4: the processing unit 510 is configured to obtain flow description information, The flow description information includes an offset, a length and a reference value, the offset is used to indicate the starting point of the target field in the data packet to be matched, the length indicates the length of the target field, and the The reference value is used to match the value of the target field; a policy and charging control PCC rule is generated, and the PCC rule includes the flow description information; the transceiver unit 520 is configured to send the PCC rule to a session management network element.
有关上述处理单元510和收发单元520更详细的描述可以直接参考图3(a)、图3(b)或图4所示的方法实施例中相关描述直接得到,这里不加赘述。More detailed descriptions about the processing unit 510 and the transceiver unit 520 can be directly obtained by referring to the relevant descriptions in the method embodiment shown in FIG. 3(a), FIG. 3(b) or FIG.
如图6所示,通信装置600包括处理器610和接口电路620。处理器610和接口电路620之间相互耦合。可以理解的是,接口电路620可以为收发器或输入输出接口。可选的,通信装置600还可以包括存储器630,用于存储处理器610执行的指令或存储处理器610运行指令所需要的输入数据或存储处理器610运行指令后产生的数据。As shown in FIG. 6 , the communication device 600 includes a processor 610 and an interface circuit 620 . The processor 610 and the interface circuit 620 are coupled to each other. It can be understood that the interface circuit 620 may be a transceiver or an input-output interface. Optionally, the communication device 600 may further include a memory 630 for storing instructions executed by the processor 610 or storing input data required by the processor 610 to execute the instructions or storing data generated after the processor 610 executes the instructions.
当通信装置600用于实现图3(a)、图3(b)或图4所示的方法时,处理器610用于实现上述处理单元510的功能,接口电路620用于实现上述收发单元520的功能。When the communication device 600 is used to implement the method shown in Figure 3(a), Figure 3(b) or Figure 4, the processor 610 is used to implement the functions of the processing unit 510, and the interface circuit 620 is used to implement the transceiver unit 520 function.
当上述通信装置为应用于终端的芯片时,该终端芯片实现上述方法实施例中终端的功能。该终端芯片从终端中的其它模块(如射频模块或天线)接收信息,该信息是基站发送给终端的;或者,该终端芯片向终端中的其它模块(如射频模块或天线)发送信息,该信息是终端发送给基站的。When the above communication device is a chip applied to a terminal, the terminal chip implements the functions of the terminal in the above method embodiment. The terminal chip receives information from other modules in the terminal (such as radio frequency modules or antennas), and the information is sent to the terminal by the base station; or, the terminal chip sends information to other modules in the terminal (such as radio frequency modules or antennas), and the The information is sent by the terminal to the base station.
可以理解的是,本申请的实施例中的处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其它通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其它可编程逻辑器件、晶体管逻辑器件,硬件部件或者其任意组合。通用处理器可以是微处理器,也可以是任何常规的处理器。It can be understood that the processor in the embodiments of the present application can be a central processing unit (Central Processing Unit, CPU), and can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application-specific integrated circuits (Application Specific Integrated Circuit, ASIC), Field Programmable Gate Array (Field Programmable Gate Array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. A general-purpose processor can be a microprocessor, or any conventional processor.
本申请的实施例中的方法步骤可以通过硬件的方式来实现,也可以由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器、闪存、只读存储器、可编程只读存储器、可擦除可编程只读存储器、电可擦除可编程只读存储器、寄存器、硬盘、移动硬盘、CD-ROM或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于基站或终端中。当然,处理器和存储介质也可以作为分立组件存在于基站或终端中。The method steps in the embodiments of the present application may be implemented by means of hardware, or may be implemented by means of a processor executing software instructions. Software instructions can be composed of corresponding software modules, and software modules can be stored in random access memory, flash memory, read-only memory, programmable read-only memory, erasable programmable read-only memory, electrically erasable programmable read-only Memory, registers, hard disk, removable hard disk, 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 a component of the processor. The processor and storage medium can be located in the ASIC. In addition, the ASIC can be located in the base station or the terminal. Certainly, the processor and the storage medium may also exist in the base station or the terminal as discrete components.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机程序或指令。在计算机上加载和执行所述计算机程序或指令时,全部或部分地执行本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、基站、用户设备或者其它可编程装置。所述计算机程序或指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机程序或指令可以从一个网站站点、计算机、服务器或数据中心通过有线或无线方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是集成一个或多个可用介质的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,例如,软盘、硬盘、磁带;也可以是光介质,例如,数字视频光盘;还可以是半导体介质,例如,固态硬 盘。该计算机可读存储介质可以是易失性或非易失性存储介质,或可包括易失性和非易失性两种类型的存储介质。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product comprises one or more computer programs or instructions. When the computer program or instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present application are executed in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, a base station, user equipment or other programmable devices. The computer program or instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instructions may be downloaded from a website, computer, A server or data center transmits to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrating one or more available media. The available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disk; it may also be a semiconductor medium, such as a solid state disk. The computer readable storage medium may be a volatile or a nonvolatile storage medium, or may include both volatile and nonvolatile types of storage media.
在本申请的各个实施例中,如果没有特殊说明以及逻辑冲突,不同的实施例之间的术语和/或描述具有一致性、且可以相互引用,不同的实施例中的技术特征根据其内在的逻辑关系可以组合形成新的实施例。In each embodiment of the present application, if there is no special explanation and logical conflict, the terms and/or descriptions between different embodiments are consistent and can be referred to each other, and the technical features in different embodiments are based on their inherent Logical relationships can be combined to form new embodiments.
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。在本申请的文字描述中,字符“/”,一般表示前后关联对象是一种“或”的关系;在本申请的公式中,字符“/”,表示前后关联对象是一种“相除”的关系。In this application, "at least one" means one or more, and "multiple" means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural. In the text description of this application, the character "/" generally indicates that the contextual objects are an "or" relationship; in the formulas of this application, the character "/" indicates that the contextual objects are a "division" Relationship.
可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定。It can be understood that the various numbers involved in the embodiments of the present application are only for convenience of description, and are not used to limit the scope of the embodiments of the present application. The size of the serial numbers of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its functions and internal logic.
Claims (35)
- 一种通信方法,应用于通信设备,其特征在于,包括:A communication method applied to a communication device, characterized in that it includes:将第一数据包与流描述信息进行匹配,其中,所述流描述信息中包含偏移量、长度和参考值,所述偏移量用于指示待匹配的数据包中的目标字段的起始点,所述长度表示所述目标字段的长度,所述参考值用于匹配所述目标字段的取值;Matching the first data packet with the flow description information, wherein the flow description information includes an offset, a length and a reference value, and the offset is used to indicate the starting point of the target field in the data packet to be matched , the length represents the length of the target field, and the reference value is used to match the value of the target field;当所述第一数据包与所述流描述信息匹配,在所述第一数据包的包头添加所述流描述信息对应的服务质量流标识QFI,得到第二数据包;When the first data packet matches the flow description information, adding the quality of service flow identifier QFI corresponding to the flow description information to the header of the first data packet to obtain a second data packet;发送所述第二数据包。Send the second data packet.
- 如权利要求1所述的方法,其特征在于,所述将第一数据包与流描述信息进行匹配,包括:The method according to claim 1, wherein said matching the first data packet with the flow description information comprises:根据偏移起始点和所述偏移量,确定所述第一数据包中的目标字段的起始点;determining the starting point of the target field in the first data packet according to the offset starting point and the offset;根据所述第一数据包中的目标字段的起始点和所述长度,确定所述第一数据包中的目标字段;determining the target field in the first data packet according to the starting point and the length of the target field in the first data packet;根据所述第一数据包中的目标字段的取值和所述参考值,判断所述第一数据包与所述流描述信息是否匹配。According to the value of the target field in the first data packet and the reference value, it is judged whether the first data packet matches the flow description information.
- 如权利要求2所述的方法,其特征在于,所述偏移起始点是预配置的或协议预定义的。The method according to claim 2, wherein the offset starting point is pre-configured or predefined by a protocol.
- 如权利要求2所述的方法,其特征在于,所述流描述信息中还包含指示信息,所述指示信息用于指示所述偏移起始点。The method according to claim 2, wherein the stream description information further includes indication information, and the indication information is used to indicate the offset starting point.
- 如权利要求2至4中任一项所述的方法,其特征在于,所述偏移起始点是所述第一数据包中的负荷的起始点或所述第一数据包的起始点。The method according to any one of claims 2 to 4, wherein the offset starting point is the starting point of the payload in the first data packet or the starting point of the first data packet.
- 如权利要求2至5中任一项所述的方法,其特征在于,所述根据所述第一数据包中的目标字段的取值和所述参考值,判断所述第一数据包与所述流描述信息是否匹配,包括:The method according to any one of claims 2 to 5, wherein, according to the value of the target field in the first data packet and the reference value, judging whether the first data packet is related to the Whether the above stream description information matches, including:当所述第一数据包中的目标字段的取值与所述参考值相同,确定所述第一数据包与所述流描述信息匹配;或者,When the value of the target field in the first data packet is the same as the reference value, determine that the first data packet matches the flow description information; or,当所述第一数据包中的目标字段的取值与所述参考值不同,确定所述第一数据包与所述流描述信息不匹配。When the value of the target field in the first data packet is different from the reference value, it is determined that the first data packet does not match the flow description information.
- 如权利要求2至5中任一项所述的方法,其特征在于,所述流描述信息中还包含匹配规则;The method according to any one of claims 2 to 5, wherein the flow description information further includes matching rules;所述根据所述第一数据包中的目标字段的取值和所述参考值,判断所述第一数据包与所述流描述信息是否匹配,包括:The determining whether the first data packet matches the flow description information according to the value of the target field in the first data packet and the reference value includes:当所述第一数据包中的目标字段的取值与所述参考值满足所述匹配规则,确定所述第一数据包与所述流描述信息匹配;或者,When the value of the target field in the first data packet and the reference value satisfy the matching rule, determine that the first data packet matches the flow description information; or,当所述第一数据包中的目标字段的取值与所述参考值不满足所述匹配规则,确定所述第一数据包与所述流描述信息不匹配。When the value of the target field in the first data packet and the reference value do not satisfy the matching rule, it is determined that the first data packet does not match the flow description information.
- 如权利要求7所述的方法,其特征在于,所述匹配规则为大于、小于、等于或函数关系。The method according to claim 7, wherein the matching rule is greater than, less than, equal to or a functional relationship.
- 如权利要求1至8中任一项所述的方法,其特征在于,所述通信设备是终端;The method according to any one of claims 1 to 8, wherein the communication device is a terminal;所述方法还包括:The method also includes:接收来自会话管理网元的服务质量QoS规则,所述QoS规则中包含所述QFI和所述流描述信息。Receive a quality of service QoS rule from a session management network element, where the QoS rule includes the QFI and the flow description information.
- 如权利要求1至8中任一项所述的方法,其特征在于,所述通信设备是用户面网元;The method according to any one of claims 1 to 8, wherein the communication device is a user plane network element;所述方法还包括:The method also includes:接收来自会话管理网元的包检测规则PDR,所述PDR中包含所述QFI和所述流描述信息。Receive a packet detection rule PDR from a session management network element, where the PDR includes the QFI and the flow description information.
- 一种通信方法,应用于会话管理网元,其特征在于,包括:A communication method, applied to a session management network element, characterized in that it includes:接收来自策略控制网元的策略计费控制PCC规则,所述PCC规则中包含第一流描述信息;其中,所述第一流描述信息中包含偏移量、长度和参考值,所述偏移量用于指示待匹配的数据包中的目标字段的起始点,所述长度表示所述目标字段的长度,所述参考值用于匹配所述目标字段的取值;Receive a policy charging control PCC rule from a policy control network element, where the PCC rule includes first flow description information; wherein, the first flow description information includes an offset, a length, and a reference value, and the offset is used To indicate the starting point of the target field in the data packet to be matched, the length indicates the length of the target field, and the reference value is used to match the value of the target field;根据所述PCC规则生成包检测规则PDR,所述PDR中包含所述第一流描述信息和为所述PCC规则分配的服务质量流标识QFI;Generate a packet detection rule PDR according to the PCC rule, the PDR includes the first flow description information and the quality of service flow identifier QFI allocated for the PCC rule;向用户面网元发送所述PDR。Send the PDR to a user plane network element.
- 如权利要求11所述的方法,其特征在于,还包括:The method of claim 11, further comprising:根据所述PCC规则生成QoS规则,所述QoS规则中包含所述QFI和第二流描述信息;generating a QoS rule according to the PCC rule, the QoS rule including the QFI and second flow description information;向终端发送所述QoS规则。Send the QoS rule to the terminal.
- 如权利要求12所述的方法,其特征在于,The method of claim 12, wherein,所述第一流描述信息包括上行流描述信息和下行流描述信息,所述上行流描述信息用于匹配上行流,所述下行流描述信息用于匹配下行流;The first flow description information includes upstream flow description information and downstream flow description information, the upstream flow description information is used to match the upstream flow, and the downstream flow description information is used to match the downstream flow;所述第二流描述信息包括所述上行流描述信息,或者所述第二流描述信息与所述第一流描述信息相同。The second flow description information includes the upstream flow description information, or the second flow description information is the same as the first flow description information.
- 如权利要求11至13中任一项所述的方法,其特征在于,所述PCC规则中还包含QoS参数;The method according to any one of claims 11 to 13, wherein the PCC rules also include QoS parameters;所述方法还包括:The method also includes:根据所述PCC规则,生成QoS配置,所述QoS配置中包含所述QoS参数;Generate a QoS configuration according to the PCC rule, the QoS configuration includes the QoS parameters;向接入网设备发送所述QFI和所述QoS配置。sending the QFI and the QoS configuration to an access network device.
- 如权利要求11至14中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 11 to 14, further comprising:接收来自终端的会话修改请求,所述会话修改请求中包含所述第一流描述信息;receiving a session modification request from a terminal, where the session modification request includes the first stream description information;向所述策略控制网元发送所述策略关联更新请求,所述策略关联更新请求中包含所述第一流描述信息。Sending the policy association update request to the policy control network element, where the policy association update request includes the first flow description information.
- 一种通信方法,应用于策略控制网元,其特征在于,包括:A communication method, applied to a policy control network element, characterized in that it includes:获取流描述信息,所述流描述信息中包含偏移量、长度和参考值,所述偏移量用于指示待匹配的数据包中的目标字段的起始点,所述长度表示所述目标字段的长度,所述参考值用于匹配所述目标字段的取值;Obtain flow description information, the flow description information includes offset, length and reference value, the offset is used to indicate the starting point of the target field in the data packet to be matched, and the length indicates the target field The length of the reference value is used to match the value of the target field;生成策略计费控制PCC规则,所述PCC规则中包含所述流描述信息;Generate policy charging control PCC rules, the PCC rules include the flow description information;向会话管理网元发送所述PCC规则。Send the PCC rule to the session management network element.
- 如权利要求16所述的方法,其特征在于,所述获取流描述信息,包括:The method according to claim 16, wherein said obtaining flow description information comprises:接收来自应用功能网元的策略授权请求,所述策略授权请求中包含所述流描述信息。Receive a policy authorization request from an application function network element, where the policy authorization request includes the flow description information.
- 如权利要求16所述的方法,其特征在于,所述获取流描述信息,包括:The method according to claim 16, wherein said obtaining flow description information comprises:接收来自所述会话管理网元的策略关联更新请求,所述策略关联更新请求中包含来自终端的所述流描述信息。Receive a policy association update request from the session management network element, where the policy association update request includes the flow description information from the terminal.
- 一种通信装置,其特征在于,包括:A communication device, characterized by comprising:处理单元,用于将第一数据包与流描述信息进行匹配,其中,所述流描述信息中包含偏移量、长度和参考值,所述偏移量用于指示待匹配的数据包中的目标字段的起始点,所述长度表示所述目标字段的长度,所述参考值用于匹配所述目标字段的取值;当所述第一数据包与所述流描述信息匹配,在所述第一数据包的包头添加所述流描述信息对应的服务质量流标识QFI,得到第二数据包;A processing unit, configured to match the first data packet with the flow description information, wherein the flow description information includes an offset, a length, and a reference value, and the offset is used to indicate the The starting point of the target field, the length indicates the length of the target field, and the reference value is used to match the value of the target field; when the first data packet matches the flow description information, in the Adding the quality of service flow identifier QFI corresponding to the flow description information to the header of the first data packet to obtain the second data packet;收发单元,用于发送所述第二数据包。A transceiver unit, configured to send the second data packet.
- 如权利要求19所述的装置,其特征在于,所述处理单元,用于将第一数据包与流描述信息进行匹配,具体包括:The device according to claim 19, wherein the processing unit is configured to match the first data packet with the flow description information, specifically comprising:用于根据偏移起始点和所述偏移量,确定所述第一数据包中的目标字段的起始点;根据所述第一数据包中的目标字段的起始点和所述长度,确定所述第一数据包中的目标字段;根据所述第一数据包中的目标字段的取值和所述参考值,判断所述第一数据包与所述流描述信息是否匹配。It is used to determine the starting point of the target field in the first data packet according to the offset starting point and the offset; determine the starting point of the target field in the first data packet and the length The target field in the first data packet; according to the value of the target field in the first data packet and the reference value, determine whether the first data packet matches the flow description information.
- 如权利要求20所述的装置,其特征在于,所述处理单元,用于根据所述第一数据包中的目标字段的取值和所述参考值,判断所述第一数据包与所述流描述信息是否匹配,具体包括:The device according to claim 20, wherein the processing unit is configured to judge the relationship between the first data packet and the Whether the flow description information matches, including:用于当所述第一数据包中的目标字段的取值与所述参考值相同,确定所述第一数据包与所述流描述信息匹配;或者,当所述第一数据包中的目标字段的取值与所述参考值不同,确定所述第一数据包与所述流描述信息不匹配。It is used to determine that the first data packet matches the flow description information when the value of the target field in the first data packet is the same as the reference value; or, when the target field in the first data packet The value of the field is different from the reference value, and it is determined that the first data packet does not match the flow description information.
- 如权利要求20所述的装置,其特征在于,所述流描述信息中还包含匹配规则;The device according to claim 20, wherein the flow description information further includes matching rules;所述处理单元,用于根据所述第一数据包中的目标字段的取值和所述参考值,判断所述第一数据包与所述流描述信息是否匹配,具体包括:The processing unit is configured to judge whether the first data packet matches the flow description information according to the value of the target field in the first data packet and the reference value, specifically including:用于当所述第一数据包中的目标字段的取值与所述参考值满足所述匹配规则,确定所述第一数据包与所述流描述信息匹配;或者,当所述第一数据包中的目标字段的取值与所述参考值不满足所述匹配规则,确定所述第一数据包与所述流描述信息不匹配。It is used to determine that the first data packet matches the flow description information when the value of the target field in the first data packet and the reference value satisfy the matching rule; or, when the first data packet The value of the target field in the packet and the reference value do not satisfy the matching rule, and it is determined that the first data packet does not match the flow description information.
- 如权利要求19至22中任一项所述的装置,其特征在于,所述通信装置是终端;所述收发单元,还用于接收来自会话管理网元的服务质量QoS规则,所述QoS规则中包含所述QFI和所述流描述信息。The device according to any one of claims 19 to 22, wherein the communication device is a terminal; the transceiver unit is further configured to receive a quality of service QoS rule from a session management network element, and the QoS rule contains the QFI and the stream description information.
- 如权利要求19至22中任一项所述的装置,其特征在于,所述通信装置是用户面网元;所述收发单元,还用于接收来自会话管理网元的包检测规则PDR,所述PDR中包含所述QFI和所述流描述信息。The device according to any one of claims 19 to 22, wherein the communication device is a user plane network element; the transceiver unit is further configured to receive a packet detection rule PDR from a session management network element, so The PDR includes the QFI and the flow description information.
- 一种通信装置,其特征在于,包括收发单元和处理单元;A communication device, characterized by comprising a transceiver unit and a processing unit;所述收发单元,用于接收来自策略控制网元的策略计费控制PCC规则,所述PCC规则中包含第一流描述信息;其中,所述第一流描述信息中包含偏移量、长度和参考值,所述偏移量用于指示待匹配的数据包中的目标字段的起始点,所述长度表示所述目标字段的长度,所述参考值用于匹配所述目标字段的取值;The transceiving unit is configured to receive a policy charging control PCC rule from a policy control network element, where the PCC rule includes first flow description information; wherein, the first flow description information includes an offset, a length, and a reference value , the offset is used to indicate the starting point of the target field in the data packet to be matched, the length indicates the length of the target field, and the reference value is used to match the value of the target field;所述处理单元,用于根据所述PCC规则生成包检测规则PDR,所述PDR中包含所述 第一流描述信息和为所述PCC规则分配的服务质量流标识QFI;The processing unit is configured to generate a packet detection rule PDR according to the PCC rule, and the PDR includes the first flow description information and the quality of service flow identifier QFI allocated for the PCC rule;所述收发单元,还用于向用户面网元发送所述PDR。The transceiver unit is further configured to send the PDR to a user plane network element.
- 如权利要求25所述的装置,其特征在于,所述处理单元,还用于根据所述PCC规则生成QoS规则,所述QoS规则中包含所述QFI和第二流描述信息;The device according to claim 25, wherein the processing unit is further configured to generate a QoS rule according to the PCC rule, and the QoS rule includes the QFI and the second flow description information;所述收发单元,还用于向终端发送所述QoS规则。The transceiving unit is further configured to send the QoS rule to the terminal.
- 一种通信装置,其特征在于,包括:A communication device, characterized by comprising:处理单元,用于获取流描述信息,所述流描述信息中包含偏移量、长度和参考值,所述偏移量用于指示待匹配的数据包中的目标字段的起始点,所述长度表示所述目标字段的长度,所述参考值用于匹配所述目标字段的取值;生成策略计费控制PCC规则,所述PCC规则中包含所述流描述信息;A processing unit, configured to obtain flow description information, the flow description information includes an offset, a length and a reference value, the offset is used to indicate the starting point of the target field in the data packet to be matched, and the length Indicates the length of the target field, and the reference value is used to match the value of the target field; generates a policy charging control PCC rule, and the PCC rule includes the flow description information;收发单元,用于向会话管理网元发送所述PCC规则。A transceiver unit, configured to send the PCC rule to a session management network element.
- 一种通信系统,其特征在于,包括用于执行如权利要求11至15中任一项所述方法的会话管理网元和用于执行如权利要求16至18中任一项所述方法的策略控制网元。A communication system, characterized by comprising a session management network element for performing the method according to any one of claims 11 to 15 and a policy for performing the method according to any one of claims 16 to 18 Control network elements.
- 一种通信装置,其特征在于,包括:处理器,所述处理器与存储器耦合,所述存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得所述装置执行如权利要求1至10中任一项所述的通信方法,或执行如权利要求11至15中任一项所述的通信方法,或执行如权利要求16至18中任一项所述的通信方法。A communication device, characterized in that it includes: a processor, the processor is coupled with a memory, and the memory is used to store a program or an instruction, and when the program or instruction is executed by the processor, the device Perform the communication method as described in any one of claims 1 to 10, or perform the communication method as described in any one of claims 11 to 15, or perform the communication method described in any one of claims 16 to 18 communication method.
- 一种通信装置,其特征在于,包括:处理器和接口;A communication device, characterized by comprising: a processor and an interface;所述处理器用于控制所述装置执行如权利要求1至10中任一项所述的通信方法,或执行如权利要求11至15中任一项所述的通信方法,或执行如权利要求16至18中任一项所述的通信方法;The processor is used to control the device to execute the communication method according to any one of claims 1 to 10, or to execute the communication method according to any one of claims 11 to 15, or to execute the communication method according to claim 16. The communication method described in any one of to 18;所述处理器还用于控制所述接口与其他装置通信。The processor is also used to control the interface to communicate with other devices.
- 一种通信装置,其特征在于,用于如权利要求1至10中任一项所述的通信方法,或执行如权利要求11至15中任一项所述的通信方法,或执行如权利要求16至18中任一项所述的通信方法。A communication device, characterized in that it is used for the communication method according to any one of claims 1 to 10, or executes the communication method according to any one of claims 11 to 15, or executes the communication method according to any one of claims The communication method described in any one of 16 to 18.
- 一种通信设备,其特征在于,包括:处理器和通信接口,A communication device, characterized in that it includes: a processor and a communication interface,所述通信接口,用于接收代码指令并传输至所述处理器,所述处理器用于运行所述代码指令以执行如权利要求1至10中任一项所述的通信方法。The communication interface is configured to receive code instructions and transmit them to the processor, and the processor is configured to run the code instructions to execute the communication method according to any one of claims 1 to 10.
- 一种计算机可读存储介质,其上存储有计算机程序或指令,其特征在于,所述计算机程序或指令被执行时,使得权利要求1至10中任一项所述方法被执行,或使得权利要求11至15中任一项所述方法被执行,或使得权利要求16至18中任一项所述方法被执行。A computer-readable storage medium, on which are stored computer programs or instructions, characterized in that, when the computer programs or instructions are executed, the method described in any one of claims 1 to 10 is performed, or the rights The method of any one of claims 11 to 15 being performed, or causing the method of any one of claims 16 to 18 to be performed.
- 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机程序,当所述计算机程序运行时,使得权利要求1至10中任一项所述方法被执行,或使得权利要求11至15中任一项所述方法被执行,或使得权利要求16至18中任一项所述方法被执行。A computer program product, characterized in that the computer program product includes a computer program, and when the computer program is run, the method according to any one of claims 1 to 10 is executed, or the method according to any one of claims 11 to 15 is executed. The method of any one of claims 16 to 18 is carried out.
- 一种芯片系统,其特征在于,包括:A system on a chip, characterized in that it comprises:存储器,用于存储计算机程序;memory for storing computer programs;处理器,用于从所述存储器调用并运行所述计算机程序,使得安装有所述芯片系统的设备执行如权利要求1至10中任一项所述的通信方法,或执行如权利要求11至15中任一项所述的通信方法,或执行如权利要求16至18中任一项所述的通信方法。A processor, configured to call and run the computer program from the memory, so that the device installed with the system-on-a-chip executes the communication method according to any one of claims 1 to 10, or executes the communication method according to any one of claims 11 to 10. The communication method described in any one of claims 15, or execute the communication method described in any one of claims 16-18.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110702409.8 | 2021-06-24 | ||
CN202110702409.8A CN115529637A (en) | 2021-06-24 | 2021-06-24 | Communication method, communication device and communication system |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022267652A1 true WO2022267652A1 (en) | 2022-12-29 |
Family
ID=84545209
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/087732 WO2022267652A1 (en) | 2021-06-24 | 2022-04-19 | Communication method, communication apparatus, and communication system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115529637A (en) |
WO (1) | WO2022267652A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115988108B (en) * | 2023-03-20 | 2023-06-02 | 浪潮电子信息产业股份有限公司 | Data packet processing method, system, storage medium and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150381502A1 (en) * | 2014-06-27 | 2015-12-31 | Jing Zhu | Systems, methods, and devices to support intra-application flow prioritization |
WO2017198132A1 (en) * | 2016-05-17 | 2017-11-23 | 中兴通讯股份有限公司 | Data sending method and apparatus |
CN109413619A (en) * | 2017-08-14 | 2019-03-01 | 中兴通讯股份有限公司 | Information is sent, operation executes method and device, conversation management functional entity |
WO2021018420A1 (en) * | 2019-07-26 | 2021-02-04 | Telefonaktiebolaget Lm Ericsson (Publ) | Packet detection |
-
2021
- 2021-06-24 CN CN202110702409.8A patent/CN115529637A/en active Pending
-
2022
- 2022-04-19 WO PCT/CN2022/087732 patent/WO2022267652A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150381502A1 (en) * | 2014-06-27 | 2015-12-31 | Jing Zhu | Systems, methods, and devices to support intra-application flow prioritization |
WO2017198132A1 (en) * | 2016-05-17 | 2017-11-23 | 中兴通讯股份有限公司 | Data sending method and apparatus |
CN109413619A (en) * | 2017-08-14 | 2019-03-01 | 中兴通讯股份有限公司 | Information is sent, operation executes method and device, conversation management functional entity |
WO2021018420A1 (en) * | 2019-07-26 | 2021-02-04 | Telefonaktiebolaget Lm Ericsson (Publ) | Packet detection |
Also Published As
Publication number | Publication date |
---|---|
CN115529637A (en) | 2022-12-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022152238A1 (en) | Communication method and communication apparatus | |
US20220256390A1 (en) | Quality of service information notification method, device, and system | |
US11856632B2 (en) | Method and apparatus for implementing a forwarding path on a user plane function network element | |
WO2022012468A1 (en) | Routing configuration method and apparatus | |
WO2024174752A1 (en) | Data transmission method and apparatus | |
WO2022267652A1 (en) | Communication method, communication apparatus, and communication system | |
US20240349150A1 (en) | Switching method, communication apparatus, and communication system | |
US20240080716A1 (en) | Wireless communication method, communication apparatus, and communication system | |
CN115915196A (en) | Link state detection method, communication device and communication system | |
WO2024051313A1 (en) | Communication resource management method, apparatus and system, and storage medium | |
WO2022257629A1 (en) | Wireless communication method and communication apparatus | |
WO2023284551A1 (en) | Communication method, device and system | |
WO2022188568A1 (en) | Wireless communication method, communication apparatus and communication system | |
WO2023102680A1 (en) | Congestion control method and apparatus, device, medium, chip, product, and program | |
CN114424498B (en) | Data transmission method, device, system and storage medium | |
WO2021081915A1 (en) | Communication method, apparatus and system | |
WO2023016298A1 (en) | Service awareness method, communication apparatus, and communication system | |
WO2023273745A1 (en) | Communication method, communication apparatus, and communication system | |
WO2023050781A1 (en) | Communication method and communication apparatus | |
WO2024012376A1 (en) | Communication method, communication apparatus and communication system | |
WO2023109581A1 (en) | Detection method, communication apparatus, and communication system | |
WO2023082858A1 (en) | Method for determining mobility management policy, communication apparatus, and communication system | |
WO2023061207A1 (en) | Communication method, communication apparatus, and communication system | |
WO2023005440A1 (en) | Communication method, communication apparatus and communication system | |
WO2023071320A1 (en) | Method for ensuring voice service and communication apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22827154 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 22827154 Country of ref document: EP Kind code of ref document: A1 |