Communication method and apparatus

By deploying user plane channels in commercial physical campuses and transmitting data between readers and UPF network elements, the problem of data leakage between servers and passive terminals is solved and secure data transmission is achieved.

WO2024217183A1PCT designated stage expired Publication Date: 2024-10-24HUAWEI TECH CO LTD

Patent Information

Application Number
PCT/CN2024/081119
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-19
Filing Date
2024-03-12
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

In the existing wireless communication technology, data is transmitted between the server and the passive terminal through the control plane channel. There is a risk of data leakage, and a more secure transmission solution is needed.

Method used

By deploying a user plane channel (first tunnel) in the commercial entity campus, data is transmitted between the reader and the UPF network element to ensure that the data does not leave the campus. Instruction information and mapping relationships are used to instruct the reader to perform operations to achieve safe data transmission.

Benefits of technology

Effectively prevent data leakage and realize secure transmission of data between the server and passive terminals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024081119_24102024_PF_FP_ABST
    Figure CN2024081119_24102024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present application are a communication method and apparatus. The method comprises: a reader receiving a first message which is sent by a user plane function (UPF) network element by means of a first tunnel, wherein one end of the first tunnel is connected to the reader, the other end of the first tunnel is connected to the UPF network element, the first message comprises first instruction information, and the first instruction information is used for instructing the reader to execute a first operation; the reader executing the first operation on the basis of the first instruction information; and the reader receiving a first operation result from at least one first passive terminal, and sending the first operation result to the UPF network element, wherein the at least one first passive terminal is located within a signal coverage range of the reader. The first tunnel is a user plane channel, which is deployed in a park where a commercial entity is located, and when a server and a passive terminal perform data transmission by means of the first tunnel, it can be effectively ensured that transmitted data does not leave the park, such that the risk of data leakage can be solved, and secure data transmission can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Communication method and device

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on April 19, 2023, with application number 202310468401.9 and application name “A Communication Method and Device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0003] The present invention relates to the field of wireless communication technologies, and in particular to a communication method and device. Background Art

[0004] With the rapid development of electronic information technology, passive IoT technology has been applied to various fields. The passive IoT architecture includes passive terminals, readers, and servers. The server transmits data to the passive terminals through the readers.

[0005] Currently, data transmission between servers and passive terminals typically occurs over control plane channels in the core network. However, using control plane channels to transmit data carries the risk of data leakage, necessitating a more secure data transmission solution.

[0006] Summary of the Invention

[0007] The embodiments of the present application provide a communication method and apparatus to solve the problem of secure data transmission.

[0008] In a first aspect, an embodiment of the present application provides a communication method, wherein the execution subject of the method is a reader or a module or chip in the reader, and the method is described here using the reader as the execution subject as an example. The method includes: the reader receives a first message sent by a user plane function (UPF) network element through a first tunnel, wherein one end of the first tunnel is connected to the reader and the other end is connected to the UPF network element, the first message includes first indication information, and the first indication information is used to instruct the reader to perform a first operation. The reader performs the first operation based on the first indication information, and the reader receives a first operation result from at least one first passive terminal and sends the first operation result to the UPF network element, wherein the at least one first passive terminal is within the signal coverage range of the reader.

[0009] In this method, the first tunnel is a user plane channel, which can be deployed in the park where the business entity is located. When the server and the passive terminal transmit data through the first tunnel, it can effectively ensure that the transmitted data does not leave the park, thereby solving the risk of data leakage and realizing secure data transmission.

[0010] In one possible design, the first indication information includes a first operation; and the reader performing the first operation based on the first indication information may include: the reader obtaining the first operation from the first indication information and performing the first operation. This design provides a method for the reader to perform the first operation.

[0011] In one possible design, the first indication information includes a first session identifier. The reader performs a first operation based on the first indication information, including: determining, based on the first session identifier and a pre-set mapping relationship, the first operation corresponding to the first session identifier, and performing the first operation. This design provides a method for the reader to perform the first operation.

[0012] In a possible design, the mapping relationship includes a first mapping relationship, and the first mapping relationship includes a mapping relationship between the first tunnel identifier and the preset operation. Through this design, a method for a reader to perform the first operation is provided.

[0013] In one possible design, the mapping relationship includes a second mapping relationship and a third mapping relationship, wherein the second mapping relationship includes a mapping relationship between the first tunnel identifier and a preset service type, and the third mapping relationship includes a mapping relationship between the preset service type and a preset operation. The reader, based on the first session identifier and the preset mapping relationship, determines the first operation corresponding to the first session identifier. This may include: the reader first determines the first service type corresponding to the first session identifier based on the first session identifier and the second mapping relationship, and then determines the first operation corresponding to the first service type based on the first service type and the third mapping relationship. This design provides a method for the reader to perform the first operation.

[0014] In one possible design, the first indication information includes a first service type. The reader performs a first operation based on the first indication information, including: determining, based on the first service type and a pre-set mapping relationship, a first operation corresponding to the first service type, and performing the first operation. This design provides a method for the reader to perform the first operation.

[0015] In a possible design, the mapping relationship includes a third mapping relationship, wherein the third mapping relationship includes a mapping relationship between a preset service type and a preset operation. Through this design, a method for a reader to perform the first operation is provided.

[0016] In one possible design, before receiving the first message sent by the user plane function (UPF) network element through the first tunnel, the method further includes: the reader receiving a first message sent by the session management function (SMF) network element, wherein the first message includes second indication information, the second indication information being used to instruct the reader to set a mapping relationship, the mapping relationship being used to determine the first operation, and the reader setting the mapping relationship based on at least the second indication information in the first message. This design provides an implementation method for setting the mapping relationship.

[0017] In one possible design, the second indication information includes a preset operation, and the first message also includes a first tunnel identifier. The reader, based at least on the second indication information in the first message, sets a mapping relationship, which may include: the reader establishing a first mapping relationship between the first tunnel identifier and the preset operation. This design provides an implementation method for setting the mapping relationship.

[0018] In one possible design, the second indication information includes a preset service type, and the first message also includes a first tunnel identifier. The reader setting a mapping relationship based on at least the second indication information in the first message may include: the reader establishing a second mapping relationship between the first tunnel identifier and the preset service type. This design provides an implementation method for setting the mapping relationship.

[0019] In one possible design, the second indication information includes a preset service type and a preset operation. The reader, based at least on the second indication information in the first message, sets the mapping relationship, which may include establishing a third mapping relationship between the preset service type and the preset operation. This design provides an implementation method for setting the mapping relationship.

[0020] In a second aspect, embodiments of the present application provide a communication method, wherein the method is performed by a UPF network element or a module or chip in the UPF network element. The method is described herein using the UPF network element as an example. The method includes: the UPF network element receiving a second message from a server, wherein the second message includes four-tuple information; the UPF network element sending a first message to a reader via a first tunnel, wherein the first message includes first indication information, the first indication information being determined based on the four-tuple information, and the first indication information being used to instruct the reader to perform a first operation; one end of the first tunnel is connected to the reader, and the other end is connected to the UPF network element.

[0021] In this method, the first tunnel is a user plane channel, which is deployed in the park where the business entity is located. When the server and the passive terminal transmit data through the first tunnel, it can effectively ensure that the transmitted data does not leave the park, thereby solving the risk of data leakage and realizing secure data transmission.

[0022] In one possible design, the first indication information is determined in the following manner: the UPF network element determines the first service type corresponding to the four-tuple information based on the four-tuple information and the fourth mapping relationship, wherein the fourth mapping relationship includes a mapping relationship between preset four-tuple information and a preset service type; the UPF network element determines the first operation corresponding to the first service type based on a fifth mapping relationship, wherein the fifth mapping relationship includes a mapping relationship between the preset service type and the preset operation; and the UPF network element generates the first indication information based on the first operation. This design provides a method for generating the first indication information.

[0023] In one possible design, the first indication information is determined in the following manner: the UPF network element determines a first operation corresponding to the four-tuple information based on the four-tuple information and a sixth mapping relationship, where the sixth mapping relationship includes a mapping relationship between preset four-tuple information and preset operations; and the UPF network element generates the first indication information based on the first operation. This design provides a method for generating the first indication information.

[0024] In one possible design, the first indication information is determined in the following manner: the UPF network element determines the first service type corresponding to the four-tuple information based on the four-tuple information and the fourth mapping relationship, wherein the fourth mapping relationship includes a mapping relationship between the preset four-tuple information and the preset service type; the UPF network element determines the first session identifier corresponding to the first service type based on the seventh mapping relationship, wherein the seventh mapping relationship includes a mapping relationship between the preset service type and the first tunnel identifier; and the UPF network element generates the first indication information based on the first session identifier. This design provides a method for generating the first indication information.

[0025] In one possible design, the first indication information is determined in the following manner: the UPF network element determines the first service type corresponding to the four-tuple information based on the four-tuple information and a fourth mapping relationship, where the fourth mapping relationship includes a mapping relationship between preset four-tuple information and preset service types; and the UPF network element generates the first indication information based on the first service type. This design provides a method for generating the first indication information.

[0026] In one possible design, before the UPF network element receives the second message from the server, the method further includes: the UPF network element receiving a fourth mapping relationship from the session management function (SMF) network element, where the fourth mapping relationship is generated based on preset four-tuple information and a preset service type. This design provides an implementation method for the mapping relationship.

[0027] In one possible design, before the UPF network element receives the second message from the server, the method further includes: the UPF network element receiving a fifth mapping relationship from the SMF network element, where the fifth mapping relationship is generated based on a preset service type and a preset operation. This design provides an implementation method for a mapping relationship.

[0028] In one possible design, before the UPF network element receives the second message from the server, the method further includes: the UPF network element receiving a sixth mapping relationship from the SMF network element, where the sixth mapping relationship is generated based on preset four-tuple information and a preset operation. This design provides an implementation method for a mapping relationship.

[0029] In one possible design, before the UPF network element receives the second message from the server, the method further includes: the UPF network element receiving a seventh mapping relationship from the SMF network element, where the seventh mapping relationship is generated based on a preset service type and the first tunnel identifier. This design provides an implementation method for the mapping relationship.

[0030] In one possible design, the preset four-tuple information is generated based on the address and port number of the server and the address and port number of the UPF network element. Through this design, an implementation method for preset four-tuple information is provided.

[0031] In a third aspect, an embodiment of the present application provides a communication method, wherein the execution subject of the method is a TMF network element or a module or chip in the TMF network element. The method is described here using the TMF network element as the execution subject as an example. The method includes: the TMF network element receiving a second message from a server, wherein the second message is used to instruct the session management function (SMF) network element to establish a first tunnel; the TMF network element sending a third message to the SMF network element, wherein the third message includes second indication information, and the second indication information is used to instruct a reader to set a mapping relationship, and the mapping relationship is used by the reader to determine the first operation. This method provides a method for efficiently establishing a tunnel.

[0032] In one possible design, the second message includes a preset service type, wherein the second indication information is determined according to the preset service type. Through this design, an implementation method for the second indication information is provided.

[0033] In one possible design, the second indication information is determined in the following manner: the TMF network element determines a preset operation corresponding to the preset service type based on the preset service type and an eighth mapping relationship, where the eighth mapping relationship includes a mapping relationship between a set service type and a set operation, and the TMF network element uses the preset operation as the second indication information. This design provides an implementation method for the second indication information.

[0034] In a possible design, the second indication information is determined in the following manner: the TMF network element uses a preset service type as the second indication information. Through this design, an implementation method for the second indication information is provided.

[0035] In one possible design, the second indication information is determined in the following manner: the TMF network element determines a preset operation corresponding to the preset service type based on the preset service type and an eighth mapping relationship, wherein the eighth mapping relationship includes a mapping relationship between a set service type and a set operation, and the TMF network element uses the preset service type and the preset operation as the second indication information. This design provides an implementation method for the second indication information.

[0036] In one possible design, the second indication information is determined based on an eighth mapping relationship, wherein the eighth mapping relationship includes a mapping relationship between a set service type and a set operation. Through this design, an implementation method for the second indication information is provided.

[0037] In one possible design, the second indication information is determined by the TMF network element using the set service type as the preset service type, the TMF network element using the set operation as the preset operation, and the TMF network element using the preset service type and the preset operation as the second indication information. This design provides an implementation method for the second indication information.

[0038] In one possible design, the third message also includes a session tag, which is generated by the TMF network element based on a preset service type. This design provides a method for generating a session tag.

[0039] In a possible design, the second message also includes the address and port number of the server, and the third message also includes the address and port number of the server. Through this design, an implementation method for the third message is provided.

[0040] In the fourth aspect, an embodiment of the present application provides a communication method, the execution subject of the method is an SMF network element or a module or chip in the SMF network element, and the method is described here by taking the SMF network element as the execution subject as an example. The method includes: the SMF network element receives a third message sent by the tag management function TMF network element, wherein the third message includes second indication information, the second indication information is used to instruct the reader to set a mapping relationship, the mapping relationship is used by the reader to determine the first operation, and the third message also includes the address and port number of the server. The SMF network element receives the address and port number of the UPF network element sent by the UPF network element, the SMF network element sets the mapping relationship based on the address and port number of the server, the address and port number of the UPF network element and at least one of the second indication information, and the SMF network element sends a fifth message to the UPF network element, and the fifth message includes the mapping relationship. In this method, a method for efficiently establishing a tunnel is provided.

[0041] In one possible design, the method further includes: the SMF network element sending a fourth message to the user plane function (UPF) network element, wherein the fourth message is used to instruct the UPF network element to send CN tunnel information; the SMF network element receiving the core network CN tunnel information sent by the UPF network element; the SMF network element determining a first tunnel identifier based on at least the CN tunnel information; the SMF network element sending a first message to the reader, wherein the first message includes the CN tunnel information and the second indication information; and the SMF network element receiving the access network (AN) tunnel information sent by the reader. This design provides a method for efficiently establishing a tunnel.

[0042] In one possible design, the CN tunnel information includes a tunnel endpoint identifier (TEID) and a transport layer address. The SMF network element determines the first tunnel identifier based at least on the CN tunnel information, which may include: the SMF network element determines the first tunnel identifier based on the TEID and transport layer address in the CN tunnel information. This design provides a method for generating the first tunnel identifier.

[0043] In one possible design, the third message also includes a session tag, and the CN tunnel information includes a TEID and a transport layer address. The SMF network element determines the first tunnel identifier based on at least the CN tunnel information, which may include: the SMF network element determines the first tunnel identifier based on the TEID and transport layer address in the CN tunnel information, as well as the session tag. This design provides a method for generating the first tunnel identifier.

[0044] In a fifth aspect, the present application further provides a communication device capable of implementing any of the methods provided in any of the first to fourth aspects above. The communication device can be implemented by hardware or by hardware executing corresponding software implementations. The hardware or software includes one or more units or modules corresponding to the above functions.

[0045] In one possible design, the communication device includes a processor configured to support the communication device in executing the corresponding functions performed by the reader, UPF network element, TMF network element, or SMF network element in the above-described method. The communication device may also include a memory, which may be coupled to the processor and stores program instructions and data necessary for the communication device. Optionally, the communication device also includes an interface circuit for supporting communication between the communication device and a device such as a terminal device.

[0046] In one possible design, the communication device includes corresponding functional modules for implementing the steps in the above method. The functions can be implemented by hardware or by hardware executing corresponding software implementations. The hardware or software includes one or more modules corresponding to the above functions.

[0047] In one possible design, the structure of the communication device includes a processing unit, a sending unit and a receiving unit, which can perform the corresponding functions in the above method examples. For details, please refer to the description of the method provided in any one of the first to fourth aspects, which will not be repeated here.

[0048] In a sixth aspect, an embodiment of the present application further provides a communication device, comprising modules / units for executing any of the methods provided in any of the first to fourth aspects. These modules / units may be implemented in hardware, or may be implemented in software by hardware.

[0049] In the seventh aspect, an embodiment of the present application provides a communication device, comprising a memory and a processor; wherein the processor is used to execute a computer program or instruction stored in the memory, so that the communication device implements any method provided in any one of the first to fourth aspects above.

[0050] In the eighth aspect, an embodiment of the present application also provides a computer-readable storage medium, which includes a computer program. When the computer program runs on a communication device, the computer-readable storage medium implements any method provided in any one of the first to fourth aspects above.

[0051] In the ninth aspect, an embodiment of the present application also provides a computer program product, which, when running on a communication device, enables the communication device to implement the above-mentioned first to fourth aspects, as well as any possible design method of the first to fourth aspects.

[0052] In a tenth aspect, a chip is provided, comprising a processor and possibly a memory, for implementing the method of any of the first through fourth aspects, and any possible implementation of any of the aspects. The chip may be comprised of a single chip or may include a chip and other discrete components.

[0053] In an eleventh aspect, a communication system is provided, comprising: a reader, a UPF network element, a TMF network element, and an SMF network element;

[0054] The reader is used to implement the method in the aforementioned first aspect and any possible implementation of the first aspect; the UPF network element is used to implement the method in the aforementioned second aspect and any possible implementation of the second aspect; the TMF network element is used to implement the method in the aforementioned third aspect and any possible implementation of the third aspect; the SMF network element is used to implement the method in the aforementioned fourth aspect and any possible implementation of the fourth aspect.

[0055] These and other aspects of the present application will become more readily apparent from the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 is a schematic diagram of the 5G network architecture based on a service-oriented architecture;

[0057] FIG2 is a schematic diagram of the 5G network architecture based on a service-oriented architecture;

[0058] FIG3 is a flow chart of a communication method provided in an embodiment of the present application;

[0059] FIG4 is a schematic structural diagram of a first tunnel identifier provided in an embodiment of the present application;

[0060] FIG5 is a schematic structural diagram of a first tunnel identifier provided in an embodiment of the present application;

[0061] FIG6 is a flow chart of a communication method provided in an embodiment of the present application;

[0062] FIG7 is a schematic structural diagram of a communication device provided in an embodiment of the present application;

[0063] FIG8 is a schematic structural diagram of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0064] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0065] Below, some terms used in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.

[0066] 1) Passive Internet of Things (P-IoT; or ambient internet of things, A-IoT, or Ambient power-enabled Internet of Things), that is, some nodes in the communication network can be passive, and they can obtain energy through solar energy, radio frequency, wind energy, hydropower or tidal energy, and there is no restriction on the way of obtaining energy. These nodes are not equipped with or rely on power devices such as batteries, but obtain energy from the environment to support data perception, transmission and distributed computing. In addition, the nodes can also store the obtained energy. The source Internet of Things architecture includes passive terminals, readers and servers. It should be noted that the present invention is also applicable to active terminal types in A-IoT.

[0067] 2) The passive terminal can be in the form of a tag, such as a passive tag, or any other terminal form. Each passive terminal corresponds to a tag identifier (TID), where the tag identifier can be a globally unique identifier, such as an electronic product code (EPC), or a temporary identifier or a globally non-unique identifier. The tag identifier can include a network identifier and / or a user identifier and / or a tag serial number, where the tag serial number is used for the unique tag within the user.

[0068] 3) The reader can be an access network device, such as a base station, pole station, micro base station, macro station, etc., or a terminal device, such as a mobile phone, Internet of Things (IoT) device, or handheld reader. The reader uses wireless radio frequency to conduct contactless two-way data communication, reading and writing electronic tags or radio frequency cards (Tags) using wireless radio frequency, thereby achieving the purpose of identifying passive terminals and exchanging data with passive terminals. It works in two ways. One is that when a passive terminal enters the effective recognition range of the reader, the passive terminal receives the radio frequency signal emitted by the reader and uses the energy obtained from the induced current to transmit the information stored in the chip of the passive terminal. The other is that the passive terminal can store some electrical energy through methods such as solar energy, allowing the passive terminal to actively transmit information at a certain frequency (this type of terminal can also be called a semi-passive or semi-active terminal). The reader receives and decodes the information and sends it to the central information system for relevant data processing.

[0069] 4) Inventory operation: Inventory operation can also be called inventory operation. Through the inventory operation, the reader can obtain the tag identification of the passive terminal and send the obtained tag identification to the server.

[0070] 5) Read operation: A read operation can access data stored in the passive terminal's storage area. Passive terminals can have storage capabilities, and their storage area can store data. If a server wishes to perform a read operation on a passive terminal, it sends a read instruction. The reader or core network then performs a read operation on the passive terminal based on the read instruction, reads the data from the passive terminal's storage area, and sends the read data to the server. Based on this definition, a read operation can also include a sensor operation, which reads sensor data from a passive terminal.

[0071] 6) Write operation: The reader can write the information to be written into the storage area of ​​the passive terminal. The server can send a write instruction, and the reader or core network performs a write operation on the passive terminal according to the write instruction, writing data into the storage area of ​​the passive terminal.

[0072] 7) Positioning operation, i.e. obtaining the location information of the passive terminal. If the server wants to perform a positioning operation on the passive terminal, it will send a positioning instruction. The reader or core network will perform a positioning operation on the passive terminal, obtain the location information of the passive terminal, and send the location information to the server.

[0073] 8) Kill operation: The kill operation can invalidate or inactivate the tag identification in the passive terminal, that is, the passive terminal no longer participates in the inventory operation and other operations.

[0074] 9) Operations for obtaining tag information (including inventory operations, reading operations, positioning operations, etc.) do not distinguish whether the server is taking inventory of the tag identification of the passive terminal, reading the data information stored in the passive terminal, or obtaining the location information of the passive terminal. This operation will obtain tag information, which can be the tag identification of the passive terminal, the data information stored in the storage area of ​​the passive terminal, or the location information of the passive terminal.

[0075] It should be noted that in the following text of this application, tags are used to illustrate passive terminals and access network devices are used to illustrate readers, which should not be regarded as a specific limitation of this application.

[0076] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0077] Figure 1 is an architectural diagram of a communication system provided in an embodiment of the present application, illustrating a fifth-generation (5G) network architecture based on a service-oriented architecture. The 5G network architecture shown in Figure 1 may include terminal devices, access network (AN) devices, and core network (CN) devices. Terminal devices access the data network (DN) through the access network devices and core network devices. The components of the communication system are described below.

[0078] Terminal devices include devices that provide voice and / or data connectivity to users. For example, a terminal device is a device with wireless transceiver capabilities that can be deployed on land, including indoors or outdoors, handheld, wearable, or vehicle-mounted; it can also be deployed on the water (such as ships, etc.); it can also be deployed in the air (such as airplanes, balloons, and satellites, etc.). The terminal device can be a tag, a mobile phone, a tablet computer, a computer with wireless transceiver capabilities, a virtual reality (VR) terminal, an augmented reality (AR) terminal, a wireless terminal in industrial control, a vehicle-mounted terminal, a wireless terminal in self-driving, a wireless terminal in remote medical care, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, a wearable terminal, etc. The embodiments of the present application do not limit the application scenarios. Terminal equipment may sometimes also be referred to as terminal, user equipment (UE), access terminal, vehicle-mounted terminal, industrial control terminal, UE unit, UE station, mobile station, mobile station, remote station, remote terminal, mobile device, UE terminal, wireless communication equipment, UE agent or UE device, etc. The terminal may also be fixed or mobile. It will be understood that all or part of the functions of the terminal in this application may also be implemented by software functions running on hardware, or by virtualization functions instantiated on a platform (such as a cloud platform). The terminal device in this application may be a terminal for 5G or a terminal for 6G, and this application does not limit this.

[0079] Access network equipment is a device that provides wireless communication capabilities for terminal devices. Examples of access network equipment include, but are not limited to, the next-generation base station (g NodeB, gNB) in 5G, evolved NodeB (eNB), radio network controller (RNC), NodeB (NB), base station controller (BSC), base transceiver station (BTS), home base station (e.g., home evolved NodeB, or home nodeB, HNB), baseband unit (BBU), transmitting and receiving point (TRP), transmitting point (TP), mobile switching center, etc.

[0080] In some deployments, a gNB may include a centralized unit (CU) and a distributed unit (DU). The gNB may also include an active antenna unit (AAU). The CU may implement some gNB functions, while the DU may implement other gNB functions. For example, the CU is responsible for processing non-real-time protocols and services, implementing the functions of the radio resource control (RRC) and packet data convergence protocol (PDCP) layers. The DU is responsible for processing physical layer protocols and real-time services, implementing the functions of the radio link control (RLC), media access control (MAC), and physical (PHY) layers. The AAU implements some physical layer processing functions, RF processing, and active antenna-related functions. RRC layer information is generated by the CU and ultimately encapsulated by the DU's PHY layer into PHY layer information, or is converted from PHY layer information. Therefore, in this architecture, higher-layer signaling, such as RRC layer signaling, can also be considered to be sent by the DU, or by a combination of the DU and the AAU. It can be understood that the access network device may include one or more of a CU node, a DU node, and an AAU node. In addition, the CU can be divided into an access network device in the access network, and the CU can be divided into an access network device in the CN. The access network device can be a radio access network (RAN) device or a wired access network (FAN) device. Among them, the RAN device can be a RAN device for 5G, a RAN device for 6G, or other names, and this application does not limit this.

[0081] Access network equipment and terminal devices can be fixed or mobile. They can be deployed on land, including indoors or outdoors, handheld or vehicle-mounted; on water; or in the air on aircraft, balloons, and satellites. The embodiments of this application do not limit the application scenarios of access network equipment and terminal devices.

[0082] The core network equipment includes some or all of the following network elements: unified data management (UDM) network element, unified data repository (UDR) network element, network exposure function (NEF) network element (not shown in the figure), application function (AF) network element, policy control function (PCF) network element, access and mobility management function (AMF) network element, tag management function (TMF) network element, session management function (SMF) network element, user plane function (UPF) network element, network repository function (NRF) network element (not shown in the figure).

[0083] The mobility management network element is a control plane network element provided by the operator network, responsible for access control and mobility management of terminal devices accessing the operator network, such as mobile state management, allocation of user temporary identity, authentication and authorization of users, etc. In 5G, the mobility management network element can be an AMF network element. In future communications such as the 6th generation (6G), the mobility management network element can still be an AMF network element or have other names, which are not limited in this application.

[0084] The tag management function network element can handle tag operations, perform access control on tags, manage readers and writers, and perform tag data routing and forwarding. In 5G, the tag management function network element can be a TMF network element. In future communications such as the 6th generation (6G), the tag management function network element can still be a TMF network element, or have other names, which are not limited in this application. The TMF network element can be an independent network element or can be co-located with other network elements in the core network. For example, the TMF network element can be co-located with the AMF network element.

[0085] The session management network element is a control plane network element provided by the operator network, which is responsible for managing the protocol data unit (PDU) session of the terminal device. The PDU session is a channel for transmitting PDUs, and the terminal device needs to transmit PDUs to each other with the DN through the PDU session. The SMF network element is responsible for establishing, maintaining and deleting PDU sessions. The session management network element includes session management (such as session establishment, modification and release, including tunnel maintenance between user plane network elements and access network equipment), selection and control of user plane network elements, service and session continuity (SSC) mode selection, roaming and other session-related functions. In 5G, the session management network element can be an SMF network element. In future communications such as 6G, the session management network element can still be an SMF network element, or have other names, which are not limited in this application.

[0086] The user plane network element is a gateway provided by the operator and serves as the gateway for communication between the operator network and the DN. The UPF network element includes user-plane related functions such as data packet routing and transmission, packet detection, service usage reporting, Quality of Service (QoS) processing, lawful interception, uplink packet detection, downlink data packet storage, etc. In 5G, the user plane network element can be a UPF network element. In future communications such as 6G, the user plane network element can still be a UPF network element, or have other names, which are not limited in this application.

[0087] The data management network element is a control plane network element provided by the operator and is responsible for storing information such as the subscriber permanent identifier (SUPI), credentials, security context, and subscription data of subscribers in the operator's network. This information stored by the data management network element can be used for authentication and authorization of terminal devices accessing the operator's network. Subscribers of the operator's network can specifically be users who use services provided by the operator's network, such as users using China Telecom's mobile phone SIM cards or users using China Mobile's mobile phone SIM cards. The subscriber's subscription permanent identifier (SUPI) can be, for example, the SIM card number. The subscriber's credentials and security context can be small files storing encryption keys or information related to the SIM card encryption, used for authentication and / or authorization. The security context can be data (cookies) or tokens stored on the user's local terminal (e.g., a mobile phone). The subscriber's subscription data can be the SIM card's supporting services, such as the SIM card's data package or network usage. It should be noted that permanent identifiers, credentials, security contexts, authentication data (cookies), and tokens are equivalent to authentication and authorization-related information. In this application document, for the sake of convenience of description, no distinction or restriction is made. Unless otherwise specified, the embodiments of this application will be described using security context as an example, but the embodiments of this application are also applicable to authentication and / or authorization information expressed in other ways. In 5G, the data management network element can be a UDM network element. In future communications such as 6G, the data management network element can still be a UDM network element, or have other names, which are not limited in this application.

[0088] The unified database network element is a control plane network element provided by the operator, which includes the access function of executing contract data, policy data, application data, and other types of data. In 5G, the unified database network element can be a UDR network element. In future communications such as 6G, the unified database network element can still be a UDR network element or have other names, which are not limited in this application.

[0089] The network open network element is a control plane network element provided by the operator. The network open network element opens the external interface of the operator network to a third party in a secure manner. When the session management network element needs to communicate with the network element of a third party, the network open network element can serve as a relay for the communication between the session management network element and the network element of the third party. When the network open network element acts as a relay, it can translate the identification information of the contracted user, as well as the identification information of the third-party network element. For example, when the network open network element sends the SUPI of the contracted user from the operator network to the third party, it can translate the SUPI into its corresponding external identity (identity, ID). Conversely, when the network open network element sends the external ID (third-party network element ID) to the operator network, it can translate it into SUPI. In 5G, the network open network element can be a NEF network element. In future communications such as 6G, the network open network element can still be a NEF network element, or have other names, which are not limited in this application.

[0090] The application function network element is used to communicate application-side requirements to the network side, such as QoS requirements or user status event subscriptions. The application function network element can be a third-party functional entity or an application server deployed by the operator. In 5G, the application function network element can be an AF network element. In future communications such as 6G, the application function network element can still be an AF network element or have other names, which are not limited in this application.

[0091] The policy control network element (PCNE) is a control plane function provided by the operator, used to provide PDU session policies to the session management network element. Policies may include charging-related policies, QoS-related policies, and authorization-related policies. In 5G, the policy control network element may be a PCF network element. In future communications such as 6G, the policy control network element may still be a PCF network element or have other names, which are not limited in this application.

[0092] The network storage function network element can be used to provide network element discovery function, and provide network element information corresponding to the network element type based on the request of other network elements. The network storage function network element also provides network element management services, such as network element registration, update, deregistration, and network element status subscription and push. In 5G, the network storage function network element can be an NRF network element. In future communications such as 6G, the network storage function network element can still be an NRF network element, or have other names, which are not limited in this application.

[0093] A data network is a network located outside of a carrier network. The carrier network can access multiple DNs, on which various services can be deployed, providing data and / or voice services to terminal devices. For example, a DN is the private network of a smart factory. Sensors installed in the workshop can be terminal devices. The DN houses a sensor control server, which provides services to the sensors. Sensors can communicate with the control server, receive instructions from the control server, and transmit collected sensor data to the control server according to the instructions. Another example is a DN that is a company's internal office network. An employee's mobile phone or computer can be a terminal device, allowing them to access information and data resources on the company's internal office network.

[0094] In Figure 1, Npcf, Nudr, Nudm, Naf, Namf, and Nsmf are the service-oriented interfaces provided by the PCF, UDR, UDM, AF, AMF, and SMF, respectively, for invoking corresponding service-oriented operations. The N1 interface is the interface between the AMF and the terminal device and is used to transmit NAS signaling (such as QoS rules from the AMF) to the terminal device. The N2 interface is the interface between the AMF and the RAN and is used to transmit radio bearer control information from the core network to the RAN. The N3 interface is the interface between the RAN and the UPF and is primarily used to transmit uplink and downlink user plane data between the RAN and the UPF. The N4 interface is the interface between the SMF and the UPF and is used to transmit information between the control plane and the user plane, including the issuance of forwarding rules, QoS control rules, and traffic statistics rules for the user plane, as well as reporting user plane information. The N6 interface is the interface between the UPF and the DN and is used to transmit uplink and downlink user data flows between the UPF and the DN.

[0095] Assuming that the terminal device in Figure 1 is a passive terminal, the access network device is a reader, and the application function network element is a server, based on the system architecture shown in Figure 1, Figure 2 shows another communication system architecture schematic diagram applicable to the embodiment of the present application. As shown in Figure 2, the communication system may include a passive terminal, a reader, an AMF network element, an SMF network element, an UPF network element, a TMF network element, an NEF network element, and a server. Among them, the specific contents of the passive terminal, reader, AMF network element, SMF network element, UPF network element, TMF network element, NEF network element, and server can be referred to the description of Figure 1, and the repeated parts will not be repeated.

[0096] The server can communicate directly with NEF network elements, NEF network elements can communicate directly with TMF network elements, TMF network elements can communicate directly with SMF network elements, SMF network elements can communicate directly with UPF and AMF network elements, AMF network elements can communicate directly with readers, and readers can communicate directly with passive terminals.

[0097] It is understood that the above-mentioned network element or function can be a network element in a hardware device, a software function running on dedicated hardware, or a virtualized function instantiated on a platform (e.g., a cloud platform). As a possible implementation method, the above-mentioned network element or function can be implemented by a single device, or can be implemented by multiple devices together, or can be a functional module within a single device, which is not specifically limited in the embodiments of the present application.

[0098] It should be noted that the communication system shown in Figure 1 or Figure 2 does not constitute a limitation on the communication system to which the embodiments of the present application can be applied. Therefore, the communication method provided in the embodiments of the present application can also be applied to communication systems of various standards, such as: long term evolution (LTE) communication system, 5G communication system, 6G communication system and future communication system, vehicle to everything (V2X), long term evolution-vehicle network (LTE-vehicle, LTE-V), vehicle to vehicle (V2V), vehicle network, machine type communication (MTC), IoT, long term evolution-machine to machine (LTE-machine to machine, LTE-M), machine to machine (M2M), Internet of Things, etc. In addition, it should be noted that the embodiments of the present application do not limit the names of the network elements in the communication system. For example, in communication systems of different standards, each network element may have other names; for example, when multiple network elements are integrated into the same physical device, the physical device may also have other names.

[0099] The solution provided in this application is described below with reference to the accompanying drawings.

[0100] An embodiment of the present application provides a communication method for establishing a first tunnel between a reader and a UPF network element. The first tunnel is used only to transmit a first message. The service type of the first message may include any of the following: inventory type, read type, write type, positioning type, deactivation type, and tag information acquisition type. The read type includes a normal read type and a batch read type, and the write type includes a normal write type and a batch write type. The communication method can be applied to the communication system shown in Figure 2. The flow of this method is described in detail below with reference to the flowchart shown in Figure 3.

[0101] S301: The server sends a second message to the NEF network element.

[0102] In one possible implementation, the second message includes a server identifier, an address and port number of the server, and a preset service type. In an embodiment of the present application, the server may be an application function network element, such as an AF network element. In the case where the server is an AF network element, the second message includes an AF identifier, an address and port number of the AF, and a preset service type.

[0103] The preset service type may include any of the following: inventory type, normal read type, normal write type, batch read type, batch write type, positioning type, deactivation type, and obtain tag information type, etc.

[0104] The second message may also include the area information of the passive terminal to be operated. If the second message does not include the area information of the tag to be operated, the TMF network element may query the subscription data of the server and obtain the area information of the passive terminal to be operated from the subscription data.

[0105] S302: The NEF network element sends a second message to the TMF network element.

[0106] In a possible implementation, the server may also send the second message directly to the TMF network element without passing through the NEF network element.

[0107] S303: The TMF network element generates a third message based on the second message.

[0108] In one possible implementation, the TMF network element selects an SMF network element associated with the area information of the passive terminal to be operated from multiple candidate SMF network elements based on the acquired area information of the passive terminal to be operated. A specific implementation method may be: converting the area information of the passive terminal to be operated into a cell list, and selecting an SMF network element associated with the cell list from multiple candidate SMF network elements based on the cell list.

[0109] In one possible implementation, the third message includes second indication information, wherein the second indication information is determined based on a preset service type in the second message, and the second indication information is used to instruct the reader to set a mapping relationship, wherein the mapping relationship is used by the reader to determine the first operation.

[0110] The TMF network element may determine the second indication information through the following three possible implementations, the specific implementations of which may be as follows:

[0111] Implementation method a1: The TMF network element uses the preset service type as the second indication information.

[0112] In implementation a2, the TMF network element determines a preset operation corresponding to the preset service type based on the preset service type and the eighth mapping relationship, and uses the preset operation as the second indication information. The eighth mapping relationship includes a mapping relationship between a preset service type and a preset operation. It should be understood that the eighth mapping relationship can be stored in the TMF network element or in another device accessible to the TMF network element, and this is not limited herein.

[0113] In a possible implementation, the set service type in the eighth mapping relationship includes any one of the following: inventory type, normal read type, normal write type, batch read type, batch write type, positioning type, deactivation type, and tag information acquisition type, etc.

[0114] The set operations in the eighth mapping relationship include any one of the following: inventory operation, normal read operation, normal write operation, batch read operation, batch write operation, positioning operation, deactivation operation, and tag information acquisition operation.

[0115] The mapping relationship between the set service types and the set operations is shown in Table 1.

[0116] Table 1

[0117] In Table 1, the business type set to inventory type is used as an example. The set operation corresponding to the inventory type is the inventory operation. When the business type set to other types (except inventory type) is used, the method for determining the set operation is similar to the above method and will not be described in detail below.

[0118] Assuming that the signal coverage of the reader includes M passive terminals, and all M passive terminals need to respond to the broadcast message sent by the reader, the following detailed explanation is given for the set operations in Table 1:

[0119] When the operation is set to inventory, it can be understood as follows: the reader sends a first broadcast message to M passive terminals, where the first broadcast message is used to instruct the passive terminals to send tag identifiers to the reader. After each of the M passive terminals receives the first broadcast message, it sends its corresponding tag identifier to the reader. After receiving a tag identifier from a passive terminal, the reader sends this tag identifier to the server through the UPF network element and waits for tag identifiers to be sent by other passive terminals (except those that have already sent tag identifiers).

[0120] When the operation is set as a normal read operation, it can be understood as follows: the reader sends a second broadcast message to M passive terminals, where the second broadcast message is used to instruct the passive terminals to send the data information in their storage areas to the reader. After each of the M passive terminals receives the second broadcast message, they each send the data information in their storage areas to the reader. After receiving a data message from a passive terminal, the reader sends the data message to the server through the UPF network element and waits for data messages from other passive terminals (except those that have already sent data messages).

[0121] When the operation has been set as a normal read operation, it can also be understood as: the reader sends a third broadcast message to M passive terminals, wherein the third broadcast message is used to instruct the passive terminal to send a tag identifier to the reader. After each of the M passive terminals receives the third broadcast message, they respectively send their corresponding tag identifiers to the reader. After receiving a tag identifier sent by the passive terminal, the reader sends the tag identifier to the server through the UPF network element, and maintains the connection with the passive terminal that sent the tag identifier. The server sends a fourth broadcast message to the reader through the UPF network element, wherein the fourth broadcast message includes the tag identifier obtained by the server, and the fourth broadcast message is used to instruct the passive terminal to send the data information in the storage area of ​​the passive terminal to the reader. After receiving the fourth broadcast message, the reader sends a fourth broadcast message to the passive terminal that maintains the connection. After receiving the fourth broadcast message, the passive terminal sends the data information in the storage area to the reader. After receiving the data information sent by the passive terminal, the reader sends the data information to the server through the UPF network element. At the same time, it cancels the connection with the passive terminal and waits for the tag identification sent by other passive terminals (except the passive terminal that has sent the tag identification).

[0122] When the operation has been set as a normal read operation, it can also be understood as: the reader sends a third broadcast message to M passive terminals, wherein the third broadcast message is used to instruct the passive terminal to send a tag identifier to the reader. After each of the M passive terminals receives the third broadcast message, they respectively send their corresponding tag identifiers to the reader. After receiving a tag identifier sent by the passive terminal, the reader sends the tag identifier to the server through the UPF network element. The server sends a fourth broadcast message to the reader through the UPF network element, wherein the fourth broadcast message includes the tag identifier obtained by the server, and the fourth broadcast message is used to instruct the passive terminal to send the data information in the storage area of ​​the passive terminal to the reader. After receiving the fourth broadcast message, the reader sends the fourth broadcast message to the M passive terminals. After each of the M passive terminals receives the fourth broadcast message, they match the tag identifier in the fourth broadcast message with their own tag identifier. If the match is successful, the data information in the storage area is sent to the reader; if the match fails, no processing is performed. After receiving the data information sent by the passive terminal, the reader sends the data information to the server through the UPF network element and waits for the tag identification sent by other passive terminals (except the passive terminal that has sent the tag identification).

[0123] When the operation has been set as a normal write operation, it can be understood as: the reader sends a fifth broadcast message to M passive terminals, wherein the fifth broadcast message includes information to be written, and the fifth broadcast message is used to instruct the passive terminal to write the information to be written into the storage area of ​​the passive terminal. After each of the M passive terminals receives the fifth broadcast message, they write the information to be written into their respective storage areas. If the passive terminal successfully writes the information to be written into the storage area, the passive terminal sends a write success message to the reader; otherwise, the passive terminal sends a write failure message to the reader. After receiving a write success message or a write failure message sent by the passive terminal, the reader sends the write success message or the write failure message to the server through the UPF network element, and waits for write success messages or write failure messages sent by other passive terminals (except the passive terminals that have sent write success messages or write failure messages).

[0124] When the operation has been set as a normal write operation, it can also be understood as: the reader sends the sixth broadcast message to M passive terminals, wherein the sixth broadcast message is used to instruct the passive terminal to send a tag identifier to the reader. After each of the M passive terminals receives the sixth broadcast message, they respectively send their corresponding tag identifiers to the reader. After receiving a tag identifier sent by the passive terminal, the reader sends the tag identifier to the server through the UPF network element and maintains the connection with the passive terminal that sent the tag identifier. The server sends the seventh broadcast message to the reader through the UPF network element, wherein the seventh broadcast message includes the tag identifier obtained by the server and the information to be written, and the seventh broadcast message is used to instruct the passive terminal to write the information to be written into the storage area of ​​the passive terminal. After receiving the seventh broadcast message, the reader sends the seventh broadcast message to the passive terminal that maintains the connection. After receiving the seventh broadcast message, the passive terminal writes the information to be written into the storage area. If the passive terminal successfully writes the information to be written into the storage area, the passive terminal sends a write success message to the reader; otherwise, the passive terminal sends a write failure message to the reader. After receiving the write success message or write failure message sent by the passive terminal, the reader sends the write success message or write failure message to the server through the UPF network element. At the same time, it cancels the connection with the passive terminal and waits for the tag identification sent by other passive terminals (except the passive terminal that has sent the tag identification).

[0125] When the operation has been set as a normal write operation, it can also be understood as: the reader sends the sixth broadcast message to M passive terminals, wherein the sixth broadcast message is used to instruct the passive terminal to send a tag identifier to the reader. After each of the M passive terminals receives the sixth broadcast message, they respectively send their corresponding tag identifiers to the reader. After receiving a tag identifier sent by the passive terminal, the reader sends the tag identifier to the server through the UPF network element. The server sends the seventh broadcast message to the reader through the UPF network element, wherein the seventh broadcast message includes the tag identifier obtained by the server and the information to be written, and the seventh broadcast message is used to instruct the passive terminal to write the information to be written into the storage area of ​​the passive terminal. After receiving the seventh broadcast message, the reader sends the seventh broadcast message to the M passive terminals. After each of the M passive terminals receives the seventh broadcast message, they match the tag identifier in the seventh broadcast message with their own tag identifier. If the match is successful, the information to be written is written into the storage area; if the match fails, no processing is performed. In the case of a successful match, if the passive terminal successfully writes the information to be written into the storage area, the passive terminal sends a write success message to the reader; otherwise, the passive terminal sends a write failure message to the reader. After receiving the write success message or write failure message sent by the passive terminal, the reader sends the write success message or write failure message to the server through the UPF network element and waits for the tag identification sent by other passive terminals (except the passive terminals that have sent tag identification).

[0126] When the operation is set as a batch read operation, it can be understood as follows: the reader sends the eighth broadcast message to M passive terminals, where the eighth broadcast message instructs the passive terminals to send the data information in their storage areas to the reader. After each of the M passive terminals receives the eighth broadcast message, it sends the data information in its storage areas to the reader. After receiving the data information from the M passive terminals, the reader sends the M data information in batches to the server through the UPF network element.

[0127] When the operation has been set as a batch write operation, it can be understood as follows: the reader sends a ninth broadcast message to M passive terminals, wherein the ninth broadcast message includes the information to be written, and the ninth broadcast message is used to instruct the passive terminal to write the information to be written into the storage area of ​​the passive terminal. After each of the M passive terminals receives the fifth broadcast message, they write the information to be written into their respective storage areas. If the passive terminal successfully writes the information to be written into the storage area, the passive terminal sends a write success message to the reader; otherwise, the passive terminal sends a write failure message to the reader. After receiving the write success message or write failure message sent by the M passive terminals, the reader sends the M write success messages or write failure messages to the server in batches through the UPF network element.

[0128] When the operation is set as a positioning operation, it can be understood as follows: the reader sends the tenth broadcast message to M passive terminals, where the tenth broadcast message is used to instruct the passive terminals to send location information to the reader. After each of the M passive terminals receives the tenth broadcast message, it sends its corresponding location information to the reader. After receiving a piece of location information from a passive terminal, the reader sends this location information to the server through the UPF network element and waits for location information from other passive terminals (except those that have already sent location information).

[0129] When the operation has been set as a deactivation operation, it can be understood as: the reader sends the eleventh broadcast message to M passive terminals, wherein the eleventh broadcast message is used to instruct the passive terminal to invalidate the tag identification in the passive terminal. After each of the M passive terminals receives the eleventh broadcast message, they respectively deactivate their respective tag identifications to invalidate the tag identification. If the passive terminal successfully deactivates the tag identification, the passive terminal sends a deactivation success message to the reader; otherwise, the passive terminal sends a deactivation failure message to the reader. After receiving a deactivation success message or deactivation failure message sent by the passive terminal, the reader sends the deactivation success message or deactivation failure message to the server through the UPF network element, and waits for deactivation success messages or deactivation failure messages sent by other passive terminals (except the passive terminals that have sent deactivation success messages or deactivation failure messages).

[0130] When the operation is set as an operation to obtain tag information, it can be understood as: the reader sends the twelfth broadcast message to M passive terminals, wherein the twelfth broadcast message is used to instruct the passive terminal to send tag information to the reader, wherein the tag information can be at least one of the following: the tag identifier of the passive terminal, the data information stored in the storage area of ​​the passive terminal, and the location information of the passive terminal. After each of the M passive terminals receives the twelfth broadcast message, they respectively send their corresponding tag information to the reader. After receiving a tag information sent by a passive terminal, the reader sends the tag information to the server through the UPF network element, and waits for tag information sent by other passive terminals (except the passive terminals that have sent tag information).

[0131] It should be understood that the defined operations in Table 1, such as inventory operation, normal read operation, normal write operation, batch read operation, batch write operation, positioning operation, deactivation operation, and tag information acquisition operation, are not merely literal meanings, but refer specifically to actions executed by the reader. To facilitate understanding and reading of the specification, the embodiments of this application directly use inventory operation, normal read operation, normal write operation, batch read operation, batch write operation, positioning operation, deactivation operation, and tag information acquisition operation, rather than directly using the corresponding reader actions for each operation.

[0132] In one possible implementation method, the TMF network element determines the preset operation corresponding to the preset business type based on the preset business type and the eighth mapping relationship. This can be achieved through the following steps: the TMF network element searches for the preset business type in the eighth mapping relationship. If there is a set business type that is the same as the preset business type in the eighth mapping relationship, the set operation corresponding to the set business type is used as the preset operation.

[0133] In the embodiment of the present application, the preset service type may include any of the following: inventory type, normal read type, normal write type, batch read type, batch write type, positioning type, deactivation type, and obtain tag information type. Correspondingly, the preset operation may include any of the following: inventory operation, normal read operation, normal write operation, batch read operation, batch write operation, positioning operation, deactivation operation, and obtain tag information operation.

[0134] For example, using the preset service type as the inventory type, the TMF network element searches for the inventory type in the eighth mapping relationship shown in Table 1. Since a preset service type identical to the inventory type exists in the eighth mapping relationship, the preset operation corresponding to the preset service type (i.e., the inventory operation) is used as the preset operation. Finally, the inventory operation is used as the second indication information.

[0135] In implementation a3, the TMF network element determines a preset operation corresponding to the preset service type based on the preset service type and the eighth mapping relationship, and uses the preset service type and the preset operation as the second indication information. The eighth mapping relationship includes a mapping relationship between a set service type and a set operation. It should be understood that the eighth mapping relationship can be stored in the TMF network element or in another device accessible to the TMF network element, and this is not limited herein.

[0136] In one possible implementation method, the TMF network element determines the preset operation corresponding to the preset business type based on the preset business type and the eighth mapping relationship. This can be achieved through the following steps: the TMF network element searches for the preset business type in the eighth mapping relationship. If there is a set business type that is the same as the preset business type in the eighth mapping relationship, the set operation corresponding to the set business type is used as the preset operation.

[0137] Since the preset business types may include any one of the following: inventory type, normal read type, normal write type, batch read type, batch write type, positioning type, deactivation type, and tag information acquisition type, the preset operations may accordingly include any one of the following: inventory operation, normal read operation, normal write operation, batch read operation, batch write operation, positioning operation, deactivation operation, and tag information acquisition operation, etc.

[0138] For example, using the preset service type as the inventory type, the TMF network element searches for the inventory type in the eighth mapping relationship shown in Table 1. Since a preset service type identical to the inventory type exists in the eighth mapping relationship, the preset operation corresponding to the preset service type (i.e., the inventory operation) is used as the preset operation. Finally, the inventory type and inventory operation are used as the second indication information.

[0139] The third message also includes a session tag, where the session tag is generated by the TMF network element based on a preset service type, and the session tag can be used to identify the first tunnel.

[0140] The third message also includes a server identifier, a server address, and a port number, wherein the server identifier, the server address, and the port number are obtained from the second message.

[0141] S304: The TMF network element sends a third message to the SMF network element, wherein the third message is used to instruct the SMF to establish a P-IoT session.

[0142] S305: The SMF network element sends a fourth message to the UPF network element, wherein the fourth message may be used to instruct the UPF network element to send CN tunnel information. Alternatively, the fourth message may be used to instruct the UPF network element to send CN tunnel information, as well as the address and port number of the UPF network element.

[0143] S306, the UPF network element sends CN tunnel information to the SMF network element.

[0144] In one possible implementation, if the fourth message is used to instruct the UPF network element to send CN tunnel information, the UPF network element sends the CN tunnel information to the SMF network element after receiving the fourth message sent by the SMF network element.

[0145] In another possible implementation, if the fourth message is used to instruct the UPF network element to send CN tunnel information, as well as the address and port number of the UPF network element, after the UPF network element receives the fourth message sent by the SMF network element, it sends the CN tunnel information, as well as the address and port number of the UPF network element to the SMF network element.

[0146] In the embodiment of the present application, the CN tunnel information includes a tunnel endpoint identifier (TEID) and a transport layer address, wherein the transport layer address may be the address information of the UPF.

[0147] S307, the SMF network element determines the first tunnel identifier based at least on the CN tunnel information.

[0148] In one possible implementation, the SMF network element may determine the first tunnel identifier through the following two possible implementations, which are specifically implemented as follows:

[0149] In a first possible implementation, the SMF network element may randomly generate a sequence or number and use the random sequence or random number as the first tunnel identifier.

[0150] In a second possible implementation, the SMF network element may determine the first tunnel identifier based on the TEID and the transport layer address in the CN tunnel information. For example, as shown in FIG4 , the TEID and the transport layer address may be concatenated to form the first tunnel identifier.

[0151] In a third possible implementation, the SMF network element may determine the first tunnel identifier based on the TEID and transport layer address in the CN tunnel information, as well as the session label. For example, as shown in FIG5 , the TEID, transport layer address, and session label are concatenated to form the first tunnel identifier.

[0152] S308, the SMF network element sends a first message to the AMF network element.

[0153] In a possible implementation, the first message includes CN tunnel information and second indication information, where the second indication information is used to instruct the reader to set a mapping relationship, wherein the mapping relationship is used by the reader to determine the first operation.

[0154] The first message may further include a first tunnel identifier.

[0155] S309, the AMF network element sends a first message to the reader.

[0156] S310: The reader determines AN tunnel information based on the CN tunnel information in the first message.

[0157] In the embodiment of the present application, the AN tunnel information includes an endpoint identifier (endpoint identifier) ​​of the reader and a corresponding quality of service flow identifier (QoS flow identifier, QFI).

[0158] The reader establishes a ninth mapping relationship between the CN tunnel information, the AN tunnel information, and the first tunnel identifier. It should be understood that the ninth mapping relationship may be stored in the reader or in another device accessible to the reader, without limitation herein. After the reader establishes the ninth mapping relationship, when the reader uses the first tunnel, it may determine the first tunnel based on the ninth mapping relationship and use the first tunnel to transmit data.

[0159] S311, the reader sends AN tunnel information to the AMF network element.

[0160] S312: The reader sets a mapping relationship based at least on the second indication information in the first message.

[0161] In one possible implementation, the reader may set the mapping relationship through the following three possible implementations, the specific implementations of which may be as follows:

[0162] Implementation b1: when the second indication information includes a preset operation, the reader establishes a first mapping relationship between the first tunnel identifier and the preset operation.

[0163] Implementation b2: When the second indication information includes a preset service type, the reader establishes a second mapping relationship between the first tunnel identifier and the preset service type.

[0164] Implementation b3: When the second indication information includes a preset service type and a preset operation, the reader establishes a third mapping relationship between the preset service type and the preset operation.

[0165] In the present application, the first mapping relationship, the second mapping relationship, and the third mapping relationship generated by the above three implementation methods can be stored in the reader or in other devices accessible to the reader, which is not limited here.

[0166] It should be understood that implementation modes b1 to b3 can be used alone or in combination, and are not limited here.

[0167] There is no particular order in which S310 to S311 and S312 are executed.

[0168] S313, the AMF network element sends AN tunnel information to the SMF network element.

[0169] S314, the SMF network element sends the fifth message to the UPF network element.

[0170] In this embodiment of the present application, the fifth message may include the following two possible contents:

[0171] In a first possible implementation, the fifth message includes AN tunnel information, a first tunnel identifier, and at least one of the following: a server address and port number, and second indication information. The second indication information may include the following three possible implementations: the second indication information may include a preset service type, or the second indication information may include a preset operation, or the second indication information may include both a preset service type and a preset operation.

[0172] After receiving the fifth message, the UPF network element stores the AN tunnel information and the first tunnel identifier in the fifth message. It should be understood that after the reader receives the CN tunnel information and the UPF network element receives the AN tunnel information, the first tunnel between the reader and the UPF network element is established. The UPF network element can determine the first tunnel using the stored first tunnel identifier.

[0173] The UPF network element may also establish a ninth mapping relationship between the CN tunnel information, the AN tunnel information, and the first tunnel identifier. It should be understood that the ninth mapping relationship may be stored in the reader or in other devices accessible to the reader, and this is not limited here. After the UPF network element establishes the ninth mapping relationship, when the UPF network element uses the first tunnel, it may determine the first tunnel based on the ninth mapping relationship and use the first tunnel to transmit data.

[0174] In addition, the UPF network element further determines the mapping relationship based on the fifth message, which may include the following possible implementations:

[0175] In implementation c1, when the fifth message includes the server's address and port number and second indication information, where the second indication information includes a preset service type, the UPF network element first generates preset four-tuple information based on the server's address and port number and the UPF network element's address and port number; and then establishes a fourth mapping relationship between the preset four-tuple information and the preset service type. The address of the UPF network element is a public network address. It should be understood that the fourth mapping relationship can be stored in the UPF network element or in another device accessible to the UPF network element, without limitation herein.

[0176] For example, assuming that the address of the server is 192.169.10.0 and the address of the UPF network element is 192.169.10.1, the fourth mapping relationship can be as shown in Table 2.

[0177] Table 2

[0178] Taking the preset quadruple information in Table 2 as (192.169.10.0:1, 192.169.10.1:1) as an example, the server address is 192.169.10.0, the server port number is 1, the UPF network element address is 192.169.10.1, the UPF network element port number is 1, and the preset service type corresponding to the preset quadruple information is the inventory type. For other preset quadruple information in Table 2, the method for determining the preset service type is similar to the above method and will not be repeated herein.

[0179] In implementation c2, when the fifth message includes second indication information, where the second indication information includes a preset service type and a preset operation, the UPF network element establishes a fifth mapping relationship between the preset service type and the preset operation. It should be understood that the fifth mapping relationship can be stored in the UPF network element or in another device accessible to the UPF network element, and is not limited here.

[0180] The mapping relationship between the preset service types and the preset operations is shown in Table 3.

[0181] Table 3

[0182] For example, the preset business type in Table 3 is an inventory type, and the preset operation corresponding to the inventory type is an inventory operation. When the preset business type is other types (except the inventory type), the method for determining the preset operation is similar to the above method and will not be described in detail below.

[0183] In implementation c3, when the fifth message includes the server's address and port number and second indication information, where the second indication information includes a preset operation, the UPF network element first generates preset four-tuple information based on the server's address and port number and the UPF network element's address and port number; and then establishes a sixth mapping relationship between the preset four-tuple information and the preset operation. The address of the UPF network element is a public network address. It should be understood that the sixth mapping relationship can be stored in the UPF network element or in another device accessible to the UPF network element, without limitation herein.

[0184] For example, assuming that the address of the server is 192.169.10.0 and the address of the UPF network element is 192.169.10.1, the fourth mapping relationship can be as shown in Table 4.

[0185] Table 4

[0186] Taking the preset quadruple information in Table 4 as (192.169.10.0:1, 192.169.10.1:1) as an example, the server address is 192.169.10.0, the server port number is 1, the UPF network element address is 192.169.10.1, the UPF network element port number is 1, and the preset operation corresponding to the preset quadruple information is an inventory operation. For other preset quadruple information in Table 4, the method for determining the preset operation is similar to the above method and will not be repeated in detail later.

[0187] In implementation c4, when the fifth message includes second indication information, where the second indication information includes a preset service type, the UPF network element establishes a seventh mapping relationship between the preset service type and the first tunnel identifier. It should be understood that the seventh mapping relationship may be stored in the UPF network element or in another device accessible to the UPF network element, and this is not limited herein.

[0188] The preset service type may include any one of the following: inventory type, normal read type, normal write type, batch read type, batch write type, positioning type, deactivation type, and obtain tag information type.

[0189] If the first tunnel is used to transmit the first message of the inventory type, the preset service type is the inventory type, and the inventory type is associated with the first tunnel identifier.

[0190] It should be understood that implementation modes c1 to c4 can be used alone or in combination, and are not limited here.

[0191] In a second possible implementation manner, the fifth message includes AN tunnel information, a first tunnel identifier, and at least one of the following mapping relationships: a fourth mapping relationship, a fifth mapping relationship, a sixth mapping relationship, and a seventh mapping relationship.

[0192] After receiving the fifth message, the UPF network element stores the AN tunnel information and the first tunnel identifier in the fifth message. It should be understood that after the reader receives the CN tunnel information and the UPF network element receives the AN tunnel information, the first tunnel between the reader and the UPF network element is established. The UPF network element can determine the first tunnel using the stored first tunnel identifier.

[0193] The UPF network element may also establish a ninth mapping relationship between the CN tunnel information, the AN tunnel information, and the first tunnel identifier. It should be understood that the ninth mapping relationship may be stored in the reader or in other devices accessible to the reader, and this is not limited here. After the UPF network element establishes the ninth mapping relationship, when the UPF network element uses the first tunnel, it may determine the first tunnel based on the ninth mapping relationship and use the first tunnel to transmit data.

[0194] In one possible implementation, the fourth mapping relationship can be set in the following manner: the SMF network element first generates preset four-tuple information based on the address and port number of the server and the address and port number of the UPF network element; and then establishes a fourth mapping relationship between the preset four-tuple information and the preset service type in the second indication information. The address of the UPF network element is a public network address.

[0195] In one possible implementation, the fifth mapping relationship can be set in the following manner: the SMF network element establishes the fifth mapping relationship between the preset service type and the preset operation in the second indication information.

[0196] In one possible implementation, the sixth mapping relationship can be set in the following manner: the SMF network element first generates preset four-tuple information based on the address and port number of the server and the address and port number of the UPF network element; and then establishes the sixth mapping relationship between the preset four-tuple information and the preset operation in the second indication information. The address of the UPF network element is a public network address.

[0197] In one possible implementation, the seventh mapping relationship can be set in the following manner: the SMF network element establishes the seventh mapping relationship between the preset service type in the second indication information and the first tunnel identifier.

[0198] In an embodiment of the present application, when the second indication information includes a preset service type, the fifth message includes AN tunnel information, a first tunnel identifier and a fourth mapping relationship, or the fifth message includes AN tunnel information, a first tunnel identifier and a seventh mapping relationship.

[0199] In a case where the second indication information includes the preset service type and the preset operation, the fifth message includes AN tunnel information, the first tunnel identifier and the fifth mapping relationship.

[0200] In the case that the second indication information includes the preset operation, the fifth message includes the AN tunnel information, the first tunnel identifier and the sixth mapping relationship.

[0201] S315, the UPF network element sends the sixth information to the SMF network element.

[0202] In one possible implementation, the sixth message includes the first tunnel identifier, the address and port number of the UPF network element.

[0203] S316, the SMF network element sends the sixth information to the TMF network element.

[0204] S317, the TMF network element sends sixth information to the NEF network element.

[0205] S318, the NEF network element sends sixth information to the server.

[0206] In this application, a second tunnel needs to be established between the reader and the UPF network element. The second tunnel is only used to transmit the second message. The service type of the second message is different from the service type of the first message. The method of establishing the second tunnel is similar to the method of establishing the first tunnel. It is not limited here and will not be repeated later.

[0207] In an embodiment of the present application, multiple tunnels are established between the reader and the UPF network element, and the service types of different messages transmitted by each tunnel are different, which can effectively improve the efficiency of the reader in processing messages.

[0208] The embodiment of the present application provides a communication method for transmitting a first message between a passive terminal and a server, and the method can be applied to the communication system shown in Figure 2. The flow of the method is described in detail below with reference to the flowchart shown in Figure 6.

[0209] S601, the server sends a second message to the UPF network element.

[0210] In one possible implementation, the second message includes four-tuple information, and the four-tuple information includes the address and port number of the server, and the address and port number of the UPF network element.

[0211] Optionally, the second message may further include filter information, wherein the filter information may include at least one of the following: a network identifier, a user identifier, a label identifier of at least one first passive terminal, and a label identifier range. In the embodiment of the present application, the filter information may also be referred to as mask information.

[0212] Taking the network identifier in the second message as an example, the network identifier may be a public land mobile network address (PLMN ID).

[0213] Taking the user identifier in the second message as an example, the user identifier may be an AF identifier.

[0214] Taking the label identifier of at least one first passive terminal in the second message as an example, the second message includes label identifier 1 and label identifier 2.

[0215] Taking the range of label identifiers in the second message as an example, the second message includes label identifiers 1 to 5.

[0216] Optionally, the second message may also include information to be processed. For example, when the server performs a write operation on the passive terminal, the information to be processed may be information to be written, and the passive terminal may write the information to be written into a storage area of ​​the passive terminal; when the server performs a read operation on the passive terminal, the information to be processed may be storage area index information, and the passive terminal may obtain data information from the storage area corresponding to the storage area index information; when the server performs a positioning operation on the passive terminal, the information to be processed may be range information, and the passive terminal may determine whether it is within a range determined by the range information.

[0217] S602, the UPF network element generates a first message based on the second message.

[0218] In a possible implementation, the first message includes first indication information, the first indication information is determined according to the four-tuple information, and the first indication information is used to instruct the reader to perform the first operation.

[0219] Optionally, when the second message includes the tag identifier of at least one first passive terminal, the first message may also include the tag identifier of at least one first passive terminal.

[0220] Optionally, when the second message includes information to be written, the first message may also include information to be written.

[0221] In one possible implementation, the UPF network element may determine the first indication information through the following four possible implementations, the specific implementations may be as follows:

[0222] In implementation d1, when the UPF network element stores the fourth mapping relationship, the UPF network element first determines the first service type corresponding to the quadruple information based on the quadruple information and the fourth mapping relationship, and then generates the first indication information based on the first service type. The fourth mapping relationship includes a mapping relationship between the preset quadruple information and the preset service type.

[0223] Further explanation is as follows: when the UPF network element stores the fourth mapping relationship, the UPF network element searches for the quadruple information in the fourth mapping relationship. If there is preset quadruple information that is the same as the quadruple information in the fourth mapping relationship, the preset service type corresponding to the preset quadruple information is used as the first service type, and the first indication information is generated based on the first service type.

[0224] In implementation d2, when the UPF network element stores the fourth mapping relationship and the fifth mapping relationship, the UPF network element first determines the first service type corresponding to the four-tuple information based on the four-tuple information and the fourth mapping relationship; then determines the first operation corresponding to the first service type based on the fifth mapping relationship; and finally, generates first indication information based on the first operation. The fourth mapping relationship includes a mapping relationship between the preset four-tuple information and the preset service type, and the fifth mapping relationship includes a mapping relationship between the preset service type and the preset operation.

[0225] Further explanation is as follows: when the UPF network element stores the fourth mapping relationship and the fifth mapping relationship, the UPF network element searches for the four-tuple information in the fourth mapping relationship. If the fourth mapping relationship contains the same preset four-tuple information as the four-tuple information, the preset service type corresponding to the preset four-tuple information is used as the first service type. The UPF network element searches for the first service type in the fifth mapping relationship. If the fifth mapping relationship contains the same preset service type as the first service type, the preset operation corresponding to the preset service type is used as the first operation, and first indication information is generated based on the first operation.

[0226] In implementation d3, when the UPF network element stores the sixth mapping relationship, the UPF network element determines the first operation corresponding to the quadruple information based on the quadruple information and the sixth mapping relationship, and then generates first indication information based on the first operation. The sixth mapping relationship includes a mapping relationship between preset quadruple information and preset operations.

[0227] Further explanation is as follows: when the UPF network element stores the sixth mapping relationship, the UPF network element searches for the quadruple information in the sixth mapping relationship. If there is preset quadruple information that is the same as the quadruple information in the sixth mapping relationship, the preset operation corresponding to the preset quadruple information is used as the first operation, and the first indication information is generated based on the first operation.

[0228] In implementation d4, when the UPF network element stores the fourth mapping relationship and the seventh mapping relationship, the UPF network element first determines the first service type corresponding to the four-tuple information based on the four-tuple information and the fourth mapping relationship; then determines the first session identifier corresponding to the first service type based on the seventh mapping relationship; and finally, generates the first indication information based on the first session identifier. The fourth mapping relationship includes a mapping relationship between the preset four-tuple information and the preset service type, and the seventh mapping relationship includes a mapping relationship between the preset service type and the first tunnel identifier.

[0229] Further explanation is as follows: in the case where the UPF network element stores the fourth mapping relationship and the seventh mapping relationship, the UPF network element searches for the four-tuple information in the fourth mapping relationship. If the fourth mapping relationship contains preset four-tuple information that is identical to the four-tuple information, the preset service type corresponding to the preset four-tuple information is used as the first service type. The UPF network element searches for the first service type in the seventh mapping relationship. If the seventh mapping relationship contains the preset service type that is identical to the first service type, the first tunnel identifier corresponding to the preset service type is used as the first session identifier, and first indication information is generated based on the first session identifier.

[0230] S603, the UPF network element sends a first message to the reader through the first tunnel.

[0231] In a possible implementation, before the UPF network element sends the first message to the reader through the first tunnel, it needs to determine the first tunnel for transmitting the first message from multiple tunnels based on the second message.

[0232] Since multiple tunnels are established between the UPF network element and the reader, and the UPF network element stores the tunnel identifier corresponding to each tunnel, such as the first tunnel identifier corresponding to the first tunnel, the second tunnel identifier corresponding to the second tunnel, etc., the UPF network element can select the first tunnel from multiple tunnels based on the first tunnel identifier corresponding to the first tunnel.

[0233] The UPF network element selects the first tunnel from multiple tunnels by the following method: the UPF network element first determines the first service type corresponding to the four-tuple information based on the four-tuple information and the fourth mapping relationship; then determines the first session identifier corresponding to the first service type based on the seventh mapping relationship; finally, determines the first tunnel corresponding to the first session identifier from multiple tunnels.

[0234] S604: The reader performs a first operation based on the first instruction information in the first message.

[0235] In one possible implementation, the reader may perform the first operation through the following four possible implementations, which are specifically described as follows:

[0236] In embodiment e1, when the first indication information includes a first service type and the reader stores a third mapping relationship, the reader determines a first operation corresponding to the first service type based on the first service type and the third mapping relationship, and performs the first operation. The third mapping relationship includes a mapping relationship between a preset service type and a preset operation.

[0237] It is further explained as follows: when the first indication information includes the first business type and the reader stores a third mapping relationship, the reader searches for the first business type in the third mapping relationship. If there is a preset business type that is the same as the first business type in the third mapping relationship, the preset operation corresponding to the preset business type is used as the first operation, and the first operation is executed.

[0238] Implementation e2: When the first indication information includes a first operation, the reader obtains the first operation from the first indication information and executes the first operation.

[0239] In embodiment e3, when the first indication information includes a first session identifier and the reader stores a first mapping relationship, the reader determines a first operation corresponding to the first session identifier based on the first session identifier and the first mapping relationship, and performs the first operation. The first mapping relationship includes a mapping relationship between the first tunnel identifier and a preset operation.

[0240] It is further explained as follows: when the first indication information includes a first session identifier and the reader stores a first mapping relationship, the reader searches for the first session identifier in the first mapping relationship. If there is a first tunnel identifier that is the same as the first session identifier in the first mapping relationship, the preset operation corresponding to the first tunnel identifier is used as the first operation, and the first operation is executed.

[0241] In embodiment e4, when the first indication information includes the first session identifier and the reader stores a second mapping relationship and a third mapping relationship, the reader first determines the first service type corresponding to the first session identifier based on the first session identifier and the second mapping relationship, and then determines the first operation corresponding to the first service type based on the first service type and the third mapping relationship. The second mapping relationship includes a mapping relationship between the first tunnel identifier and a preset service type, and the third mapping relationship includes a mapping relationship between the preset service type and a preset operation.

[0242] Further explanation is as follows: if the first indication information includes a first session identifier, and the reader stores a second mapping relationship and a third mapping relationship, the reader searches the second mapping relationship for the first session identifier. If the second mapping relationship contains a first tunnel identifier that is identical to the first session identifier, the reader uses the preset service type corresponding to the first tunnel identifier as the first service type. The reader searches the third mapping relationship for the first service type. If the third mapping relationship contains a preset service type that is identical to the first service type, the reader uses the preset operation corresponding to the preset service type as the first operation and executes the first operation.

[0243] The first operation may be any one of the following: an inventory operation, a normal read operation, a normal write operation, a batch read operation, a batch write operation, a positioning operation, a deactivation operation, and a tag information acquisition operation.

[0244] In the embodiment of the present application, the reader does not store the specific execution method of the first operation, but directly determines the first operation to be performed based on the first indication information in the first message and performs the first operation, which can effectively ensure the security of data transmission.

[0245] S605: The passive terminal sends a first operation result to the reader.

[0246] In one possible implementation, assuming that the signal coverage of the reader includes M passive terminals and the first message does not include the tag identifier of at least one first passive terminal, the reader performs the first operation and the passive terminal sends the first operation result to the reader. The following detailed explanation is provided:

[0247] If the first operation is an inventory operation, the reader sends a first broadcast message to M passive terminals, where the first broadcast message is used to instruct the passive terminals to send tag identifiers to the reader. After each of the M passive terminals receives the first broadcast message, it sends its corresponding tag identifier to the reader. After receiving a tag identifier from a passive terminal, the reader sends the tag identifier to the UPF network element via the first tunnel. The UPF network element then sends the tag identifier to the server. At the same time, the reader waits for tag identifiers to be sent by other passive terminals (except those that have already sent tag identifiers).

[0248] In the case where the first operation is an inventory operation, the first operation is: the reader sends a first broadcast message to M passive terminals, wherein the first broadcast message is used to instruct the passive terminal to send a tag identification to the reader. The result of the first operation is: the tag identification of the passive terminal.

[0249] If the first operation is a normal read operation, the reader sends a second broadcast message to the M passive terminals. The second broadcast message instructs the passive terminals to send the data in their storage areas to the reader. After each of the M passive terminals receives the second broadcast message, they each send the data in their respective storage areas to the reader. After receiving a piece of data from a passive terminal, the reader sends the data to the UPF network element via the first tunnel. The UPF network element then sends the data to the server. Meanwhile, the reader waits for data from other passive terminals (except those that have already sent data).

[0250] When the first operation is a normal read operation, the first operation is: the reader sends a second broadcast message to M passive terminals, wherein the second broadcast message is used to instruct the passive terminals to send data information in their storage areas to the reader. The result of the first operation is: the data information in the storage areas of the passive terminals.

[0251] Alternatively, if the first operation is a normal read operation, the reader sends a third broadcast message to M passive terminals, wherein the third broadcast message is used to instruct the passive terminal to send a tag identifier to the reader. After each of the M passive terminals receives the third broadcast message, they respectively send their corresponding tag identifiers to the reader. After receiving a tag identifier sent by the passive terminal, the reader sends the tag identifier to the UPF network element through the first tunnel, and the UPF network element then sends the tag identifier to the server. At the same time, the reader maintains a connection with the passive terminal that sent the tag identifier. The server sends a fourth broadcast message to the reader through the UPF network element and the first tunnel, wherein the fourth broadcast message includes the tag identifier obtained by the server, and the fourth broadcast message is used to instruct the passive terminal to send data information in the storage area of ​​the passive terminal to the reader. After receiving the fourth broadcast message, the reader sends a fourth broadcast message to the passive terminal that maintains the connection. After receiving the fourth broadcast message, the passive terminal sends the data information in the storage area to the reader. After receiving the data information sent by the passive terminal, the reader sends the data information to the UPF network element through the first tunnel, and the UPF network element then sends the data information to the server. At the same time, the reader cancels the connection with the passive terminal and waits for the tag identifier sent by other passive terminals (except the passive terminal that has sent the tag identifier).

[0252] If the first operation is a normal read operation, the first operation is: the reader sends a third broadcast message and a fourth broadcast message to M passive terminals. The third broadcast message instructs the passive terminal to send the tag identifier to the reader, and the fourth broadcast message includes the tag identifier obtained by the server. The fourth broadcast message instructs the passive terminal to send the data information in the passive terminal's storage area to the reader. The result of the first operation is: the data information in the passive terminal's storage area.

[0253] Alternatively, if the first operation is a normal read operation, the reader sends a third broadcast message to M passive terminals, wherein the third broadcast message is used to instruct the passive terminal to send a tag identifier to the reader. After each of the M passive terminals receives the third broadcast message, they respectively send their corresponding tag identifiers to the reader. After receiving a tag identifier sent by the passive terminal, the reader sends the tag identifier to the UPF network element through the first tunnel, and the UPF network element then sends the tag identifier to the server. The server sends a fourth broadcast message to the reader through the UPF network element and the first tunnel, wherein the fourth broadcast message includes the tag identifier obtained by the server, and the fourth broadcast message is used to instruct the passive terminal to send the data information in the storage area of ​​the passive terminal to the reader. After receiving the fourth broadcast message, the reader sends a fourth broadcast message to the M passive terminals. After each of the M passive terminals receives the fourth broadcast message, they match the tag identifier in the fourth broadcast message with their own tag identifier. If the match is successful, the data information in the storage area is sent to the reader; if the match fails, no processing is performed. After receiving the data information sent by the passive terminal, the reader sends the data information to the UPF network element through the first tunnel, and then the UPF network element sends the data information to the server. At the same time, the reader waits for the tag identification sent by other passive terminals (except the passive terminal that has sent the tag identification).

[0254] If the first operation is a normal read operation, the first operation is: the reader sends a third broadcast message and a fourth broadcast message to M passive terminals. The third broadcast message instructs the passive terminal to send the tag identifier to the reader, and the fourth broadcast message includes the tag identifier obtained by the server. The fourth broadcast message instructs the passive terminal to send the data information in the passive terminal's storage area to the reader. The result of the first operation is: the data information in the passive terminal's storage area.

[0255] If the first operation is a normal write operation, the reader sends a fifth broadcast message to M passive terminals, wherein the fifth broadcast message includes information to be written, and the fifth broadcast message is used to instruct the passive terminal to write the information to be written into the storage area of ​​the passive terminal. After each of the M passive terminals receives the fifth broadcast message, they write the information to be written into their respective storage areas. If the passive terminal successfully writes the information to be written into the storage area, the passive terminal sends a write success message to the reader; otherwise, the passive terminal sends a write failure message to the reader. After receiving a write success message or a write failure message sent by the passive terminal, the reader sends the write success message or the write failure message to the UPF network element through the first tunnel, and the UPF network element then sends the write success message or the write failure message to the server. At the same time, the reader waits for write success messages or write failure messages sent by other passive terminals (except the passive terminals that have sent write success messages or write failure messages).

[0256] When the first operation is a normal write operation, the first operation is: the reader sends a fifth broadcast message to M passive terminals, where the fifth broadcast message includes the information to be written and instructs the passive terminals to write the information to be written into their storage areas. The result of the first operation is: a write success message or a write failure message from the passive terminal.

[0257] Alternatively, if the first operation is a normal write operation, the reader sends a sixth broadcast message to M passive terminals, wherein the sixth broadcast message is used to instruct the passive terminal to send a tag identifier to the reader. After each of the M passive terminals receives the sixth broadcast message, they respectively send their corresponding tag identifiers to the reader. After receiving a tag identifier sent by the passive terminal, the reader sends the tag identifier to the UPF network element through the first tunnel, and the UPF network element then sends the tag identifier to the server. At the same time, the reader maintains a connection with the passive terminal that sends the tag identifier. The server sends a seventh broadcast message to the reader through the UPF network element and the first tunnel, wherein the seventh broadcast message includes the tag identifier obtained by the server and the information to be written, and the seventh broadcast message is used to instruct the passive terminal to write the information to be written into the storage area of ​​the passive terminal. After receiving the seventh broadcast message, the reader sends the seventh broadcast message to the passive terminal that maintains the connection. After receiving the seventh broadcast message, the passive terminal writes the information to be written into the storage area. If the passive terminal successfully writes the information to be written into the storage area, the passive terminal sends a write success message to the reader; otherwise, the passive terminal sends a write failure message to the reader. After receiving the write success message or write failure message sent by the passive terminal, the reader sends the write success message or write failure message to the UPF network element through the first tunnel, and the UPF network element then sends the write success message or write failure message to the server. At the same time, the reader cancels the connection with the passive terminal and waits for the tag identification sent by other passive terminals (except the passive terminal that has sent the tag identification).

[0258] If the first operation is a normal write operation, the first operation is as follows: the reader sends a sixth broadcast message and a seventh broadcast message to M passive terminals. The sixth broadcast message instructs the passive terminal to send the tag identifier to the reader, and the seventh broadcast message includes the tag identifier obtained by the server and the information to be written. The seventh broadcast message instructs the passive terminal to write the information to be written into the passive terminal's storage area. The result of the first operation is a write success message or a write failure message from the passive terminal.

[0259] Alternatively, if the first operation is a normal write operation, the reader sends a sixth broadcast message to M passive terminals, wherein the sixth broadcast message is used to instruct the passive terminal to send a tag identifier to the reader. After each of the M passive terminals receives the sixth broadcast message, they respectively send their corresponding tag identifiers to the reader. After receiving a tag identifier sent by the passive terminal, the reader sends the tag identifier to the UPF network element through the first tunnel, and the UPF network element then sends the tag identifier to the server. The server sends a seventh broadcast message to the reader through the UPF network element, wherein the seventh broadcast message includes the tag identifier obtained by the server and the information to be written, and the seventh broadcast message is used to instruct the passive terminal to write the information to be written into the storage area of ​​the passive terminal. After receiving the seventh broadcast message, the reader sends the seventh broadcast message to the M passive terminals. After each of the M passive terminals receives the seventh broadcast message, they match the tag identifier in the seventh broadcast message with their own tag identifier. If the match is successful, the information to be written is written into the storage area; if the match fails, no processing is performed. In the case of a successful match, if the passive terminal successfully writes the information to be written into the storage area, the passive terminal sends a write success message to the reader; otherwise, the passive terminal sends a write failure message to the reader. After receiving the write success message or write failure message sent by the passive terminal, the reader sends the write success message or write failure message to the UPF network element through the first tunnel, and the UPF network element then sends the write success message or write failure message to the server. At the same time, the reader waits for the tag identifiers sent by other passive terminals (except the passive terminals that have already sent tag identifiers).

[0260] If the first operation is a normal write operation, the first operation is as follows: the reader sends a sixth broadcast message and a seventh broadcast message to M passive terminals. The sixth broadcast message instructs the passive terminal to send the tag identifier to the reader, and the seventh broadcast message includes the tag identifier obtained by the server and the information to be written. The seventh broadcast message instructs the passive terminal to write the information to be written into the passive terminal's storage area. The result of the first operation is a write success message or a write failure message from the passive terminal.

[0261] If the first operation is a batch read operation, the reader sends an eighth broadcast message to the M passive terminals. This eighth broadcast message instructs the passive terminals to send the data stored in their storage areas to the reader. After receiving the eighth broadcast message, each of the M passive terminals sends the data stored in its storage area to the reader. After receiving the data from the M passive terminals, the reader sends the M data in batches to the UPF network element via the first tunnel. The UPF then forwards the data to the server.

[0262] When the first operation is a batch read operation, the first operation is: the reader sends an eighth broadcast message to M passive terminals, wherein the eighth broadcast message is used to instruct the passive terminals to send data information in their storage areas to the reader. The result of the first operation is: the data information in the storage areas of the passive terminals.

[0263] If the first operation is a batch write operation, the reader sends a ninth broadcast message to M passive terminals, wherein the ninth broadcast message includes information to be written, and the ninth broadcast message is used to instruct the passive terminal to write the information to be written into the storage area of ​​the passive terminal. After each of the M passive terminals receives the fifth broadcast message, they write the information to be written into their respective storage areas. If the passive terminal successfully writes the information to be written into the storage area, the passive terminal sends a write success message to the reader; otherwise, the passive terminal sends a write failure message to the reader. After receiving the write success message or write failure message sent by the M passive terminals, the reader sends the M write success messages or write failure messages to the UPF network element in batches through the first tunnel, and then the UPF network element sends them to the server.

[0264] When the first operation is a batch write operation, the first operation is: the reader sends a ninth broadcast message to M passive terminals, wherein the ninth broadcast message includes the information to be written and instructs the passive terminals to write the information to be written into their storage areas. The result of the first operation is: a write success message or a write failure message from the passive terminal.

[0265] If the first operation is a positioning operation, the reader sends the tenth broadcast message to M passive terminals. This tenth broadcast message instructs the passive terminals to send their location information to the reader. After each of the M passive terminals receives the tenth broadcast message, it sends its corresponding location information to the reader. After receiving a piece of location information from one of the M passive terminals, the reader sends this location information to the UPF network element via the first tunnel, which then forwards it to the server. Simultaneously, the reader waits for location information from other passive terminals (except those that have already sent location information).

[0266] In the case where the first operation is a positioning operation, the first operation is: the reader sends a tenth broadcast message to M passive terminals, wherein the tenth broadcast message is used to instruct the passive terminal to send location information to the reader. The result of the first operation is: the location information of the passive terminal.

[0267] If the first operation is a deactivation operation, the reader sends the eleventh broadcast message to the M passive terminals, wherein the eleventh broadcast message is used to instruct the passive terminal to invalidate the tag identifier in the passive terminal. After each of the M passive terminals receives the eleventh broadcast message, they deactivate their respective tag identifiers to invalidate the tag identifier. If the passive terminal successfully deactivates the tag identifier, the passive terminal sends a deactivation success message to the reader; otherwise, the passive terminal sends a deactivation failure message to the reader. After receiving a deactivation success message or a deactivation failure message sent by the M passive terminals, the reader sends the deactivation success message or the deactivation failure message to the UPF network element through the first tunnel, and then the UPF network element sends it to the server. At the same time, the reader waits for deactivation success messages or deactivation failure messages sent by other passive terminals (except the passive terminals that have sent deactivation success messages or deactivation failure messages).

[0268] In the case where the first operation is a deactivation operation, the first operation is: the reader sends an eleventh broadcast message to M passive terminals, wherein the eleventh broadcast message is used to instruct the passive terminal to invalidate the tag identification in the passive terminal. The result of the first operation is: a deactivation success message or a deactivation failure message of the passive terminal.

[0269] If the first operation is to obtain tag information, the reader sends the twelfth broadcast message to M passive terminals, wherein the twelfth broadcast message is used to instruct the passive terminal to send tag information to the reader, wherein the tag information can be at least one of the following: the tag identifier of the passive terminal, the data information stored in the storage area of ​​the passive terminal, and the location information of the passive terminal. After each of the M passive terminals receives the twelfth broadcast message, they respectively send their corresponding tag information to the reader. After receiving a tag information sent by the passive terminal, the reader sends the tag information to the UPF network element through the first tunnel, and then the UPF network element sends it to the server. At the same time, the reader waits for tag information sent by other passive terminals (except the passive terminals that have sent tag information).

[0270] In the case where the first operation is to obtain tag information, the first operation is: the reader sends the eighth broadcast message to M passive terminals, wherein the twelfth broadcast message is used to instruct the passive terminal to send tag information to the reader. The result of the first operation is: tag information of the passive terminal.

[0271] In another possible implementation, assuming that the signal coverage range of the reader includes M passive terminals and the first message includes filter information, an example is given in which the filter information includes the tag identifier of at least one first passive terminal. The following detailed explanation is provided for the reader performing the first operation:

[0272] If the first operation is an inventory operation, the reader sends a first broadcast message to M passive terminals, wherein the second broadcast message includes the tag identifier of at least one passive terminal, and the first broadcast message is used to instruct the passive terminal to send the tag identifier to the reader. After each of the M passive terminals receives the first broadcast message, they each send their corresponding tag identifier to the reader. After receiving a tag identifier sent by a passive terminal, the reader sends the tag identifier to the UPF network element through the first tunnel, and the UPF network element then sends the tag identifier to the server. At the same time, the reader waits for tag identifiers sent by other passive terminals (except for passive terminals that have already sent tag identifiers).

[0273] In the case where the first operation is an inventory operation, the first operation is: the reader sends a first broadcast message to M passive terminals, wherein the first broadcast message is used to instruct the passive terminal to send a tag identification to the reader. The result of the first operation is: the tag identification of the passive terminal.

[0274] In the embodiment of the present application, through the inventory operation, the server can determine whether at least one passive terminal is still within the radiation range of the reader, or can determine whether at least one passive terminal is invalid.

[0275] If the first operation is a normal read operation, the reader sends a second broadcast message to M passive terminals, wherein the second broadcast message includes the tag identifier of at least one passive terminal, and the second broadcast message is used to instruct the passive terminal to send the data information in the storage area of ​​the passive terminal to the reader. For any passive terminal among the M passive terminals, after receiving the second broadcast message, the passive terminal matches the tag identifier of the passive terminal with the tag identifier of at least one passive terminal in the second broadcast message. If the match is successful, the passive terminal sends the data information in the storage area to the reader; if the match fails, the passive terminal does not perform any processing. After receiving a data message sent by the passive terminal, the reader sends the data message to the UPF network element through the first tunnel, and the UPF network element sends it to the server. At the same time, the reader waits for data information sent by other passive terminals (except the passive terminals that have sent data information).

[0276] When the first operation is a normal read operation, the first operation is: the reader sends a second broadcast message to M passive terminals, wherein the second broadcast message includes the tag identifier of at least one passive terminal and instructs the passive terminal to send data information in its storage area to the reader. The result of the first operation is: the data information in the storage area of ​​the passive terminal.

[0277] It should be understood that in an embodiment of the present application, if the tag identifier of the passive terminal is in the tag identifier of at least one passive terminal in the second broadcast message, the match is successful; if the tag identifier of the passive terminal is not in the tag identifier of at least one passive terminal in the second broadcast message, the match fails.

[0278] Alternatively, if the first operation is a normal read operation, the reader sends a third broadcast message to M passive terminals, wherein the third broadcast message includes the tag identifier of at least one passive terminal and is used to instruct the passive terminal to send the tag identifier to the reader. For any of the M passive terminals, after receiving the third broadcast message, the passive terminal matches the tag identifier of the passive terminal with the tag identifier of at least one passive terminal in the third broadcast message. If the match is successful, the passive terminal sends the tag identifier of the passive terminal to the reader; if the match fails, the passive terminal does not perform any processing. After receiving a tag identifier sent by the passive terminal, the reader sends the data information to the UPF network element via the first tunnel, and the UPF network element then sends the tag identifier to the server. At the same time, the reader maintains a connection with the passive terminal that sent the tag identifier. The server sends a fourth broadcast message to the reader via the UPF network element and the first tunnel, wherein the fourth broadcast message includes the tag identifier obtained by the server and is used to instruct the passive terminal to send the data information in the passive terminal's storage area to the reader. After receiving the fourth broadcast message, the reader sends a fourth broadcast message to the passive terminal with which it maintains a connection. After receiving the fourth broadcast message, the passive terminal sends the data information in the storage area to the reader. After receiving the data information sent by the passive terminal, the reader sends the data information to the UPF network element via the first tunnel. The UPF network element then sends the data information to the server. Simultaneously, the reader cancels the connection with the passive terminal and waits for tag identifiers to be sent by other passive terminals (except those that have already sent tag identifiers).

[0279] When the first operation is a normal read operation, the first operation is as follows: the reader sends a third broadcast message and a fourth broadcast message to M passive terminals. The third broadcast message includes the tag identifier of at least one passive terminal and instructs the passive terminal to send the tag identifier to the reader. The fourth broadcast message includes the tag identifier obtained by the server and instructs the passive terminal to send data information in its storage area to the reader. The result of the first operation is: the data information in the storage area of ​​the passive terminal.

[0280] Alternatively, if the first operation is a normal read operation, the reader sends a third broadcast message to M passive terminals, wherein the third broadcast message includes the tag identifier of at least one passive terminal and instructs the passive terminal to send the tag identifier to the reader. Upon receiving the third broadcast message, any of the M passive terminals matches its tag identifier with the tag identifier of at least one passive terminal in the third broadcast message. If the match is successful, the passive terminal sends the tag identifier to the reader; if the match fails, the passive terminal does nothing. Upon receiving a tag identifier from a passive terminal, the reader sends the tag identifier to the UPF network element via the first tunnel, which then sends the tag identifier to the server. The server sends a fourth broadcast message to the reader via the UPF network element and the first tunnel, wherein the fourth broadcast message includes the tag identifier obtained by the server and instructs the passive terminal to send data information in its storage area to the reader. Upon receiving the fourth broadcast message, the reader sends the fourth broadcast message to the M passive terminals. After receiving the fourth broadcast message, each of the M passive terminals matches the tag identifier in the fourth broadcast message with its own tag identifier. If a match is successful, the reader sends the data in its storage area to the reader. If a match fails, the reader does nothing. After receiving the data from the passive terminal, the reader sends the data to the UPF network element via the first tunnel, which then forwards the data to the server. Meanwhile, the reader waits for tag identifiers from other passive terminals (except those that have already sent their tag identifiers).

[0281] When the first operation is a normal read operation, the first operation is as follows: the reader sends a third broadcast message and a fourth broadcast message to M passive terminals. The third broadcast message includes the tag identifier of at least one passive terminal and instructs the passive terminal to send the tag identifier to the reader. The fourth broadcast message includes the tag identifier obtained by the server and instructs the passive terminal to send data information in its storage area to the reader. The result of the first operation is: the data information in the storage area of ​​the passive terminal.

[0282] If the first operation is a normal write operation, the reader sends a fifth broadcast message to the M passive terminals, wherein the fifth broadcast message includes the information to be written and the tag identifier of at least one passive terminal, and the fifth broadcast message is used to instruct the passive terminal to write the information to be written into the storage area of ​​the passive terminal. For any passive terminal among the M passive terminals, after receiving the fifth broadcast message, the passive terminal matches the tag identifier of the passive terminal with the tag identifier of at least one passive terminal in the second broadcast message. If the match is successful, the passive terminal writes the information to be written into the storage area; if the match fails, the passive terminal does not perform any processing. If the match is successful, if the passive terminal successfully writes the information to be written into the storage area, the passive terminal sends a write success message to the reader; otherwise, the passive terminal sends a write failure message to the reader. After receiving a write success message or a write failure message sent by a passive terminal, the reader sends the write success message or the write failure message to the UPF network element through the first tunnel, and then the UPF network element sends it to the server. At the same time, the reader waits for write success messages or write failure messages sent by other passive terminals (except passive terminals that have sent write success messages or write failure messages).

[0283] If the first operation is a normal write operation, the first operation is: the reader sends a fifth broadcast message to M passive terminals, where the fifth broadcast message includes the information to be written and the tag identifier of at least one passive terminal, and the fifth broadcast message is used to instruct the passive terminal to write the information to be written into the storage area of ​​the passive terminal. The result of the first operation is: a write success message or a write failure message from the passive terminal.

[0284] Alternatively, if the first operation is a normal write operation, the reader sends a sixth broadcast message to M passive terminals, wherein the sixth broadcast message includes the tag identifier of at least one passive terminal, and the sixth broadcast message is used to instruct the passive terminal to send the tag identifier to the reader. For any passive terminal among the M passive terminals, after receiving the sixth broadcast message, the passive terminal matches the tag identifier of the passive terminal with the tag identifier of at least one passive terminal in the sixth broadcast message. If the match is successful, the passive terminal sends the tag identifier of the passive terminal to the reader; if the match fails, the passive terminal does not perform any processing. After receiving a tag identifier sent by the passive terminal, the reader sends the tag identifier to the UPF network element through the first tunnel, and the UPF network element then sends the tag identifier to the server. At the same time, the reader maintains a connection with the passive terminal that sent the tag identifier. The server sends a seventh broadcast message to the reader through the UPF network element and the first tunnel, wherein the seventh broadcast message includes the tag identifier obtained by the server and the information to be written, and the seventh broadcast message is used to instruct the passive terminal to write the information to be written into the storage area of ​​the passive terminal. After receiving the seventh broadcast message, the reader sends the seventh broadcast message to the passive terminal that maintains the connection. After receiving the seventh broadcast message, the passive terminal writes the information to be written into the storage area. If the passive terminal successfully writes the information to be written into the storage area, the passive terminal sends a write success message to the reader; otherwise, the passive terminal sends a write failure message to the reader. After receiving the write success message or write failure message sent by the passive terminal, the reader sends the write success message or write failure message to the UPF network element through the first tunnel, and the UPF network element then sends the write success message or write failure message to the server. At the same time, the reader cancels the connection with the passive terminal and waits for the tag identifiers sent by other passive terminals (except the passive terminals that have sent tag identifiers).

[0285] If the first operation is a normal read operation, the first operation is as follows: the reader sends a sixth broadcast message and a seventh broadcast message to M passive terminals. The sixth broadcast message includes the tag identifier of at least one passive terminal and instructs the passive terminal to send the tag identifier to the reader. The seventh broadcast message includes the tag identifier obtained by the server and the information to be written, and instructs the passive terminal to write the information to be written into the storage area of ​​the passive terminal. The result of the first operation is a write success message or a write failure message from the passive terminal.

[0286] Alternatively, if the first operation is a normal write operation, the reader sends a sixth broadcast message to M passive terminals, wherein the sixth broadcast message includes the tag identifier of at least one passive terminal, and the sixth broadcast message is used to instruct the passive terminal to send the tag identifier to the reader. For any passive terminal among the M passive terminals, after receiving the sixth broadcast message, the passive terminal matches the tag identifier of the passive terminal with the tag identifier of at least one passive terminal in the sixth broadcast message. If the match is successful, the passive terminal sends the tag identifier of the passive terminal to the reader; if the match fails, the passive terminal does not perform any processing. After receiving a tag identifier sent by the passive terminal, the reader sends the tag identifier to the UPF network element through the first tunnel, and the UPF network element then sends the tag identifier to the server. The server sends a seventh broadcast message to the reader through the UPF network element, wherein the seventh broadcast message includes the tag identifier obtained by the server and the information to be written, and the seventh broadcast message is used to instruct the passive terminal to write the information to be written into the storage area of ​​the passive terminal. After receiving the seventh broadcast message, the reader sends the seventh broadcast message to the M passive terminals. After each of the M passive terminals receives the seventh broadcast message, they match the tag identifier in the seventh broadcast message with their own tag identifier. If the match is successful, the information to be written is written into the storage area; if the match fails, no processing is performed. In the case of a successful match, if the passive terminal successfully writes the information to be written into the storage area, the passive terminal sends a write success message to the reader; otherwise, the passive terminal sends a write failure message to the reader. After receiving the write success message or write failure message sent by the passive terminal, the reader sends the write success message or write failure message to the UPF network element through the first tunnel, and the UPF network element then sends the write success message or write failure message to the server. At the same time, the reader waits for tag identifiers sent by other passive terminals (except for passive terminals that have sent tag identifiers).

[0287] If the first operation is a normal write operation, the first operation is as follows: the reader sends a sixth broadcast message and a seventh broadcast message to M passive terminals. The sixth broadcast message includes the tag identifier of at least one passive terminal and instructs the passive terminal to send the tag identifier to the reader. The seventh broadcast message includes the tag identifier obtained by the server and the information to be written, and instructs the passive terminal to write the information to be written into the storage area of ​​the passive terminal. The result of the first operation is a write success message or a write failure message from the passive terminal.

[0288] If the first operation is a batch read operation, the reader sends an eighth broadcast message to M passive terminals, wherein the eighth broadcast message includes the tag identifier of at least one passive terminal, and the eighth broadcast message is used to instruct the passive terminal to send the data information in the storage area of ​​the passive terminal to the reader. For any passive terminal among the M passive terminals, after receiving the eighth broadcast message, the passive terminal matches the tag identifier of the passive terminal with the tag identifier of at least one passive terminal in the second broadcast message. If the match is successful, the passive terminal sends the data information in the storage area to the reader; if the match fails, the passive terminal does not perform any processing. After receiving the data information sent by at least one passive terminal, the reader sends at least one data information to the UPF network element in batches through the first tunnel, and the UPF network element then sends it to the server.

[0289] When the first operation is a batch read operation, the first operation is: the reader sends an eighth broadcast message to M passive terminals, where the eighth broadcast message includes the tag identifier of at least one passive terminal, and the eighth broadcast message is used to instruct the passive terminal to send data information in its storage area to the reader. The result of the first operation is: the data information in the storage area of ​​the passive terminal.

[0290] If the first operation is a batch write operation, the reader sends a ninth broadcast message to M passive terminals, wherein the ninth broadcast message includes the information to be written and the tag identifier of at least one passive terminal, and the ninth broadcast message is used to instruct the passive terminal to write the information to be written into the storage area of ​​the passive terminal. For any passive terminal among the M passive terminals, after receiving the ninth broadcast message, the passive terminal matches the tag identifier of the passive terminal with the tag identifier of at least one passive terminal in the second broadcast message. If the match is successful, the passive terminal writes the information to be written into the storage area; if the match fails, the passive terminal does not perform any processing. In the case of a successful match, if the passive terminal successfully writes the information to be written into the storage area, the passive terminal sends a write success message to the reader; otherwise, the passive terminal sends a write failure message to the reader. After receiving the write success message or write failure message sent by at least one passive terminal, the reader sends at least one write success message or write failure message to the UPF network element in batches through the first tunnel, and the UPF network element then sends it to the server.

[0291] If the first operation is a batch write operation, the first operation is: the reader sends a fifth broadcast message to M passive terminals, wherein the ninth broadcast message includes the information to be written and the tag identifier of at least one passive terminal, and the ninth broadcast message is used to instruct the passive terminal to write the information to be written into the storage area of ​​the passive terminal. The result of the first operation is: a write success message or a write failure message from the passive terminal.

[0292] If the first operation is a positioning operation, the reader sends the tenth broadcast message to M passive terminals, wherein the tenth broadcast message includes the tag identifier of at least one passive terminal, and the tenth broadcast message is used to instruct the passive terminal to send location information to the reader. For any passive terminal among the M passive terminals, after receiving the sixth broadcast message, the passive terminal matches the tag identifier of the passive terminal with the tag identifier of at least one passive terminal in the tenth broadcast message. If the match is successful, the passive terminal sends the location information to the reader; if the match fails, the passive terminal does not perform any processing. After receiving a location information sent by a passive terminal, the reader sends the location information to the UPF network element through the first tunnel, and then the UPF network element sends it to the server. At the same time, the reader waits for location information sent by other passive terminals (except passive terminals that have sent location information).

[0293] When the first operation is a positioning operation, the first operation is: the reader sends a tenth broadcast message to M passive terminals, wherein the tenth broadcast message includes a tag identifier of at least one passive terminal and instructs the passive terminal to send location information to the reader. The result of the first operation is: the location information of the passive terminal.

[0294] If the first operation is a deactivation operation, the reader sends the eleventh broadcast message to M passive terminals, wherein the eleventh broadcast message includes the tag identifier of at least one passive terminal, and the eleventh broadcast message is used to instruct the passive terminal to invalidate the tag identifier in the passive terminal. For any passive terminal among the M passive terminals, after receiving the eleventh broadcast message, the passive terminal matches the tag identifier of the passive terminal with the tag identifier of at least one passive terminal in the eleventh broadcast message. If the match is successful, the passive terminal deactivates the tag identifier of the passive terminal, making the tag identifier invalid; if the match fails, the passive terminal does not perform any processing. In the case of a successful match, if the passive terminal successfully deactivates the tag identifier, the passive terminal sends a deactivation success message to the reader; otherwise, the passive terminal sends a deactivation failure message to the reader. After receiving a deactivation success message or deactivation failure message sent by the passive terminal, the reader sends the deactivation success message or deactivation failure message to the UPF network element through the first tunnel, and then the UPF network element sends it to the server. At the same time, the reader waits for inactivation success messages or inactivation failure messages sent by other passive terminals (except the passive terminals that have sent inactivation success messages or inactivation failure messages).

[0295] When the first operation is a deactivation operation, the first operation is: the reader sends an eleventh broadcast message to M passive terminals, wherein the eleventh broadcast message includes the tag identifier of at least one passive terminal, and the eleventh broadcast message is used to instruct the passive terminal to invalidate the tag identifier in the passive terminal. The result of the first operation is: a deactivation success message or a deactivation failure message of the passive terminal.

[0296] If the first operation is to obtain the tag information operation, the reader sends the twelfth broadcast message to M passive terminals, wherein the twelfth broadcast message includes the tag identifier of at least one passive terminal, and the twelfth broadcast message is used to instruct the passive terminal to send tag information to the reader, wherein the tag information can be at least one of the following: the tag identifier of the passive terminal, the data information stored in the storage area of ​​the passive terminal, and the location information of the passive terminal. For any passive terminal among the M passive terminals, after receiving the twelfth broadcast message, the passive terminal matches the tag identifier of the passive terminal with the tag identifier of at least one passive terminal in the twelfth broadcast message. If the match is successful, the passive terminal sends the tag information of the passive terminal to the reader. After receiving a tag information sent by the passive terminal, the reader sends the tag information to the UPF network element through the first tunnel, and then the UPF network element sends it to the server. At the same time, the reader waits for tag information sent by other passive terminals (except the passive terminals that have sent tag information).

[0297] When the first operation is to obtain tag information, the first operation is: the reader sends a twelfth broadcast message to M passive terminals, wherein the twelfth broadcast message includes the tag identifier of at least one passive terminal and is used to instruct the passive terminal to send tag information to the reader. The result of the first operation is: the tag information of the passive terminal.

[0298] When the filter information includes a network identifier or a user identifier or a tag identifier range, the first operation performed by the reader is similar to the first operation performed by the reader when the filter information includes a tag identifier of at least one first passive terminal, and will not be described in detail below.

[0299] S606: The reader sends the first operation result to the UPF network element through the first tunnel.

[0300] S607, the UPF network element encapsulates the first operation result.

[0301] S608, the UPF network element sends the encapsulated first operation result to the server.

[0302] In an embodiment of the present application, the first tunnel is a user plane channel, which is deployed in the park where the business entity is located. When the server and the passive terminal transmit data through the first tunnel, it can effectively ensure that the transmitted data does not leave the park, thereby solving the risk of data leakage and achieving secure data transmission.

[0303] An embodiment of the present application provides another communication method for establishing a first tunnel between a reader and a UPF network element. The first tunnel can be used to transmit a first message and can also be used to transmit a second message. The service type of the first message can include any of the following: inventory type, read type, write type, positioning type, deactivation type, and tag information acquisition type. The read type includes a normal read type and a batch read type, and the write type includes a normal write type and a batch write type. The service type of the second message is different from the service type of the first message. The communication method can be applied to the communication system shown in Figure 2. The communication method can refer to the flowchart shown in Figure 3. The process of this method is described in detail below.

[0304] S701: The server sends a second message to the NEF network element.

[0305] In one possible implementation, the second message includes a server identifier, an address and a port number of the server. In an embodiment of the present application, the server may be an application function network element, such as an AF network element. In the case where the server is an AF network element, the second message includes an AF identifier, an address and a port number of the AF, and a preset service type.

[0306] Optionally, the second message may further include a preset service type, which may include any one of the following: inventory type, normal read type, normal write type, batch read type, batch write type, positioning type, deactivation type, and tag information acquisition type.

[0307] The second message may also include the region information of the tag to be operated. If the second message does not include the region information of the tag to be operated, the TMF network element may query the subscription data of the server to obtain the region information of the tag to be operated.

[0308] S702: The NEF network element sends a second message to the TMF network element.

[0309] In a possible implementation, the server may also send the second message directly to the TMF network element without passing through the NEF network element.

[0310] S703: The TMF network element generates a third message based on the second message.

[0311] In one possible implementation, the TMF network element selects an SMF network element associated with the area information of the passive terminal to be operated from multiple candidate SMF network elements based on the acquired area information of the passive terminal to be operated. A specific implementation method may be: converting the area information of the passive terminal to be operated into a cell list, and selecting an SMF network element associated with the cell list from multiple candidate SMF network elements based on the cell list.

[0312] In one possible implementation, the third message includes second indication information, wherein the second indication information is determined based on the second message, and the second indication information is used to instruct the reader to set a mapping relationship, wherein the mapping relationship is used by the reader to determine the first operation.

[0313] The TMF network element can determine the second indication information through the following implementation method. The specific implementation method can be as follows: the TMF network element uses the set service type in the eighth mapping relationship as the preset service type, uses the set operation corresponding to the set service type in the eighth mapping relationship as the preset operation, and uses the preset service type and the preset operation as the second indication information. The eighth mapping relationship includes a mapping relationship between the set service type and the set operation. It should be understood that the eighth mapping relationship can be stored in the TMF network element or in other devices accessible to the TMF network element, and is not limited here.

[0314] The correspondence between the set service types and the set operations in the eighth mapping relationship is shown in Table 1.

[0315] If the service type is set to inventory, the inventory type is used as the preset service type, and the inventory operation corresponding to the inventory type is used as the preset operation. If the service type is set to normal read, the normal read type is used as the preset service type, and the normal read operation corresponding to the normal read type is used as the preset operation. Similarly, the nine sets of preset service types and preset operations obtained are used as the second indication information.

[0316] In the embodiment of the present application, the preset service type may include any of the following: inventory type, normal read type, normal write type, batch read type, batch write type, positioning type, deactivation type, and obtain tag information type. Correspondingly, the preset operation may include any of the following: inventory operation, normal read operation, normal write operation, batch read operation, batch write operation, positioning operation, deactivation operation, and obtain tag information operation.

[0317] The third message also includes a session tag, where the session tag is generated by the TMF network element based on a preset service type, and the session tag can be used to identify the first tunnel.

[0318] The third message also includes a server identifier, a server address, and a port number, wherein the server identifier, the server address, and the port number are obtained from the second message.

[0319] S704: The TMF network element sends a third message to the SMF network element, wherein the third message is used to instruct the SMF to establish a P-IoT session.

[0320] S705: The SMF network element sends a fourth message to the UPF network element, wherein the fourth message may be used to instruct the UPF network element to send CN tunnel information. Alternatively, the fourth message may be used to instruct the UPF network element to send CN tunnel information, as well as the address and port number of the UPF network element.

[0321] S706, the UPF network element sends CN tunnel information to the SMF network element.

[0322] In one possible implementation, if the fourth message is used to instruct the UPF network element to send CN tunnel information, the UPF network element sends the CN tunnel information to the SMF network element after receiving the fourth message sent by the SMF network element.

[0323] In another possible implementation, if the fourth message is used to instruct the UPF network element to send CN tunnel information, as well as the address and port number of the UPF network element, after the UPF network element receives the fourth message sent by the SMF network element, it sends the CN tunnel information, as well as the address and port number of the UPF network element to the SMF network element.

[0324] In the embodiment of the present application, the CN tunnel information includes a tunnel endpoint identifier (TEID) and a transport layer address, wherein the transport layer address may be the address information of the UPF.

[0325] S707, the SMF network element determines the first tunnel identifier based at least on the CN tunnel information.

[0326] In one possible implementation, the SMF network element may determine the first tunnel identifier through the following two possible implementations, which are specifically implemented as follows:

[0327] In a first possible implementation, the SMF network element may randomly generate a sequence or number and use the random sequence or random number as the first tunnel identifier.

[0328] In a second possible implementation, the SMF network element may determine the first tunnel identifier based on the TEID and transport layer address in the CN tunnel information.

[0329] In a third possible implementation, the SMF network element may determine the first tunnel identifier based on the TEID and transport layer address in the CN tunnel information, as well as the session label.

[0330] S708, the SMF network element sends a first message to the AMF network element.

[0331] In a possible implementation, the first message includes CN tunnel information and second indication information, where the second indication information is used to instruct the reader to set a mapping relationship, wherein the mapping relationship is used by the reader to determine the first operation.

[0332] The first message may further include a first tunnel identifier.

[0333] S709, the AMF network element sends a first message to the reader.

[0334] S710: The reader determines AN tunnel information based on the CN tunnel information in the first message.

[0335] In the embodiment of the present application, the AN tunnel information includes an endpoint identifier (endpoint identifier) ​​of the reader and a corresponding quality of service flow identifier (QoS flow identifier, QFI).

[0336] The reader establishes a ninth mapping relationship between the CN tunnel information, the AN tunnel information, and the first tunnel identifier. It should be understood that the ninth mapping relationship may be stored in the reader or in another device accessible to the reader, without limitation herein. After the reader establishes the ninth mapping relationship, when the reader uses the first tunnel, it may determine the first tunnel based on the ninth mapping relationship and use the first tunnel to transmit data.

[0337] S711, the reader sends AN tunnel information to the AMF network element.

[0338] S712: The reader sets a mapping relationship based on at least the second indication information in the first message, wherein the second indication information includes a preset service type and a preset operation.

[0339] In a possible implementation, the reader may set the mapping relationship through the following possible implementation methods, and the specific implementation methods may be as follows:

[0340] The reader establishes a third mapping relationship between the preset service type and the preset operation.

[0341] In the present application, the third mapping relationship generated by the above three implementation methods can be stored in the reader or in other devices accessible to the reader, which is not limited here.

[0342] The execution order between S710 to S711 and S712 is not prioritized.

[0343] S713, the AMF network element sends AN tunnel information to the SMF network element.

[0344] S714, the SMF network element sends the fifth message to the UPF network element.

[0345] In a first possible implementation, the fifth message includes AN tunnel information, a first tunnel identifier, and at least one of the following: a server address and port number, and second indication information. The second indication information may include a preset service type and a preset operation.

[0346] After receiving the fifth message, the UPF network element stores the AN tunnel information and the first tunnel identifier in the fifth message. It should be understood that after the reader receives the CN tunnel information and the UPF network element receives the AN tunnel information, the first tunnel between the reader and the UPF network element is established. The UPF network element can determine the first tunnel using the stored first tunnel identifier.

[0347] The UPF network element may also establish a ninth mapping relationship between the CN tunnel information, the AN tunnel information, and the first tunnel identifier. It should be understood that the ninth mapping relationship may be stored in the reader or in other devices accessible to the reader, and this is not limited here. After the UPF network element establishes the ninth mapping relationship, when the UPF network element uses the first tunnel, it may determine the first tunnel based on the ninth mapping relationship and use the first tunnel to transmit data.

[0348] In addition, the UPF network element further determines a third mapping relationship based on the fifth message. Possible implementations are as follows:

[0349] In implementation mode f1, when the fifth message includes the address and port number of the server and second indication information, where the second indication information includes a preset service type, the UPF network element first generates preset four-tuple information based on the address and port number of the server and the address and port number of the UPF network element, and then establishes a fourth mapping relationship between the preset four-tuple information and the preset service type, where the address of the UPF network element is a public network address. It should be understood that the fourth mapping relationship can be stored in the UPF network element or in another device accessible to the UPF network element, and this is not limited here.

[0350] In implementation mode f2, when the fifth message includes second indication information, where the second indication information includes a preset service type and a preset operation, the UPF network element establishes a fifth mapping relationship between the preset service type and the preset operation. It should be understood that the fifth mapping relationship can be stored in the UPF network element or in another device accessible to the UPF network element, and is not limited here.

[0351] In embodiment f3, when the fifth message includes the server's address and port number and second indication information, where the second indication information includes a preset operation, the UPF network element first generates preset four-tuple information based on the server's address and port number and the UPF network element's address and port number, and then establishes a sixth mapping relationship between the preset four-tuple information and the preset operation. The address of the UPF network element is a public network address. It should be understood that the sixth mapping relationship can be stored in the UPF network element or in another device accessible to the UPF network element, without limitation herein.

[0352] It should be understood that implementation modes f1 to f3 may be used individually or in combination, and are not limited here.

[0353] In a second possible implementation manner, the fifth message includes AN tunnel information, the first tunnel identifier, and at least one of the following mapping relationships: a fourth mapping relationship, a fifth mapping relationship, and a sixth mapping relationship.

[0354] After receiving the fifth message, the UPF network element stores the AN tunnel information and the first tunnel identifier in the fifth message. It should be understood that after the reader receives the CN tunnel information and the UPF network element receives the AN tunnel information, the first tunnel between the reader and the UPF network element is established. The UPF network element can determine the first tunnel using the stored first tunnel identifier.

[0355] The UPF network element may also establish a ninth mapping relationship between the CN tunnel information, the AN tunnel information, and the first tunnel identifier. It should be understood that the ninth mapping relationship may be stored in the reader or in other devices accessible to the reader, and this is not limited here. After the UPF network element establishes the ninth mapping relationship, when the UPF network element uses the first tunnel, it may determine the first tunnel based on the ninth mapping relationship and use the first tunnel to transmit data.

[0356] In one possible implementation, the fourth mapping relationship can be set in the following manner: the SMF network element first generates preset four-tuple information based on the address and port number of the server and the address and port number of the UPF network element; and then establishes a fourth mapping relationship between the preset four-tuple information and the preset service type in the second indication information. The address of the UPF network element is a public network address.

[0357] In one possible implementation, the fifth mapping relationship can be set in the following manner: the SMF network element establishes the fifth mapping relationship between the preset service type and the preset operation in the second indication information.

[0358] In one possible implementation, the sixth mapping relationship can be set in the following manner: the SMF network element first generates preset four-tuple information based on the address and port number of the server and the address and port number of the UPF network element; and then establishes the sixth mapping relationship between the preset four-tuple information and the preset operation in the second indication information. The address of the UPF network element is a public network address.

[0359] In the embodiment of the present application, when the second indication information includes the preset service type, the fifth message includes AN tunnel information, the first tunnel identifier and the fourth mapping relationship.

[0360] In a case where the second indication information includes the preset service type and the preset operation, the fifth message includes AN tunnel information, the first tunnel identifier and the fifth mapping relationship.

[0361] In the case that the second indication information includes the preset operation, the fifth message includes the AN tunnel information, the first tunnel identifier and the sixth mapping relationship.

[0362] S715, the UPF network element sends the sixth information to the SMF network element.

[0363] In one possible implementation, the sixth message includes the first tunnel identifier, the address and port number of the UPF network element.

[0364] S716, the SMF network element sends the sixth information to the TMF network element.

[0365] S717: The TMF network element sends sixth information to the NEF network element.

[0366] S718: The NEF network element sends sixth information to the server.

[0367] In an embodiment of the present application, a tunnel is established between the reader and the UPF network element. The tunnel can transmit messages of different service types, which can avoid establishing multiple tunnels between the reader and the UPF network element, effectively simplifying the complexity of establishing the tunnel and improving the efficiency of establishing the tunnel.

[0368] The embodiment of the present application provides a communication method for transmitting a first message between a passive terminal and a server, which can be applied to the communication system shown in Figure 2. The communication method can be referred to the flowchart shown in Figure 6, and the process of the method is described in detail below.

[0369] S801, the server sends a second message to the UPF network element.

[0370] In the present application, the second message may include four-tuple information, and the four-tuple information includes the address and port number of the server, and the address and port number of the UPF network element.

[0371] Optionally, the second message may further include filter information, wherein the filter information may include at least one of the following: a network identifier, a user identifier, a label identifier of at least one first passive terminal, and a label identifier range. In the embodiment of the present application, the filter information may also be referred to as mask information.

[0372] Taking the network identifier in the second message as an example, the network identifier may be a public land mobile network address (PLMN ID).

[0373] Taking the user identifier in the second message as an example, the user identifier may be an AF identifier.

[0374] Taking the label identifier of at least one first passive terminal in the second message as an example, the second message includes label identifier 1 and label identifier 2.

[0375] Taking the range of label identifiers in the second message as an example, the second message includes label identifiers 1 to 5.

[0376] Optionally, the second message may also include information to be processed. For example, when the server performs a write operation on the passive terminal, the information to be processed may be information to be written, and the passive terminal may write the information to be written into a storage area of ​​the passive terminal; when the server performs a read operation on the passive terminal, the information to be processed may be storage area index information, and the passive terminal may obtain data information from the storage area corresponding to the storage area index information; when the server performs a positioning operation on the passive terminal, the information to be processed may be range information, and the passive terminal may determine whether it is within a range determined by the range information.

[0377] S802, the UPF network element generates a first message based on the second message.

[0378] In a possible implementation, the first message includes first indication information, the first indication information is determined according to the four-tuple information, and the first indication information is used to instruct the reader to perform the first operation.

[0379] Optionally, when the second message includes the identifier of at least one first passive terminal, the first message may also include the identifier of at least one first passive terminal.

[0380] Optionally, when the second message includes information to be written, the first message may also include information to be written.

[0381] In one possible implementation, the UPF network element may determine the first indication information through the following three possible implementations, the specific implementations may be as follows:

[0382] In implementation g1, when the UPF network element stores the fourth mapping relationship, the UPF network element first determines the first service type corresponding to the quadruple information based on the quadruple information and the fourth mapping relationship, and then generates first indication information based on the first service type. The fourth mapping relationship includes a mapping relationship between preset quadruple information and preset service types.

[0383] Further explanation is as follows: when the UPF network element stores the fourth mapping relationship, the UPF network element searches for the quadruple information in the fourth mapping relationship. If there is preset quadruple information that is the same as the quadruple information in the fourth mapping relationship, the preset service type corresponding to the preset quadruple information is used as the first service type, and the first indication information is generated based on the first service type.

[0384] In embodiment g2, when the UPF network element stores the fourth mapping relationship and the fifth mapping relationship, the UPF network element first determines the first service type corresponding to the four-tuple information based on the four-tuple information and the fourth mapping relationship; then determines the first operation corresponding to the first service type based on the fifth mapping relationship; and finally, generates first indication information based on the first operation. The fourth mapping relationship includes a correspondence between the preset four-tuple information and the preset service type, and the fifth mapping relationship includes a correspondence between the preset service type and the preset operation.

[0385] Further explanation is as follows: when the UPF network element stores the fourth mapping relationship and the fifth mapping relationship, the UPF network element searches for the four-tuple information in the fourth mapping relationship. If the fourth mapping relationship contains the same preset four-tuple information as the four-tuple information, the preset service type corresponding to the preset four-tuple information is used as the first service type. The UPF network element searches for the first service type in the fifth mapping relationship. If the fifth mapping relationship contains the same preset service type as the first service type, the preset operation corresponding to the preset service type is used as the first operation, and first indication information is generated based on the first operation.

[0386] In implementation g3, when the UPF network element stores the sixth mapping relationship, the UPF network element determines, based on the quadruple information and the sixth mapping relationship, a first operation corresponding to the quadruple information, and then generates first indication information based on the first operation. The sixth mapping relationship includes a mapping relationship between preset quadruple information and preset operations.

[0387] Further explanation is as follows: when the UPF network element stores the sixth mapping relationship, the UPF network element searches for the quadruple information in the sixth mapping relationship. If there is preset quadruple information that is the same as the quadruple information in the sixth mapping relationship, the preset operation corresponding to the preset quadruple information is used as the first operation, and the first indication information is generated based on the first operation.

[0388] S803: The UPF network element sends a first message to the reader through a first tunnel, wherein one end of the first tunnel is connected to the reader and the other end is connected to the UPF network element.

[0389] S804: The reader performs a first operation based on the first instruction information in the first message.

[0390] In one possible implementation, the reader may determine the first operation through the following two possible implementations, which are specifically implemented as follows:

[0391] In embodiment h1, when the first indication information includes a first service type and the reader stores a third mapping relationship, the reader determines a first operation corresponding to the first service type based on the first service type and the third mapping relationship, and performs the first operation. The third mapping relationship includes a mapping relationship between a preset service type and a preset operation.

[0392] It is further explained as follows: when the first indication information includes the first business type and the reader stores a third mapping relationship, the reader searches for the first business type in the third mapping relationship. If there is a preset business type that is the same as the first business type in the third mapping relationship, the preset operation corresponding to the preset business type is used as the first operation, and the first operation is executed.

[0393] Implementation h2: When the first indication information includes a first operation, the reader obtains the first operation from the first indication information and executes the first operation.

[0394] S805: The passive terminal sends a first operation result to the reader.

[0395] S806. The reader sends the first operation result to the UPF network element through the first tunnel.

[0396] S807, the UPF network element encapsulates the first operation result.

[0397] S808, the UPF network element sends the encapsulated first operation result to the server.

[0398] In an embodiment of the present application, the first tunnel is a user plane channel, which is deployed in the park where the business entity is located. When the server and the passive terminal transmit data through the first tunnel, it can effectively ensure that the transmitted data does not leave the park, thereby solving the risk of data leakage and achieving secure data transmission.

[0399] In the embodiments provided above, the methods provided in the embodiments of the present application are introduced from the perspective of interaction between various devices. In order to implement the various functions of the methods provided in the embodiments of the present application, the reader or UPF network element or TMF network element or SMF network element may include a hardware structure and / or a software module, and implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.

[0400] The division of modules in the embodiments of the present application is illustrative and is merely a logical functional division. In actual implementation, other division methods may be used. Furthermore, the functional modules in the various embodiments of the present application may be integrated into a single processor, or may exist physically separately, or two or more modules may be integrated into a single module. The aforementioned integrated modules may be implemented in the form of hardware or software functional modules.

[0401] Similar to the above concept, as shown in Figure 7, an embodiment of the present application also provides a communication device 900 for implementing the functions of the reader, UPF network element, TMF network element, or SMF network element in the above method. For example, the communication device can be a software module or a chip system. In the embodiment of the present application, the chip system can be composed of a chip or can include a chip and other discrete components. The communication device 900 may include a receiving unit 901, an execution unit 902, and a sending unit 903.

[0402] In the embodiment of the present application, the communication device 900 includes a receiving unit, an executing unit, and a sending unit, which are respectively used to perform the receiving, executing, and sending steps of the reader, UPF network element, TMF network element, or SMF network element in the above method embodiment. The sending unit, the executing unit, and the receiving unit can be an integrated unit or four independent units.

[0403] The communication device provided in the embodiment of the present application is described in detail below with reference to Figures 7 and 8. It should be understood that the description of the device embodiment corresponds to the description of the method embodiment. Therefore, for matters not described in detail, reference can be made to the method embodiment above. For the sake of brevity, they will not be repeated here.

[0404] In one implementation, the communication device 900 may perform the following functions:

[0405] A receiving unit 901 is configured to receive a first message sent by a user plane function (UPF) network element through a first tunnel, where one end of the first tunnel is connected to a reader and the other end is connected to the UPF network element. The first message includes first indication information, and the first indication information is used to instruct the reader to perform a first operation.

[0406] An executing unit 902 is configured to execute a first operation based on the first instruction information;

[0407] The receiving unit 901 is further used to receive a first operation result from at least one first passive terminal and send the first operation result to the UPF network element, where the at least one first passive terminal is within the signal coverage range of the reader.

[0408] In one implementation, the communication device 900 may perform the following functions:

[0409] The receiving unit 901 is configured to receive a second message from a server, wherein the second message includes quadruple information;

[0410] The sending unit 903 is used to send a first message to the reader through the first tunnel, wherein the first message includes first indication information, the first indication information is determined based on the four-tuple information, and the first indication information is used to instruct the reader to perform a first operation. One end of the first tunnel is connected to the reader, and the other end is connected to the UPF network element.

[0411] In one implementation, the communication device 900 may perform the following functions:

[0412] The receiving unit 901 is configured to receive a second message from the server, wherein the second message is used to instruct the session management function SMF network element to establish a first tunnel;

[0413] The sending unit 903 is used to send a third message to the SMF network element, wherein the third message includes second indication information, and the second indication information is used to instruct the reader to set a mapping relationship; the mapping relationship is used by the reader to determine the first operation.

[0414] In one implementation, the communication device 900 may perform the following functions:

[0415] Receiving unit 901 is used to receive a third message sent by the tag management function TMF network element, wherein the third message includes second indication information, the second indication information is used to instruct the reader to set a mapping relationship, and the mapping relationship is used by the reader to determine the first operation. The third message also includes the address and port number of the server.

[0416] The receiving unit 901 is further configured to receive the address and port number of the UPF network element sent by the UPF network element;

[0417] Execution unit 902 is used to set a mapping relationship based on the address and port number of the server, the address and port number of the UPF network element and at least one of the second indication information, and the SMF network element sends a fifth message to the UPF network element, and the fifth message includes the mapping relationship.

[0418] The above are just examples. The receiving unit, executing unit and sending unit in the communication device 900 can also perform other functions. For more detailed descriptions, please refer to the relevant descriptions in the method embodiment shown above, which will not be repeated here.

[0419] In the embodiments provided above, the methods provided in the embodiments of the present application are described from the perspective of a communication device as an execution subject. In order to implement the various functions in the methods provided in the embodiments of the present application, the communication device may include a hardware structure and / or a software module, and implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether a function of the above functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.

[0420] Exemplarily, when hardware implementation is adopted, the hardware implementation of the communication device may refer to FIG8 and its related description.

[0421] Referring to Figure 8 , the communication device may include: one or more processors 1002; a memory 1003; one or more application programs (not shown); and one or more computer programs 1004. The aforementioned components may be connected via one or more communication buses 1001. The one or more computer programs 1004 are stored in the aforementioned memory 1003 and configured to be executed by the one or more processors 1002. The one or more computer programs 1004 include instructions that can be used to execute the method of any of the aforementioned embodiments. The one or more processors 1002 may perform the functions of the receiving unit 901, the executing unit 902, and the sending unit 903.

[0422] An embodiment of the present application further provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on a communication device, the communication device implements the communication method in the above embodiment.

[0423] An embodiment of the present application further provides a computer program product, which, when executed on a computer, enables the computer to execute the communication method in the above embodiment.

[0424] Among them, the communication device, computer-readable storage medium, computer program product or chip provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0425] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0426] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0427] Units described as separate components may or may not be physically separate, and components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0428] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0429] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0430] The above content is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A communication method, characterized in that: The method is applied to a reader, and the method comprises: A receiving user plane function UPF network element sends a first message through a first tunnel, where one end of the first tunnel is connected to the reader, and the other end is connected to the UPF network element, where the first message includes first indication information, and the first indication information is used to instruct the reader to perform a first operation; Based on the first indication information, perform the first operation; Receive a first operation result from at least one first passive terminal and send the first operation result to the UPF network element, wherein the at least one first passive terminal is within the signal coverage of the reader.

2. The method according to claim 1, characterized in that The first indication information includes a first operation; The performing the first operation based on the first indication information includes: The first operation is obtained from the first indication information, and the first operation is executed.

3. The method according to claim 1, characterized in that The first indication information includes a first session identifier; The performing the first operation based on the first indication information includes: Based on the first session identifier and a preset mapping relationship, a first operation corresponding to the first session identifier is determined, and the first operation is executed.

4. The method according to claim 3, characterized in that The mapping relationship includes a first mapping relationship, and the first mapping relationship includes a mapping relationship between a first tunnel identifier and a preset operation.

5. The method according to claim 3, characterized in that The mapping relationship includes a second mapping relationship and a third mapping relationship, the second mapping relationship includes a mapping relationship between the first tunnel identifier and the preset service type, and the third mapping relationship includes a mapping relationship between the preset service type and the preset operation; The determining, based on the first session identifier and a preset mapping relationship, a first operation corresponding to the first session identifier includes: Determine, based on the first session identifier and the second mapping relationship, a first service type corresponding to the first session identifier; Based on the first service type and the third mapping relationship, a first operation corresponding to the first service type is determined.

6. The method according to claim 1, characterized in that The first indication information includes a first service type; The performing the first operation based on the first indication information includes: Based on the first service type and a preset mapping relationship, a first operation corresponding to the first service type is determined, and the first operation is executed.

7. The method according to claim 6, characterized in that The mapping relationship includes a third mapping relationship, and the third mapping relationship includes a mapping relationship between a preset service type and a preset operation.

8. The method according to any one of claims 3 to 7, characterized in that: Before the receiving user plane function UPF network element sends the first message through the first tunnel, the method further includes: receiving a first message sent by a session management function SMF network element, wherein the first message includes second indication information, and the second indication information is used to instruct the reader to set the mapping relationship; the mapping relationship is used to determine the first operation; The mapping relationship is set based at least on the second indication information in the first message.

9. The method according to claim 8, characterized in that The second indication information includes a preset operation, and the first message further includes a first tunnel identifier; The setting the mapping relationship at least based on the second indication information in the first message includes: A first mapping relationship between the first tunnel identifier and the preset operation is established.

10. The method according to claim 8, characterized in that The second indication information includes a preset service type, and the first message further includes a first tunnel identifier; The setting the mapping relationship at least based on the second indication information in the first message includes: A second mapping relationship between the first tunnel identifier and the preset service type is established.

11. The method according to claim 8, characterized in that The second indication information includes the preset service type and the preset operation; The setting the mapping relationship at least based on the second indication information in the first message includes: A third mapping relationship between the preset service type and the preset operation is established.

12. A communication method, characterized in that: The method is applied to a user plane function UPF network element, and the method includes: receiving a second message from the server, wherein the second message includes four-tuple information; A first message is sent to the reader through a first tunnel, wherein the first message includes first indication information, wherein the first indication information is determined based on the four-tuple information, and wherein the first indication information is used to instruct the reader to perform a first operation, wherein one end of the first tunnel is connected to the reader, and the other end is connected to the UPF network element.

13. The method according to claim 12, characterized in that The first indication information is determined in the following manner: Determine, according to the four-tuple information and a fourth mapping relationship, a first service type corresponding to the four-tuple information, wherein the fourth mapping relationship includes a mapping relationship between preset four-tuple information and preset service types; Determine, according to a fifth mapping relationship, a first operation corresponding to the first service type, wherein the fifth mapping relationship includes a mapping relationship between the preset service type and the preset operation; Based on the first operation, the first indication information is generated.

14. The method according to claim 12, characterized in that The first indication information is determined in the following manner: Determine, according to the four-tuple information and a sixth mapping relationship, a first operation corresponding to the four-tuple information; the sixth mapping relationship includes a mapping relationship between preset four-tuple information and preset operations; Based on the first operation, the first indication information is generated.

15. The method according to claim 12, characterized in that The first indication information is determined in the following manner: Determine, according to the four-tuple information and a fourth mapping relationship, a first service type corresponding to the four-tuple information, wherein the fourth mapping relationship includes a mapping relationship between preset four-tuple information and preset service types; Determine, according to a seventh mapping relationship, a first session identifier corresponding to the first service type, wherein the seventh mapping relationship includes a mapping relationship between the preset service type and the first tunnel identifier; Based on the first session identifier, the first indication information is generated.

16. The method according to claim 12, characterized in that The first indication information is determined in the following manner: Determine, according to the four-tuple information and a fourth mapping relationship, a first service type corresponding to the four-tuple information, wherein the fourth mapping relationship includes a mapping relationship between preset four-tuple information and preset service types; Based on the first service type, the first indication information is generated.

17. The method according to claim 13, 15 or 16, characterized in that Before receiving the second message from the server, the method further includes: A fourth mapping relationship is received from a session management function SMF network element, where the fourth mapping relationship is generated according to the preset four-tuple information and the preset service type.

18. The method according to claim 13, characterized in that Before receiving the second message from the server, the method further includes: Receive a fifth mapping relationship from the SMF network element, where the fifth mapping relationship is generated based on the preset service type and the preset operation.

19. The method of claim 14, wherein: Before receiving the second message from the server, the method further includes: Receive a sixth mapping relationship from an SMF network element, where the sixth mapping relationship is generated based on the preset quadruple information and the preset operation.

20. The method of claim 15, wherein: Before receiving the second message from the server, the method further includes: Receive a seventh mapping relationship from the SMF network element, where the seventh mapping relationship is generated based on the preset service type and the first tunnel identifier.

21. The method according to claim 17 or 19, characterized in that The preset four-tuple information is generated based on the address and port number of the server and the address and port number of the UPF network element.

22. A communication method, characterized in that: The method is applied to a tag management function TMF network element, and the method comprises: Receive a second message from the server; the second message is used to instruct the session management function SMF network element to establish a first tunnel; A third message is sent to the SMF network element, wherein the third message includes second indication information, and the second indication information is used to instruct the reader to set a mapping relationship; the mapping relationship is used by the reader to determine the first operation.

23. The method of claim 22, wherein: The second message includes a preset service type; and the second indication information is determined according to the preset service type.

24. The method of claim 23, wherein: The second indication information is determined in the following manner: Based on the preset service type and an eighth mapping relationship, determining a preset operation corresponding to the preset service type; the eighth mapping relationship includes a mapping relationship between a set service type and a set operation; The preset operation is used as the second indication information.

25. The method of claim 23, wherein: The second indication information is determined in the following manner: The preset service type is used as the second indication information.

26. The method of claim 23, wherein: The second indication information is determined in the following manner: Based on the preset service type and an eighth mapping relationship, determining a preset operation corresponding to the preset service type; the eighth mapping relationship includes a mapping relationship between a set service type and a set operation; The preset service type and the preset operation are used as the second indication information.

27. The method of claim 22, wherein: The second indication information is determined according to an eighth mapping relationship, where the eighth mapping relationship includes a mapping relationship between a set service type and a set operation.

28. The method of claim 27, wherein: The second indication information is determined in the following manner: Using the set service type as the preset service type; taking the set operation as the preset operation; The preset service type and the preset operation are used as the second indication information.

29. A communication device, characterized in that: including a processor and a memory; The processor is used to execute the computer program or instructions stored in the memory, so that the communication device implements the method described in any one of claims 1-28.

30. A computer-readable storage medium, characterized in that: A computer program or instruction is stored, and when the computer program or instruction is executed on a computer, the computer-readable storage medium enables the computer-readable storage medium to implement the method according to any one of claims 1 to 28.

31. A chip, characterized in that: It includes a processor, which is coupled to a memory and is used to execute a computer program or instruction stored in the memory, so that the chip implements the method described in any one of claims 1-28.

32. A communication system, characterized in that: include: A reader, a UPF network element and a TMF network element, wherein the reader is used to implement the method described in any one of claims 1 to 11; The UPF network element is used to implement the method described in any one of claims 12 to 21; The TMF network element is used to implement the method described in any one of claims 22-28.

Citation Information

Patent Citations

  • Communication method, node, device, communication system and storage medium

    CN115942282A

  • Charging method, apparatus and system

    WO2022142465A1

  • Information transmission method, system, and apparatus

    WO2022227098A1

  • Packet transmission method and related apparatus

    WO2022252076A1

Cited By

  • Communication method and apparatus

    WO2026098161A1