Peer-to-peer communication for V2X services

By implementing peer-to-peer connection and NAT penetration technology in V2X devices, the problem in the existing technology that vehicle-to-everything communication is difficult to extend to pedestrians and other electronic devices is solved, and diversified P2P communications between vehicles and pedestrians are realized. Improved service diversity and user groups.

CN115362695BActive Publication Date: 2024-10-25LG ELECTRONICS INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080099293.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-14
Publication Date
2024-10-25
Estimated Expiration
2040-07-14

Smart Images

  • Figure CN115362695B_ABST
    Figure CN115362695B_ABST
Patent Text Reader

Abstract

A peer-to-peer (P2P) communication for vehicle-to-everything (V2X) services is provided. A V2X device establishes a P2P connection with a peer V2X device based on the V2X ID of the V2X device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a method of providing peer-to-peer (P2P) communication for vehicle-to-everything (V2X) services, and an apparatus using the method. Background Art

[0002] A vehicle is a device that moves passengers from one place to another. A representative example is a car. Vehicle-to-everything (V2X) communication technology, which means vehicle-to-object communication, refers to the technology that allows vehicles to communicate with other vehicles, pedestrians, road infrastructure, servers, etc. to provide a range of services.

[0003] For V2X, standardization organizations such as the Institute of Electrical and Electronics Engineers (IEEE), the Third Generation Partnership Project (3GPP), etc. provide various communication specifications. Dedicated Short Range Communication (DSRC) is a communication standard protocol based on IEEE 802.11p. Cellular-V2X (C-V2X) is a communication standard protocol based on the 3GPP cellular communication protocol. Generally, V2X focuses on vehicle safety through direct communication between vehicles, but recently V2X includes vehicle-to-infrastructure communication that communicates with peripheral devices via a network.

[0004] Attempts are being made to expand V2X technology to apply to pedestrians and other electronic devices, rather than simply for vehicle safety (eg, vehicle-to-vehicle and vehicle-to-peripheral devices). Summary of the invention

[0005] Technical issues

[0006] The present disclosure provides an apparatus and method for vehicle-to-everything (V2X) service.

[0007] Technical Solution

[0008] In one aspect, an apparatus for vehicle-to-everything (V2X) service includes: a processor; and a memory operatively coupled to the processor and configured to store instructions that, when executed by the processor, cause the apparatus to perform functions. The functions include: sending a registration session message to a V2X server, the registration session message including a V2X ID of the apparatus and a private Internet Protocol (IP) address of the apparatus; sending a connection request message to the V2X server for requesting a peer (P2P) connection with a peer device, the connection request message including the V2X ID of the peer device; receiving a connection response message from the V2X server, the connection response message including the V2X ID of the peer device and the private IP address of the peer device; and establishing the P2P connection with the peer device.

[0009] In another aspect, a method for vehicle-to-everything (V2X) service is provided. The method performed by a V2X device includes: sending a registration session message to a V2X server, the registration session message including a V2X ID of the V2X device and a private Internet Protocol (IP) address of the V2X device; sending a connection request message to the V2X server for requesting a peer (P2P) connection with a peer device, the connection request message including the V2X ID of the peer device; receiving a connection response message from the V2X server, the connection response message including the V2X ID of the peer device and the private IP address of the peer device; and establishing the P2P connection with the peer device.

[0010] In yet another aspect, a non-transitory computer-readable medium having stored thereon computer-readable instructions executable by a processor to perform functions including: sending a registration session message to a V2X server, the registration session message including a V2X ID of a V2X device and a private Internet Protocol (IP) address of the V2X device; sending a connection request message to the V2X server for requesting a peer-to-peer (P2P) connection with a peer device, the connection request message including the V2X ID of the peer device; receiving a connection response message from the V2X server, the connection response message including the V2X ID of the peer device and the private IP address of the peer device; and establishing the P2P connection with the peer device.

[0011] Beneficial Effects

[0012] V2X services can be provided to a wider range of users and vehicles. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 A system to which the embodiment of the present specification is applied is shown.

[0014] Figure 2 An example of tiles using a quadtree is shown.

[0015] Figure 3 An example in which a subscription area is set is shown.

[0016] Figure 4 is a flowchart illustrating a method for V2X service according to an embodiment of the present specification.

[0017] Figure 5 An example of a protocol stack for V2X services is shown.

[0018] Figure 6 An example of peer-to-peer (P2P) communication using V2X services is shown.

[0019] Figure 7 An example of connection in P2P communication using a relay is shown.

[0020] Figure 8 An example of data transmission in P2P communication using a relay is shown.

[0021] Fig. 9 A connection with a server in P2P communication for V2X services is shown.

[0022] Fig.10 and Fig.11 A process of receiving information for P2P communication from a V2X server is shown.

[0023] Figure 12 to Figure 14 A process of performing P2P communication is shown.

[0024] Fig.15 An example of a protocol stack with P2P functionality added is shown.

[0025] Fig.16 An example of a proposed message format for P2P communication is shown.

[0026] Fig.17 The IE format for endpoint information is shown.

[0027] Fig.18 The IE format for P2P payload is shown.

[0028] Fig.19 The process of establishing a connection using the ping process is shown.

[0029] Fig. 20 A P2P communication process for V2X according to an embodiment of the present specification is shown.

[0030] Fig.21 An example of application of P2P communication for V2X is shown.

[0031] Fig. 22 Another example of application of P2P communication for V2X is shown. DETAILED DESCRIPTION

[0032] Hereinafter, the embodiments disclosed in this specification will be described in detail with reference to the accompanying drawings, but the same or similar components are assigned the same figure numbers regardless of the figure numbers, and repeated descriptions thereof will be omitted. The suffixes "module" and "unit" of the components used in the following description are given or mixed only for the convenience of writing the specification, and they themselves do not have different meanings or functions. In addition, when describing the embodiments disclosed in this specification, if it is determined that the detailed description of the relevant known technology may confuse the subject matter of the embodiments disclosed in this specification, its detailed description will be omitted. In addition, the drawings are only for the convenience of understanding the embodiments disclosed in this specification, and the technical ideas disclosed in this specification are not limited by the drawings.

[0033] Terms including ordinal numbers (eg, first, second, etc.) may be used to describe various elements, but the elements are not limited by the terms. The above terms are used only for the purpose of distinguishing one component from another.

[0034] When an element is referred to as being "connected" or "coupled" to another element, it is understood that it can be directly connected or coupled to another element, but other elements may exist between them. On the other hand, when it is mentioned that a certain element is "directly connected" or "directly coupled" to another element, it should be understood that there are no other elements in between.

[0035] Unless the context clearly dictates otherwise, a singular expression includes a plural expression.

[0036] In the present application, terms such as “including” or “having” are intended to specify the existence of features, quantities, steps, operations, components, parts, or a combination thereof described in the specification, but it should be understood that this does not exclude the possibility of adding or existing one or more other features, quantities, steps, operations, components, parts, or a combination thereof.

[0037] The vehicle according to the embodiment of the present specification may be defined as a means of transport that travels on a road or track. The vehicle may include a car, a ship, an airplane, a train, a motorcycle, a bicycle, etc. The vehicle may include an internal combustion engine vehicle having an engine as a power source, a hybrid vehicle having an engine and an electric motor as a power source, an electric vehicle having an electric motor as a power source, and a combination thereof.

[0038] The vehicle-to-everything (V2X) device according to an embodiment of the present specification refers to a device that provides V2X functions and V2X services to users based on software, and is also called a SoftV2X device. The V2X device can be implemented based on hardware and / or software in an electronic device operated by a user (e.g., a user equipment (UE), a mobile station (MS), a mobile terminal (MT), a user terminal (UT), a cellular phone, a laptop, a handheld device, a tablet computer, a drone, consumer electronics, etc.). The V2X device can be installed on a vehicle or an electronic device as an on-board unit (OBU) to provide V2X functions and services to the vehicle. The V2X device set inside or outside the vehicle can be connected to the vehicle through a wireless interface to provide V2X functions and V2X services to the vehicle.

[0039] Figure 1 A system to which the embodiment of the present specification is applied is shown.

[0040] The system includes a V2X device 100 and a V2X server 200. The V2X device 100 can communicate with the V2X server 200 through a base station 310 or a roadside unit (RSU) 320. The V2X device 100 can communicate with the base station 310, the RSU 320, the neighboring vehicle 350 and / or the neighboring V2X device using a wireless communication protocol. There is no limitation on the wireless communication protocol. The wireless communication protocol may include dedicated short-range communication (DSRC), cellular-V2X (C-V2X), WiFi, Bluetooth and / or a cellular communication protocol based on the third generation partnership project (3GPP) (e.g., wideband code division multiple access (WCDMA), long term evolution (LTE), new radio (NR), etc.).

[0041] The V2X server 200 receives one or more V2X messages from the V2X devices 100 within the management area. The V2X server 200 may forward the collected one or more V2X messages to the subscribing V2X devices 100.

[0042] The V2X message may be periodically or aperiodically sent by the V2X device 100 (or the RSU 320) to the V2X server 200, and is a message that provides status information of the V2X device 100 (or a device managed by the RSU 320). For example, the V2X device 100 may send 10 V2X messages per second. The V2X server 200 collects V2X messages from a plurality of V2X devices and forwards the V2X messages to subscribing V2X devices.

[0043] The following table shows examples of information elements included in a V2X message. Not all information elements are required and the names are just examples. Information elements may be added / changed / deleted depending on policy or circumstances.

[0044] [Table 1]

[0045]

[0046] The V2X message transmitted by the V2X device 100 to the V2X server 200 is called an uplink (UL) V2X message, and the V2X message transmitted by the V2X server 200 to the V2X device 100 is called a downlink (DL) V2X message.

[0047] The V2X device 100 may include a processor 110 and a memory 120. The processor 110 implements the functions of the V2X device 100 and may include one or more software modules. The V2X device 100 may also include various additional devices (eg, a display, a user interface, and a wireless modem) according to the functions.

[0048] The V2X server 200 is connected to one or more base stations 310 and / or RSU 320, and includes computing hardware that provides V2X functions and V2X services to the V2X device 100. The V2X server 200 may be a server based on mobile / multi-access edge computing (MEC) or a centralized server. The V2X server 200 may be referred to as other names such as a Geocast server or a SoftV2X server. The V2X server 200 may include a processor 210 and a memory 220. The processor 210 implements the functions of the V2X server 200 and may include one or more software modules.

[0049] The processors 110 and 210 may include an application specific integrated circuit (ASIC), a central processing unit (CPU), an application processor (AP), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a microcontroller, a chipset, a logic circuit, a data processing device and / or a combination thereof. In the software implementation of the following embodiments, the software code for executing the functions described herein may be stored in the memories 120 and 220 and executed by the processors 110 and 210.

[0050] The memories 120 and 220 may store information accessible to the processors 110 and 210. The information may include instructions executable by the processors 110 and 210 and / or data processed by the processors. The memories 120 and 220 may include any form of computer-readable media that is operatively used to store information. For example, the memories 120 and 220 include read-only memory (ROM), random access memory (RAM), digital video disk (DVD), optical disk, flash memory, solid-state drive (SSD), hard disk drive, and combinations thereof.

[0051] Message Queuing Telemetry Transport (MQTT) is used as a message queuing protocol between the V2X device 100 and the V2X server 200, but this is just an example. Advanced Message Queuing Protocol (AMQP), Hypertext Transfer Protocol (HTTP), and / or a vendor-specific protocol may be used.

[0052] Now, setting an area for V2X services will be described in more detail. In the following, a tile refers to a geographical basic unit for setting a subscription area. In the following, a rectangle is shown in the form of a tile, but this is only an example. There is no limitation on the shape of the tile (e.g., a polygon or a circle).

[0053] Figure 2 An example of tiles using a quadtree is shown.

[0054] A quadtree represents a partition of a two-dimensional space by decomposing a map (i.e., a world map) into four equal quadrants, sub-quadrants, etc. The size of the quadrants varies depending on the zoom level, and each quadrant corresponds to a tile. Here, levels 1, 2, and 3 are shown. The larger the level, the smaller the size of the tile. At each level, a unique ID is assigned to the tile. The tile ID may have a number of bits corresponding to the level.

[0055] The V2X device may obtain the ID of the tile it is located in based on its location information (eg, latitude and longitude). The V2X device and / or the V2X server may adjust the size of the area by adjusting the level according to the situation.

[0056] In the following embodiments, the area of ​​V2X service is defined as follows.

[0057] - Management area: An area managed by a V2X server. A management area includes one or more tiles.

[0058] -Subscription area: The area in which a V2X device requests to subscribe to a V2X server. A subscription area may be referred to by another name such as an area of ​​interest, an area of ​​influence, or a geocast area. A subscription area contains one or more tiles. A subscription area may be included in one management area and may be defined across multiple management areas managed by multiple V2X servers.

[0059] - Publication area: The area where the V2X device publishes V2X messages to the V2X server. The publication area may include one tile in each level. The publication area may indicate the tile where the V2X device is currently located. Part or all of the publication area may overlap with the subscription area.

[0060] Figure 3 An example in which a subscription area is set is shown.

[0061] The first subscription area is set to the first V2X device 410, and the second subscription area is set to the second V2X device 450. Each V2X device may set / change / delete a subscription area periodically or aperiodically (e.g., when its position has changed). Each V2X device may request the V2X server to set / change / delete a subscription area.

[0062] The number of tiles included in the first subscription area is 9, and the number of tiles included in the second subscription area is 25, but the number of tiles included in the subscription area or the shape of the subscription area is not limited. The subscription area may include the tile where the V2X device is located. Alternatively, the subscription area may include one or more tiles other than the tile where the V2X device is located.

[0063] The first V2X device 410 may generate a first V2X message and periodically send the first V2X message to the V2X server. The second V2X device 450 may generate a second V2X message and periodically send the second V2X message to the V2X server.

[0064] The V2X server may forward one or more V2X messages received in or around the subscription area to V2X devices associated with the subscription area.

[0065] The device that sets the subscription area may be referred to as a "subscriber device". The device that sends a V2X message to the V2X server may be referred to as a "provider device". The V2X device may be a subscriber device, a provider device, or both a subscriber device and a provider device. The V2X server may forward the V2X message sent by the provider device in the management area to the subscriber device.

[0066] The V2X server may deliver a V2X message of a provider device "associated" with a subscription area of ​​the subscriber device to the subscriber device. A provider device associated with a subscription area of ​​a subscriber device may be referred to as a "subscribed provider device". A provider device associated with a subscription area of ​​a subscriber device may satisfy at least one of the following conditions (i) to (iii): (i) part or all of the publication area of ​​the provider device overlaps with the subscription area of ​​the subscriber device; (ii) part or all of the subscription area of ​​the provider device overlaps with the subscription area of ​​the subscriber device; and / or (iii) the location where the provider device sends the V2X message is within the subscription area of ​​the subscriber device.

[0067] According to condition (i) or (iii), the V2X server delivers the V2X message received in the first subscription area to the first V2X device 410. The V2X server delivers the V2X message received in the second subscription area to the second V2X device 450.

[0068] Since the first V2X device 410 is located in the second subscription area, the V2X server may forward the first V2X message to the second V2X device 450. The second V2X device 450 is a subscriber device, and the first V2X device 410 is a subscribed provider device.

[0069] Since the second V2X device 450 is not located in the first subscription area (which means that condition (i) or condition (iii) is not satisfied), the V2X server does not forward the second V2X message to the first V2X device 410. The second V2X device 450 is not a provider device of the first V2X device 410. If condition (ii) is considered, the second V2X device 450 may be a provider device of the first V2X device 410.

[0070] Figure 4 is a flowchart illustrating a method for V2X service according to an embodiment of the present specification.

[0071] In step S510, the V2X device sends a subscription request to the V2X server requesting to subscribe to the V2X service. The subscription request may include information about the identifier, location, etc. of the V2X device. The V2X server may send a subscription response for approving or rejecting the subscription to the V2X device in response to the subscription request.

[0072] In step S520, the V2X device may send a zone configuration related to the V2X service to the V2X server. The zone configuration may be included in a separate message or included in the subscription request. The zone configuration includes information about the configuration and / or modification of the subscription zone.

[0073] In step S530 , the V2X server may collect V2X messages from V2X devices in the management area and perform message filtering.

[0074] The V2X server receives a first V2X message from a second V2X device (step S541), and receives a second V2X message from a third V2X device (step S542). Assume that the second V2X device belongs to the subscription area of ​​the first V2X device, and the third V2X device does not belong to the subscription area of ​​the first V2X device.

[0075] In step S550, the V2X server publishes a first V2X message belonging to a subscription area of ​​the first V2X device to the first V2X device. The first V2X device is a subscriber device, and the second V2X device is a provider device. Since the V2X message of the third V2X device is not delivered to the first V2X device, the third V2X device is not a provider device of the first V2X device.

[0076] If there are multiple V2X messages to be sent to the first V2X device, the multiple V2X messages may be published separately or as a single message.

[0077] Message filtering is the filtering of V2X messages to be sent to V2X devices that have completed subscription requests by the V2X server. Message filtering can be referred to as the process of selecting a subscribed provider device associated with a subscriber device among multiple provider devices. The filtering conditions can be defined differently according to the subscription area and / or status of the V2X device. For example, if there are a large number of V2X devices in the subscription area, the filtering conditions can be modified so that more messages are filtered out. The filtering conditions can be related to the risk level of the V2X device.

[0078] Figure 5 An example of a protocol stack for V2X services is shown.

[0079] The application layer provides various V2X services such as road safety, driving assistance, traffic management, infotainment, etc. The message layer generates a message according to a predetermined message protocol for sending information to a target device. Although Message Queuing Telemetry Transport (MQTT) is used as a message protocol, this is only an example. Advanced Message Queuing Protocol (AMQP), Hypertext Transfer Protocol (HTTP), and / or vendor-specific protocols may be used.

[0080] Transport Layer Security (TLS) is responsible for confidentiality. Transmission Control Protocol / Internet Protocol (TCP / IP) implements the IP network interface.

[0081] Well-known X.509 certificates can be used for V2X services. This is just an example, and Institute of Electrical and Electronics Engineers (IEEE) 1609.2 certificates can also be used. For communication between a V2X device and a V2X server, a secure session using TLS is first established.

[0082] In conventional V2X communication based on conventional direct communication, the sender unilaterally sends information to the receiver, but information exchange is not possible. The V2X server only delivers the V2X message of the provider device to the subscriber device, but does not help all V2X devices to exchange information with each other.

[0083] There is a demand for peer-to-peer (P2P) applications between V2X devices. In a V2X environment, P2P applications include chatting, voice calls, see-through, data sharing, sensor sharing, etc.

[0084] Figure 6 An example of peer-to-peer (P2P) communication using V2X services is shown.

[0085] The vehicle 620, the bicycle 630, and the pedestrian 640 are all V2X devices. For example, the vehicle 620, the bicycle 630, and the pedestrian 640 may carry a V2X device, may be equipped with a V2X device, or may be connected to a V2X device. It is assumed that the vehicle 620, the bicycle 630, and the pedestrian 640 have all completed a subscription request with the V2X server 610, and the subscription areas also overlap with each other. The V2X server 610 transmits a V2X message of one of the vehicle 620, the bicycle 630, and the pedestrian 640 to the remaining parties.

[0086] The vehicle 620 may receive the first V2X message of the bicycle 630 and may predict that the bicycle 630 is moving on the driving path of the vehicle 620 and there is a risk of collision. The vehicle 620 sends a second V2X message with the threat notification to the V2X server, and the V2X server may forward the V2X message to the bicycle 630 and the pedestrian 640. However, even if the bicycle 630 receives the second V2X message, it is difficult for it to correctly notify the rider if the risk detection is delayed or the risk detection application is not applied. Moreover, although the threat notification is also delivered to the pedestrian 640, this may be an unnecessary notification in practice.

[0087] The following embodiment proposes a method for performing P2P communication in a V2X environment.

[0088] All mobile phones are connected to the service provider's Network Address Translation (NAT) and have private IP addresses. For P2P communication, NAT traversal technology is required to know the other party's public IP address.

[0089] There are three main techniques in NAT traversal: relay, connection reversal, and User Datagram Protocol (UDP) hole punching. In the following, relaying for P2P communication via a V2X server and relaying without UDP hole punching via a V2X server are proposed.

[0090] In the following drawings, "D" represents a destination address, "S" represents a source address, and "P" represents a payload of a message. VD-A is a first V2X device, and VD-B is a second V2X device. A-ID is a V2X ID of VD-A, and B-ID is a V2X ID of VD-B. NAT-A is a NAT associated with VD-A, and NAT-B is a NAT associated with VD-B. The address or port number of each device is just an example.

[0091] VD-A and VD-B each send a subscription request to the V2X server, and the subscription areas of these devices are set. VD-A receives at least one V2X message from VD-B, and VD-B receives at least one V2X message from VD-A. VD-A and VD-B share each other's V2X ID.

[0092] Figure 7 An example of connection in P2P communication using relay is shown. The relay method is a concept in which, when direct communication between two V2X devices having private IP addresses is impossible, a P2P data packet is relayed through an external server having a public IP address.

[0093] In step 1, assume that the private IP address of VD-A is "10.1.1.1" and the private IP address of VD-B is "10.2.2.2". VD-A and VD-B each send a registration session message to establish a connection with the V2X server. This message contains the A-ID or B-ID.

[0094] Each V2X device generates its own V2X ID and sends a V2X message with the V2X ID to the V2X server. The V2X device receives the V2X messages of the surrounding V2X devices through the V2X server and can know the location and V2X ID of the surrounding V2X devices.

[0095] In step 2, the registration session message is passed to the V2X server through NAT-A / NAT-B, and a TCP connection or UDP connection is established between VD-A and the V2X server and between VD-B and the V2X server. Figure 7 The binding entries and filter entries shown in .

[0096] In step 3, the V2X server stores the public IP address / port number, private IP address / port number, and V2X ID of VD-A and VD-B.

[0097] Figure 8 An example of data transmission in P2P communication using relays is shown. Figure 7 The process of connecting and receiving information for P2P communication is shown.

[0098] In step 4, VD-A sends a P2P data packet for VD-B to the V2X server. The payload of the data packet includes the B-ID.

[0099] In step 5, the V2X server receives the data packet through NAT-A.

[0100] In step 6, the V2X server can know the destination address and port number (6.2.2.2:30000) of the data packet based on the B-ID in the data packet. The V2X server sends the data packet to VD-B. The V2X server removes the B-ID in the payload so that VD-B can receive the data packet.

[0101] In step 7, because the information in the received data packet matches the filter entry, NAT-B accepts the data packet. Therefore, VD-B can receive the data packet of VD-A.

[0102] In P2P communication via the proposed relay, messages always go through the V2X server. This is beneficial for transmitting one-off, relatively urgent messages, such as threat notifications.

[0103] In the following, a method for performing P2P communication without passing through a V2X server is proposed. This is beneficial for continuous message transmission such as chatting.

[0104] Fig. 9 A connection with a server in P2P communication for V2X services is shown.

[0105] In step 1, VD-A and VD-B each send a registration session message for connection establishment to the V2X server. The payload of the registration message includes the private IP address / port number and the V2X ID.

[0106] In step 2, the registration session message is sent to the V2X server through NAT-A / NAT-B. NAT-A and NAT-B store binding information and filtering information, such as Fig. 9 This is the case where NAT has the Endpoint-Dependent feature. If NAT has the Endpoint-Independent attribute, the inbound packet filtering becomes NAT-A: Allow {AnyIP:AnyPort} to {5.1.1.1:60000}.

[0107] In step 3, the registration session message received by the V2X server includes the {source IP address, source port number} information of the V2X device changed by NAT and the payload of the V2X device not changed by NAT. The V2X server stores the public endpoint address, private endpoint address and V2X ID of VD-A and VD-B.

[0108] Fig.10 and Fig.11 A process of receiving information for P2P communication from a V2X server is shown.

[0109] In step 4, VD-A, which wants to perform P2P communication with VD-B, sends a connection request message with B-ID to the V2X server.

[0110] In step 5, a connection request message is sent to the V2X server through NAT-A. NAT-A changes {source IP address: source port number} of the connection request message according to the binding information generated in step 2.

[0111] In step 6, the V2X server that receives the connection request message sends a connection response message to VD-A. The V2X server can know that VD-A requests P2P communication with VD-B based on the B-ID in the connection request message. The connection response message contains the public endpoint address of VD-B and the private endpoint address of VD-B.

[0112] In step 7, NAT-A, which has received the connection response message, forwards the message to VD-A according to the filtering rule. VD-A can know the public endpoint address and private endpoint address of VD-B that wants to perform P2P communication.

[0113] In step 8, the V2X server sends a connection request message including the address information (A-ID, public endpoint address, private endpoint address) of VD-A to VD-B. This step can be performed substantially simultaneously with step 6.

[0114] In step 9, NAT-B, which has received the connection request message, accepts the message according to the filtering rule and sends it to VD-B. Therefore, VD-B can also know the address information of VD-A.

[0115] The peer private endpoint address is included in the message by the V2X server according to steps 6 and 8. This is when VD-A and VD-B are connected to the same NAT, and P2P communication is performed based on private IP addresses without address translation through NAT.

[0116] Figure 12 to Figure 14 A process of performing P2P communication is shown.

[0117] In step 10, VD-A sends a first P2P data packet to VD-B. The destination address of the first P2P data packet is the public endpoint address of VD-B. The first P2P data packet may include a ping request.

[0118] In step 11, NAT-A receiving the first P2P data packet changes {source IP address: source port number} of the first P2P data packet according to the binding information. Then, a filtering rule for the new destination VD-B is added. The process of generating filtering rules is UDP hole punching.

[0119] In step 12, NAT-B, which has received the first P2P data packet, discards it because the source information of the received data packet does not exist in the current filtering information of NAT-B.

[0120] In step 13, VD-B sends a second P2P data packet to VD-A. The destination address of the second P2P data packet is the public endpoint address of VD-A. The second P2P data packet may include a ping request.

[0121] In step 14, NAT-B receiving the second P2P data packet changes {source IP address: source port number} of the first P2P data packet according to the binding information. Then, a filtering rule for the new destination VD-A is added. Now, NAT-B has also completed UDP hole punching.

[0122] In step 15, NAT-A, which receives the second P2P data packet, sends the second P2P data packet to VD-A according to the filtering rule generated in step 11. Finally, VD-A successfully receives the second P2P data packet.

[0123] In step 16, VD-A sends a third P2P data packet to VD-B.

[0124] In step 17, the third P2P data packet passes through NAT-A.

[0125] In step 18, according to the filtering rule generated in step 14, NAT-B forwards the received third data packet to VD-B.

[0126] After a connection request is established through the V2X server, P2P communication between two V2X devices becomes possible. By sharing the V2X ID, public IP address, and private IP address of the peer devices with each other, peer communication is possible regardless of different NATs or the same NAT.

[0127] Fig.15 An example of a protocol stack with P2P functionality added is shown.

[0128] A P2P application layer for P2P services and a P2P message layer for P2P connections and message processing are added. Datagram TLS (DTLS) is used for the security of P2P communications, and UDP is used as the transport layer.

[0129] Fig.16 An example of a proposed message format for P2P communication is shown.

[0130] Information elements (IEs) are included in the UDP payload. The following table shows examples of message types.

[0131] [Table 2]

[0132] Type ID Message Type 1 Register Session 2 Connection Request 3 Connection Response 4 Ping Request 5 Ping Response 6 P2P Data

[0133] Fig.17 The IE format for endpoint information is shown.

[0134] The IP type indicates whether the endpoint IP information is IPv4 or IPv6. The length of the endpoint IP information can be 4 octets for IPv4 and 16 octets for IPv6.

[0135] Fig.18 The IE format for P2P payload is shown.

[0136] The following table is the IE format for the Registration Session message. The names and lengths in the following table are examples only. "M" stands for "Mandatory", "O" stands for "Optional", "V" stands for "Value", and "TLV" stands for "Type, Length, Value". The Host V2X ID indicates the V2X ID of the V2X device that sends the message. The Peer V2X ID indicates the V2X ID of the V2X device that receives the message.

[0137] [Table 3]

[0138] IEI IE refer to Existence Format length Registering a Session ID Message Type M V 1 Host V2X ID M V 4 50 Host private endpoint Endpoint Information O TLV 9-21

[0139] The following table shows the IE format used for the connection request message.

[0140] [Table 4]

[0141] IEI IE refer to Existence Format length Connection request ID Message Type M V 1 Peer V2X ID M V 4 Peer public endpoints Endpoint Information O TLV 9-21 50 Peer private endpoints Endpoint Information O TLV 9-21

[0142] When the V2X device sends a connection request message to the V2X server as the destination, the optional IE is not included. When the V2X device sends a connection request message to the peer V2X device as the destination, the optional IE is included.

[0143] The following table shows the IE format for the connection response message. This message is sent by the V2X server to the V2X device that sent the connection request.

[0144] [Table 5]

[0145] IEI IE refer to Existence Format length Connection Response ID Message Type M V 1 Peer V2X ID M V 4 Peer public endpoints Endpoint Information O TLV 9-21 50 Peer private endpoints Endpoint Information O TLV 9-21

[0146] The following table is the IE format for the ping request message. The ping request is used to establish a connection or keep the connection active. The ping request can be sent up to k times at an interval of m until a ping response is received. For example, m can be 1 second and k=5, but there is no limit.

[0147] [Table 6]

[0148] IEI IE refer to Existence Format length Ping request ID Message Type M V 1 Host V2X ID M V 4 Peer V2X ID M V 4

[0149] The following table shows the IE format for a ping response message.

[0150] [Table 7]

[0151] IEI IE refer to Existence Format length Ping Response ID Message Type M V 1 Host V2X ID M V 4 Peer V2X ID M V 4

[0152] The following table shows the IE format for P2P data.

[0153] [Table 8]

[0154] IEI IE refer to Existence Format length P2P Data ID Message Type M V 1 Host V2X ID M V 4 Peer V2X ID M V 4 51 Payload P2P Payload O TLV 4-n

[0155] Since the P2P data IE may have a larger payload size, the length of the IE can be represented by 2 bytes. The payload in the P2P data IE can include all P2P application data and / or V2X information (see Table 1). When the destination address of UDP is specified as a V2X server, P2P data can also be used for the relay method.

[0156] Fig.19 The process of establishing a connection using the ping process is shown.

[0157] In steps S1910 and S1920, if the ping request exceeds the maximum number of retransmissions (k), the connection fails.

[0158] In step S1930, VD-A sends a ping request to VD-B for establishing a connection, and then starts a timer.

[0159] In step S1940, when the timer expires, it is checked whether retransmission is performed.

[0160] In step S1950, while the timer is running, it is checked whether a ping response is received.

[0161] In step S1960, when receiving the ping response, VD-A checks whether the ping response is sent by VD-B. When the host V2X ID in the ping response matches the V2X ID of VD-B, and the peer V2X ID in the ping response matches the V2X ID of VD-A, the P2P connection is established.

[0162] Fig. 20 A P2P communication process for V2X according to an embodiment of the present specification is shown.

[0163] In step S2010, VD-A sends a registration session message with its own private IP address and V2X ID to the V2X server. In step S2015, VD-B sends a registration session message with its own private IP address and V2X ID to the V2X server.

[0164] In step S2020, VD-A, which wishes to perform P2P communication with VD-B, sends a connection request message to the V2X server.

[0165] In step S2030, the V2X server sends a connection response message to VD-A. And in step S2035, the V2X server sends a connection request message to VD-B.

[0166] In step 2040, VD-A (or VD-B) sends a ping request message to VD-B (or VD-A). The first ping request message sent is discarded by NAT. After that, the ping request message passes through NAT.

[0167] In step 2050, VD-B sends a ping request message to VD-A. In step S2055, VD-B, which has received the ping response message from VD-A, establishes a P2P connection.

[0168] In step S2060, VD-A sends a ping request message to VD-B. In step S2055, VD-A, which has received a ping response message from VD-B, establishes a P2P connection. Normal P2P communication can now be performed.

[0169] Fig.21 An example of application of P2P communication for V2X is shown.

[0170] according to Fig.21 In the sub-figure (A), surrounding V2X devices are displayed on a map on a screen of a host V2X device. The area where the surrounding V2X devices are displayed may correspond to a subscription area.

[0171] according to Fig.21 In the sub-figure (B), the user can select a peer V2X device with which he wants to perform P2P communication among the surrounding V2X devices. Here, "Chat", "Voice" and "See" are illustrated as services for P2P communication, but this is only an example.

[0172] according to Fig.21 In sub-figure (C), the host V2X device requests P2P communication from the selected peer V2X device.

[0173] Fig. 22Another example of application of P2P communication for V2X is shown.

[0174] according to Fig. 22 FIG. 1 shows an interface screen of a peer V2X device that has received a voice call request for P2P communication. The user can choose to accept or reject.

[0175] according to Fig. 22 FIG. 1B shows the interface screen of the host V2X device when the peer V2X device accepts the P2P communication. When the host V2X device displays “Voice call accepted”, the user can press OK and initiate a voice call with the other party.

[0176] The operation of the P2P connection is as follows. The request and acceptance of P2P communication is based on a token method. For example, when the application implementing the present embodiment is installed on a mobile phone, Q (Q>1) tokens are allocated. Each time a request is executed, the token is decremented. Each time a request is granted, the token is incremented. Therefore, in order to make a request, it is necessary to approve the other party's request so that the request and acceptance can be carried out fairly to each other.

[0177] When the IP address changes, each V2X device must reestablish the P2P connection. If no data corresponding to the binding and filtering entries is received within a certain period of time, each NAT can delete the entry. Each V2X device needs to periodically send specific data (e.g., ping requests) to maintain the P2P connection. If the V2X device does not send a ping request within a certain period of time, the NAT will automatically delete the entry and disconnect. It is possible to check whether the P2P connection is maintained based on whether a ping response is received in response to the ping request. If a ping response is received, the connection is maintained. If no ping response is received, it is determined that the connection is disconnected, and the connection establishment process can be restarted.

[0178] In the above examples, although the method has been described based on a flow chart using a series of steps or boxes, the present disclosure is not limited to the order of the steps, and some steps may be performed in a different sequence than the remaining steps or may be performed simultaneously with the remaining steps. In addition, those skilled in the art will appreciate that the steps shown in the flow chart are not exclusive, other steps may be included, or one or more steps in the flow chart may be deleted without affecting the scope of the present disclosure.

Claims

1. A device for vehicle-to-everything V2X service, the device comprising: processor; as well as a memory operatively coupled to the processor and configured to store instructions which, when executed by the processor, cause the apparatus to perform functions including: Sending a registration session message to a V2X server, the registration session message including a V2X ID of the device and a private Internet Protocol IP address of the device; sending a connection request message for requesting a peer-to-peer P2P connection with a peer device to the V2X server, wherein the connection request message includes a V2X ID of the peer device; receiving a connection response message from the V2X server, the connection response message including the V2X ID of the peer device and a private IP address of the peer device; and The P2P connection is established with the peer device.

2. The device according to claim 1, wherein: The V2X ID of the device includes a value randomly selected by the device.

3. The device according to claim 1, wherein: Establishing the P2P connection with the peer device includes: sending a ping request to the peer device; and receiving a ping response from the peer device as a response to the ping request, The ping request and the ping response include the V2X ID of the device and the V2X ID of the peer device.

4. The device according to claim 1, wherein: The connection response message includes the public IP address of the peer device.

5. The device according to claim 1, wherein: The functionality also includes: sending a subscription request for configuring a subscription area to the V2X server, Wherein, the peer device belongs to the subscription area.

6. The device according to claim 5, wherein: The functionality also includes: receiving, by the V2X server, a V2X message from the peer device, The V2X message includes the V2X ID of the peer device.

7. A method for vehicle-to-everything (V2X) service, the method being performed by a V2X device and comprising the following steps: Sending a registration session message to a V2X server, wherein the registration session message includes a V2X ID of the V2X device and a private Internet Protocol IP address of the V2X device; sending a connection request message for requesting a peer-to-peer P2P connection with a peer device to the V2X server, wherein the connection request message includes a V2X ID of the peer device; receiving a connection response message from the V2X server, the connection response message including the V2X ID of the peer device and a private IP address of the peer device; and The P2P connection is established with the peer device.

8. The method according to claim 7, wherein: The V2X ID of the V2X device includes a value randomly selected by the V2X device.

9. The method according to claim 7, wherein: The step of establishing the P2P connection with the peer device comprises: sending a ping request to the peer device; and receiving a ping response from the peer device as a response to the ping request, The ping request and the ping response include the V2X ID of the V2X device and the V2X ID of the peer device.

10. The method according to claim 7, wherein: The connection response message includes the public IP address of the peer device.

11. A non-transitory computer-readable medium having stored thereon computer-readable instructions executable by a processor, the computer-readable instructions performing functions including: Sending a registration session message to a V2X server, wherein the registration session message includes a V2X ID of the V2X device and a private Internet Protocol IP address of the V2X device; sending a connection request message for requesting a peer-to-peer P2P connection with a peer device to the V2X server, wherein the connection request message includes a V2X ID of the peer device; receiving a connection response message from the V2X server, the connection response message including the V2X ID of the peer device and a private IP address of the peer device; and The P2P connection is established with the peer device.

12. The non-transitory computer readable medium of claim 11, wherein: The V2X ID of the V2X device includes a value randomly selected by the V2X device.

13. The non-transitory computer readable medium of claim 11, wherein: Establishing the P2P connection with the peer device includes: sending a ping request to the peer device; and receiving a ping response from the peer device as a response to the ping request, The ping request and the ping response include the V2X ID of the V2X device and the V2X ID of the peer device.

14. The non-transitory computer readable medium of claim 11, wherein: The connection response message includes the public IP address of the peer device.