Communication method and device

By deploying a user plane channel within the business park and using the first tunnel between the reader and the UPF network element to transmit data, the problem of data leakage between the server and the passive terminal was solved, and secure data transmission within the park was achieved.

CN118829017APending Publication Date: 2024-10-22HUAWEI TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310468401.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-19
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

In existing technologies, data transmission between servers and passive terminals via control plane channels poses a risk of data leakage, necessitating a more secure data transmission solution.

Method used

By deploying user plane channels within commercial physical parks and utilizing the first tunnel between the reader and UPF network elements for data transmission, data is ensured to be transmitted within the park, thus preventing leakage.

Benefits of technology

This enabled secure data transmission within the park, preventing data leaks and improving data transmission security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118829017A_ABST
    Figure CN118829017A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a communication method and device, and the method comprises the steps that a reader receives a first message sent by a user plane function UPF network element through a first tunnel, one end of the first tunnel is connected with the reader, the other end of the first tunnel is connected with the UPF network element, the first message comprises first indication information, and the first indication information is used for indicating the reader to execute a first operation; and the reader executes the first operation based on the first indication information. 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, and the at least one first passive terminal is within a signal coverage range of the reader. The first tunnel is a user plane channel, the user plane channel is deployed in the park where the commercial entity is located, when the server and the passive terminal carry out data transmission through the first tunnel, it can be effectively guaranteed that the transmitted data does not go out of the park, then the risk of data leakage can be solved, and safe data transmission can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the rapid development of electronic information technology, passive Internet of Things technology has been applied to various fields. The passive Internet of Things architecture includes passive terminals, readers and servers. The server transmits data with the passive terminal through the reader.

[0003] At present, when data is transmitted between a server and a passive terminal, it is generally transmitted through a control plane channel in the core network. However, using a control plane channel to transmit data will bring the risk of data leakage, and a more secure data transmission solution is urgently needed. Summary of the invention

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

[0005] In the first aspect, an embodiment of the present application provides a communication method, the execution subject of the method is a reader or a module or chip in the reader, and the method is described here by taking 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, 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, 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 at least one first passive terminal is within the signal coverage range of the reader.

[0006] 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 achieving secure data transmission.

[0007] In a possible design, the first indication information includes a first operation; and the reader performs the first operation based on the first indication information, which may include: the reader obtains the first operation from the first indication information and performs the first operation. Through this design, a method for the reader to perform the first operation is provided.

[0008] In a possible design, the first indication information includes a first session identifier. The reader performs a first operation based on the first indication information, including: the reader determines the first operation corresponding to the first session identifier based on the first session identifier and a pre-set mapping relationship, and performs the first operation. Through this design, a method for the reader to perform the first operation is provided.

[0009] In a possible design, 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. Through this design, a method for a reader to perform a first operation is provided.

[0010] In a possible design, 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 a preset service type, and the third mapping relationship includes a mapping relationship between the preset service type and a preset operation. The reader determines the first operation corresponding to the first session identifier based on the first session identifier and the preset mapping relationship, which 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. Through this design, a method for the reader to perform the first operation is provided.

[0011] In one possible design, the first indication information includes the first service type. The reader performs the first operation based on the first indication information, including: the reader determines the first operation corresponding to the first service type based on the first service type and a preset mapping relationship, and performs the first operation. Through this design, a method for the reader to perform the first operation is provided.

[0012] 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 a first operation is provided.

[0013] In a 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 receives a first message sent by the session management function SMF network element, wherein the first 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 to determine the first operation, and the reader sets the mapping relationship based on at least the second indication information in the first message. Through this design, an implementation method for setting the mapping relationship is provided.

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

[0015] 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 sets a mapping relationship based at least on the second indication information in the first message, which may include: the reader establishes a second mapping relationship between the first tunnel identifier and the preset service type. Through this design, an implementation method for setting the mapping relationship is provided.

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

[0017] In the second aspect, an embodiment of the present application provides a communication method, the execution subject of the method is a UPF network element or a module or chip in the UPF network element, and the UPF network element is used as an example for description. The method includes: the UPF network element receives a second message from a server, wherein the second message includes four-tuple information, the UPF network element sends a first message to a reader through a 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.

[0018] 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 achieving secure data transmission.

[0019] In a 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 according to 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 operation corresponding to the first service type according to the fifth mapping relationship, wherein the fifth mapping relationship includes a mapping relationship between the preset service type and the preset operation; the UPF network element generates the first indication information based on the first operation. Through this design, a method for generating the first indication information is provided.

[0020] In a possible design, the first indication information is determined in the following manner: the UPF network element determines the first operation corresponding to the four-tuple information according to the four-tuple information and the sixth mapping relationship, wherein 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. Through this design, a method for generating the first indication information is provided.

[0021] 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 according to 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 according to the seventh mapping relationship, wherein the seventh mapping relationship includes a mapping relationship between the preset service type and the first tunnel identifier; the UPF network element generates the first indication information based on the first session identifier. Through this design, a method for generating the first indication information is provided.

[0022] In a 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 according to the four-tuple information and the fourth mapping relationship, wherein 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. Through this design, a method for generating the first indication information is provided.

[0023] In a possible design, before the UPF network element receives the second message from the server, the method further includes: the UPF network element receives a fourth mapping relationship from the session management function SMF network element, wherein the fourth mapping relationship is generated according to preset four-tuple information and preset service type. Through this design, a method for implementing a mapping relationship is provided.

[0024] In one possible design, before the UPF network element receives the second message from the server, the method further includes: the UPF network element receives a fifth mapping relationship from the SMF network element, wherein the fifth mapping relationship is generated according to a preset service type and a preset operation. Through this design, a method for implementing a mapping relationship is provided.

[0025] In a possible design, before the UPF network element receives the second message from the server, the method further includes: the UPF network element receives a sixth mapping relationship from the SMF network element, wherein the sixth mapping relationship is generated according to preset four-tuple information and preset operation. Through this design, a method for implementing a mapping relationship is provided.

[0026] In a possible design, before the UPF network element receives the second message from the server, the method further includes: the UPF network element receives a seventh mapping relationship from the SMF network element, wherein the seventh mapping relationship is generated according to a preset service type and a first tunnel identifier. Through this design, a method for implementing a mapping relationship is provided.

[0027] In a possible design, the preset four-tuple information is generated according to 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.

[0028] In a third aspect, an embodiment of the present application provides a communication method, the execution subject of the method is a TMF network element or a module or chip in the TMF network element, and the TMF network element is used as an example for description. The method includes: the TMF network element receives 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, and the TMF network element sends 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, and the mapping relationship is used by the reader to determine the first operation. In this method, a method for efficiently establishing a tunnel is provided.

[0029] In a 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 of the second indication information is provided.

[0030] In a possible design, the second indication information is determined in the following manner: the TMF network element determines the preset operation corresponding to the preset service type based on the preset service type and the eighth mapping relationship, wherein the eighth mapping relationship includes a mapping relationship between the set service type and the set operation, and the TMF network element uses the preset operation as the second indication information. Through this design, a method for implementing the second indication information is provided.

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

[0032] In a possible design, the second indication information is determined in the following manner: the TMF network element determines the preset operation corresponding to the preset service type based on the preset service type and the 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. Through this design, a method for implementing the second indication information is provided.

[0033] In a possible design, the second indication information is determined according to 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 of the second indication information is provided.

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

[0035] In a possible design, the third message also includes a session tag, which is generated by the TMF network element based on a preset service type. Through this design, a method for generating a session tag is provided.

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

[0037] 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 SMF network element is used as the execution subject for description here. The method includes: the SMF network element receives a third message sent by a 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.

[0038] In one possible design, the method further includes: the SMF network element sends 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 receives the core network CN tunnel information sent by the UPF network element, the SMF network element determines the first tunnel identifier at least according to the CN tunnel information, the SMF network element sends a first message to the reader, wherein the first message includes the CN tunnel information and the second indication information; the SMF network element receives the access network AN tunnel information sent by the reader. Through this design, a method for efficiently establishing a tunnel is provided.

[0039] 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 on at least the CN tunnel information, which may include: the SMF network element determines the first tunnel identifier based on the TEID and the transport layer address in the CN tunnel information. Through this design, a method for generating a first tunnel identifier is provided.

[0040] 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 the transport layer address in the CN tunnel information, as well as the session tag. Through this design, a method for generating a first tunnel identifier is provided.

[0041] In a fifth aspect, the present application further provides a communication device, which can implement 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. The hardware or software includes one or more units or modules corresponding to the above functions.

[0042] In one possible design, the communication device includes: a processor, the processor is configured to support the communication device to perform the corresponding functions performed by the reader or UPF network element or TMF network element or SMF network element in the above method. The communication device may also include a memory, which may be coupled to the processor and stores the necessary program instructions and data of the communication device. Optionally, the communication device also includes an interface circuit, which is used to support communication between the communication device and a terminal device or other equipment.

[0043] In one possible design, the communication device includes corresponding functional modules, which are respectively used to implement the steps in the above method. The functions can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.

[0044] 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.

[0045] In a sixth aspect, an embodiment of the present application further provides a communication device, which includes a module / unit for executing any method provided in any one of the first to fourth aspects above. These modules / units can be implemented by hardware, or by executing corresponding software implementations by hardware.

[0046] 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.

[0047] In the eighth aspect, a computer-readable storage medium is also provided in an embodiment of the present application, and the computer-readable storage medium 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.

[0048] 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, and any possible design method of the first to fourth aspects.

[0049] In a tenth aspect, a chip is provided, the chip including a processor and a memory, for implementing the method in any one of the first to fourth aspects and any possible implementation of any one of the aspects. The chip may be composed of a chip, or may include a chip and other discrete devices.

[0050] 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;

[0051] 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.

[0052] These and other aspects of the present application will become more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0054] Figure 2 This is a schematic diagram of the 5G network architecture based on service-oriented architecture;

[0055] Figure 3 A flow chart of a communication method provided in an embodiment of the present application;

[0056] Figure 4A schematic diagram of the structure of a first tunnel identifier provided in an embodiment of the present application;

[0057] Figure 5 A schematic diagram of the structure of a first tunnel identifier provided in an embodiment of the present application;

[0058] Figure 6 A flow chart of a communication method provided in an embodiment of the present application;

[0059] Figure 7 A schematic diagram of the structure of a communication device provided in an embodiment of the present application;

[0060] Figure 8 A schematic diagram of the structure of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0061] 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.

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

[0063] 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.

[0064] 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.

[0065] 3) The reader can be an access network device, such as a base station, a pole station, a micro base station, a macro station, etc., or a terminal device, such as a mobile phone, an Internet of Things (IoT) device, a handheld reader, etc. The reader performs non-contact two-way data communication through wireless radio frequency, and uses wireless radio frequency to read and write electronic tags or radio frequency cards (Tags), so as to achieve the purpose of identifying passive terminals and exchanging data with passive terminals. There are two ways of working. One is that when the passive terminal enters the effective identification range of the reader, the passive terminal receives the radio frequency signal emitted by the reader, and uses the energy obtained by the induced current to emit the information stored in the chip in the passive terminal; the other is that the passive terminal can store part of the electrical energy through solar energy and other methods, so that the passive terminal can actively send information of a certain frequency (this can also be called a semi-passive or semi-active terminal). After the reader receives and decodes the information, it is sent to the central information system for relevant data processing.

[0066] 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.

[0067] 5) Read operation: The read operation can read the data information in the storage area of ​​the passive terminal. The passive terminal can have a storage function, and its storage area can store data. If the server wants to perform a read operation on the passive terminal, it will send a read instruction. The reader or core network performs a read operation on the passive terminal according to the read instruction, reads data from the storage area of ​​the passive terminal, and sends the read data to the server. Based on this definition, the read operation can also include a sensor operation, that is, reading the sensor data of the passive terminal.

[0068] 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 the core network performs a write operation on the passive terminal according to the write instruction to write data into the storage area of ​​the passive terminal.

[0069] 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, the server will send a positioning instruction, and 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.

[0070] 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.

[0071] 9) Operations to obtain tag information (including inventory operations, read operations, positioning operations, etc.). It does 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.

[0072] 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.

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

[0074] Figure 1 An architecture diagram of a communication system provided for an embodiment of the present application, which shows the fifth generation (5G) network architecture based on a service-oriented architecture. Figure 1 The 5G network architecture shown may include terminal equipment, access network (AN) equipment and core network (CN) equipment. The terminal equipment accesses the data network (DN) through the access network equipment and the core network equipment. The components of the communication system are described below.

[0075] The terminal device includes a device that provides voice and / or data connectivity to the user. For example, the terminal device is a device with wireless transceiver function, which can be deployed on land, including indoors or outdoors, handheld, wearable or vehicle-mounted; it can also be deployed on the water surface (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 function, 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, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in 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 is 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.

[0076] Access network equipment is a device that provides wireless communication functions for terminal devices. Access network equipment includes, but is not limited to: next-generation base stations (g nodeB, gNB) in 5G, evolved node B (evolved node B, eNB), radio network controller (radio network controller, RNC), node B (node ​​B, NB), base station controller (basestation controller, BSC), base transceiver station (base transceiver station, BTS), home base station (for example, home evolved nodeB, or home node B, HNB), baseband unit (baseBand unit, BBU), transmission point (transmitting and receiving point, TRP), transmission point (transmitting point, TP), mobile switching center, etc.

[0077] In some deployments, the 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 a portion of the gNB's functions, and the DU may implement another portion of the gNB's functions. For example, the CU is responsible for processing non-real-time protocols and services, and implementing the functions of the radio resource control (RRC) layer and the packet data convergence protocol (PDCP) layer. The DU is responsible for processing physical layer protocols and real-time services, and implementing the functions of the radio link control (RLC) layer, the media access control (MAC) layer, and the physical (PHY) layer. The AAU implements some physical layer processing functions, RF processing, and related functions of active antennas. The information of the RRC layer is generated by the CU, and will eventually be encapsulated by the PHY layer of the DU to become the PHY layer information, or, it is converted from the PHY layer information. Therefore, under this architecture, high-level signaling such as RRC layer signaling can also be considered to be sent by the DU, or, by the DU+AAU. It is understandable 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 may be divided into an access network device in the access network, or the CU may be divided into an access network device in the CN. The access network device may be a radio access network (RAN) device or a wired access network (FAN) device. Among them, the RAN device may be a RAN device for 5G, or a RAN device for 6G, or have other names, which is not limited in this application.

[0078] The access network equipment and terminal equipment can be fixed or movable. The access network equipment and terminal equipment can be deployed on land, including indoors or outdoors, handheld or vehicle-mounted; they can also be deployed on the water surface; they can also be deployed on airplanes, balloons and artificial satellites in the air. The embodiments of the present application do not limit the application scenarios of the access network equipment and terminal equipment.

[0079] 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 storage function (NRF) network element (not shown in the figure).

[0080] The mobility management network element is a control plane network element provided by the operator network, which is responsible for the access control and mobility management of the terminal device to the operator network, including, for example, 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.

[0081] The tag management function network element can process tag operations, perform access control on tags, manage readers and writers, route and forward tag data, etc. 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 it 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.

[0082] 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. 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 the PDU session. 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 devices), 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.

[0083] The user plane network element is a gateway provided by the operator, and is the gateway for the operator network to communicate with the DN. The UPF network element includes functions related to the user plane, such as data packet routing and transmission, packet detection, service usage reporting, Quality of Service (QoS) processing, legal monitoring, uplink packet detection, and downlink data packet storage. 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.

[0084] The data management network element is a control plane network element provided by the operator, which is responsible for storing the subscriber permanent identifier (SUPI), credential, security context, contract data and other information of the subscribers in the operator network. The information stored by the data management network element can be used for authentication and authorization of the terminal device to access the operator network. Among them, the subscribers of the above-mentioned operator network can specifically be users who use the services provided by the operator network, such as users who use China Telecom's mobile phone SIM cards, or users who use China Mobile's mobile phone SIM cards, etc. The permanent subscription identifier (SUPI) of the above-mentioned subscriber can be the number of the mobile phone SIM card, etc. The credential and security context of the above-mentioned subscriber can be small files storing the encryption key of the mobile phone SIM card or information related to the encryption of the mobile phone SIM card, which are used for authentication and / or authorization. The above-mentioned security context can be data (cookie) or token stored on the user's local terminal (such as a mobile phone). The contract data of the above-mentioned subscriber can be the supporting services of the mobile phone SIM card, such as the traffic package of the mobile phone SIM card or the use of the network, etc. 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 the present application will be described using security contexts as an example, but the embodiments of the present application are also applicable to authentication and / or authorization information expressed in other ways. In 5G, the data management network element may be a UDM network element. In future communications such as 6G, the data management network element may still be a UDM network element, or have other names, which are not limited in this application.

[0085] 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.

[0086] 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 the third party in a secure manner. When the session management network element needs to communicate with the network element of the 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 be used as a translator for 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, the SUPI can be translated 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 be translated 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.

[0087] The application function network element is used to convey the application side's 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 an 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.

[0088] The policy control network element is a control plane function provided by the operator, which is used to provide the PDU session policy to the session management network element. The policy 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.

[0089] 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.

[0090] The data network is a network outside the operator network. The operator network can access multiple DNs. A variety of services can be deployed on the DN, which can provide data and / or voice services to terminal devices. For example, DN is the private network of a smart factory. The sensors installed in the workshop of the smart factory can be terminal devices. The control server of the sensors is deployed in the DN, and the control server can provide services for the sensors. The sensors can communicate with the control server, obtain instructions from the control server, and transmit the collected sensor data to the control server according to the instructions. For another example, DN is the internal office network of a company. The mobile phones or computers of the company's employees can be terminal devices. The employees' mobile phones or computers can access information and data resources on the company's internal office network.

[0091] Figure 1 Npcf, Nudr, Nudm, Naf, Namf, and Nsmf are service-oriented interfaces provided by the above-mentioned PCF, UDR, UDM, AF, AMF, and SMF, respectively, and are used to call corresponding service-oriented operations. The N1 interface is the interface between the AMF and the terminal device, which can be 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, which can be used to transmit radio bearer control information from the core network side to the RAN. The N3 interface is the interface between the RAN and the UPF, which is mainly 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, which can be used to transmit information between the control plane and the user plane, including the control of the forwarding rules, QoS control rules, traffic statistics rules, etc. for the user plane and the reporting of information on the user plane. The N6 interface is the interface between the UPF and the DN, which is used to transmit uplink and downlink user data flows between the UPF and the DN.

[0092] set up Figure 1 The terminal device is a passive terminal, the access network device is a reader, and the application function network element is a server. Figure 1 Based on the system architecture shown, Figure 2 FIG. 2 shows another communication system architecture schematic diagram applicable to the embodiment of the present application. Figure 2 As shown, 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, a NEF network element and a server. The specific contents of the passive terminal, the reader, the AMF network element, the SMF network element, the UPF network element, the TMF network element, the NEF network element and the server can be referred to in Figure 1 The repeated parts will not be repeated here.

[0093] 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 can also communicate directly with AMF network elements. AMF network elements can communicate directly with readers, and readers can communicate directly with passive terminals.

[0094] It is understandable that the above 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 network element or function can be implemented by one device, or by multiple devices together, or can be a functional module in one device, which is not specifically limited in the embodiments of the present application.

[0095] It should be noted that Figure 1 or Figure 2 The communication system shown 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 (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 another example, when multiple network elements are integrated into the same physical device, the physical device may also have other names.

[0096] The solution provided by this application is described below in conjunction with the accompanying drawings.

[0097] The embodiment of the present application provides a communication method for establishing a first tunnel between a reader and a UPF network element, wherein the first tunnel is only used to transmit a first message, wherein the service type of the first message may include any one of the following: inventory type, read type, write type, positioning type, deactivation type, and acquisition of tag information type, etc., wherein 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 Figure 2 The communication system shown below Figure 3 The flowchart shown in FIG. 4 specifically illustrates the process of the method.

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

[0099] 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.

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

[0101] 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.

[0102] S302, the NEF network element sends a second message to the TMF network element.

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

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

[0105] In a 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 according to 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.

[0106] 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.

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

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

[0109] Implementation method a2: 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, and uses the preset operation as the second indication information. Among them, the eighth mapping relationship includes a mapping relationship between a set business type and a 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, which is not limited here.

[0110] 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 obtaining tag information type, etc.

[0111] The set operation in the eighth mapping relationship includes any one of the following: inventory operation, common read operation, common write operation, batch read operation, batch write operation, positioning operation, deactivation operation and tag information acquisition operation.

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

[0113] Table 1

[0114] Business type has been set Action set Inventory Type Inventory Operation Normal read type Normal read operation Normal write type Normal write operation Batch Read Type Batch Read Operation Batch write type Batch write operations Positioning type Positioning operation Inactivation type Inactivation operation Get tag information type Get tag information operation

[0115] Take the example of the business type set in Table 1 as the inventory type, and the set operation corresponding to the inventory type is the inventory operation. When the business type set is other types (except the inventory type), the method of determining the set operation is similar to the above method, which will not be described in detail below.

[0116] Assuming that the signal coverage of the reader includes M passive terminals, and all the 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:

[0117] When the operation is set as an inventory operation, it can be understood as: the reader sends a first broadcast message to M passive terminals, where the first 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 first broadcast message, they send their corresponding tag identifiers to the reader. After receiving a tag identifier sent by a passive terminal, the reader sends the tag identifier to the server through the UPF network element, and waits for tag identifiers sent by other passive terminals (except for passive terminals that have sent tag identifiers).

[0118] When the operation is set as a normal read operation, it can be understood as: the reader sends a second broadcast message to M passive terminals, where 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. After receiving the second broadcast message, the M passive terminals send the data information in their respective storage areas to the reader. After receiving a data message sent by the passive terminal, the reader sends the data information to the server through the UPF network element, and waits for data information sent by other passive terminals (except the passive terminals that have sent data information).

[0119] 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).

[0120] 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 send their corresponding tag identifiers to the reader respectively. 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).

[0121] 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 passive terminals that have sent write success messages or write failure messages).

[0122] 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 send their corresponding tag identifiers to the reader respectively. 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 sends 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).

[0123] 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 terminal that has sent the tag identification).

[0124] When the operation is set as a batch read operation, it can be understood that: the reader sends the eighth broadcast message to M passive terminals, wherein 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. After receiving the eighth broadcast message, the M passive terminals respectively send the data information in their respective storage areas to the reader. After receiving the data information sent by the M passive terminals, the reader sends the M data information to the server in batches through the UPF network element.

[0125] When the operation has been set as a batch write operation, it can be understood as: the reader sends the 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 server in batches through the UPF network element.

[0126] When the operation is set as a positioning operation, it can be understood as: the reader sends the tenth broadcast message to M passive terminals, where the tenth broadcast message is used to instruct the passive terminal to send location information to the reader. After receiving the tenth broadcast message, the M passive terminals send their corresponding location information to the reader. After receiving a location information sent by a passive terminal, the reader sends the location information to the server through the UPF network element, and waits for the location information sent by other passive terminals (except the passive terminals that have sent location information).

[0127] 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 deactivate their respective tag identifications to invalidate the tag identifications. 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 the deactivation success message or deactivation failure message sent by other passive terminals (except the passive terminals that have sent deactivation success messages or deactivation failure messages).

[0128] When the operation has been 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 passive terminals that have sent tag information).

[0129] It should be understood that the set 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 just literal meanings, but specifically refer to the execution actions of the reader. In order to facilitate understanding and reading of the specification, the inventory operation, normal read operation, normal write operation, batch read operation, batch write operation, positioning operation, deactivation operation, and tag information acquisition operation are directly used in the embodiments of the present application, instead of directly using the execution actions of the reader corresponding to each operation.

[0130] In one possible implementation, 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, which can be achieved through the following steps: the TMF network element searches for the preset business type in the eighth mapping relationship, and if there is a set business type that is the same as the preset business type in the eighth mapping relationship, then the set operation corresponding to the set business type is used as the preset operation.

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

[0132] Taking the preset service type as the inventory type as an example, the TMF network element searches for the inventory type in the eighth mapping relationship shown in Table 1. Since there is a set service type that is the same as the inventory type in the eighth mapping relationship, the set operation corresponding to the set service type (i.e., the inventory operation) is used as the preset operation. Finally, the inventory operation is used as the second indication information.

[0133] Implementation method a3, 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, and uses the preset business type and the preset operation as the second indication information. Among them, the eighth mapping relationship includes a mapping relationship between a set business type and a set operation. It should be understood that the eighth mapping relationship can be stored in the TMF network element, and can also be stored in other devices accessible to the TMF network element, which is not limited here.

[0134] In one possible implementation, 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, which can be achieved through the following steps: the TMF network element searches for the preset business type in the eighth mapping relationship, and if there is a set business type that is the same as the preset business type in the eighth mapping relationship, then the set operation corresponding to the set business type is used as the preset operation.

[0135] 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 obtaining tag information 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 obtaining tag information operation, etc.

[0136] Taking the preset service type as the inventory type as an example, the TMF network element searches for the inventory type in the eighth mapping relationship shown in Table 1. Since there is a preset service type that is the same as the inventory type in the eighth mapping relationship, the preset operation (i.e., the inventory operation) corresponding to the preset service type is used as the preset operation. Finally, the inventory type and the inventory operation are used as the second indication information.

[0137] The third message also includes a session tag, wherein 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.

[0138] 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.

[0139] 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.

[0140] S305, the SMF network element sends a fourth message to the UPF network element, wherein the fourth message can be used to instruct the UPF network element to send CN tunnel information. Alternatively, the fourth message can 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.

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

[0142] 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.

[0143] 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.

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

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

[0146] In a possible implementation, the SMF network element may determine the first tunnel identifier through the following two possible implementations, the specific implementations are as follows:

[0147] 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.

[0148] 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. Figure 4 As shown, the TEID and the transport layer address are concatenated to form a first tunnel identifier.

[0149] 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 and the session label. Figure 5 As shown, the TEID, the transport layer address and the session label are concatenated to form a first tunnel identifier.

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

[0151] 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.

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

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

[0154] S310, the reader determines AN tunnel information based on the CN tunnel information in the first message.

[0155] 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).

[0156] 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 can be stored in the reader or in other devices accessible to the reader, which is not limited here. After the reader establishes the ninth mapping relationship, when the reader uses the first tunnel, the first tunnel can be determined based on the ninth mapping relationship, and the first tunnel can be used to transmit data.

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

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

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

[0160] Implementation mode 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.

[0161] Implementation mode 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.

[0162] Implementation mode 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.

[0163] 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.

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

[0165] There is no particular order of execution between S310 to S311 and S312.

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

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

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

[0169] In a first possible implementation, the fifth message includes AN tunnel information, a first tunnel identifier, and at least one of the following: an address and a port number of a server, 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 a preset service type and a preset operation.

[0170] 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 through the stored first tunnel identifier.

[0171] The UPF network element can 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 can be stored in the reader or in other devices accessible to the reader, which is not limited here. After the UPF network element establishes the ninth mapping relationship, when the UPF network element uses the first tunnel, it can determine the first tunnel based on the ninth mapping relationship and use the first tunnel to transmit data.

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

[0173] Implementation method c1: When the fifth message includes the address and port number of the server and the second indication information, wherein the second indication information includes the preset service type, the UPF network element first generates the 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 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 other devices accessible to the UPF network element, which is not limited here.

[0174] 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.

[0175] Table 2

[0176] Preset quadruple information Preset business type (192.169.10.0:1,192.169.10.1:1) Inventory Type (192.169.10.0:2,192.169.10.1:2) Normal read type (192.169.10.0:3,192.169.10.1:3) Normal write type (192.169.10.0:4,192.169.10.1:4) Batch Read Type (192.169.10.0:5,192.169.10.1:5) Batch write type (192.169.10.0:6,192.169.10.1:6) Positioning type (192.169.10.0:7,192.169.10.1:7) Inactivation type (192.169.10.0:8,192.169.10.1:8) Get tag information type

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

[0178] Implementation method c2: When the fifth message includes the second indication information, wherein the second indication information includes the preset service type and the 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 other devices accessible to the UPF network element, which is not limited here.

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

[0180] Table 3

[0181] Preset business type Preset Actions Inventory Type Inventory Operation Normal read type Normal read operation Normal write type Normal write operation Batch Read Type Batch Read Operation Batch write type Batch write operations Positioning type Positioning operation Inactivation type Inactivation operation Get tag information type Get tag information operation

[0182] Take the preset business type in Table 3 as an example, 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 of determining the preset operation is similar to the above method, which will not be described in detail below.

[0183] Implementation method c3: When the fifth message includes the address and port number of the server and the second indication information, wherein the second indication information includes a preset operation, 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 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 other devices accessible to the UPF network element, which is not limited here.

[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] Preset quadruple information Preset Actions (192.169.10.0:1,192.169.10.1:1) Inventory Operation (192.169.10.0:2,192.169.10.1:2) Normal read operation (192.169.10.0:3,192.169.10.1:3) Normal write operation (192.169.10.0:4,192.169.10.1:4) Batch Read Operation (192.169.10.0:5,192.169.10.1:5) Batch write operations (192.169.10.0:6,192.169.10.1:6) Positioning operation (192.169.10.0:7,192.169.10.1:7) Inactivation operation (192.169.10.0:8,192.169.10.1:8) Get tag information operation

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

[0188] Implementation method c4: when the fifth message includes the second indication information, wherein the second indication information includes the preset service type, the UPF network element establishes the seventh mapping relationship between the preset service type and the first tunnel identifier. It should be understood that the seventh mapping relationship can be stored in the UPF network element or in other devices accessible to the UPF network element, which is not limited here.

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

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

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

[0192] 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.

[0193] 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 through the stored first tunnel identifier.

[0194] The UPF network element can 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 can be stored in the reader or in other devices accessible to the reader, which is not limited here. After the UPF network element establishes the ninth mapping relationship, when the UPF network element uses the first tunnel, it can determine the first tunnel based on the ninth mapping relationship and use the first tunnel to transmit data.

[0195] In a 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.

[0196] 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.

[0197] In a 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.

[0198] In a 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.

[0199] 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.

[0200] In the 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.

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

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

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

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

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

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

[0207] In the present 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 for establishing the second tunnel is similar to the method for establishing the first tunnel. No limitation is made here and will not be repeated in the following text.

[0208] 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.

[0209] 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 Figure 2 The communication system shown below Figure 6 The flowchart shown in FIG. 4 specifically illustrates the process of the method.

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

[0211] In a 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.

[0212] 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.

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

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

[0215] An example is given for the label identifier of at least one first passive terminal in the second message. The second message includes label identifier 1 and label identifier 2.

[0216] Taking the label identifier range in the second message as an example, the second message includes label identifier 1 to label identifier 5.

[0217] 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 locate the location based on whether it is within the range determined by the range information.

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

[0219] 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 a first operation.

[0220] 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.

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

[0222] In a possible implementation manner, the UPF network element may determine the first indication information through the following four possible implementation manners, and the specific implementation manners may be as follows:

[0223] Implementation method d1: When the UPF network element stores the fourth mapping relationship, the UPF network element first determines the first service type corresponding to the four-tuple information according to the four-tuple 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 four-tuple information and the preset service type.

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

[0225] Implementation method 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 according to the four-tuple information and the fourth mapping relationship; then determines the first operation corresponding to the first service type according to the fifth mapping relationship; and finally, generates the 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.

[0226] Further explanation is as follows: in the case where 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 there is a preset four-tuple information identical to the four-tuple information in the fourth mapping relationship, 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 there is a preset service type identical to the first service type in the fifth mapping relationship, the preset operation corresponding to the preset service type is used as the first operation, and the first indication information is generated based on the first operation.

[0227] Implementation method d3: When the UPF network element stores the sixth mapping relationship, the UPF network element determines the first operation corresponding to the four-tuple information according to the four-tuple information and the sixth mapping relationship, and then generates the first indication information based on the first operation. The sixth mapping relationship includes a mapping relationship between preset four-tuple information and preset operations.

[0228] Further explanation is as follows: in the case where 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.

[0229] Implementation method 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 according to the four-tuple information and the fourth mapping relationship; then determines the first session identifier corresponding to the first service type according to 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.

[0230] 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 there is a preset four-tuple information that is the same as the four-tuple information in the fourth mapping relationship, 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 there is a preset service type that is the same as the first service type in the seventh mapping relationship, the first tunnel identifier corresponding to the preset service type is used as the first session identifier, and the first indication information is generated based on the first session identifier.

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

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

[0233] 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.

[0234] 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.

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

[0236] In a possible implementation, the reader may perform the first operation through the following four possible implementations, the specific implementations are as follows:

[0237] Embodiment e1: When the first indication information includes the first service type and the reader stores a third mapping relationship, the reader determines the first operation corresponding to the first service type based on the first service type and the third mapping relationship, and executes the first operation. The third mapping relationship includes a mapping relationship between a preset service type and a preset operation.

[0238] 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.

[0239] Implementation method e2: when the first indication information includes the first operation, the reader obtains the first operation from the first indication information and executes the first operation.

[0240] Implementation method e3: when the first indication information includes the first session identifier and the reader stores the first mapping relationship, the reader determines the 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 the preset operation.

[0241] 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.

[0242] Embodiment e4: When the first indication information includes the first session identifier, and the reader stores the second mapping relationship and the 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 the preset service type, and the third mapping relationship includes a mapping relationship between the preset service type and the preset operation.

[0243] Further explanation is as follows: in the case where the first indication information includes the first session identifier, and the reader stores the second mapping relationship and the third mapping relationship, the reader searches for the first session identifier in the second mapping relationship, and if the second mapping relationship contains the first tunnel identifier that is the same as the first session identifier, the preset service type corresponding to the first tunnel identifier is used as the first service type. The reader searches for the first service type in the third mapping relationship, and if the third mapping relationship contains the preset service type that is the same as the first service type, the preset operation corresponding to the preset service type is used as the first operation, and the first operation is executed.

[0244] 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 an operation of obtaining tag information.

[0245] 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.

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

[0247] In a possible implementation, assuming that the signal coverage of the reader includes M passive terminals, and the first message does not include a 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, and the following detailed explanation is given:

[0248] If the first operation is an inventory operation, 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 identifier to the reader. After each of the M passive terminals receives the first broadcast message, they send their corresponding tag identifiers 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 sent tag identifiers).

[0249] 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 first operation result is: the tag identification of the passive terminal.

[0250] 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 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 second broadcast message, the M passive terminals send the data information in their respective storage areas to the reader. 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 then sends the data message 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).

[0251] In the case where 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 terminal to send data information in the storage area of ​​the passive terminal to the reader. The result of the first operation is: data information in the storage area of ​​the passive terminal.

[0252] 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 sends 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).

[0253] In the case where 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, wherein the third broadcast message is used to instruct the passive terminal to send a tag identifier to the reader, 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. The result of the first operation is: data information in the storage area of ​​the passive terminal.

[0254] 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 send their corresponding tag identifiers to the reader respectively. 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 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 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).

[0255] In the case where 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, wherein the third broadcast message is used to instruct the passive terminal to send a tag identifier to the reader, 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. The result of the first operation is: data information in the storage area of ​​the passive terminal.

[0256] 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 for passive terminals that have sent write success messages or write failure messages).

[0257] In the case where the first operation is a normal write operation, the first operation is: 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. The result of the first operation is: a write success message or a write failure message of the passive terminal.

[0258] Alternatively, if the first operation is a normal write operation, 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 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 the 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 identifier sent by other passive terminals (except the passive terminal that has sent the tag identifier).

[0259] In the case where the first operation is a normal write operation, the first operation is: the reader sends the sixth broadcast message and the seventh broadcast message to M passive terminals, wherein the sixth broadcast message is used to instruct 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 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. The result of the first operation is: a write success message or a write failure message of the passive terminal.

[0260] Alternatively, if the first operation is a normal write operation, 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 send their corresponding tag identifiers to the reader respectively. 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 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 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 identifier sent by other passive terminals (except the passive terminal that has sent the tag identifier).

[0261] In the case where the first operation is a normal write operation, the first operation is: the reader sends the sixth broadcast message and the seventh broadcast message to M passive terminals, wherein the sixth broadcast message is used to instruct 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 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. The result of the first operation is: a write success message or a write failure message of the passive terminal.

[0262] If the first operation is a batch read operation, the reader sends an eighth broadcast message to the M passive terminals, wherein 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. After receiving the eighth broadcast message, the M passive terminals respectively send the data information in their respective storage areas to the reader. After receiving the data information sent by the M passive terminals, the reader sends the M data information to the UPF network element in batches through the first tunnel, and then the UPF network element sends it to the server.

[0263] In the case where 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 terminal to send data information in the storage area of ​​the passive terminal to the reader. The result of the first operation is: data information in the storage area of ​​the passive terminal.

[0264] 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.

[0265] In the case where 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 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. The result of the first operation is: a write success message or a write failure message of the passive terminal.

[0266] If the first operation is a positioning operation, the reader sends the tenth broadcast message to the 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, they send their corresponding location information to the reader. After receiving a location information sent by the M passive terminals, 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 for the passive terminals that have sent location information).

[0267] 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: location information of the passive terminal.

[0268] 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 terminals to invalidate the tag identifiers in the passive terminals. After receiving the eleventh broadcast message, the M passive terminals deactivate their respective tag identifiers to invalidate the tag identifiers. 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 for passive terminals that have sent deactivation success messages or deactivation failure messages).

[0269] 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 first operation result is: a deactivation success message or a deactivation failure message of the passive terminal.

[0270] If the first operation is an operation 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 a 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 passive terminals that have sent tag information).

[0271] 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.

[0272] In another possible implementation manner, it is assumed that the signal coverage of the reader includes M passive terminals, and the first message includes filter information. An example is given in which the filter information includes a tag identifier of at least one first passive terminal. The reader performs the first operation, and the following detailed explanation is given:

[0273] 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 send their corresponding tag identifiers 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 passive terminals that have sent tag identifiers).

[0274] 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 first operation result is: the tag identification of the passive terminal.

[0275] 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.

[0276] 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 a passive terminal, the reader sends the data 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 data information sent by other passive terminals (except passive terminals that have sent data information).

[0277] In the case where 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 a tag identifier of at least one passive terminal, and the second broadcast message is used to instruct the passive terminal to send data information in the storage area of ​​the passive terminal to the reader. The result of the first operation is: data information in the storage area of ​​the passive terminal.

[0278] 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.

[0279] 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 the third 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 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 through the first tunnel, and the UPF network element then sends the tag identifier to the server. At the same time, the reader maintains the connection with the passive terminal that sends 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 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 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).

[0280] In the case where 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, wherein the third broadcast message includes a tag identifier of at least one passive terminal, the third broadcast message is used to instruct the passive terminal to send the tag identifier to the reader, 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. The result of the first operation is: data information in the storage area of ​​the passive terminal.

[0281] 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 a tag identifier of at least one passive terminal, and the third 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 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 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 the fourth broadcast message to the M passive terminals. After receiving the fourth broadcast message, the M passive terminals 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 the UPF network element then sends the data information to the server. At the same time, the reader waits for the tag identifier sent by other passive terminals (except the passive terminal that has sent the tag identifier).

[0282] In the case where 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, wherein the third broadcast message includes a tag identifier of at least one passive terminal, the third broadcast message is used to instruct the passive terminal to send the tag identifier to the reader, 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. The result of the first operation is: data information in the storage area of ​​the passive terminal.

[0283] 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 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. 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 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 to be sent by other passive terminals (except passive terminals that have sent write success messages or write failure messages).

[0284] In the case where the first operation is a normal write operation, the first operation is: the reader sends a fifth broadcast message to M passive terminals, wherein the fifth broadcast message includes the information to be written and the tag identification 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 of the passive terminal.

[0285] 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 a tag identifier of at least one passive terminal, and the sixth broadcast message is used to instruct the passive terminal to send a 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 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 the 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 cancels the connection with the passive terminal and waits for the tag identifier sent by other passive terminals (except the passive terminals that have sent the tag identifier).

[0286] In the case where the first operation is a normal read operation, the first operation is: the reader sends the sixth broadcast message and the seventh broadcast message to M passive terminals, wherein the sixth broadcast message includes the tag identifier of at least one passive terminal, the sixth broadcast message is used to instruct 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 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. The result of the first operation is: a write success message or a write failure message of the passive terminal.

[0287] 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 a tag identifier of at least one passive terminal, and the sixth broadcast message is used to instruct the passive terminal to send a 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 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 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 passive terminals that have sent tag identifiers).

[0288] In the case where the first operation is a normal write operation, the first operation is: the reader sends the sixth broadcast message and the seventh broadcast message to M passive terminals, wherein the sixth broadcast message includes the tag identifier of at least one passive terminal, the sixth broadcast message is used to instruct 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 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. The result of the first operation is: a write success message or a write failure message of the passive terminal.

[0289] 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 then the UPF network element sends it to the server.

[0290] In the case where 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 includes a 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 the storage area of ​​the passive terminal to the reader. The result of the first operation is: data information in the storage area of ​​the passive terminal.

[0291] 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 a 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 a write success message or a write failure message sent by at least one passive terminal, the reader sends at least one write success message or a write failure message to the UPF network element in batches through the first tunnel, and then the UPF network element sends it to the server.

[0292] In the case where 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 identification 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 of the passive terminal.

[0293] 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).

[0294] 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 includes a 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. The result of the first operation is: location information of the passive terminal.

[0295] 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 to make 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. Meanwhile, 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).

[0296] 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 includes a 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 first operation result is: a deactivation success message or a deactivation failure message of the passive terminal.

[0297] 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 passive terminals that have sent tag information).

[0298] In the case where the first operation is an operation of obtaining tag information, the first operation is: the reader sends a twelfth broadcast message to M passive terminals, wherein the twelfth broadcast message includes a 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. The result of the first operation is: tag information of the passive terminal.

[0299] 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.

[0300] S606, the reader sends the first operation result to the UPF network element through the first tunnel.

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

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

[0303] 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.

[0304] The embodiment of the present application provides another communication method, which is used to establish 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 may include any one of the following: inventory type, read type, write type, positioning type, deactivation type, and acquisition of tag information type, etc. 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 Figure 2 The communication method can be found in Figure 3 The flowchart shown in the figure will be described in detail below.

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

[0306] 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.

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

[0308] The second message may also include the area information of the tag 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 to obtain the area information of the tag to be operated.

[0309] S702, the NEF network element sends a second message to the TMF network element.

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

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

[0312] In a 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 according to 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.

[0313] In a possible implementation, the third message includes second indication information, wherein the second indication information is determined according to 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.

[0314] The TMF network element can determine the second indication information through the following implementation method, and 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. Among them, 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, and can also be stored in other devices accessible to the TMF network element, which is not limited here.

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

[0316] In the case where the service type is set to the inventory type, 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. In the case where the service type is set to the common read type, the common read type is used as the preset service type, and the common read operation corresponding to the common read type is used as the preset operation. By analogy, the nine sets of preset service types and preset operations obtained are used as the second indication information.

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

[0318] The third message also includes a session tag, wherein 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.

[0319] 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.

[0320] 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.

[0321] S705, the SMF network element sends a fourth message to the UPF network element, wherein the fourth message can be used to instruct the UPF network element to send CN tunnel information. Alternatively, the fourth message can 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.

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

[0323] 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.

[0324] 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.

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

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

[0327] In a possible implementation, the SMF network element may determine the first tunnel identifier through the following two possible implementations, the specific implementations are as follows:

[0328] 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.

[0329] 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.

[0330] A third possible implementation is that the SMF network element can determine the first tunnel identifier based on the TEID and transport layer address in the CN tunnel information, as well as the session label.

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

[0332] 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.

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

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

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

[0336] 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).

[0337] 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 can be stored in the reader or in other devices accessible to the reader, which is not limited here. After the reader establishes the ninth mapping relationship, when the reader uses the first tunnel, the first tunnel can be determined based on the ninth mapping relationship, and the first tunnel can be used to transmit data.

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

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

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

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

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

[0343] There is no particular order of execution between S710 to S711 and S712.

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

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

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

[0347] 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 through the stored first tunnel identifier.

[0348] The UPF network element can 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 can be stored in the reader or in other devices accessible to the reader, which is not limited here. After the UPF network element establishes the ninth mapping relationship, when the UPF network element uses the first tunnel, it can determine the first tunnel based on the ninth mapping relationship and use the first tunnel to transmit data.

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

[0350] Implementation method f1: When the fifth message includes the address and port number of the server and the second indication information, wherein the second indication information includes the preset service type, the UPF network element first generates the 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 fourth mapping relationship between the preset four-tuple information and the preset service type, wherein 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 other devices accessible to the UPF network element, which is not limited here.

[0351] Implementation method f2: When the fifth message includes the second indication information, wherein the second indication information includes the preset service type and the 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 other devices accessible to the UPF network element, which is not limited here.

[0352] Implementation method f3, when the fifth message includes the address and port number of the server and the second indication information, wherein the second indication information includes a preset operation, 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 sixth mapping relationship between the preset four-tuple information and the preset operation. Among them, 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 other devices accessible to the UPF network element, which is not limited here.

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

[0354] 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, and a sixth mapping relationship.

[0355] 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 through the stored first tunnel identifier.

[0356] The UPF network element can 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 can be stored in the reader or in other devices accessible to the reader, which is not limited here. After the UPF network element establishes the ninth mapping relationship, when the UPF network element uses the first tunnel, it can determine the first tunnel based on the ninth mapping relationship and use the first tunnel to transmit data.

[0357] In a 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.

[0358] 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.

[0359] In a 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.

[0360] In the 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.

[0361] In the 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.

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

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

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

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

[0366] S717, the TMF network element sends sixth information to the NEF network element.

[0367] S718, the NEF network element sends sixth information to the server.

[0368] 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.

[0369] 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 Figure 2 The communication method can be found in Figure 6 The flowchart shown in the figure will be described in detail below.

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

[0371] 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.

[0372] 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.

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

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

[0375] An example is given for the label identifier of at least one first passive terminal in the second message. The second message includes label identifier 1 and label identifier 2.

[0376] Taking the label identifier range in the second message as an example, the second message includes label identifier 1 to label identifier 5.

[0377] 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 locate the location based on whether it is within the range determined by the range information.

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

[0379] 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 a first operation.

[0380] 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.

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

[0382] In a possible implementation manner, the UPF network element may determine the first indication information through the following three possible implementation manners, and the specific implementation manners may be as follows:

[0383] 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 four-tuple information according to the four-tuple 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 four-tuple information and the preset service type.

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

[0385] Implementation 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 according to the four-tuple information and the fourth mapping relationship; then determines the first operation corresponding to the first service type according to the fifth mapping relationship; and finally, generates the first indication information based on the first operation. The fourth mapping relationship includes the correspondence between the preset four-tuple information and the preset service type, and the fifth mapping relationship includes the correspondence between the preset service type and the preset operation.

[0386] Further explanation is as follows: in the case where 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 there is a preset four-tuple information identical to the four-tuple information in the fourth mapping relationship, 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 there is a preset service type identical to the first service type in the fifth mapping relationship, the preset operation corresponding to the preset service type is used as the first operation, and the first indication information is generated based on the first operation.

[0387] Implementation g3: When the UPF network element stores the sixth mapping relationship, the UPF network element determines the first operation corresponding to the four-tuple information according to the four-tuple information and the sixth mapping relationship, and then generates the first indication information based on the first operation. The sixth mapping relationship includes a mapping relationship between preset four-tuple information and preset operations.

[0388] Further explanation is as follows: in the case where 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.

[0389] 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.

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

[0391] In a possible implementation, the reader may determine the first operation through the following two possible implementations, the specific implementations are as follows:

[0392] Implementation method h1: When the first indication information includes the first service type and the reader stores a third mapping relationship, the reader determines the first operation corresponding to the first service type based on the first service type and the third mapping relationship, and executes the first operation. The third mapping relationship includes a mapping relationship between a preset service type and a preset operation.

[0393] 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.

[0394] Implementation method 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.

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

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

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

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

[0399] 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.

[0400] In the embodiments provided by the present application, the methods provided by the embodiments of the present application are introduced from the perspective of interaction between various devices. In order to implement the functions of the methods provided by 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 to 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.

[0401] The division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present application may be integrated into a processor, or may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.

[0402] Same as above idea, Figure 7 As shown, the embodiment of the present application also provides a communication device 700 for implementing the functions of the reader or UPF network element or 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 it can include a chip and other discrete devices. The communication device 700 may include: a receiving unit 701, an execution unit 702 and a sending unit 703.

[0403] In the embodiment of the present application, the communication device 700 includes a receiving unit, an executing unit, and a sending unit, which are respectively used to execute the steps of receiving, executing, and sending of the reader or UPF network element or 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.

[0404] The following, combined Figures 7 and 8 The communication device provided in the embodiment of the present application is described in detail. It should be understood that the description of the device embodiment corresponds to the description of the method embodiment, so the contents not described in detail can be referred to the method embodiment above, and will not be repeated here for the sake of brevity.

[0405] In one implementation, the communication device 700 may perform the following functions:

[0406] A receiving unit 701 is configured to receive 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 a reader, and the other end is connected to the UPF network element, and the first message includes first indication information, and the first indication information is used to instruct the reader to perform a first operation;

[0407] An execution unit 702 is configured to execute a first operation based on the first indication information;

[0408] The receiving unit 701 is also 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, and the at least one first passive terminal is within the signal coverage range of the reader.

[0409] In one implementation, the communication device 700 may perform the following functions:

[0410] The receiving unit 701 is configured to receive a second message from a server, wherein the second message includes four-tuple information;

[0411] The sending unit 703 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.

[0412] In one implementation, the communication device 700 may perform the following functions:

[0413] The receiving unit 701 is used 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;

[0414] The sending unit 703 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.

[0415] In one implementation, the communication device 700 may perform the following functions:

[0416] The receiving unit 701 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, 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.

[0417] The receiving unit 701 is further used to receive the address and port number of the UPF network element sent by the UPF network element;

[0418] The execution unit 702 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 item of the second indication information. The SMF network element sends a fifth message to the UPF network element, and the fifth message includes the mapping relationship.

[0419] The above are only examples. The receiving unit, the executing unit and the sending unit in the communication device 700 may also perform other functions. For a more detailed description, please refer to the relevant description in the method embodiment shown above, which will not be repeated here.

[0420] In the embodiments provided by the present application, the method provided by the embodiments of the present application is introduced from the perspective of the communication device as the execution subject. In order to implement the functions in the methods provided by 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.

[0421] For example, when hardware is used for implementation, the hardware implementation of the communication device can refer to Figure 8 and its related description.

[0422] See also Figure 8 , the communication device may include: one or more processors 802; a memory 803; one or more applications (not shown); and one or more computer programs 804, and the above-mentioned devices may be connected through one or more communication buses 801. The one or more computer programs 804 are stored in the above-mentioned memory 803 and are configured to be executed by the one or more processors 802. The one or more computer programs 804 include instructions, and the above-mentioned instructions can be used to execute the method in any of the above-mentioned embodiments. The one or more processors 802 can perform the functions of the receiving unit 701, the executing unit 702 and the sending unit 703.

[0423] An embodiment of the present application also 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.

[0424] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer executes the communication method in the above embodiment.

[0425] 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.

[0426] 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 assigned to 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.

[0427] In the several embodiments provided in the present 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 only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, 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.

[0428] The units described as separate components may or may not be physically separated, and the 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 different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0429] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0430] 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, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0431] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope 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

Cited By

  • Communication method and apparatus

    EP4694568A1

  • Communication method and communication apparatus

    WO2026166320A1