CN117676492A - Control method, flow statistics method, device and medium for near field communication - Google Patents

Control method, flow statistics method, device and medium for near field communication Download PDF

Info

Publication number
CN117676492A
CN117676492A CN202211009341.6A CN202211009341A CN117676492A CN 117676492 A CN117676492 A CN 117676492A CN 202211009341 A CN202211009341 A CN 202211009341A CN 117676492 A CN117676492 A CN 117676492A
Authority
CN
China
Prior art keywords
terminal
downstream
gpp
session
relay terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211009341.6A
Other languages
Chinese (zh)
Inventor
刘洁
毕奇
林奕琳
陈思柏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202211009341.6A priority Critical patent/CN117676492A/en
Priority to PCT/CN2022/140779 priority patent/WO2024040818A1/en
Publication of CN117676492A publication Critical patent/CN117676492A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/04Terminal devices adapted for relaying to or from another terminal or user

Abstract

The embodiment of the application discloses a control method, a flow statistics method, a device and a medium for near field communication. The control method of near field communication comprises the following steps: if the successful establishment of the connection with the upstream relay terminal is detected, establishing a first non-3 GPP session of the terminal through the access connection established by the N3IWF corresponding to the terminal, wherein the first non-3 GPP session carries the service flow initiated and encapsulated by the terminal; and carrying out bypass transparent transmission processing on the service flow of the downstream terminal, and enabling the downstream terminal to establish a second non-3 GPP session through a second non-3 GPP access connection established by the N3IWF corresponding to the downstream terminal, wherein the second non-3 GPP session carries the service flow initiated and encapsulated by the downstream terminal. The terminals at each level respectively establish non-3 GPP session only bearing self service flow, and the service flow of the downstream terminal is only subjected to bypass transparent transmission treatment, so that the service flow safety isolation of different terminals can be realized aiming at near-field communication of multi-level relay, and the tracing charging of the service flow is convenient for each terminal.

Description

Control method, flow statistics method, device and medium for near field communication
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a near field communication control method, a traffic statistics device, and a computer readable storage medium.
Background
Near field communication is a new communication mode, proposed by the third generation partnership project (The Third Generation Partnership Project,3 GPP) organization, and defined as a new technology that allows a mobile terminal to directly perform Device-to-Device (D2D) communication through a near field connection technology such as PC5, WIFI, etc. or to connect to a mobile network depending on other terminals without coverage of the mobile network. Based on near field communication, a terminal user can be connected to other terminals (also called relay terminals) through a wireless technology, and the mobile communication network service through the relay terminals is connected to the Internet, so that the frequency spectrum efficiency of the communication system is improved.
However, under the condition of multi-level relay networking, traffic can be overlapped layer by layer, and in the condition, how to ensure the security of user-level traffic and realize the tracing of traffic, no relevant standard and research exists at present.
Disclosure of Invention
In order to solve the above technical problems, embodiments of the present application provide a method and a device for controlling near-field communication, and a method and a device for traffic statistics, and a computer readable storage medium, so as to trace and count traffic in near-field communication.
According to an aspect of the embodiments of the present application, there is provided a control method for near-field communication, applied to a terminal, where the terminal is indirectly connected to a base station through an upstream relay terminal, the upstream relay terminal at least includes a primary relay terminal, and the primary relay terminal is connected to the base station through a new air interface NR, the method includes: if the successful establishment of the connection with the upstream relay terminal is detected, a first non-third generation partnership project (3 GPP) session of the terminal is established, and the first non-3 GPP session is established through a first non-3 GPP access connection established by a non-third generation partnership project interworking function (N3 IWF) corresponding to the terminal; the method comprises the steps that a first non-3 GPP session bearing terminal initiates and encapsulates service flow; establishing connection with a downstream terminal, performing bypass transparent transmission processing on service flow of the downstream terminal to separate session flow of the terminal, and forwarding the service flow of the downstream terminal through connection with an upstream relay terminal so that the downstream terminal establishes a second non-3 GPP session through a second non-3 GPP access connection established by an N3IWF corresponding to the downstream terminal; wherein the second non-3 GPP session carries traffic originated and encapsulated by the downstream terminal.
In some embodiments, the terminal is a remote terminal; before establishing the first non-3 GPP session of the terminal if successful connection establishment with the upstream relay terminal is detected, the method further comprises: acquiring an accessible candidate upstream relay terminal set; according to the information of each candidate upstream relay terminal in the candidate upstream relay terminal set, confirming the upstream relay terminal to be connected; and initiating a connection request to the upstream relay terminal so that the upstream relay terminal establishes connection with the terminal according to the connection request.
In some embodiments, initiating a connection request to an upstream relay terminal to enable the upstream relay terminal to establish a connection with the terminal according to the connection request includes: generating a connection request according to terminal information corresponding to a terminal; transmitting a connection request to an upstream relay terminal, so that the upstream relay terminal verifies terminal information corresponding to the terminal in the connection request, and distributing an Internet protocol address corresponding to the terminal after verification is passed; and establishing connection with the upstream relay terminal according to the Internet protocol address.
In some embodiments, the terminal is a remote terminal; if the successful connection establishment with the upstream relay terminal is detected, a first non-3 GPP session of the terminal is established, wherein the first non-3 GPP session is established through a first non-3 GPP access connection established by a non-third generation partnership project interworking function N3IWF corresponding to the terminal, and the method comprises the following steps: generating a first internet key exchange protocol (IKE) packet according to terminal information corresponding to a terminal, and sending the first IKE packet to an upstream relay terminal, so that the upstream relay terminal forwards the first IKE packet to an N3IWF corresponding to the terminal, and after the N3IWF corresponding to the terminal verifies the first IKE packet, a first data transmission tunnel based on an internet protocol security network protocol (IPSec) is established between the N3IWF corresponding to the terminal and the terminal; establishing a first non-3 GPP access connection through an upstream relay terminal through an N3IWF corresponding to the terminal according to a first data transmission tunnel; a first non-3 GPP session of the terminal is established according to the first non-3 GPP access connection.
In some embodiments, establishing a connection with a downstream terminal, performing bypass transparent transmission processing on traffic of the downstream terminal, and forwarding the traffic of the downstream terminal through the connection with an upstream relay terminal, so that the downstream terminal establishes a second non-3 GPP session through a second non-3 GPP access connection established with a corresponding N3IWF, including: receiving a second IKE packet sent by a downstream terminal, wherein the second IKE packet is generated according to terminal information corresponding to the downstream terminal; and forwarding the second IKE packet bypass transparent transmission to an upstream relay terminal, so that the upstream relay terminal forwards the second IKE packet to the N3IWF, after the N3IWF passes the verification of the second IKE packet, a second data transmission tunnel based on IPSec is established between the N3IWF and a downstream terminal, so that the downstream terminal establishes a second non-3 GPP access connection through the terminal and the upstream relay terminal through the N3IWF according to the second data transmission tunnel, and establishes a second non-3 GPP session according to the second non-3 GPP access connection, wherein the terminal becomes the relay terminal.
In some embodiments, the number of terminals is one or more, the plurality of terminals are connected in sequence, and at least one of the plurality of terminals is connected with the primary relay terminal.
In some embodiments, the downstream terminals are one or more, and the terminals respectively perform bypass transparent transmission processing on the service traffic of the plurality of downstream terminals.
According to one aspect of the embodiment of the present application, there is provided a traffic statistics method, in which a terminal is indirectly connected to a base station through an upstream relay terminal, where the upstream relay terminal includes at least one primary relay terminal, the primary relay terminal is connected to the base station through a new air interface NR, the terminal establishes a first non-3 GPP session through a first non-3 GPP access connection established with an N3IWF corresponding to the terminal, the terminal is connected to a downstream terminal, the downstream terminal establishes a second non-3 GPP session through a second non-3 GPP access connection established with an N3IWF corresponding to the downstream terminal, the first non-3 GPP session carries traffic initiated and encapsulated by the terminal, and the second non-3 GPP session carries traffic initiated and encapsulated by the downstream terminal; the method comprises the following steps: counting the flow of the session anchor point record corresponding to the first non-3 GPP session, and confirming the service flow consumption corresponding to the terminal; and counting the flow recorded by the session anchor point corresponding to the second non-3 GPP session, and confirming the service flow consumption corresponding to the downstream terminal.
In some embodiments, the upstream relay terminal is a primary relay terminal, and the primary relay terminal establishes an NR session with the base station; the method further comprises the steps of: acquiring the total flow of a session anchor record corresponding to an NR session; removing the traffic with the current address of all N3 IWFs according to the target address corresponding to the total traffic; and confirming the service flow quantity corresponding to the primary relay terminal according to the eliminating result.
According to an aspect of the embodiments of the present application, there is provided a control device for near-field communication, which is applied to a terminal, where the terminal is indirectly connected to a base station through an upstream relay terminal, the upstream relay terminal includes at least one primary relay terminal, and the primary relay terminal is connected to the base station through a new air interface NR, and the device includes: a connection establishment means configured to establish a first non-third generation partnership project (3 GPP) session of the terminal if successful establishment of a connection with the upstream relay terminal is detected, the first non-3 GPP session being established through a first non-3 GPP access connection established by a non-third generation partnership project interworking function (N3 IWF) corresponding to the terminal; the method comprises the steps that a first non-3 GPP session bearing terminal initiates and encapsulates service flow; the bypass transparent transmission device is configured to establish connection with the downstream terminal, perform bypass transparent transmission processing on the service flow of the downstream terminal, and forward the service flow of the downstream terminal through connection with the upstream relay terminal so that the downstream terminal establishes a second non-3 GPP session through a second non-3 GPP access connection established corresponding to the N3IWF of the downstream terminal; wherein the second non-3 GPP session carries traffic originated and encapsulated by the downstream terminal.
According to one aspect of the embodiment of the present application, there is provided a traffic statistics device, a terminal is indirectly connected with a base station through a primary relay terminal, the primary relay terminal is connected with the base station through a new air interface NR, the terminal establishes a first non-3 GPP session through a first non-3 GPP access connection established by an N3IWF corresponding to the terminal, the terminal is connected with a downstream terminal, the downstream terminal establishes a second non-3 GPP session through a second non-3 GPP access connection established by an N3IWF corresponding to the downstream terminal, the first non-3 GPP session carries traffic initiated and encapsulated by the terminal, and the second non-3 GPP session carries traffic initiated and encapsulated by the downstream terminal; the device comprises: the first confirmation device is configured to count the flow recorded by the session anchor point corresponding to the first non-3 GPP session and confirm the traffic flow consumption corresponding to the terminal; and the second confirmation device is configured to count the flow recorded by the session anchor point corresponding to the second non-3 GPP session and confirm the traffic flow consumption corresponding to the downstream terminal.
According to an aspect of the embodiments of the present application, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a control method or a traffic statistics method of near-field communication as above.
According to one aspect of embodiments of the present application, there is provided an electronic device comprising one or more processors; and the storage device is used for storing one or more programs, and when the one or more programs are executed by the electronic equipment, the electronic equipment realizes the control method or the flow statistics method of the near-field communication.
In the technical scheme provided by the embodiment of the application, a first non-3 GPP session is established through a first non-3 GPP access connection established by an N3IWF corresponding to a terminal, and is connected with a downstream terminal, and the traffic of the downstream terminal is subjected to bypass transmission processing, so that the downstream terminal establishes a second non-3 GPP session through a second non-3 GPP access connection established by the N3IWF corresponding to the downstream terminal, the first non-3 GPP session is used for bearing traffic initiated and encapsulated by the terminal, the second non-3 GPP session is used for bearing traffic initiated and encapsulated by the downstream terminal, session user planes of all terminals except for a first-stage relay terminal are independent, no nesting relation exists, each terminal respectively establishes a non-3 GPP session only bearing own traffic, and the traffic of the downstream terminal is subjected to bypass transmission processing, and further the near-domain communication of multiple stages of relay can realize the traffic safety isolation of different terminals, and the tracing charging of the traffic of each terminal is convenient.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. It is apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art. In the drawings:
FIG. 1 is a schematic diagram of an exemplary application environment in which the technical solutions of embodiments of the present application may be applied;
FIG. 2 is a flow chart illustrating a control method of near field communication according to an exemplary embodiment of the present application;
fig. 3 is a schematic diagram illustrating a downstream terminal, a connection between the terminal and an upstream relay terminal according to an exemplary embodiment of the present application;
FIG. 4 is a schematic diagram illustrating session establishment between terminals according to an exemplary embodiment of the present application;
fig. 5 is a schematic diagram of a data transmission tunnel of a multi-level relay shown in an exemplary embodiment of the present application;
FIG. 6 is a schematic diagram illustrating connection of a plurality of terminals according to an exemplary embodiment of the present application;
FIG. 7 is a flow chart illustrating a flow statistics method according to an exemplary embodiment of the present application;
fig. 8 is a flowchart illustrating a control method and a traffic statistics method of near field communication according to an exemplary embodiment of the present application;
fig. 9 is a block diagram of a control apparatus of near field communication shown in an exemplary embodiment of the present application;
FIG. 10 is a block diagram of a flow statistics device shown in an exemplary embodiment of the present application;
fig. 11 is a schematic diagram of a computer system suitable for use in implementing embodiments of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations identical to the present application. Rather, they are merely examples of apparatus and methods that are identical to some aspects of the present application, as detailed in the appended claims.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in the form of an application program or in one or more hardware modules or integrated circuits or in different network and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
In this application, the term "plurality" means two or more. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., a and/or B may represent: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
Alternatively, in the present embodiment, the control method of near field communication may be applied to an implementation environment as shown in fig. 1. Fig. 1 is a schematic diagram of an implementation environment of a control method for near-field communication according to an embodiment of the present application, and as shown in fig. 1, the implementation environment includes a downstream terminal, a terminal, an upstream relay terminal and a base station, where the terminal 1 performs near-field communication with the upstream relay terminal, and the upstream relay terminal is connected with the base station through a wireless air interface. Further, the downstream terminal may request near field communication with the terminal, where the terminal acts as a relay terminal for the downstream terminal.
The downstream terminal, the terminal, and the upstream relay terminal have the user identity of the mobile network, and may be electronic devices such as a smart phone, a tablet, a notebook, a computer, and a vehicle-mounted terminal, but not limited thereto. The downstream terminal, terminal and upstream relay terminal may refer broadly to one of a plurality of terminals, and those skilled in the art will appreciate that the number of downstream terminals, terminals and upstream relay terminals may be greater. For example, the number of the downstream terminal, the terminal and the upstream relay device may be only one, or the number of the downstream terminal, the terminal and the upstream relay device may be tens or hundreds, or more, where the implementation environment of the control method for near-field communication further includes other terminals. The number of terminals and the device type are not limited in the embodiment of the present application.
Referring to fig. 2, fig. 2 is a flowchart illustrating a control method of near field communication according to an embodiment of the present application, where the control method of near field communication may be applied to the implementation environment shown in fig. 1 and specifically executed by a terminal in the implementation environment. It should be understood that the method may be adapted to other exemplary implementation environments and be specifically executed by devices in other implementation environments, and the implementation environments to which the method is adapted are not limited by the present embodiment.
The following describes in detail a control method of near-field communication provided in the embodiment of the present application with a terminal as a specific execution body.
As shown in fig. 2, in an exemplary embodiment, the control method of near field communication at least includes steps S210 to S220, which are described in detail as follows:
step S210, if the successful establishment of the connection with the upstream relay terminal is detected, a first non-third generation partnership project (3 GPP) session of the terminal is established, and the first non-3GPP session is established through a first non-3GPP access connection established by a non-third generation partnership project interworking function (N3 IWF) corresponding to the terminal; wherein the first non-3GPP session carries traffic originated and encapsulated by the terminal.
It should be noted that the Non-third generation partnership project interworking function (Non-3GPP Inter Working Function,N3IWF) is responsible for accessing an untrusted Non-3GPP access network to a mobile communication core network, such as a fifth generation mobile communication technology (5th Generation Mobile Communication Technology,5G) core network.
The terminal establishes connection with the upstream relay terminal, and establishes a first non-3GPP access connection with the N3IWF through the connection, and then the terminal establishes a first non-3GPP session through the upstream relay terminal according to the first non-3GPP access connection, wherein the first non-3GPP session only carries service flow initiated and encapsulated by the terminal, for example, after the terminal generates a service message, the address information of the terminal, tunnel address information corresponding to the N3IWF and the like can be encapsulated into the service message according to a preset definition.
The upstream relay terminal comprises at least one primary relay terminal, and the primary relay terminal is connected with the base station through a New Radio (NR).
For example, the upstream relay terminal includes a primary relay terminal a and a non-primary terminal B1, the primary relay terminal a and the base station are communicatively connected, and the terminal B2 may establish a connection with the non-primary terminal B1 and establish a first non-3 GPP session via the primary relay terminal a and the non-primary terminal B1. At this time, if the terminal B2 does not provide the network connection service for other downstream terminals, the terminal B2 is a remote terminal, and if the terminal B2 provides the network connection service for other downstream terminals, the terminal B2 is a relay terminal. The primary relay terminal refers to a terminal directly connected with the base station, and the non-primary terminal refers to a terminal indirectly connected with the base station. It will be appreciated that the terminal B2 may also select other relay terminals for network connection, for example to establish a connection with the primary relay terminal a and to establish a first non-3 GPP session via the primary relay terminal a.
Step S220, establishing connection with a downstream terminal, performing bypass transparent transmission processing on the service flow of the downstream terminal, and forwarding the service flow of the downstream terminal through connection with an upstream relay terminal, so that the downstream terminal establishes a second non-3 GPP session through a second non-3 GPP access connection established by an N3IWF corresponding to the downstream terminal; wherein the second non-3 GPP session carries traffic originated and encapsulated by the downstream terminal.
It should be noted that, performing bypass transparent transmission processing on the traffic of the downstream terminal means that the terminal only forwards the traffic of the downstream terminal, that is, does not perform any processing on the data packet, including modification or encapsulation. The N3IWF establishing the second non-3 GPP access connection with the downstream terminal and the N3IWF establishing the first non-3 GPP access connection with the terminal may be the same N3IWF or may be different N3 IWFs, which is not limited in this application.
The downstream terminal establishes connection with the terminal, and establishes a second non-3 GPP access connection with an N3IWF corresponding to the downstream terminal through the connection, and further the downstream terminal establishes a second non-3 GPP session through the terminal and the upstream relay terminal according to the second non-3 GPP access connection, wherein the second non-3 GPP session only carries the service flow of the downstream terminal.
The upstream relay terminal comprises at least one primary relay terminal, and the primary relay terminal is connected with the base station through a New Radio (NR).
It can be appreciated that in near field communication with multi-level relay, the order in which the terminals of the levels are networked is top-down. For example, terminal a is first networked through a base station, where terminal a may serve as a primary relay terminal to provide internet service for other terminals; then the terminal B selects the terminal A as the primary relay terminal to connect, and after the connection is successful, the terminal B can also serve as an upstream relay terminal of other terminals to provide the network service for the other terminals; terminal C then selects terminal B as the upstream relay terminal to connect, and so on. The upstream relay terminal of the terminal C comprises a terminal A and a terminal B, the upstream relay terminal of the terminal B comprises a terminal A, the downstream terminal of the terminal B comprises a terminal C, the downstream relay terminal of the terminal A comprises a terminal B and a terminal C, the terminal A is a primary relay terminal, and the terminal B and the terminal C are non-primary terminals.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating a downstream terminal, a connection between the terminal and an upstream relay terminal, which are exemplarily shown in the present application. As shown in fig. 3, the upstream relay terminal a is a primary relay terminal, which is communicatively connected to the base station NG-RAN through a cellular network communication interface (Uu). The terminal B is in near-field communication with the primary relay terminal A, for example, can be in communication connection with the primary relay terminal A through a direct communication interface (PC 5 or Wi-fi), wherein the PC5 interface conforms to a sidelink communication protocol. The downstream terminal C communicates with the terminal B in the near domain, and the downstream terminal C is connected to the terminal B by the PC5, and the terminal B functions as an upstream relay terminal of the downstream terminal C.
And the primary relay terminal A and the NG-RAN establish an NR session, and a primary relay terminal user plane function (User plane function, UPF) network element corresponding to the primary relay terminal A in the NR session is connected with the NG-RAN through an N3 interface to construct a UPF network element of which the user plane path corresponding to the primary relay terminal A is from the primary relay terminal A to the NG-RAN to the primary relay terminal A. The N3 interface is an interface between an access device (such as a 5G base station, an N3 IWF) and a UPF network element, and is mainly used for transferring uplink and downlink user plane data between the access device and the UPF network element.
The terminal B and the N3IWF are established with a first non-3 GPP access connection, a first non-3 GPP session corresponding to the terminal B is established through the first non-3 GPP access connection, a terminal B user plane function (User plane function, UPF) network element corresponding to the terminal B in the first non-3 GPP session is connected with the N3IWF through an N3 interface, the N3IWF is connected with a UPF network element of the primary relay terminal A through an N6 interface, a user plane path corresponding to the terminal B is established as a UPF network element from the terminal B to the primary relay terminal A to the NG-RAN to a UPF network element from the primary relay terminal A to the N3IWF to the terminal B, and the user plane path corresponding to the terminal B can be understood as a route and a forwarding path of service data between the terminal B and a session anchor UPF network element when the terminal B performs service access. The N6 interface is an interface between a UPF Network element and a Data Network (DN) for transferring uplink and downlink user Data streams between the UPF and the DN.
The downstream terminal C and the N3IWF establish a second non-3 GPP access connection, a second non-3 GPP session corresponding to the downstream terminal C is established through the second non-3 GPP access connection, a user plane function (User plane function, UPF) network element of the downstream terminal C corresponding to the downstream terminal C in the second non-3 GPP session is connected with the N3IWF through an N3 interface, the N3IWF is connected with a UPF network element of the primary relay terminal A through an N6 interface, a user plane path corresponding to the downstream terminal C is constructed to be a UPF network element from the downstream terminal C to the terminal B to the primary relay terminal A to the NG-RAN to the primary relay terminal A to a UPF network element from the N3IWF to the downstream terminal C, and the user plane path corresponding to the downstream terminal C can be understood as a route and a forwarding path of service data between the downstream terminal C and a session anchor UPF network element when the downstream terminal C performs service access.
In addition, the terminal shown in fig. 3 accesses an upstream relay terminal, and a downstream terminal accesses a terminal, but it will be understood by those skilled in the art that the terminal and the downstream terminal may access different network devices.
The control method for near field communication provided by the application establishes a first non-3 GPP session through a first non-3 GPP access connection established with N3IWF, establishes connection with a downstream terminal, and carries out bypass transmission processing on service traffic of the downstream terminal so that the downstream terminal establishes a second non-3 GPP session through a second non-3 GPP access connection established with N3IWF, wherein the first non-3 GPP session is used for bearing the service traffic initiated and encapsulated by the terminal, the second non-3 GPP session is used for bearing the service traffic initiated and encapsulated by the downstream terminal, session user planes of all levels of terminals except for the first-level relay terminal are independent, no nested relation exists, each terminal except for the first-level relay terminal respectively establishes a non-3 GPP session only bearing the service traffic of the downstream terminal, and the service traffic of the downstream terminal is only carried outBypass permeabilizationAnd further, the safety user plane and the service flow safety isolation of different terminals can be realized aiming at near-field communication of the multi-stage relay, so that the subsequent processing such as tracing charging and the like can be carried out on the service flows of different terminals.
In some embodiments, the terminal is a remote terminal; before establishing the first non-3 GPP session of the terminal if the successful establishment of the connection with the upstream relay terminal is detected, the method further comprises: acquiring an accessible candidate upstream relay terminal set; according to the information of each candidate upstream relay terminal in the candidate upstream relay terminal set, confirming the upstream relay terminal to be connected; and initiating a connection request to the upstream relay terminal so that the upstream relay terminal establishes connection with the terminal according to the connection request.
In order to establish a direct link between a terminal and an upstream relay terminal, the terminal is required to be able to detect and discover the upstream relay terminal that can be connected.
For example, a proximity service direct discovery (ProSe Direct Discovery) procedure using the Evolved UMTS terrestrial radio access (E-UTRA) or wireless local area network (Wireless Local Area Network, WLAN) direct radio signal detection and identification procedure of another UE nearby is defined in 3GPP standard TS 23.303. The proximity service direct discovery procedure will be simply referred to as a direct discovery procedure hereinafter. The direct discovery procedure includes two modes, namely mode a and mode B, as specified by the 3GPP standard TS23.303 5.3.1.2.
Wherein in mode a, the upstream relay terminal sends a broadcast message for direct discovery (UE-to-Network Relay Discovery Announcement message) that the terminal listens to.
In mode B, the terminal transmits a request message (UE-to-Network Relay Discovery Solicitation message) for direct discovery, and an upstream relay terminal that matches the relay service code (Relay Service Code) included in the request message transmits a response message (UE-to-Network Relay Discovery Response message) to the terminal.
When the terminal detects and discovers one or more candidate upstream relay terminals (candidate relay UE) through the direct discovery process, one candidate upstream relay terminal meeting the condition is selected to establish a direct link. For example, the terminal B1 discovers the upstream relay terminal B1 and the upstream relay terminal B2 by the direct discovery detection flow, and selects the upstream relay terminal B1 satisfying the condition from among them to establish the direct link. Conditions herein may include, but are not limited to: meeting ProSe layer criteria, meeting access layer criteria, etc.
If there are a plurality of candidate upstream relay terminals, i.e., if a plurality of candidate upstream relay terminals satisfying the above condition are found, the candidate upstream relay terminal having the highest rank (the highest ranking) of the access layer criterion is selected as the upstream relay terminal to be connected.
The communication between the terminal and the upstream relay terminal may be One-to-One proximity service direct communication (One-to-One ProSe Direct Communication), or Wi-Fi (Wireless Fidelity) communication as well as other types of wireless communication directly between two or more proximity user devices.
For example, referring to fig. 4, fig. 4 is a schematic diagram of session establishment between terminals. As shown in fig. 4, the primary relay terminal establishes an NR session, and the primary relay terminal transmits a broadcast message for direct discovery. And then the terminal discovers the primary relay terminal through a direct discovery detection flow, establishes connection with the primary relay terminal, and establishes a first non-3 GPP session through the connection so as to lead the service traffic related to the terminal to the first non-3 GPP session. Meanwhile, the terminal sends a broadcast message for direct discovery, so that the downstream terminal discovers the terminal through a direct discovery detection flow, the downstream terminal establishes a connection with the terminal, and a second non-3 GPP session is established through the connection, so that traffic with the downstream terminal is led into the second non-3 GPP session. The NR session of the primary relay terminal gathers the self service flow and the service flow of the downstream terminal corresponding to all the primary relay terminals, and the terminal bypasses the service flow of the downstream terminal outside the first non-3 GPP session.
As described above, after the terminal successfully establishes a direct link through direct discovery and selection with an upstream relay terminal to be connected, the terminal can communicate with the network through the upstream relay terminal.
Also, it will be understood by those skilled in the art that the above-described procedure of establishing a connection between a terminal and an upstream relay terminal is the same as the procedure of establishing a connection between a downstream terminal and a terminal.
In some embodiments, initiating a connection request to an upstream relay terminal to enable the upstream relay terminal to establish a connection with the terminal according to the connection request includes: generating a connection request according to terminal information corresponding to a terminal; transmitting a connection request to an upstream relay terminal, so that the upstream relay terminal verifies terminal information corresponding to the terminal in the connection request, and distributing an Internet protocol address corresponding to the terminal after verification is passed; and establishing connection with the upstream relay terminal according to the Internet protocol address.
Illustratively, after receiving a connection request initiated by a terminal, an upstream relay terminal performs a dynamic host configuration protocol (Dynamic Host Configuration Protocol, DHCP) server function, assigning an internet protocol (Internet Protocol, IP) address to the terminal.
Among them, DHCP is a dynamic address allocation scheme and address configuration protocol based on TCP/IP (Transmission Control Protocol/Internet Protocol ) protocol.
In some embodiments, the terminal is a remote terminal; if the successful connection establishment with the upstream relay terminal is detected, a first non-3 GPP session of the terminal is established, wherein the first non-3 GPP session is established through a first non-3 GPP access connection established by a non-third generation partnership project interworking function N3IWF corresponding to the terminal, and the method comprises the following steps: generating a first internet key exchange protocol (IKE) packet according to terminal information corresponding to a terminal, and sending the first IKE packet to an upstream relay terminal, so that the upstream relay terminal forwards the first IKE packet to an N3IWF corresponding to the terminal, and after the N3IWF corresponding to the terminal verifies the first IKE packet, a first data transmission tunnel based on an internet protocol security network protocol (IPSec) is established between the N3IWF corresponding to the terminal and the terminal; establishing a first non-3 GPP access connection through an upstream relay terminal through an N3IWF corresponding to the terminal according to a first data transmission tunnel; a first non-3 GPP session of the terminal is established according to the first non-3 GPP access connection.
The terminal accesses to a Non-3 GPP network through an upstream relay terminal, and after N3IWF is selected, an IKE-SA flow is executed, wherein the IKE-SA refers to an IKE security alliance, and the IKE-SA flow has the function of establishing a secure transmission channel for a subsequent Non-access stratum (NAS) authentication flow under an unsafe network, so that the security of message transmission in the subsequent NAS authentication flow is ensured. For example, the terminal generates a first internet key exchange protocol (Internet Key Exchange, IKE) packet according to its own terminal information, such as encrypting information such as a terminal identifier, an IP address, etc., to obtain an identity certificate of the terminal, and generates the first IKE packet according to the identity certificate of the terminal. And then, the first IKE packet is sent to an upstream relay terminal, the upstream relay terminal forwards the first IKE packet to an N3IWF, and the N3IWF carries out first identity authentication on the terminal according to the first IKE packet. After the authentication result of the first identity authentication is passing, an internet security protocol IPsec (Internet Protocol Security) SA process is executed, IPsec-SA refers to the IPsec security alliance, a secure first data transmission tunnel (first IPsec tunnel) is established for the terminal through the IPsec-SA process, and all subsequent NAS signaling is transmitted through the secure first data transmission tunnel.
Further, when the first data transmission tunnel is established, the terminal establishes a first non-3 GPP session via the upstream relay terminal.
In some embodiments, establishing a connection with a downstream terminal, performing bypass transparent transmission processing on traffic of the downstream terminal, and forwarding the traffic of the downstream terminal through the connection with an upstream relay terminal, so that the downstream terminal establishes a second non-3 GPP session through a second non-3 GPP access connection established by an N3IWF corresponding to the downstream terminal, including: receiving a second IKE packet sent by a downstream terminal, wherein the second IKE packet is generated according to terminal information corresponding to the downstream terminal; and forwarding the second IKE packet bypass transmission to an upstream relay terminal, so that the upstream relay terminal forwards the second IKE packet to an N3IWF corresponding to the downstream terminal, after the N3IWF corresponding to the downstream terminal verifies the second IKE packet, a second data transmission tunnel based on IPSec is established between the N3IWF corresponding to the downstream terminal and the downstream terminal, so that the downstream terminal establishes a second non-3 GPP access connection through the terminal and the upstream relay terminal through the N3IWF corresponding to the downstream terminal according to the second data transmission tunnel, and establishes a second non-3 GPP session according to the second non-3 GPP access connection, wherein the terminal becomes the relay terminal.
The terminal establishes connection with the downstream terminal, and carries out bypass transmission processing on the service flow of the downstream terminal, so that the downstream terminal is accessed to a non-3 GPP network, and after N3IWF is selected, an IKE-SA flow is executed. For example, the downstream terminal generates a second internet key exchange protocol (Internet Key Exchange, IKE) packet according to its own downstream terminal information, such as encrypting information such as a downstream terminal identifier, an IP address, etc., to obtain an identity certificate of the downstream terminal, and generates a second IKE packet according to the identity certificate of the downstream terminal. And then, the downstream terminal sends the second IKE packet to the terminal, the terminal forwards the second IKE packet by-pass to the upstream relay terminal, the upstream relay terminal forwards the second IKE packet to the N3IWF, and the N3IWF carries out second identity authentication on the terminal according to the second IKE packet. After the authentication result of the second identity authentication is that the second identity authentication is passed, an internet security protocol (IPsec-SA) process is executed, a secure second data transmission tunnel (second IPsec tunnel) is established for the terminal through the IPsec-SA process, and all subsequent NAS signaling is transmitted through the secure second data transmission tunnel.
Further, when the second data transmission tunnel is established, the downstream terminal establishes a second non-3 GPP session via the terminal and the upstream relay terminal.
And after the IPsec tunnel is established, establishing GTP (GPRS Tunneling Protocol ) tunnels corresponding to all terminals respectively with session anchor UPF network elements of all non-primary terminals, and finally forming an end-to-end secure user plane.
For example, referring to fig. 5, fig. 5 is a schematic diagram of a data transmission tunnel with multi-level relay. As shown in fig. 5, the NR session of the primary relay terminal and the primary relay terminal UPF network element includes an NR security connection and a GTP tunnel corresponding to the primary relay terminal, the first non-3 GPP session of the terminal and the terminal UPF network element includes an IPsec tunnel and a GTP tunnel corresponding to the terminal, and the second non-3 GPP session of the downstream terminal and the downstream terminal UPF network element includes an IPsec tunnel and a GTP tunnel corresponding to the downstream terminal, so that the tunnels of non-3 GPP accesses of the respective terminals are not nested, the processing of the network tunnels is simplified, the network performance is ensured, and the security isolation of the traffic flows of different terminals is realized, so that the subsequent processing such as tracing charging is performed on the traffic flows of different terminals.
In some embodiments, the number of terminals is one or more, the plurality of terminals are connected in sequence, and at least one of the plurality of terminals is connected with the primary relay terminal.
Illustratively, as shown in fig. 6, the terminals include a terminal B1, a terminal B2, and a terminal B3, the primary relay terminal a is connected to the base station, the terminal B1, the terminal B2, and the terminal B3 are sequentially connected, and the terminal B1 is connected to the primary relay terminal a, and the terminal B3 is connected to the downstream terminal C. At this time, the terminal B1, the terminal B2, the terminal B3, and the downstream terminal C are all non-primary terminals, i.e., terminals indirectly connected to the base station, and the downstream terminal C is a remote terminal, i.e., terminals that do not provide network connection services for other terminals. It should be noted that fig. 5 is only a schematic illustration of the number of terminals, and there may be more relay terminals between the actual remote terminal and the primary relay terminal, which is not limited in this application.
It can be understood that the upstream relay terminal and the downstream terminal mentioned in the present application are confirmed according to the position of the execution subject, for example, when the terminal B2 is the execution subject of the control method of near-field communication, the upstream relay terminal includes the primary relay terminal a and the terminal B1, and the downstream terminal includes the terminal B3 and the downstream terminal C; when the terminal B3 is the execution subject of the control method of near-field communication, then the upstream relay terminal includes a primary relay terminal a, a terminal B1, and a terminal B2, and the downstream terminal includes a downstream terminal C.
Further, the terminal B1 establishes a first non-3 GPP session through a first non-3 GPP access connection established with the N3IWF, the terminal B2 establishes a second non-3 GPP session through a second non-3 GPP access connection established with the N3IWF, the terminal B3 establishes a third non-3 GPP session through a third non-3 GPP access connection established with the N3IWF, and the downstream terminal C establishes a fourth non-3 GPP session through a fourth non-3 GPP access connection established with the N3IWF, so as to realize independence of session user plane between the non-primary terminals. The number of non-3 GPP access connections and non-3 GPP sessions mentioned in the above schemes is merely an example, and the number thereof may be more or less, and the specific number is confirmed according to the number of non-primary terminals and remote terminals connected.
In some embodiments, the downstream terminals are one or more, and the terminals respectively perform bypass transparent transmission processing on the service traffic of the plurality of downstream terminals.
Illustratively, as shown in fig. 6, when the terminal B1 is the execution subject of the control method of near-field communication, the downstream terminals include the terminal B2, the terminal B3, and the downstream terminal C, and thus the terminal B1 performs bypass transmission processing on traffic flows of the terminal B2, the terminal B3, and the downstream terminal C, respectively; when the terminal B2 is used as an execution subject of the control method of near-field communication, the downstream terminal includes the terminal B3 and the downstream terminal C, so that the terminal B2 performs bypass transmission processing on service traffic of the terminal B3 and the downstream terminal C respectively; when the terminal B3 is the execution subject of the control method of near-field communication, the downstream terminal includes the downstream terminal C, and therefore the terminal B3 performs bypass transmission processing on the traffic of the downstream terminal C.
On the basis of any of the foregoing embodiments, a traffic statistics method is further provided, and referring to fig. 7, fig. 7 is a flowchart of a traffic statistics method shown in an embodiment of the present application, where the traffic statistics method may be specifically executed by a UPF network element. It should be understood that the method may be specifically performed by other devices, and the embodiment does not limit the execution subject to which the method is applied.
The flow statistics method provided in the embodiment of the present application is described in detail below with a UPF network element as a specific execution body.
As shown in fig. 7, in an exemplary embodiment, the flow statistics method at least includes steps S710 to S720, which are described in detail below:
step S710, counting the flow of the session anchor record corresponding to the first non-3 GPP session, and confirming the service flow consumption corresponding to the terminal;
step S720, the flow of the session anchor record corresponding to the second non-3 GPP session is counted, and the service flow amount corresponding to the downstream terminal is confirmed.
As shown in fig. 3, the UPF network element of each terminal is used as a session anchor point of a session corresponding to each terminal, so as to count the service traffic of each terminal, and obtain the traffic consumption of each terminal.
For example, in fig. 3, the traffic volume of the terminal B is the traffic volume recorded by the session anchor UPF network element corresponding to the first non-3 GPP session, and the traffic volume of the downstream terminal C is the traffic volume recorded by the session anchor UPF network element corresponding to the second non-3 GPP session.
In some embodiments, the upstream relay terminal is a primary relay terminal, and the primary relay terminal establishes an NR session with the base station; the method further comprises the steps of: acquiring the total flow of a session anchor record corresponding to an NR session; removing all flows with the target address of N3IWF according to the target address corresponding to the total flow; and confirming the service flow quantity corresponding to the upstream relay terminal according to the eliminating result.
Because the session user plane of the primary relay terminal includes all session user planes of non-primary terminals, the service flow of the primary relay terminal is equal to the session flow of the primary relay terminal minus the session flow of all subordinate terminals thereof, namely, the data packet flow with the target address of N3IWF address. If the UPF network element of the primary relay terminal cannot acquire the N3IWF information of the downstream terminal, traversing all recorded N3IWF addresses to reject the flow with the current address of N3IWF, and confirming the flow consumption corresponding to the upstream relay terminal according to the reject result.
By independently establishing session user planes of all levels of terminals, each terminal respectively establishes a non-3 GPP session only carrying self service traffic, and the service traffic of a downstream terminal is only subjected to bypass transparent transmission treatment, so that the service traffic safety isolation of different terminals can be realized aiming at near-field communication of multi-level relay, and the tracing charging can be directly carried out according to the service traffic recorded by each terminal session anchor UPF network element.
One specific application scenario of the embodiments of the present application is described in detail below:
referring to fig. 8, assume that the N3 IWFs corresponding to the non-primary terminals are the same. Step 1, a terminal B (at this time, the identity of a far-end terminal) initiates a direct discovery process, and a first-level relay terminal A is selected; step 2, the terminal B establishes connection with the terminal A, and the relay service rule of the primary relay terminal A takes effect, namely, the service flow of the terminal B is uniformly processed with the service flow of the primary relay terminal A, and is born in the session of the primary relay terminal A; step 3, the first-level relay terminal A executes the DHCP server function and distributes an IP address for the terminal B; step 4, signaling interaction of an IPsec tunnel is initiated between the terminal B and the N3IWF through an IKE process, NAS information is initiated to a 5G core network of the terminal B for registration, and after the IPsec tunnel is established, the terminal B establishes a first non-3 GPP session of the terminal B through a primary relay terminal A; step 5, similarly, the remote terminal C initiates a direct discovery process, and selects a relay terminal B; step 6, the remote terminal C establishes connection with the relay terminal B; step 7, the relay terminal B executes the DHCP server function and distributes an IP address for the far-end terminal C; step 8, signaling interaction of an IPsec tunnel is initiated between the remote terminal C and the N3IWF through an IKE process, NAS information is initiated to a 5G core network of the remote terminal C for registration, and after the IPsec tunnel is established, the remote terminal C establishes a second non-3 GPP session through the relay terminal B and the primary relay terminal A; step 9, the relay service rule of the relay terminal B takes effect, namely, bypass transparent transmission processing is carried out on the service flow of the remote terminal C, and only the service flow of the relay terminal B is carried in the first non-3 GPP session; step 10, each terminal uses the service respectively, and provides relay service and dredge flow according to the connection relation and the processing rule; and 11, carrying out flow identification and distinguishing processing on the session anchor point UPF of each terminal to generate a service ticket of each terminal, wherein the UPF of the primary relay terminal C eliminates the flow with the target address of N3IWF address from the session flow.
According to the near field communication control method, the terminal establishes a first non-3 GPP session through a first non-3 GPP access connection established with the N3IWF, establishes connection with a downstream terminal, and carries out bypass transmission processing on the service flow of the downstream terminal, so that the downstream terminal establishes a second non-3 GPP session through a second non-3 GPP access connection established with the N3IWF, the first non-3 GPP session is used for bearing the service flow initiated and encapsulated by the terminal, the second non-3 GPP session is used for bearing the service flow initiated and encapsulated by the downstream terminal, session user planes of all terminals except the first-stage relay terminal are independent and have no nested relation, each terminal respectively establishes a non-3 GPP session only bearing the service flow of the first-stage relay terminal, and carries out bypass transmission processing on the service flow of the downstream terminal, so that the near field communication of the multi-stage relay can realize the safety isolation of the service flow of different terminals, and the source tracing charging of the service flow of each terminal is convenient.
Fig. 9 is a block diagram of a control device for near-field communication according to an embodiment of the present application, where the control device is applied to a terminal, and the terminal is indirectly connected to a base station through an upstream relay terminal, and the upstream relay terminal includes at least one primary relay terminal, and the primary relay terminal is connected to the base station through a new air interface NR, as shown in fig. 9, where the device includes:
A connection establishment means 910 configured to establish a first non-third generation partnership project, 3GPP, session of the terminal if successful establishment of a connection with the upstream relay terminal is detected, the first non-3 GPP session being established through a first non-3 GPP access connection established by a non-third generation partnership project interworking function, N3IWF, corresponding to the terminal; the method comprises the steps that a first non-3 GPP session bearing terminal initiates and encapsulates service flow;
the bypass transparent transmission device 920 is configured to establish a connection with the downstream terminal, perform bypass transparent transmission processing on the traffic of the downstream terminal, and forward the traffic of the downstream terminal through the connection with the upstream relay terminal, so that the downstream terminal establishes a second non-3 GPP session through a second non-3 GPP access connection established by the N3IWF corresponding to the downstream terminal; wherein the second non-3 GPP session carries traffic originated and encapsulated by the downstream terminal.
In one embodiment of the present application, the terminal is a remote terminal; the connection establishment means 910 may comprise:
a candidate upstream relay terminal acquisition unit configured to acquire an accessible candidate upstream relay terminal set;
an upstream relay terminal confirmation unit configured to confirm an upstream relay terminal to be connected according to information of each candidate upstream relay terminal in the candidate upstream relay terminal set;
And the connection unit is configured to initiate a connection request to the upstream relay terminal so that the upstream relay terminal establishes connection with the terminal according to the connection request.
In one embodiment of the present application, the connection unit may include:
a connection request generation unit configured to generate a connection request according to terminal information corresponding to a terminal;
an internet protocol address obtaining unit configured to send a connection request to an upstream relay terminal, so that the upstream relay terminal verifies terminal information corresponding to the terminal in the connection request, and distributes an internet protocol address corresponding to the terminal after the verification is passed;
and a connection establishment unit configured to establish a connection with the upstream relay terminal according to the internet protocol address.
In one embodiment of the present application, the terminal is a remote terminal; the connection establishment means 910 may comprise:
the first data transmission tunnel establishment unit is configured to generate a first internet key exchange protocol (IKE) packet according to terminal information corresponding to the terminal, and send the first IKE packet to the upstream relay terminal, so that the upstream relay terminal forwards the first IKE packet to an N3IWF corresponding to the terminal, and after the N3IWF corresponding to the terminal verifies the first IKE packet, a first data transmission tunnel based on an internet protocol security network protocol (IPSec) is established between the N3IWF corresponding to the terminal and the terminal;
A first non-3 GPP access connection establishment unit configured to establish a first non-3 GPP access connection via an upstream relay terminal through an N3IWF corresponding to the terminal according to a first data transmission tunnel;
and the first non-3 GPP session establishment unit is configured to establish a first non-3 GPP session of the terminal according to the first non-3 GPP access connection.
In one embodiment of the present application, bypass pass-through device 920 may include:
a packet receiving unit configured to receive a data packet transmitted from a downstream terminal;
and the bypass transparent transmission unit is configured to bypass transparent transmission of the data packet sent by the downstream terminal to the upstream relay terminal so that the upstream relay terminal forwards the data packet to the N3IWF corresponding to the downstream terminal.
In one embodiment of the application, the data packet comprises a second IKE packet, the packet receiving unit further configured to:
receiving a second IKE packet sent by a downstream terminal, wherein the second IKE packet is generated according to terminal information corresponding to the downstream terminal;
the bypass pass-through unit is further configured to:
and forwarding the second IKE packet bypass transmission to an upstream relay terminal, so that the upstream relay terminal forwards the second IKE packet to an N3IWF corresponding to the downstream terminal, after the N3IWF corresponding to the downstream terminal verifies the second IKE packet, a second data transmission tunnel based on IPSec is established between the N3IWF corresponding to the downstream terminal and the downstream terminal, so that the downstream terminal establishes a second non-3 GPP access connection through the terminal and the upstream relay terminal through the N3IWF corresponding to the downstream terminal according to the second data transmission tunnel, and establishes a second non-3 GPP session according to the second non-3 GPP access connection, wherein the terminal becomes the relay terminal.
In one embodiment of the application, the number of the terminals is one or more, the plurality of terminals are sequentially connected, and at least one of the plurality of terminals is connected with the primary relay terminal.
In one embodiment of the present application, the number of the downstream terminals is one or more, and the terminals respectively perform bypass transmission processing on the traffic flows of the plurality of downstream terminals.
It should be noted that, the control device for near field communication provided in the foregoing embodiment and the control method for near field communication provided in the foregoing embodiment belong to the same concept, and the specific manner in which each module and unit perform the operation has been described in detail in the method embodiment, which is not described herein again. In practical application, the control device for near field communication provided in the above embodiment may allocate the functions to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above, which is not limited herein.
Fig. 10 is a block diagram of a traffic statistics device shown in an embodiment of the present application, where a terminal is indirectly connected to a base station through a primary relay terminal, the primary relay terminal is connected to the base station through a new air interface NR, the terminal establishes a first non-3 GPP session through a first non-3 GPP access connection established by an N3IWF corresponding to the terminal, the terminal is connected to a downstream terminal, the downstream terminal establishes a second non-3 GPP session through a second non-3 GPP access connection established by an N3IWF corresponding to the downstream terminal, the first non-3 GPP session carries traffic initiated and encapsulated by the terminal, and the second non-3 GPP session carries traffic initiated and encapsulated by the downstream terminal, the device includes:
A first confirmation device 1010, configured to count the traffic of the session anchor record corresponding to the first non-3 GPP session, and confirm the traffic usage corresponding to the terminal;
and the second confirmation device 1020 is configured to count the traffic recorded by the session anchor point corresponding to the second non-3 GPP session, and confirm the traffic usage corresponding to the downstream terminal.
In one embodiment of the present application, the upstream relay terminal is a primary relay terminal, and an NR session is established between the primary relay terminal and the base station; the flow statistics device further includes:
the total flow confirming unit is configured to acquire the total service flow of the session anchor point record corresponding to the NR session;
the rejecting unit is configured to reject the flow with the current address of N3IWF according to the target address corresponding to the total service flow;
and the upstream relay terminal flow confirming unit is configured to confirm the service flow consumption corresponding to the upstream relay terminal according to the eliminating result.
It should be noted that, the flow statistics device provided in the foregoing embodiment and the flow statistics method provided in the foregoing embodiment belong to the same concept, and the specific manner in which each module and unit perform the operation has been described in detail in the method embodiment, which is not described herein again. In practical application, the flow statistics device provided in the above embodiment may distribute the functions to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above, which is not limited herein.
Fig. 11 shows a schematic diagram of a computer system suitable for use in implementing the electronic device of the embodiments of the present application.
It should be noted that, the computer system 1100 of the electronic device shown in fig. 11 is only an example, and should not impose any limitation on the functions and the application scope of the embodiments of the present application.
As shown in fig. 11, the electronic device 1100 is embodied in the form of a general purpose computing device. Components of electronic device 1100 may include, but are not limited to: the at least one processing unit 1110, the at least one memory unit 1120, a bus 1130 connecting the different system components (including the memory unit 1120 and the processing unit 1110), and a display unit 1140.
Wherein the storage unit stores program code that is executable by the processing unit 1110 such that the processing unit 1110 performs steps according to various exemplary embodiments of the present disclosure described in the above-described "exemplary methods" section of the present specification.
The storage unit 1120 may include a readable medium in the form of a volatile storage unit, such as a Random Access Memory (RAM) 1121 and/or a cache memory 1122, and may further include a Read Only Memory (ROM) 1123.
Storage unit 1120 may also include a program/utility 1124 having a set (at least one) of program modules 1125, such program modules 1125 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
The bus 1130 may be a local bus representing one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a bus using any of a variety of bus architectures.
The electronic device 1100 may also communicate with one or more external devices 1170 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 1100, and/or any device (e.g., router, modem, etc.) that enables the electronic device 1100 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 1150. Also, electronic device 1100 can communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 1160. As shown, network adapter 1160 communicates with other modules of electronic device 1100 via bus 1130. It should be appreciated that although not shown, other hardware and/or application modules may be used in connection with the electronic device 1100, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
In particular, according to embodiments of the present application, the processes described above with reference to flowcharts may be implemented as computer applications. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising a computer program for performing the method shown in the flowchart. The computer programs, when executed by the processing unit 1110, perform the various functions defined in the system of the present application.
It should be noted that, the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium may be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-Only Memory (ROM), an erasable programmable read-Only Memory (Erasable Programmable Read Only Memory, EPROM), flash Memory, an optical fiber, a portable compact disc read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with a computer-readable computer program embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. A computer program embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The units referred to in the embodiments of the present application may be implemented by an application program or by hardware, and the described units may also be provided in a processor. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
Another aspect of the present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor implements a control method or a traffic statistics method of near field communication as before. The computer-readable storage medium may be included in the electronic device described in the above embodiment or may exist alone without being incorporated in the electronic device.
Another aspect of the present application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the control method of near-field communication or the traffic statistics method provided in the above-described respective embodiments.
The foregoing is merely a preferred exemplary embodiment of the present application and is not intended to limit the embodiments of the present application, and those skilled in the art may make various changes and modifications according to the main concept and spirit of the present application, so that the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. The control method of near field communication is characterized by being applied to a terminal, wherein the terminal is indirectly connected with a base station through an upstream relay terminal, the upstream relay terminal at least comprises a primary relay terminal, and the primary relay terminal is connected with the base station through a new air interface NR, and the method comprises the following steps:
if the successful establishment of the connection with the upstream relay terminal is detected, a first non-third generation partnership project (3 GPP) session of the terminal is established, wherein the first non-3 GPP session is established through a first non-3 GPP access connection established by a non-third generation partnership project interworking function (N3 IWF) corresponding to the terminal; wherein, the first non-3 GPP session carries the service flow initiated and encapsulated by the terminal;
establishing connection with a downstream terminal, performing bypass transparent transmission processing on service traffic of the downstream terminal, and forwarding the service traffic of the downstream terminal through the connection with the upstream relay terminal, so that the downstream terminal establishes a second non-3 GPP session through a second non-3 GPP access connection established by an N3IWF corresponding to the downstream terminal; and the second non-3 GPP session carries the service flow initiated and encapsulated by the downstream terminal.
2. The method of claim 1, wherein the terminal is a remote terminal; before the establishment of the first non-3 GPP session of the terminal if successful establishment of the connection with the upstream relay terminal is detected, the method further comprises:
acquiring an accessible candidate upstream relay terminal set;
according to the information of each candidate upstream relay terminal in the candidate upstream relay terminal set, confirming the upstream relay terminal to be connected;
and initiating a connection request to the upstream relay terminal so that the upstream relay terminal establishes connection with the terminal according to the connection request.
3. The method according to claim 2, wherein the initiating a connection request to the upstream relay terminal to cause the upstream relay terminal to establish a connection with the terminal according to the connection request comprises:
generating a connection request according to terminal information corresponding to the terminal;
the connection request is sent to the upstream relay terminal, so that the upstream relay terminal verifies the terminal information corresponding to the terminal in the connection request, and an internet protocol address corresponding to the terminal is distributed after the verification is passed;
And establishing connection with the upstream relay terminal according to the Internet protocol address.
4. The method of claim 1, wherein the terminal is a remote terminal; if the successful connection establishment with the upstream relay terminal is detected, a first non-3 GPP session of the terminal is established, wherein the first non-3 GPP session is established through a first non-3 GPP access connection established by a non-third generation partnership project interworking function N3IWF corresponding to the terminal, and the method comprises the following steps:
generating a first internet key exchange protocol (IKE) packet according to terminal information corresponding to the terminal, and sending the first IKE packet to the upstream relay terminal, so that the upstream relay terminal forwards the first IKE packet to an N3IWF corresponding to the terminal, and after the N3IWF corresponding to the terminal verifies the first IKE packet, a first data transmission tunnel based on an internet protocol security network protocol (IPSec) is established between the N3IWF corresponding to the terminal and the terminal;
establishing a first non-3 GPP access connection via the upstream relay terminal through the N3IWF corresponding to the terminal according to the first data transmission tunnel;
and establishing a first non-3 GPP session of the terminal according to the first non-3 GPP access connection.
5. The method of claim 1, wherein the establishing a connection with a downstream terminal, bypassing traffic of the downstream terminal, and forwarding traffic of the downstream terminal through the connection with the upstream relay terminal, such that the downstream terminal establishes a second non-3 GPP session through a second non-3 GPP access connection established by an N3IWF corresponding to the downstream terminal, comprises:
receiving a second IKE packet sent by a downstream terminal, wherein the second IKE packet is generated according to terminal information corresponding to the downstream terminal;
and forwarding the second IKE packet by-pass transmission to the upstream relay terminal so that the upstream relay terminal forwards the second IKE packet to the N3IWF corresponding to the downstream terminal, after the N3IWF corresponding to the downstream terminal passes the verification of the second IKE packet, a second data transmission tunnel based on IPSec is established between the N3IWF corresponding to the downstream terminal and the downstream terminal, and the downstream terminal establishes a second non-3 GPP access connection through the terminal and the upstream relay terminal through the N3IWF corresponding to the downstream terminal according to the second data transmission tunnel so as to establish a second non-3 GPP session according to the second non-3 GPP access connection, wherein the terminal becomes a relay terminal.
6. The method according to claim 1, wherein the number of the terminals is one or more, a plurality of the terminals are sequentially connected, and at least one of the plurality of the terminals is connected to the primary relay terminal.
7. The method of claim 1, wherein the downstream terminals are one or more, and the terminals respectively bypass traffic of a plurality of the downstream terminals.
8. The traffic statistics method is characterized in that a terminal is indirectly connected with a base station through an upstream relay terminal, the upstream relay terminal at least comprises a first-stage relay terminal, the first-stage relay terminal is connected with the base station through a new air interface NR, the terminal establishes a first non-3 GPP session through a first non-3 GPP access connection established by an N3IWF corresponding to the terminal, the terminal is connected with a downstream terminal, the downstream terminal establishes a second non-3 GPP session through a second non-3 GPP access connection established by the N3IWF corresponding to the downstream terminal, the first non-3 GPP session bears traffic initiated and encapsulated by the terminal, and the second non-3 GPP session bears traffic initiated and encapsulated by the downstream terminal; the method comprises the following steps:
Counting the flow of the session anchor point record corresponding to the first non-3 GPP session, and confirming the service flow consumption corresponding to the terminal;
and counting the flow of the session anchor point record corresponding to the second non-3 GPP session, and confirming the service flow consumption corresponding to the downstream terminal.
9. The method of claim 8, wherein the upstream relay terminal is the primary relay terminal, and wherein the primary relay terminal establishes an NR session with a base station; the method further comprises the steps of:
acquiring the total flow of a session anchor record corresponding to the NR session;
removing the flow with the current address of N3IWF according to the target address corresponding to the total service flow;
and confirming the service flow quantity corresponding to the upstream relay terminal according to the eliminating result.
10. A control device for near field communication, applied to a terminal, where the terminal is indirectly connected to a base station through an upstream relay terminal, the upstream relay terminal includes at least one primary relay terminal, and the primary relay terminal is connected to the base station through a new air interface NR, the device includes:
connection establishment means configured to establish a first non-third generation partnership project, 3GPP, session of an upstream relay terminal if successful connection establishment with the terminal is detected, the first non-3 GPP session being established through a first non-3 GPP access connection established by a non-third generation partnership project interworking function, N3IWF, corresponding to the terminal; wherein, the first non-3 GPP session carries the service flow initiated and encapsulated by the terminal;
The bypass transparent transmission device is configured to establish connection with a downstream terminal, perform bypass transparent transmission processing on the service flow of the downstream terminal, and forward the service flow of the downstream terminal through the connection with the upstream relay terminal so that the downstream terminal establishes a second non-3 GPP session through a second non-3 GPP access connection established by an N3IWF corresponding to the downstream terminal; and the second non-3 GPP session carries the service flow initiated and encapsulated by the downstream terminal.
11. The traffic statistics device is characterized in that a terminal is indirectly connected with a base station through a primary relay terminal, the primary relay terminal is connected with the base station through a new air interface NR, the terminal establishes a first non-3 GPP session through a first non-3 GPP access connection established with an N3IWF, the terminal is connected with a downstream terminal, the downstream terminal establishes a second non-3 GPP session through a second non-3 GPP access connection established with the N3IWF, the first non-3 GPP session bears traffic initiated and encapsulated by the terminal, and the second non-3 GPP session bears traffic initiated and encapsulated by the downstream terminal; the device comprises:
the first confirmation device is configured to count the flow recorded by the session anchor point corresponding to the first non-3 GPP session and confirm the service flow consumption corresponding to the terminal;
And the second confirmation device is configured to count the flow recorded by the session anchor point corresponding to the second non-3 GPP session and confirm the service flow consumption corresponding to the downstream terminal.
12. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when executed by a processor, implements the control method of near-field communication according to any one of claims 1 to 7 or the flow statistics method according to any one of claims 8 to 9.
CN202211009341.6A 2022-08-22 2022-08-22 Control method, flow statistics method, device and medium for near field communication Pending CN117676492A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211009341.6A CN117676492A (en) 2022-08-22 2022-08-22 Control method, flow statistics method, device and medium for near field communication
PCT/CN2022/140779 WO2024040818A1 (en) 2022-08-22 2022-12-21 Near-field communication control method, traffic statistics method, apparatus, and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211009341.6A CN117676492A (en) 2022-08-22 2022-08-22 Control method, flow statistics method, device and medium for near field communication

Publications (1)

Publication Number Publication Date
CN117676492A true CN117676492A (en) 2024-03-08

Family

ID=90012282

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211009341.6A Pending CN117676492A (en) 2022-08-22 2022-08-22 Control method, flow statistics method, device and medium for near field communication

Country Status (2)

Country Link
CN (1) CN117676492A (en)
WO (1) WO2024040818A1 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140179359A1 (en) * 2012-12-21 2014-06-26 Markport Limited Message router for concatenated sms
WO2020223219A1 (en) * 2019-04-30 2020-11-05 Convida Wireless, Llc Electronic device and methods for performing data aggregation in a 5g user equipment

Also Published As

Publication number Publication date
WO2024040818A1 (en) 2024-02-29

Similar Documents

Publication Publication Date Title
US11627515B2 (en) Method for supporting lawful interception of remote ProSe UE in network
CN104620613B (en) For neighborhood know found in type network after the system and method that communicate
CN103782652B (en) Small data communication in cordless communication network
US11233817B2 (en) Methods and apparatus for end device discovering another end device
CN105393565A (en) Method of device discovery for device-to-device communication in a telecommunication network, user equipment device and computer program product
CN104247505A (en) System and method for andsf enhancement with anqp server capability
CN108574667B (en) Service flow control method and device
KR20130093953A (en) Method and apparatus for supporting device to device communications
CN108432311A (en) A kind of resource request method, equipment, network side node and system
WO2012174722A1 (en) Method and apparatus for providing a virtual sim for mobile communications
CN103906055A (en) Service data distribution method and service data distribution system
CN113973399A (en) Message forwarding method, device and system
CN114173384A (en) QoS control method, device and processor readable storage medium
CN113811025A (en) Method, equipment and system for releasing relay connection
KR20190119025A (en) Method of device to device discovery and apparatus thereof
WO2017101211A1 (en) Method and apparatus for accessing wireless communication system, and terminal
EP3163919B1 (en) D2d service authorizing method and device and home near field communication server
CN113518475B (en) Communication method, device and system
Chen et al. Cellular based machine to machine communication with un-peer2peer protocol stack
CN108616962B (en) Data network information processing method and device and terminal
CN117676492A (en) Control method, flow statistics method, device and medium for near field communication
KR20240018626A (en) Data transfer methods, devices and storage media
CN114930769B (en) Method, device and system for local communication
CN115696316A (en) Communication method and device, computer readable storage medium, terminal device and routing device
CN116963262A (en) Relay transmission method, switching method, device and user equipment

Legal Events

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