WO2017020759A1 - Internet of vehicles data transmission method and first forwarding device - Google Patents

Internet of vehicles data transmission method and first forwarding device Download PDF

Info

Publication number
WO2017020759A1
WO2017020759A1 PCT/CN2016/091780 CN2016091780W WO2017020759A1 WO 2017020759 A1 WO2017020759 A1 WO 2017020759A1 CN 2016091780 W CN2016091780 W CN 2016091780W WO 2017020759 A1 WO2017020759 A1 WO 2017020759A1
Authority
WO
WIPO (PCT)
Prior art keywords
forwarding device
forwarding
location information
packet
transmission destination
Prior art date
Application number
PCT/CN2016/091780
Other languages
French (fr)
Chinese (zh)
Inventor
黄敬
朱恒军
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2017020759A1 publication Critical patent/WO2017020759A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/44Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for communication between vehicles and infrastructures, e.g. vehicle-to-cloud [V2C] or vehicle-to-home [V2H]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/20Communication route or path selection, e.g. power-based or shortest path routing based on geographic position or location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/22Communication route or path selection, e.g. power-based or shortest path routing using selective relaying for reaching a BTS [Base Transceiver Station] or an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a car network data transmission method and a first forwarding device.
  • ITS Intelligent Transportation System
  • RSUs Roud Side Units
  • the geographical location information, fault information, and the like of the vehicle can be transmitted to the designated range of vehicles through the Internet of Vehicles.
  • the European Telecommunications Standards Institute defines ITS based on the Institute of Electrical and Electronics Engineers (IEEE) 802.11P protocol, which supports geo-networking (GeoNetworking) support. Multi-hop communication.
  • the geographic location of the vehicle 1 is (x, y). If the vehicle 1 needs to send fault information to the vehicle 5 and the vehicle 6 within a certain range, the certain range may be a geography 500 meters behind the vehicle 1.
  • the position is the center of the circle, with a radius of 50 meters, the vehicle 1 can broadcast the geographical position of the carrying source, such as expressed as (x, y, r), the target geographical position, such as expressed as (x-500, y, 50) and GeoNetworking message for fault information.
  • a vehicle that receives a GeoNetworking message determines whether it is within the range indicated by the target geographic location in the GeoNetworking message. If the vehicle that receives the GeoNetworking message is determined to be within the range indicated by the target geographic location, the vehicle that receives the GeoNetworking message obtains the fault information carried by the message and performs corresponding processing. If the vehicle that receives the GeoNetworking message determines that it is not within the range indicated by the target geographic location, the vehicle that receives the GeoNetworking message determines whether its geographic location is between the source geographic location and the target geographic location.
  • the vehicle that receives the GeoNetworking message continues to forward the GeoNetworking message. If the geographic location of the vehicle receiving the GeoNetworking message is not between the source address and the target geographic location, the vehicle receiving the GeoNetworking message determines whether the coverage range of the self network and the target geographical location intersect, and exists in the presence In the case of intersection, the GeoNetworking message is forwarded. As shown in the figure, the vehicle 1 cannot directly transmit the GeoNetworking message to the vehicle 5 or the vehicle 6, and the vehicle 1 can forward the GeoNetworking message to the vehicle 5 or the vehicle 6 via the vehicle 2, the vehicle 3, and the vehicle 4.
  • the vehicle A needs to communicate with the vehicle D, the vehicle E or the vehicle F, and the vehicle A can transmit the GeoNetworking message to the vehicle D through the vehicle C, since the distance between the vehicle C and the vehicle D exceeds the communication. Scope, vehicle D still can not receive the GeoNetworking message, that is, remote communication is not possible.
  • Embodiments of the present invention provide a vehicle network data transmission method and a first forwarding device, which are helpful for realizing long-distance communication in a vehicle network.
  • a method for data transmission of a vehicle network including:
  • the first forwarding device receives the packet carrying the target geographical location information sent by the terminal, where the target geographical location information is used to indicate the transmission destination of the packet;
  • the first forwarding device selects a second forwarding device according to the target geographic location information and the saved geographic location information of the N to be selected forwarding devices, where the geographical location information of the second forwarding device is used to indicate the first The coverage of the second forwarding device, where the coverage of the second forwarding device intersects with the transmission destination, where N is an integer greater than or equal to 1;
  • the first forwarding device sends the packet to the second forwarding device.
  • the target geographical location information when the transmission destination is an area, the target geographical location information includes a location of a center point of the transmission destination, and the a radius of the transmission destination, the geographic location information of each of the forwarding devices to be selected includes: a location of each of the to-be-selected forwarding devices and a radius of coverage of each of the to-be-selected forwarding devices;
  • the first forwarding device selects the second forwarding device according to the target geographic location information and the saved geographic location information of the N selected forwarding devices, including:
  • the first forwarding device Determining, by the first forwarding device, a first distance according to a location of the i-th forwarding device and a location of a central point of the transmission destination, where the first distance is a location of a center point of the transmission destination. The distance between the locations of the ith to-be-selected forwarding devices, where the ith to-be-selected forwarding device is any one of the N to-be-selected forwarding devices to be selected;
  • the first forwarding device obtains a second distance according to a radius of a coverage range of the ith to-be-selected forwarding device and a radius of the transmission destination, where the second distance is the ith to-be-selected forwarding device The sum of the radius of the coverage and the radius of the transmission destination;
  • the first forwarding device uses the ith to-be-selected forwarding device as the second forwarding device.
  • the first forwarding device sends the packet to the second forwarding device, include:
  • the first forwarding device sends the packet to the second forwarding device by using a tunnel established with the second forwarding device.
  • the first forwarding device Sending, by the second forwarding device, the packet includes:
  • the network system is a GeoNetworking message, and the target location information is carried in a packet header of the GeoNetworking message.
  • the method further includes:
  • the first forwarding device receives a routing protocol packet that is sent by the third forwarding device and carries the geographic location information of the N to-be-selected forwarding devices.
  • the routing protocol packet is an open shortest path first OSPF protocol packet, where the OSPF protocol packet is The included opaque information Opaque Information is used to carry geographical location information of the N to-be-selected forwarding devices.
  • a first forwarding device including:
  • a receiving unit configured to receive a packet that is sent by the terminal and carries the target geographic location information, where the target geographic location information is used to indicate a transmission destination of the packet;
  • a selecting unit configured to select a second forwarding device according to the target geographic location information and the saved geographic location information of the N selected forwarding devices, where the geographical location information of the second forwarding device is used to indicate the second a coverage area of the forwarding device, where the coverage of the second forwarding device intersects with the transmission destination, where N is an integer greater than or equal to 1;
  • a sending unit configured to send the message to the second forwarding device.
  • the target geographic location information when the transmission destination is an area, includes a center point of the transmission destination a location and a radius of the transmission destination, where the geographic location information of each of the to-be-selected forwarding devices includes: a location of each of the to-be-selected forwarding devices and a radius of coverage of each of the to-be-selected forwarding devices;
  • the selection unit is specifically configured to:
  • the ith to-be-selected forwarding device is used as the second forwarding device.
  • the sending unit is specifically configured to:
  • the first forwarding device further includes processing unit;
  • the processing unit is configured to obtain an internet protocol IP address of the second forwarding device
  • the processing unit is configured to encapsulate the packet into an IP packet according to an IP address of the second forwarding device
  • the sending unit is specifically configured to send the IP packet to the second forwarding device according to the IP address of the second forwarding device.
  • the network system is a GeoNetworking message, and the target location information is carried in a packet header of the GeoNetworking message.
  • the receiving unit Before the forwarding device, the receiving unit is further configured to receive geographic location information of the N to-be-selected forwarding devices sent by the controller; or
  • the receiving unit is further configured to receive a routing protocol packet that is sent by the third forwarding device and carries the geographic location information of the N to-be-selected forwarding devices.
  • the routing protocol packet is an open shortest path first OSPF protocol packet, where the OSPF protocol packet is The included opaque information Opaque Information is used to carry geographical location information of the N to-be-selected forwarding devices.
  • the first forwarding device after receiving the message carrying the target geographical location information sent by the terminal, the first forwarding device, according to the target geographical location information and the saved geographical position of the N selected forwarding devices And the second forwarding device is filtered out, wherein the target geographical location information is used to indicate a transmission destination of the packet, and the geographical location information of the second forwarding device is used to indicate the coverage of the second forwarding device.
  • the coverage of the second forwarding device is different from the transmission destination; the first forwarding device sends the packet to the second forwarding device, so that the first forwarding device does not need to consider the first
  • the distance between the forwarding device and the transmission destination is transmitted to the transmission destination by the second forwarding device, so that the first forwarding device can implement long-distance communication.
  • FIG. 1 is a schematic diagram of data transmission of a vehicle network provided by the prior art
  • FIG. 2 is a schematic diagram of a long-distance communication scenario provided by the prior art
  • FIG. 3 is a schematic diagram of a network architecture of a vehicle network according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of a method for data transmission of a vehicle network according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of a format of an OSPF protocol packet according to an embodiment of the present disclosure
  • FIG. 6 is a flowchart of a vehicle network data transmission method according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a first forwarding device according to an embodiment of the present disclosure.
  • FIG. 8 is a structural diagram of a first forwarding device according to an embodiment of the present invention.
  • the embodiment of the invention provides a vehicle network data transmission method and device, which are used to solve the problem that the multi-hop communication technology existing in the prior art cannot realize long-distance communication.
  • the method and the device are based on the same inventive concept. Since the principles of the method and the device for solving the problem are similar, the implementation of the device and the method can be referred to each other, and the repeated description is not repeated.
  • the first forwarding device filters out the geographical location information of the target and the saved geographic information of the N selected forwarding devices.
  • a second forwarding device wherein the target geographic location information is used to indicate a transmission destination of the packet, and the geographical location information of the second forwarding device is used to indicate a coverage of the second forwarding device, where The coverage of the second forwarding device is different from the transmission destination; the first forwarding device sends the packet to the second forwarding device, so that the first forwarding device does not need to consider the first forwarding device and the The distance of the transmission destination is transmitted to the transmission destination by the second forwarding device, so that the first forwarding device can implement long-distance communication.
  • an embodiment of the present invention provides a network architecture of a car network, including: a terminal 301, a forwarding device 302, and a forwarding device 303.
  • the network architecture of the vehicle networking provided by the embodiment of the present invention includes The forwarding device 302 and the forwarding device 303 may further include at least one forwarding device, and the at least one forwarding device is a forwarding device other than the forwarding device 302 and the forwarding device 303.
  • the terminal 301 may be an On Board Unit (OBU), a Global Position System (GPS) installed in a vehicle, a Radio Frequency Identification Devices (RFID), a sensor, or a camera.
  • the terminal 301 is configured to collect or generate traffic information, which is used to indicate a traffic condition or a factor affecting traffic, such as a front road fault, a vehicle fault, and the like.
  • the terminal 301 generates a packet carrying the target geographical location information according to the traffic information.
  • the target geographical location information is used to indicate a transmission destination of the message.
  • the packet generated by the terminal 301 based on the traffic information may be a data packet or a control packet, and is not specifically limited herein.
  • the terminal 301 broadcasts the generated message.
  • the forwarding device 302 and the forwarding device 303 may each be a network device such as a router, such as an RSU, or a composite switch having a routing function.
  • the forwarding device 302 is configured to receive the packet that is broadcast by the terminal 301 in the coverage area, and forward the received packet to the forwarding device according to the target geographical location information carried in the packet. 303. There is an intersection between the coverage of the forwarding device 303 and the transmission destination.
  • the forwarding device 303 is configured to receive the packet sent by the forwarding device 302, and broadcast the received packet, so that the terminal in the coverage of the forwarding device 303 can receive the packet. . In this way, when the intersection between the coverage of the forwarding device 303 and the transmission destination exists in the terminal 304, the terminal 304 can receive the message, and the message is transmitted to the transmission. destination.
  • the forwarding device 302 and the forwarding device 303 can transmit the packet through the physical link of the entity, and the packet can be transmitted in a wireless manner.
  • the present invention does not limit this.
  • the forwarding device 302 and the terminal 301 transmit the packet in a wireless manner.
  • the forwarding device 303 and the terminal 304 also transmit the packet in a wireless manner.
  • the first forwarding device, the to-be-selected forwarding device, and the third forwarding device may be a network device such as a router, such as an RSU, or a composite switch having a routing function.
  • the method includes:
  • Step 401 The first forwarding device receives a packet that carries the target geographical location information and is sent by the terminal, where the target geographic location information is used to indicate a transmission destination of the packet.
  • the first forwarding device is the forwarding device 302 in the network architecture of the car network shown in FIG. 3, and the terminal is the terminal 301 in the network architecture of the car network shown in FIG.
  • the packet may be a data packet or a control packet, which is not limited in the present invention.
  • the terminal After the terminal collects or generates traffic information, the terminal needs to send the traffic information to a transmission destination, such as an area within 500 meters behind the terminal or a location 500 meters behind the terminal, where the transmission destination It can be set by default for the terminal or by the terminal.
  • the terminal determines the destination geographic location information according to the transmission destination.
  • the terminal generates a message according to the traffic information and the target geographical location information.
  • the packet is a GeoNetworking packet, and the target location information is carried in a packet header of the GeoNetworking packet.
  • the terminal broadcasts the generated message.
  • the first forwarding device receives the packet carrying the target geographic location information sent by the terminal.
  • the destination of the packet indicated by the target geographic location information carried in the packet may be an area or a location.
  • the transmission destination may be a circular area, or a rectangular area, or other polygonal area, or an ellipse, or other irregular graphic area, and the present invention does not limited.
  • the target geographical location information may include a location of a center point of the transmission destination and a radius of the transmission destination.
  • the position of the center point of the transmission destination may be latitude and longitude information or coordinate information.
  • the target geographical location information may include a position, an angle, a first distance, and a second distance of a center point of the transmission destination.
  • the transmission The position of the center point of the destination may be latitude and longitude information or coordinate information.
  • the angle is used to determine an angle between a certain side of the transmission destination and a specified direction.
  • the first distance is a distance between opposite sides of the transmission destination and a position of a center point of the transmission destination
  • the second distance is a relative two of the transmission destinations The distance between the edge and the position of the center point of the transmission destination.
  • the target geographical location information may include at least three latitude and longitude information or at least three coordinate information.
  • a latitude and longitude information indicates the position of one vertex of the transmission destination.
  • a coordinate information also indicates the position of one vertex of the transmission destination.
  • the target geographic location information may include one latitude and longitude information or one coordinate information.
  • the latitude and longitude information is used to indicate the location of the transmission destination, and the coordinate information is also used to indicate the location of the transmission destination.
  • the coordinate information may indicate a position of a center point of the transmission destination, a position of a first vertex of the transmission destination, or the transmission in a plane by a horizontal axis value and a vertical axis value.
  • the location of the destination may also represent a position of a center point of the transmission destination, a position of a first vertex of the transmission destination, or the transmission in a space by a horizontal axis value, a vertical axis data, and Z-axis data. The location of the destination.
  • the format of the GeoNetworking packet is a Geographically-Scoped Broadcast (GBC) encapsulation format or a geographical range. Geographically-Scoped Anycast (GAC) encapsulation format.
  • GBC Geographically-Scoped Broadcast
  • GUC Geographically-Scoped Unicast
  • Step 402 The first forwarding device selects a second forwarding device according to the target geographic location information and the saved geographic location information of the N selected forwarding devices, where the geographical location information of the second forwarding device is used to indicate The coverage of the second forwarding device, the coverage of the second forwarding device has an intersection with the transmission destination, and N is an integer greater than or equal to 1.
  • the second forwarding device is the forwarding device 303 in the network architecture of the car network shown in FIG. 3.
  • the coverage of the second forwarding device is a range in which the second forwarding device can receive the packet broadcast by the second forwarding device when the second forwarding device broadcasts the packet.
  • the transmission destination indicated by the target geographical location information has an intersection with the coverage of the second forwarding device.
  • the second forwarding device may continue to broadcast the packet. For example, the second forwarding device broadcasts the packet to the coverage of the second forwarding device, and the terminal in the intersection can receive the packet. Therefore, the first forwarding device transmits the message to the transmission destination by sending the message to the second forwarding device to enable the second forwarding device to broadcast the message.
  • the geographic location information of a forwarding device to be selected includes a latitude and longitude information or a coordinate information.
  • the latitude and longitude information indicates a location of the to-be-selected forwarding device
  • the coordinate information also indicates a location of the to-be-selected forwarding device. Determining, by the first forwarding device, the location of the to-be-selected forwarding device according to the location of the to-be-selected forwarding device and the radius of coverage of the to-be-selected forwarding device preset in the first forwarding device Coverage.
  • the geographic location information of the forwarding device to be selected may further include the latitude and longitude information of the forwarding device to be selected and the radius of the coverage of the forwarding device to be selected, or the geographic location information of the forwarding device to be selected.
  • the coordinate information of the forwarding device to be selected and the radius of the coverage of the forwarding device to be selected may also be included.
  • the latitude and longitude information indicates a location of the to-be-selected forwarding device, and the coordinate information also indicates a location of the to-be-selected forwarding device.
  • the first forwarding device may determine the coverage of the to-be-selected forwarding device according to the location of the to-be-selected forwarding device and the radius of the coverage of the to-be-selected forwarding device.
  • the geographic location information of the forwarding device to be selected may further include at least three coordinate information of at least three latitude and longitude information.
  • a latitude and longitude information indicates the position of one vertex in the coverage of the to-be-selected forwarding device.
  • a coordinate information also indicates the location of one vertex in the coverage of the forwarding device to be selected.
  • the first forwarding device may determine the coverage of the to-be-selected forwarding device according to the location of all the vertices in the coverage of the to-be-selected forwarding device.
  • only the geographic location information of the forwarding device to be selected includes coordinate information as an example.
  • the geographic location information of the N forwarding devices that are to be selected may be collected and saved by the first forwarding device, or obtained by the first forwarding device from other devices.
  • the method further includes:
  • the first forwarding device acquires geographic location information of the N to-be-selected forwarding devices, and saves the information.
  • the N forwarding devices to be selected are forwarding devices other than the first forwarding and forwarding device in the Internet of Vehicles.
  • the first forwarding device acquires geographic location information of the N to-be-selected forwarding devices, including the following methods:
  • the first forwarding device receives the geographic location information of the N to-be-selected forwarding devices sent by the controller;
  • the second mode the first forwarding device receives a routing protocol packet that is sent by the third forwarding device and carries the geographic location information of the N to-be-selected forwarding devices.
  • the third forwarding device is any one of the forwarding devices except the first forwarding device in the Internet of Vehicles.
  • the controller or the third forwarding device may also send the location information of the N to-be-selected forwarding devices before or after the controller or the third forwarding device.
  • IP Internet Protocol
  • the controller or the third forwarding device may send N at the same time when transmitting the geographical location information of the N to-be-selected forwarding devices and the IP addresses of the N to-be-selected forwarding devices.
  • IP Internet Protocol
  • the controller or the third forwarding device may send N at the same time when transmitting the geographical location information of the N to-be-selected forwarding devices and the IP addresses of the N to-be-selected forwarding devices.
  • the correspondence between the geographic location information of the forwarding device and the IP address is not limited.
  • the network architecture of the Internet of Vehicles shown in FIG. 3 further includes a controller, and each forwarding device in the car network transmits its own geographical location information and an IP address to the controller.
  • each forwarding device may use a Network Configuration (netconf) protocol or an OpenFlow protocol to send its own geographical location information and an IP address to the controller.
  • the controller may adopt the netconf protocol or OpenFlow. The protocol sends the geographical location information and the IP address of the forwarding device other than the any one of the forwarding devices to any one of the forwarding devices.
  • each forwarding device in the car network can obtain the geographical location information and the IP address of the other forwarding devices in the car network, and the other forwarding devices are the forwarding devices to be selected.
  • Each forwarding device associates the acquired geographic location information of the forwarding device with the IP address, such as the geographic location information and the IP address of the forwarding device to be selected stored in the forwarding device 1 shown in Table 1.
  • the controller may send, by using one data packet, geographical location information and an IP address of a forwarding device other than the any one of the forwarding devices to any one of the forwarding devices.
  • the data packet carries geographic location information and an IP address of the other forwarding device.
  • the controller may further send, by using multiple data packets, geographic location information and an IP address of the forwarding device except any one of the forwarding devices to any one of the forwarding devices, for example, the controller
  • the second forwarding device geographical location information and the IP address are encapsulated into the first data packet
  • the third forwarding device geographical location information and the IP address are encapsulated into the second data packet, and then the controller sends the first to the first forwarding device.
  • IP address Remarks x2, y2
  • r2 2001:2::2 Forwarding device 2 x3, y3
  • r3 2001:3::2 Forwarding device 3 x4, y4
  • the coordinate information (xi, yi) is the location of the forwarding device i to be selected, and ri is the radius of the coverage of the forwarding device i to be selected, i is 1, 2, 3, 4.
  • the routing protocol packet carrying the geographic location information of the N to be selected forwarding device may be an Open Shortest Path First (OSPF) protocol packet or a Border Gateway Protocol ( Border Gateway Protocol (BGP) packet.
  • the format of the OSPF protocol packet may be Link-State Advertisement (LSA) or Opaque Link-State Advertisement (OLSA), which is set in the Internet of Vehicles.
  • the third forwarding device is configured as a designated router (DR) or any one of the forwarding devices, and the third forwarding device is any one of the forwarding devices except the first forwarding device.
  • the forwarding device except the third forwarding device in the car network sends a routing protocol message including the geographical location information and the IP address of the third forwarding device to the third forwarding device.
  • the third forwarding device receives geographical location information and an IP address of other forwarding devices. After the third forwarding device obtains the geographical location information and the IP address of the forwarding device, the third forwarding device sends the geographic location information and the IP address of the next hop forwarding device including the any one of the forwarding devices to any one of the forwarding devices. Routing protocol packet for the address.
  • the next hop forwarding device of any one of the forwarding devices is a forwarding device other than any one of the forwarding devices. In this way, each forwarding device in the car network can obtain the geographical location information and the IP address of the other forwarding devices in the car network, and the other forwarding devices are the forwarding devices to be selected.
  • Each of the forwarding devices associates the acquired geographic location information of each of the to-be-selected forwarding devices with an IP address, such as the geographic location information of the forwarding device to be selected and saved in the forwarding device 1 shown in Table 2. IP address.
  • IP address interface Remarks x2, y2
  • r2 2001:2::2 IF0:2001:1::2 Forwarding device 2 (x3, y3)
  • r3 2001:3::2 IF0:2001:1::2 Forwarding device 3 x4, y4
  • the coordinate information (xi, yi) is the location of the forwarding device i to be selected, and ri is the radius of the coverage of the forwarding device i to be selected, i is 1, 2, 3, 4.
  • the routing protocol packet carrying the geographic location information of the N to be selected is an OSPF protocol packet
  • the format of the OSPF protocol packet is as shown in FIG. 5, where the OSPF protocol packet is used.
  • the LSA type (LS Type) in the OSPF packet is different from the value in the traditional OSPF protocol packet
  • the opaque type (Opaque Type) in the OSPF protocol packet is also different from the traditional one.
  • the value of the OSPF packet is different.
  • the LSA type and the opaque type of the OSPF packet need to be transmitted to the geographic location of the forwarding device to be selected. Redefine the information and IP address.
  • the advertised router field in the OSPF protocol packet is used to carry the IP address of the at least one forwarding device to be selected, and the opaque information field in the OSPF protocol packet is used to carry at least one to be carried. Geographic location information of the selected forwarding device.
  • the target geographical location information When the transmission destination indicated by the target geographical location information is a location, the target geographical location information includes coordinate information, and the coordinate information is also used to indicate the location of the transmission destination, and each to-be-selected forwarding
  • the geographic location information of the device includes: a location of each of the to-be-selected forwarding devices and a radius of coverage of each of the to-be-selected forwarding devices.
  • Step 402 includes the following steps:
  • the first forwarding device obtains a first distance according to a location of the i-th forwarding device and a location of the transmission destination, where the first distance is a location of the transmission destination and the i-th waiting The distance between the locations of the selected forwarding devices, where the ith to-be-selected forwarding device is any one of the N to-be-selected forwarding devices to be selected;
  • the first forwarding device uses the ith to-be-selected forwarding device as the second forwarding device.
  • the target geographical location information includes: a location of a central point of the transmission destination and a radius of the transmission destination, such as a center of the transmission destination
  • the position of the point is (0,500)
  • the radius of the transmission destination is 100
  • the target geographical position information indicates a circle with (0,500) as a center, and a circle with a radius of 100 as a transmission destination;
  • the geographic location of each of the to-be-selected forwarding devices includes: a location of each of the to-be-selected forwarding devices and a radius of coverage of each of the to-be-selected forwarding devices, such as a forwarding device to be selected
  • the location is (0, 100)
  • the radius of the coverage of the forwarding device to be selected is 200
  • the geographic location indication of the forwarding device to be selected is a circle with a radius of 200 as a transmission destination with a circle of (0, 100) as a center.
  • the unit of the above data can be meters.
  • step 402 is performed, including the following steps:
  • the first forwarding device Determining, by the first forwarding device, a first distance according to a location of the i-th forwarding device and a location of a central point of the transmission destination, where the first distance is a location of a center point of the transmission destination.
  • the first forwarding device obtains a second distance according to a radius of a coverage range of the ith to-be-selected forwarding device and a radius of the transmission destination, where the second distance is the ith to-be-selected forwarding device The sum of the radius of the coverage and the radius of the transmission destination;
  • the first forwarding device uses the ith to-be-selected forwarding device as the second forwarding device.
  • the coverage of the ith to-be-selected forwarding device and the transmission destination have an intersection.
  • the forwarding device 1 receives a message carrying the target geographical location information, where the target geographical location information indicates a transmission destination of the message, and the target geographical location information includes a location of a central point of the transmission destination. (0,450), the radius of the transmission destination is 50, and the geographical location information of the three forwarding devices to be selected stored in the forwarding device 1 is as shown in Table 3.
  • the forwarding device 1 can obtain the first distance and the second distance in Table 4 by using the method provided by the embodiment of the present invention, and details are not described herein again.
  • Pending forwarding device First distance Second distance Forwarding device 2 50 150 Forwarding device 3 502 150 Forwarding device 4 538 150
  • the forwarding device 1 selects the forwarding device 2 and transmits the message to the forwarding device 2.
  • the forwarding device 1 receives a message carrying the target geographical location information, where the target geographical location information indicates a transmission destination of the message, and the target geographical location information includes a location of a central point of the transmission destination. (500,300), the radius of the transmission destination is 200, and the geographical location information of the three candidate forwarding devices stored in the forwarding device 1 is still as shown in Table 3.
  • the forwarding device 1 determines each forwarding device to be selected. Corresponding first distance and second distance, as shown in Table 5:
  • the forwarding device 1 selects the forwarding device 3 and the forwarding device 4, and sends the message to the forwarding device 3 and the forwarding device 4, respectively.
  • Step 403 The first forwarding device sends the packet to the second forwarding device.
  • the first forwarding device sends the packet to the second forwarding device by using a tunnel established with the second forwarding device.
  • the tunnel established between the first forwarding device and the second forwarding device may be pre-established, such as after the first forwarding device receives the geographical location information and the IP address of the second forwarding device, or This is not limited by the present invention, which is established before the step 403 is performed.
  • the first forwarding device establishes a tunnel with the second forwarding device, including the following steps:
  • the IP address of the second forwarding device may be an Internet Protocol Version 4 (IPv4) address or an Internet Protocol Version 6, IPv6 address, etc.
  • IPv4 Internet Protocol Version 4
  • IPv6 Internet Protocol Version 6, IPv6 address, etc.
  • the tunnel has multiple forms. For example, a Generic Routing Encapsulation (GRE) tunnel, or a plurality of Layer 2 or Layer 3 tunnels, which is not limited by the present invention.
  • GRE Generic Routing Encapsulation
  • the method when performing step 403, the method includes:
  • the first forwarding device acquires an IP address of the second forwarding device
  • the first forwarding device sends the IP packet to the second forwarding device according to the IP address of the second forwarding device.
  • the IP address of the second forwarding device may be an IPv4 address or an IPv6 address.
  • the encapsulated IP packet is an IPv4 packet.
  • the encapsulated IP packet is an IPv6 packet.
  • the IP packet when the packet is encapsulated into an IP packet, the IP packet includes a source IP address and a destination IP address, where the source IP address is the IP address of the first forwarding device that receives the packet.
  • the destination IP address is the IP address of the second forwarding device.
  • the second forwarding device broadcasts the packet after receiving the packet, where the first forwarding device sends the encapsulated IP packet to the second forwarding device.
  • the second forwarding device decapsulates the received IP packet to generate an original packet, where the original packet is the packet received by the first forwarding device.
  • the second forwarding device broadcasts the original packet, so that the terminal in the coverage of the second forwarding device can receive the packet. In this way, when the intersection between the coverage of the second forwarding device and the transmission destination exists in the terminal, the terminal can receive the message, and the message is transmitted to the transmission destination. .
  • the first forwarding device after receiving the message carrying the target geographical location information sent by the terminal, according to the target geographical location information and the saved N candidate forwarding devices
  • the second forwarding device is filtered out, wherein the target geographic location information is used to indicate a transmission destination of the packet, and the geographical location information of the second forwarding device is used to indicate the second Forwarding the coverage of the device, the coverage of the second forwarding device is different from the transmission destination;
  • the first forwarding device sends the packet to the second forwarding device, so that the first forwarding device does not need to consider And the distance between the first forwarding device and the transmission destination, and the received packet is transmitted to the transmission destination by using the second forwarding device, so that the first forwarding device can implement long-distance communication.
  • the first forwarding device transmits the packet by using a forwarding device (ie, the second forwarding device), and in the actual application, the first forwarding device may transmit through multiple forwarding devices.
  • the packet is in the embodiment, and only the two forwarding devices are used as an example.
  • the flow of the first forwarding device to transmit the packet by using any one of the two forwarding devices is the same as that in the foregoing embodiment. .
  • the specific process includes:
  • Step 601 The first forwarding device receives a packet that carries the target geographical location information and is sent by the terminal, where the target geographic location information is used to indicate a transmission destination of the packet.
  • the packet may be a GeoNetworking packet, and the target location information is carried in a packet header of the GeoNetworking packet.
  • the destination of the packet indicated by the target geographic location information carried in the packet may be an area, or a location.
  • the specific representation is as described in step 401, and details are not described herein.
  • Step 602 The first forwarding device according to the target geographical location information and the saved N a geographic location information of the forwarding device to be selected, a second forwarding device, and a third forwarding device, where the geographic location information of the second forwarding device is used to indicate the coverage of the second forwarding device, where the third forwarding device The geographic location information is used to indicate the coverage of the third forwarding device, the coverage of the second forwarding device intersects with the transmission destination, and the coverage of the third forwarding device exists with the transmission destination.
  • N is an integer greater than or equal to 1.
  • the method before performing step 602, the method further includes:
  • the first forwarding device acquires geographic location information of the N to-be-selected forwarding devices, and saves the information.
  • the N forwarding devices to be selected are forwarding devices other than the first forwarding and forwarding device in the Internet of Vehicles.
  • the first forwarding device acquires geographic location information of the N to-be-selected forwarding devices, and includes the following two methods:
  • the first forwarding device receives the geographic location information of the N to-be-selected forwarding devices sent by the controller;
  • the second mode the first forwarding device receives a routing protocol packet that is sent by the fourth forwarding device and carries the geographic location information of the N to-be-selected forwarding devices.
  • the fourth forwarding device is any one of the forwarding devices except the first forwarding device in the Internet of Vehicles.
  • the routing protocol packet may be an OSPF packet or a BGP packet.
  • the Opaque Information in the OSPF protocol packet is used to carry the geographical location information of at least one forwarding device to be selected.
  • the target geographical location information includes a location of a central point of the transmission destination and a radius of the transmission destination, and geographic location information of each forwarding device to be selected includes: a location of each of the to-be-selected forwarding devices and a radius of coverage of each of the to-be-selected forwarding devices;
  • the first forwarding device selects the second forwarding device according to the target geographic location information and the saved geographic location information of the N selected forwarding devices, including:
  • the first forwarding device obtains a first distance according to a location of the i-th forwarding device and a location of a central point of the transmission destination, where the first distance is a center point of the transmission destination a distance between the location and the location of the ith to-be-selected forwarding device, where the ith to-be-selected forwarding device is any one of the N to-be-selected forwarding devices to be selected;
  • the first forwarding device obtains a second distance according to a radius of a coverage range of the ith to-be-selected forwarding device and a radius of the transmission destination, where the second distance is the ith to-be-selected forwarding device The sum of the radius of the coverage and the radius of the transmission destination;
  • the first forwarding device uses the ith to-be-selected forwarding device as the second forwarding device.
  • the first forwarding device selects the third forwarding device according to the target geographic location information and the saved geographic location information of the N selected forwarding devices, including:
  • the first forwarding device Determining, by the first forwarding device, a first distance according to a location of the i-th forwarding device and a location of a central point of the transmission destination, where the first distance is a location of a center point of the transmission destination a distance between the locations of the ith to-be-selected forwarding devices, where the ith to-be-selected forwarding device is any one of the N to-be-selected forwarding devices except the second forwarding device. ;
  • the first forwarding device obtains a second distance according to a radius of a coverage range of the ith to-be-selected forwarding device and a radius of the transmission destination, where the second distance is the ith to-be-selected forwarding device The sum of the radius of the coverage and the radius of the transmission destination;
  • the first forwarding device uses the ith to-be-selected forwarding device as the third forwarding device.
  • the first forwarding device may determine that the transmission destination has an intersection with the coverage of the second forwarding device, and the transmission destination and the coverage of the third forwarding device have an intersection; After the first forwarding device sends the packet to the second forwarding device and the third forwarding device, the second forwarding device and the third forwarding device broadcast the packet and then The terminal within the coverage of the second forwarding device and the terminal within the range of the third forwarding device can receive the message. a terminal that is within the intersection of the coverage of the transmission destination and the second forwarding device, and a terminal that is within the intersection of the coverage of the transmission destination and the third forwarding device, can receive the terminal Said message.
  • the first forwarding device The message is transmitted to the destination of the message by the second forwarding device and the third forwarding device.
  • the first forwarding device does not need to consider the distance between the first forwarding device and the transmission destination, and transmits the received packet to the transmission destination through the second forwarding device and the third forwarding device. Thereby, long-distance communication can be achieved.
  • Step 603 The first forwarding device sends the packet to the second forwarding device and the third forwarding device, respectively.
  • step 603 the method includes:
  • the first forwarding device sends the packet to the second forwarding device by using a tunnel established with the third forwarding device.
  • the sending, by the first forwarding device, the packet to the second forwarding device includes:
  • the first forwarding device acquires an IP address of the second forwarding device
  • the first forwarding device sends the IP packet to the second forwarding device according to the IP address of the second forwarding device.
  • the first forwarding device sends the packet to the third forwarding device, including:
  • the first forwarding device acquires an IP address of the third forwarding device
  • the first forwarding device sends the IP packet to the third forwarding device according to the IP address of the third forwarding device.
  • the second forwarding device After the step 603, after receiving the packet, the second forwarding device broadcasts the packet, and after receiving the packet, the third forwarding device broadcasts the packet, where When the first forwarding device sends the encapsulated IP packet to the second forwarding device and the third forwarding device, the second forwarding device and the third forwarding device respectively receive the received IP address.
  • the packet is decapsulated to generate an original packet, and the original packet is a packet received by the first forwarding device. Transmitting, by the second forwarding device, the original packet, so that the second forwarding device is overwritten
  • the terminal in the coverage area can receive the message; the third forwarding device broadcasts the original message, so that the terminal in the coverage of the third forwarding device can receive the message.
  • the terminal can receive the message; the coverage of the third forwarding device and the transmission
  • the terminal can receive the message, and the message is transmitted to the transmission destination.
  • the first forwarding device does not need to consider the distance between the first forwarding device and the transmission destination, and transmits the received packet to the the second forwarding device and the third forwarding device. In the transmission destination, the first forwarding device can thus implement long-distance communication.
  • the present invention further provides a first forwarding device, and the first forwarding device may adopt the method provided by the embodiment corresponding to FIG. 4, as shown in FIG.
  • the first forwarding device 700 further includes a processing unit 704.
  • the receiving unit 701 is configured to receive a packet that carries the target geographic location information that is sent by the terminal, where the target geographic location information is used to indicate a transmission destination of the packet.
  • the selecting unit 702 is configured to select a second forwarding device according to the target geographic location information and the saved geographic location information of the N selected forwarding devices, where the geographical location information of the second forwarding device is used to indicate the The coverage of the second forwarding device, the coverage of the second forwarding device has an intersection with the transmission destination, and N is an integer greater than or equal to 1.
  • the sending unit 703 is configured to send the packet to the second forwarding device.
  • the target geographical location information includes a location of a central point of the transmission destination and a radius of the transmission destination, and a geography of each forwarding device to be selected
  • the location information includes: a location of each of the to-be-selected forwarding devices and a radius of coverage of each of the to-be-selected forwarding devices;
  • the selecting unit 702 is specifically configured to:
  • the ith to-be-selected forwarding device is used as the second forwarding device.
  • the sending unit 703 is specifically configured to:
  • the first forwarding device 700 further includes a processing unit 704;
  • the processing unit 704 is configured to obtain an internet protocol IP address of the second forwarding device.
  • the processing unit 704 is configured to encapsulate the packet into an IP packet according to an IP address of the second forwarding device.
  • the sending unit 703 is specifically configured to send the IP packet to the second forwarding device according to the IP address of the second forwarding device.
  • the packet is a geographical network-based network system GeoNetworking packet
  • the target location information is carried in a packet header of the GeoNetworking packet.
  • the receiving unit 701 is further configured to receive geographic location information of the N to-be-selected forwarding devices sent by the controller; or
  • the receiving unit 701 is further configured to receive a routing protocol packet that is sent by the third forwarding device and carries the geographic location information of the N to-be-selected forwarding devices. .
  • the routing protocol packet is an open shortest path first OSPF protocol packet
  • the opaque information included in the OSPF protocol packet is used to carry the geographic location information of the N to be selected forwarding devices.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • a computer readable storage medium A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
  • the present invention further provides a first forwarding device, where the first forwarding device may adopt the method provided by the embodiment corresponding to FIG. 4, and may be the same device as the first forwarding device shown in FIG. .
  • the first forwarding device device 800 includes a communication interface 801, a processor 802, a bus 803, and a memory 804, where:
  • the communication interface 801, the processor 802, and the memory 804 are connected to each other through a bus 803.
  • the bus 803 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. Wait.
  • PCI peripheral component interconnect
  • EISA extended industry standard architecture
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 8, but it does not mean that there is only one bus or one type of bus.
  • the communication interface 801 is configured to communicate with the terminal and other forwarding devices, such as receiving the packet carrying the target geographical location information sent by the terminal, and sending the packet to the second forwarding device.
  • the processor 802 is configured to:
  • the target geographical location information includes a location of a central point of the transmission destination and a radius of the transmission destination, and a geography of each forwarding device to be selected
  • the location information includes: a location of each of the to-be-selected forwarding devices and a radius of coverage of each of the to-be-selected forwarding devices;
  • the second forwarding device including:
  • the ith to-be-selected forwarding device is used as the second forwarding device.
  • the first forwarding device 800 further includes a memory 804 for storing programs and the like.
  • the program can include program code, the program code including computer operating instructions.
  • the memory 804 may include a random access memory (RAM), and may also include a non-volatile memory such as at least one disk storage.
  • the processor 802 executes the application stored in the memory 804 to implement the above-described car network data transmission method.
  • first forwarding device The second forwarding device is selected according to the target geographical location information and the saved geographical location information of the N selected forwarding devices, where the receiving device sends the packet carrying the target geographic location information, where the The target geographic location information is used to indicate the transmission destination of the packet, the geographic location information of the second forwarding device is used to indicate the coverage of the second forwarding device, and the coverage of the second forwarding device is The first forwarding device sends the packet to the second forwarding device, so that the first forwarding device does not need to consider the distance between the first forwarding device and the transmission destination, and receives the packet.
  • the message is transmitted to the transmission destination by the second forwarding device, so that the first forwarding device can implement long-distance communication.

Abstract

Disclosed are an Internet of vehicles data transmission method and a first forwarding device, which are used for solving the problem that a traditional Internet of vehicles data transmission method cannot realize remote communications. The method comprises: a first forwarding device receiving a packet carrying target geographic location information sent by a terminal and then screening out a second forwarding device according to the target geographic location information and saved geographic location information about N forwarding devices to be selected, wherein there is an intersection between a transmission destination of the packet indicated by the target geographic location information and a coverage range of the second forwarding device indicated by the geographic location information about the second forwarding device; and the first forwarding device sending the packet to the second forwarding device. In this way, the first forwarding device transmits the received packet to the transmission destination via the second forwarding device without considering the distance between the first forwarding device and the transmission destination, so that the first forwarding device can realize remote communications.

Description

车联网数据传输方法及第一转发设备Vehicle network data transmission method and first forwarding device
本申请要求于2015年7月31日提交中国专利局、申请号为CN 201510466703.8、发明名称为“一种车联网数据传输方法及第一转发设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on July 31, 2015, the Chinese Patent Office, the application number is CN 201510466703.8, and the invention name is “a car network data transmission method and the first forwarding device”. The citations are incorporated herein by reference.
技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种车联网数据传输方法及第一转发设备。The present invention relates to the field of communications technologies, and in particular, to a car network data transmission method and a first forwarding device.
背景技术Background technique
随着社会的不断发展,汽车的普及程度也越来越高,为了提高车辆的安全,以及经济性,建立完善的智能交通系统(Intelligent Transportation System,ITS)是社会的发展需要。在ITS中,车辆与其它车辆或路侧单元(Roud Side Unit,RSU)等设备之间通信使用的网络成为车联网。车辆在行驶过程中,可以通过车联网将车辆的地理位置信息、故障信息等发送给指定范围的车辆。With the continuous development of the society, the popularity of automobiles is becoming higher and higher. In order to improve the safety and economy of vehicles, the establishment of a comprehensive Intelligent Transportation System (ITS) is a social development need. In ITS, a network used for communication between vehicles and other vehicles or devices such as Roud Side Units (RSUs) becomes the Internet of Vehicles. During the running of the vehicle, the geographical location information, fault information, and the like of the vehicle can be transmitted to the designated range of vehicles through the Internet of Vehicles.
传统的,欧洲标准委员会(European Telecommunications Standards Institute,ETSI)定义了基于电子电器工程师协会(Institute of Electrical and Electronics Engineers,IEEE)802.11P协议的ITS,该ITS支持基于地理位置的网络体系(GeoNetworking)支持多跳通信。如图1所示,车辆1的地理位置为(x,y),若车辆1需要向后方一定范围内的车辆5和车辆6发送故障信息,所述一定范围可以是车辆1后方500米的地理位置为圆心,以50米为半径的范围,则车辆1可广播携带源地理位置,比如表示为(x,y,r)、目标地理位置,比如表示为(x-500,y,50)和故障信息的GeoNetworking报文。接收到GeoNetworking报文的车辆,比如车辆5、车辆6或其他车辆,会判断是否处于GeoNetworking报文中的目标地理位置所表示的范围内。若接收到GeoNetworking报文的车辆确定处于目标地理位置所表示的范围内,则接收到GeoNetworking报文的车辆获得该报文所所携带的故障信息并进行相应处理。 若接收到GeoNetworking报文的车辆确定不处于目标地理位置所表示的范围内,则接收到GeoNetworking报文的车辆判断自身的地理位置是否处于源地理位置和目标地理位置两个地理位置之间。若接收到GeoNetworking报文的车辆的地理位置处于源地址和目标地理位置之间,则接收到GeoNetworking报文的车辆继续对该GeoNetworking报文进行转发。若接收到GeoNetworking报文的车辆的地理位置不处于源地址和目标地理位置之间,则接收到GeoNetworking报文的车辆判断自身的覆盖范围和目标地理位置所表示的范围是否有交集,且在存在交集的情况下,转发该GeoNetworking报文。如图中所示,车辆1无法直接将GeoNetworking报文发送给车辆5或车辆6,车辆1可通过车辆2、车辆3和车辆4,将GeoNetworking报文转发给车辆5或车辆6。Traditionally, the European Telecommunications Standards Institute (ETSI) defines ITS based on the Institute of Electrical and Electronics Engineers (IEEE) 802.11P protocol, which supports geo-networking (GeoNetworking) support. Multi-hop communication. As shown in FIG. 1, the geographic location of the vehicle 1 is (x, y). If the vehicle 1 needs to send fault information to the vehicle 5 and the vehicle 6 within a certain range, the certain range may be a geography 500 meters behind the vehicle 1. The position is the center of the circle, with a radius of 50 meters, the vehicle 1 can broadcast the geographical position of the carrying source, such as expressed as (x, y, r), the target geographical position, such as expressed as (x-500, y, 50) and GeoNetworking message for fault information. A vehicle that receives a GeoNetworking message, such as vehicle 5, vehicle 6, or other vehicle, determines whether it is within the range indicated by the target geographic location in the GeoNetworking message. If the vehicle that receives the GeoNetworking message is determined to be within the range indicated by the target geographic location, the vehicle that receives the GeoNetworking message obtains the fault information carried by the message and performs corresponding processing. If the vehicle that receives the GeoNetworking message determines that it is not within the range indicated by the target geographic location, the vehicle that receives the GeoNetworking message determines whether its geographic location is between the source geographic location and the target geographic location. If the geographic location of the vehicle that receives the GeoNetworking message is between the source address and the target geographic location, the vehicle that receives the GeoNetworking message continues to forward the GeoNetworking message. If the geographic location of the vehicle receiving the GeoNetworking message is not between the source address and the target geographic location, the vehicle receiving the GeoNetworking message determines whether the coverage range of the self network and the target geographical location intersect, and exists in the presence In the case of intersection, the GeoNetworking message is forwarded. As shown in the figure, the vehicle 1 cannot directly transmit the GeoNetworking message to the vehicle 5 or the vehicle 6, and the vehicle 1 can forward the GeoNetworking message to the vehicle 5 or the vehicle 6 via the vehicle 2, the vehicle 3, and the vehicle 4.
在图2所示的场景中,车辆A需要跟车辆D、车辆E或车辆F通信,车辆A可通过车辆C向车辆D发送GeoNetworking报文,由于车辆C和车辆D之间的距离超出了通信范围,车辆D仍然无法接收到该GeoNetworking报文,即无法实现远距离通信。In the scenario shown in FIG. 2, the vehicle A needs to communicate with the vehicle D, the vehicle E or the vehicle F, and the vehicle A can transmit the GeoNetworking message to the vehicle D through the vehicle C, since the distance between the vehicle C and the vehicle D exceeds the communication. Scope, vehicle D still can not receive the GeoNetworking message, that is, remote communication is not possible.
发明内容Summary of the invention
本发明实施例提供一种车联网数据传输方法及第一转发设备,有助于实现车联网中的远距离通信。Embodiments of the present invention provide a vehicle network data transmission method and a first forwarding device, which are helpful for realizing long-distance communication in a vehicle network.
本发明实施例提供的具体技术方案如下:The specific technical solutions provided by the embodiments of the present invention are as follows:
第一方面,提供一种车联网数据传输方法,包括:In a first aspect, a method for data transmission of a vehicle network is provided, including:
第一转发设备接收终端发送的携带目标地理位置信息的报文,所述目标地理位置信息用于指示所述报文的传输目的地;The first forwarding device receives the packet carrying the target geographical location information sent by the terminal, where the target geographical location information is used to indicate the transmission destination of the packet;
所述第一转发设备根据所述目标地理位置信息和保存的N个待选的转发设备的地理位置信息,选择第二转发设备,所述第二转发设备的地理位置信息用于指示所述第二转发设备的覆盖范围,所述第二转发设备的覆盖范围与所述传输目的地存在交集,N为大于或等于1的整数;The first forwarding device selects a second forwarding device according to the target geographic location information and the saved geographic location information of the N to be selected forwarding devices, where the geographical location information of the second forwarding device is used to indicate the first The coverage of the second forwarding device, where the coverage of the second forwarding device intersects with the transmission destination, where N is an integer greater than or equal to 1;
所述第一转发设备向所述第二转发设备发送所述报文。 The first forwarding device sends the packet to the second forwarding device.
结合第一方面,在第一方面的第一种可能的实现方式中,当所述传输目的地为一个区域时,所述目标地理位置信息包括所述传输目的地的中心点的位置和所述传输目的地的半径,每个待选的转发设备的地理位置信息包括:所述每个待选的转发设备的位置和所述每个待选的转发设备的覆盖范围的半径;With reference to the first aspect, in a first possible implementation manner of the first aspect, when the transmission destination is an area, the target geographical location information includes a location of a center point of the transmission destination, and the a radius of the transmission destination, the geographic location information of each of the forwarding devices to be selected includes: a location of each of the to-be-selected forwarding devices and a radius of coverage of each of the to-be-selected forwarding devices;
所述第一转发设备根据所述目标地理位置信息和保存的N个待选的转发设备的地理位置信息,选择第二转发设备,包括:The first forwarding device selects the second forwarding device according to the target geographic location information and the saved geographic location information of the N selected forwarding devices, including:
所述第一转发设备根据第i待选的转发设备的位置和所述传输目的地的中心点的位置,获得第一距离,所述第一距离为所述传输目的地的中心点的位置和所述第i待选的转发设备的位置间的距离,所述第i待选的转发设备为所述N个待选的转发设备中的任意一个待选的转发设备;Determining, by the first forwarding device, a first distance according to a location of the i-th forwarding device and a location of a central point of the transmission destination, where the first distance is a location of a center point of the transmission destination The distance between the locations of the ith to-be-selected forwarding devices, where the ith to-be-selected forwarding device is any one of the N to-be-selected forwarding devices to be selected;
所述第一转发设备根据所述第i待选的转发设备的覆盖范围的半径和所述传输目的地的半径,获得第二距离,所述第二距离为所述第i待选的转发设备的覆盖范围的半径和所述传输目的地的半径之和;The first forwarding device obtains a second distance according to a radius of a coverage range of the ith to-be-selected forwarding device and a radius of the transmission destination, where the second distance is the ith to-be-selected forwarding device The sum of the radius of the coverage and the radius of the transmission destination;
如果所述第一距离小于所述第二距离,则所述第一转发设备将所述第i待选的转发设备作为所述第二转发设备。If the first distance is smaller than the second distance, the first forwarding device uses the ith to-be-selected forwarding device as the second forwarding device.
结合第一方面或第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,所述第一转发设备向所述第二转发设备发送所述报文,包括:With the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the first forwarding device sends the packet to the second forwarding device, include:
所述第一转发设备通过与所述第二转发设备间建立的隧道,向所述第二转发设备发送所述报文。The first forwarding device sends the packet to the second forwarding device by using a tunnel established with the second forwarding device.
结合第一方面、或第一方面的第一种至第二种可能的实现方式中的任一种,在第一方面的第三种可能的实现方式中,所述第一转发设备向所述第二转发设备发送所述报文,包括:With reference to the first aspect, or any one of the first to the second possible implementation manners of the first aspect, in a third possible implementation manner of the first aspect, the first forwarding device Sending, by the second forwarding device, the packet includes:
所述第一转发设备获取所述第二转发设备的互联网协议IP地址;并Obtaining, by the first forwarding device, an internet protocol IP address of the second forwarding device;
根据所述第二转发设备的IP地址,将所述报文封装为IP报文;Encapsulating the packet as an IP packet according to the IP address of the second forwarding device;
所述第一转发设备根据所述第二转发设备的IP地址,向所述第二转发设备 发送所述IP报文。Transmitting, by the first forwarding device, the second forwarding device according to an IP address of the second forwarding device Send the IP packet.
结合第一方面、或第一方面的第一种至第三种可能的实现方式中的任意一种,在第一方面的第四种可能的实现方式中,所述报文为基于地理位置的网络体系GeoNetworking报文,所述GeoNetworking报文的报文头中携带所述目标地理位置信息。With reference to the first aspect, or any one of the first to third possible implementation manners of the first aspect, in a fourth possible implementation manner of the first aspect, The network system is a GeoNetworking message, and the target location information is carried in a packet header of the GeoNetworking message.
结合第一方面、或第一方面的第一种至第四种可能的实现方式中的任意一种,在第一方面的第五种可能的实现方式中,所述第一转发设备根据所述目标地理位置信息和保存的N个待选的转发设备的地理位置信息,选择第二转发设备之前,所述方法还包括:With reference to the first aspect, or any one of the first to fourth possible implementation manners of the first aspect, in a fifth possible implementation manner of the first aspect, The target location information and the saved geographic location information of the N to be selected forwarding devices, the method further includes:
所述第一转发设备接收控制器发送的所述N个待选的转发设备的地理位置信息;或者Receiving, by the first forwarding device, geographic location information of the N to-be-selected forwarding devices that are sent by the controller; or
所述第一转发设备接收第三转发设备发送的携带有所述N个待选的转发设备的地理位置信息的路由协议报文。The first forwarding device receives a routing protocol packet that is sent by the third forwarding device and carries the geographic location information of the N to-be-selected forwarding devices.
结合第一方面的第五种可能的实现方式,在第一方面的第六种可能的实现方式中,所述路由协议报文为开放式最短路径优先OSPF协议报文,所述OSPF协议报文包括的不透明信息Opaque Information用于携带所述N个待选的转发设备的地理位置信息。With reference to the fifth possible implementation manner of the first aspect, in a sixth possible implementation manner of the first aspect, the routing protocol packet is an open shortest path first OSPF protocol packet, where the OSPF protocol packet is The included opaque information Opaque Information is used to carry geographical location information of the N to-be-selected forwarding devices.
第二方面,提供了一种第一转发设备,包括:In a second aspect, a first forwarding device is provided, including:
接收单元,用于接收终端发送的携带目标地理位置信息的报文,所述目标地理位置信息用于指示所述报文的传输目的地;a receiving unit, configured to receive a packet that is sent by the terminal and carries the target geographic location information, where the target geographic location information is used to indicate a transmission destination of the packet;
选择单元,用于根据所述目标地理位置信息和保存的N个待选的转发设备的地理位置信息,选择第二转发设备,所述第二转发设备的地理位置信息用于指示所述第二转发设备的覆盖范围,所述第二转发设备的覆盖范围与所述传输目的地存在交集,N为大于或等于1的整数;a selecting unit, configured to select a second forwarding device according to the target geographic location information and the saved geographic location information of the N selected forwarding devices, where the geographical location information of the second forwarding device is used to indicate the second a coverage area of the forwarding device, where the coverage of the second forwarding device intersects with the transmission destination, where N is an integer greater than or equal to 1;
发送单元,用于向所述第二转发设备发送所述报文。And a sending unit, configured to send the message to the second forwarding device.
结合第二方面,在第二方面的第一种可能的实现方式中,当所述传输目的地为一个区域时,所述目标地理位置信息包括所述传输目的地的中心点的 位置和所述传输目的地的半径,每个待选的转发设备的地理位置信息包括:所述每个待选的转发设备的位置和所述每个待选的转发设备的覆盖范围的半径;With reference to the second aspect, in a first possible implementation manner of the second aspect, when the transmission destination is an area, the target geographic location information includes a center point of the transmission destination a location and a radius of the transmission destination, where the geographic location information of each of the to-be-selected forwarding devices includes: a location of each of the to-be-selected forwarding devices and a radius of coverage of each of the to-be-selected forwarding devices;
所述选择单元,具体用于:The selection unit is specifically configured to:
根据第i待选的转发设备的位置和所述传输目的地的中心点的位置,获得第一距离,所述第一距离为所述传输目的地的中心点的位置和所述第i待选的转发设备的位置间的距离,所述第i待选的转发设备为所述N个待选的转发设备中的任意一个待选的转发设备;Obtaining a first distance according to a location of the i-th forwarding device and a location of a center point of the transmission destination, where the first distance is a location of a center point of the transmission destination and the ith candidate is selected The distance between the locations of the forwarding devices, where the i-th forwarding device is the forwarding device of any one of the N to-be-selected forwarding devices;
根据所述第i待选的转发设备的覆盖范围的半径和所述传输目的地的半径,获得第二距离,所述第二距离为所述第i待选的转发设备的覆盖范围的半径和所述传输目的地的半径之和;Obtaining a second distance according to a radius of a coverage range of the ith to-be-selected forwarding device and a radius of the transmission destination, where the second distance is a radius of a coverage range of the ith to-be-selected forwarding device The sum of the radii of the transmission destinations;
如果所述第一距离小于所述第二距离,则将所述第i待选的转发设备作为所述第二转发设备。If the first distance is smaller than the second distance, the ith to-be-selected forwarding device is used as the second forwarding device.
结合第二方面或第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述发送单元,具体用于:With reference to the second aspect, or the first possible implementation manner of the second aspect, in the second possible implementation manner of the second aspect, the sending unit is specifically configured to:
通过所述第一转发设备与所述第二转发设备间建立的隧道,向所述第二转发设备发送所述报文。Transmitting the packet to the second forwarding device by using a tunnel established between the first forwarding device and the second forwarding device.
结合第二方面、或第二方面的第一种至第二种可能的实现方式中的任意一种,在第二方面的第三种可能的实现方式中,所述第一转发设备还包括处理单元;With reference to the second aspect, or any one of the first to the second possible implementation manners of the second aspect, in the third possible implementation manner of the second aspect, the first forwarding device further includes processing unit;
所述处理单元用于获取所述第二转发设备的互联网协议IP地址;The processing unit is configured to obtain an internet protocol IP address of the second forwarding device;
所述处理单元用于根据所述第二转发设备的IP地址,将所述报文封装为IP报文;The processing unit is configured to encapsulate the packet into an IP packet according to an IP address of the second forwarding device;
所述发送单元具体用于根据所述第二转发设备的IP地址,向所述第二转发设备发送所述IP报文。The sending unit is specifically configured to send the IP packet to the second forwarding device according to the IP address of the second forwarding device.
结合第二方面、或第二方面的第一种至第三种可能的实现方式中的任意一种,在第二方面的第四种可能的实现方式中,所述报文为基于地理位置的 网络体系GeoNetworking报文,所述GeoNetworking报文的报文头中携带所述目标地理位置信息。With reference to the second aspect, or any one of the first to third possible implementation manners of the second aspect, in a fourth possible implementation manner of the second aspect, The network system is a GeoNetworking message, and the target location information is carried in a packet header of the GeoNetworking message.
结合第二方面、或第二方面的第一种至第四种可能的实现方式中的任意一种,在第二方面的第五种可能的实现方式中,在所述选择单元用于选择第二转发设备之前,所述接收单元还用于接收控制器发送的所述N个待选的转发设备的地理位置信息;或者With reference to the second aspect, or any one of the first to fourth possible implementation manners of the second aspect, in the fifth possible implementation manner of the second aspect, Before the forwarding device, the receiving unit is further configured to receive geographic location information of the N to-be-selected forwarding devices sent by the controller; or
在所述选择单元用于选择第二转发设备之前,所述接收单元还用于接收第三转发设备发送的携带有所述N个待选的转发设备的地理位置信息的路由协议报文。Before the selecting unit is configured to select the second forwarding device, the receiving unit is further configured to receive a routing protocol packet that is sent by the third forwarding device and carries the geographic location information of the N to-be-selected forwarding devices.
结合第二方面的第五种可能的实现方式,在第二方面的第六种可能的实现方式中,所述路由协议报文为开放式最短路径优先OSPF协议报文,所述OSPF协议报文包括的不透明信息Opaque Information用于携带所述N个待选的转发设备的地理位置信息。With the fifth possible implementation of the second aspect, in a sixth possible implementation manner of the second aspect, the routing protocol packet is an open shortest path first OSPF protocol packet, where the OSPF protocol packet is The included opaque information Opaque Information is used to carry geographical location information of the N to-be-selected forwarding devices.
采用本发明提供的车联网数据传输方法,第一转发设备在接收终端发送的携带目标地理位置信息的报文后,根据所述目标地理位置信息和保存的N个待选的转发设备的地理位置信息,筛选出第二转发设备,其中,所述目标地理位置信息用于指示所述报文的传输目的地,所述第二转发设备的地理位置信息用于指示所述第二转发设备覆盖范围,所述第二转发设备的覆盖范围与所述传输目的地存在交集;所述第一转发设备向第二转发设备发送所述报文,这样,所述第一转发设备无需考虑所述第一转发设备与所述传输目的地的距离,将接收的报文,通过第二转发设备传输到所述传输目的地中,从而所述第一转发设备可以实现远距离通信。According to the vehicle network data transmission method provided by the present invention, after receiving the message carrying the target geographical location information sent by the terminal, the first forwarding device, according to the target geographical location information and the saved geographical position of the N selected forwarding devices And the second forwarding device is filtered out, wherein the target geographical location information is used to indicate a transmission destination of the packet, and the geographical location information of the second forwarding device is used to indicate the coverage of the second forwarding device. The coverage of the second forwarding device is different from the transmission destination; the first forwarding device sends the packet to the second forwarding device, so that the first forwarding device does not need to consider the first The distance between the forwarding device and the transmission destination is transmitted to the transmission destination by the second forwarding device, so that the first forwarding device can implement long-distance communication.
附图说明DRAWINGS
图1为现有技术提供的车联网数据传输示意图;1 is a schematic diagram of data transmission of a vehicle network provided by the prior art;
图2为现有技术提供的远距离通信场景示意图;2 is a schematic diagram of a long-distance communication scenario provided by the prior art;
图3为本发明实施例提供的一种车联网的网络架构示意图; 3 is a schematic diagram of a network architecture of a vehicle network according to an embodiment of the present invention;
图4为本发明实施例提供的一种车联网数据传输方法的流程图;4 is a flowchart of a method for data transmission of a vehicle network according to an embodiment of the present invention;
图5为本发明实施例提供的一种OSPF协议报文的格式示意图;FIG. 5 is a schematic diagram of a format of an OSPF protocol packet according to an embodiment of the present disclosure;
图6为本发明实施例提供的一种车联网数据传输方法的流程图;FIG. 6 is a flowchart of a vehicle network data transmission method according to an embodiment of the present invention;
图7为本发明实施例提供的一种第一转发设备的结构示意图;FIG. 7 is a schematic structural diagram of a first forwarding device according to an embodiment of the present disclosure;
图8为本发明实施例提供的一种第一转发设备的结构图。FIG. 8 is a structural diagram of a first forwarding device according to an embodiment of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。The present invention will be further described in detail with reference to the accompanying drawings, in which FIG. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例提供一种车联网数据传输方法及装置,用以解决现有技术中存在的多跳通信技术无法实现远距离通信的问题。其中,方法和装置是基于同一发明构思的,由于方法及装置解决问题的原理相似,因此装置与方法的实施可以相互参见,重复之处不再赘述。The embodiment of the invention provides a vehicle network data transmission method and device, which are used to solve the problem that the multi-hop communication technology existing in the prior art cannot realize long-distance communication. The method and the device are based on the same inventive concept. Since the principles of the method and the device for solving the problem are similar, the implementation of the device and the method can be referred to each other, and the repeated description is not repeated.
采用本发明技术方案,第一转发设备在接收终端发送的携带目标地理位置信息的报文后,根据所述目标地理位置信息和保存的N个待选的转发设备的地理位置信息中,筛选出第二转发设备,其中,所述目标地理位置信息用于指示所述报文的传输目的地,所述第二转发设备的地理位置信息用于指示所述第二转发设备覆盖范围,所述第二转发设备的覆盖范围与所述传输目的地存在交集;所述第一转发设备向第二转发设备发送所述报文,这样,所述第一转发设备无需考虑所述第一转发设备与所述传输目的地的距离,将接收的报文,通过第二转发设备传输到所述传输目的地中,从而所述第一转发设备可以实现远距离通信。According to the technical solution of the present invention, after the first forwarding device receives the packet carrying the target geographical location information, the first forwarding device filters out the geographical location information of the target and the saved geographic information of the N selected forwarding devices. a second forwarding device, wherein the target geographic location information is used to indicate a transmission destination of the packet, and the geographical location information of the second forwarding device is used to indicate a coverage of the second forwarding device, where The coverage of the second forwarding device is different from the transmission destination; the first forwarding device sends the packet to the second forwarding device, so that the first forwarding device does not need to consider the first forwarding device and the The distance of the transmission destination is transmitted to the transmission destination by the second forwarding device, so that the first forwarding device can implement long-distance communication.
参阅图3,本发明实施例提供了一种车联网的网络架构,包括:终端301、转发设备302和转发设备303。本发明实施例提供的车联网的网络架构在包括 所述转发设备302和所述转发设备303的基础上,还可包括至少一个转发设备,所述至少一个转发设备是除所述转发设备302和所述转发设备303之外的转发设备。Referring to FIG. 3, an embodiment of the present invention provides a network architecture of a car network, including: a terminal 301, a forwarding device 302, and a forwarding device 303. The network architecture of the vehicle networking provided by the embodiment of the present invention includes The forwarding device 302 and the forwarding device 303 may further include at least one forwarding device, and the at least one forwarding device is a forwarding device other than the forwarding device 302 and the forwarding device 303.
所述终端301,可以为车载单元(On Board Unit,OBU)、车辆中安装的全球定位系统(Global Position System,GPS)、无线射频识别(Radio Frequency Identification Devices,RFID)、传感器或者摄像头等装置。所述终端301用于收集或生成交通信息,所述交通信息用于表示交通状况或影响交通的因素,如前方道路故障,车辆故障等。所述终端301根据所述交通信息生成携带目标地理位置信息的报文。所述目标地理位置信息用于指示报文的传输目的地。所述终端301基于交通信息生成的所述报文可以是数据报文,也可以是控制报文,在此不进行具体限定。所述终端301广播所生成的所述报文。The terminal 301 may be an On Board Unit (OBU), a Global Position System (GPS) installed in a vehicle, a Radio Frequency Identification Devices (RFID), a sensor, or a camera. The terminal 301 is configured to collect or generate traffic information, which is used to indicate a traffic condition or a factor affecting traffic, such as a front road fault, a vehicle fault, and the like. The terminal 301 generates a packet carrying the target geographical location information according to the traffic information. The target geographical location information is used to indicate a transmission destination of the message. The packet generated by the terminal 301 based on the traffic information may be a data packet or a control packet, and is not specifically limited herein. The terminal 301 broadcasts the generated message.
所述转发设备302和所述转发设备303均可以为路由器,比如RSU,或具有路由功能的复合型的交换机等网络设备。The forwarding device 302 and the forwarding device 303 may each be a network device such as a router, such as an RSU, or a composite switch having a routing function.
所述转发设备302用于接收其覆盖范围内终端301广播的所述报文,并根据所述报文中携带的所述目标地理位置信息,将接收的所述报文转发至所述转发设备303。所述转发设备303的覆盖范围与所述传输目的地之间存在交集。The forwarding device 302 is configured to receive the packet that is broadcast by the terminal 301 in the coverage area, and forward the received packet to the forwarding device according to the target geographical location information carried in the packet. 303. There is an intersection between the coverage of the forwarding device 303 and the transmission destination.
所述转发设备303用于接收所述转发设备302发送的所述报文,并将接收的所述报文广播,使处于所述转发设备303的覆盖范围内的终端能够接收到所述报文。这样,在所述转发设备303的覆盖范围与所述传输目的地之间的交集内存在终端304时,所述终端304能够接收到所述报文,实现了所述报文传输至所述传输目的地。The forwarding device 303 is configured to receive the packet sent by the forwarding device 302, and broadcast the received packet, so that the terminal in the coverage of the forwarding device 303 can receive the packet. . In this way, when the intersection between the coverage of the forwarding device 303 and the transmission destination exists in the terminal 304, the terminal 304 can receive the message, and the message is transmitted to the transmission. destination.
所述转发设备302和所述转发设备303之间可以通过实体的物理链路传输所述报文,也可以通过无线的方式传输所述报文,本发明对此不做限定。The forwarding device 302 and the forwarding device 303 can transmit the packet through the physical link of the entity, and the packet can be transmitted in a wireless manner. The present invention does not limit this.
所述转发设备302和所述终端301之间通过无线的方式传输所述报文,同理,所述转发设备303和所述终端304之间也通过无线的方式传输所述报文。 The forwarding device 302 and the terminal 301 transmit the packet in a wireless manner. Similarly, the forwarding device 303 and the terminal 304 also transmit the packet in a wireless manner.
参阅图4所示,本发明实施例提供的一种车联网数据传输方法,从第一转发设备这一侧进行说明。本发明实施例涉及的第一转发设备、待选的转发设备,以及第三转发设备等,可以为路由器,比如RSU,或具有路由功能的复合型的交换机等网络设备。该方法包括:Referring to FIG. 4, a method for data transmission of a vehicle network according to an embodiment of the present invention is described from the side of the first forwarding device. The first forwarding device, the to-be-selected forwarding device, and the third forwarding device may be a network device such as a router, such as an RSU, or a composite switch having a routing function. The method includes:
步骤401:第一转发设备接收终端发送的携带目标地理位置信息的报文,所述目标地理位置信息用于指示所述报文的传输目的地。Step 401: The first forwarding device receives a packet that carries the target geographical location information and is sent by the terminal, where the target geographic location information is used to indicate a transmission destination of the packet.
所述第一转发设备为图3所示的车联网的网络架构中的转发设备302,所述终端为图3所示的车联网的网络架构中的终端301。The first forwarding device is the forwarding device 302 in the network architecture of the car network shown in FIG. 3, and the terminal is the terminal 301 in the network architecture of the car network shown in FIG.
举例说明,所述报文可以为数据报文或者控制报文,本发明对此不作限定。所述终端在收集或生成交通信息后,所述终端需要将所述交通信息发送到传输目的地,如该终端后方500米的区域范围或该终端后方500米的地点,其中所述传输目的地可以为所述终端默认的或者所述终端设置的。所述终端根据所述传输目的地确定目的地理位置信息。所述终端根据所述交通信息和所述目标地理位置信息,生成报文。可选的,所述报文为GeoNetworking报文,所述GeoNetworking报文的报文头中携带所述目标地理位置信息。所述终端广播所生成的所述报文。在所述终端处于所述第一转发设备的覆盖范围内时,所述第一转发设备会接收所述终端发送的携带目标地理位置信息的报文。For example, the packet may be a data packet or a control packet, which is not limited in the present invention. After the terminal collects or generates traffic information, the terminal needs to send the traffic information to a transmission destination, such as an area within 500 meters behind the terminal or a location 500 meters behind the terminal, where the transmission destination It can be set by default for the terminal or by the terminal. The terminal determines the destination geographic location information according to the transmission destination. The terminal generates a message according to the traffic information and the target geographical location information. Optionally, the packet is a GeoNetworking packet, and the target location information is carried in a packet header of the GeoNetworking packet. The terminal broadcasts the generated message. When the terminal is in the coverage of the first forwarding device, the first forwarding device receives the packet carrying the target geographic location information sent by the terminal.
其中,所述报文中携带的目标地理位置信息指示的所述报文的传输目的地可以为一个区域,或者为一个地点。当所述传输目的地为一个区域时,所述传输目的地可以为一个圆形区域,或者矩形区域,或者其它的多边形区域,或者椭圆,或者其他不规则的图形区域,本发明对此不做限定。The destination of the packet indicated by the target geographic location information carried in the packet may be an area or a location. When the transmission destination is an area, the transmission destination may be a circular area, or a rectangular area, or other polygonal area, or an ellipse, or other irregular graphic area, and the present invention does not limited.
当所述传输目的地为一个圆形区域时,所述目标地理位置信息可以包含所述传输目的地的中心点的位置以及所述传输目的地的半径。所述传输目的地的中心点的位置可以为经纬度信息或坐标信息。When the transmission destination is a circular area, the target geographical location information may include a location of a center point of the transmission destination and a radius of the transmission destination. The position of the center point of the transmission destination may be latitude and longitude information or coordinate information.
当所述传输目的地为一个矩形区域时,所述目标地理位置信息可以包含所述传输目的地的中心点的位置、角度、第一距离以及第二距离。所述传输 目的地的中心点的位置可以为经纬度信息或坐标信息。所述角度用于确定所述传输目的地的某一条边与指定方向的夹角。所述第一距离为所述传输目的地的相对的两条边与所述传输目的地的中心点的位置之间的距离,所述第二距离为所述传输目的地的相对的另外两条边与所述传输目的地的中心点的位置之间的距离。When the transmission destination is a rectangular area, the target geographical location information may include a position, an angle, a first distance, and a second distance of a center point of the transmission destination. The transmission The position of the center point of the destination may be latitude and longitude information or coordinate information. The angle is used to determine an angle between a certain side of the transmission destination and a specified direction. The first distance is a distance between opposite sides of the transmission destination and a position of a center point of the transmission destination, and the second distance is a relative two of the transmission destinations The distance between the edge and the position of the center point of the transmission destination.
当所述传输目的地为一个其它的多边形区域时,所述目标地理位置信息可以包含至少三个经纬度信息或至少三个坐标信息。一个经纬度信息表示所述传输目的地的一个顶点的位置。一个坐标信息也表示所述传输目的地的一个顶点的位置。When the transmission destination is one other polygonal region, the target geographical location information may include at least three latitude and longitude information or at least three coordinate information. A latitude and longitude information indicates the position of one vertex of the transmission destination. A coordinate information also indicates the position of one vertex of the transmission destination.
当所述传输目的地为一个地点时,所述目标地理位置信息可以包含一个经纬度信息或一个坐标信息。所述经纬度信息用于表示所述传输目的地的位置,所述坐标信息也用于表示所述传输目的地的位置。When the transmission destination is a location, the target geographic location information may include one latitude and longitude information or one coordinate information. The latitude and longitude information is used to indicate the location of the transmission destination, and the coordinate information is also used to indicate the location of the transmission destination.
可选的,所述坐标信息可以通过横轴数值和纵轴数值,表示在平面中所述传输目的地的中心点的位置、所述传输目的地的第一个顶点的位置,或所述传输目的地的位置。所述坐标信息还可以通过横轴数值、纵轴数据以及Z轴数据,表示在空间中所述传输目的地的中心点的位置、所述传输目的地的第一个顶点的位置或所述传输目的地的位置。Optionally, the coordinate information may indicate a position of a center point of the transmission destination, a position of a first vertex of the transmission destination, or the transmission in a plane by a horizontal axis value and a vertical axis value. The location of the destination. The coordinate information may also represent a position of a center point of the transmission destination, a position of a first vertex of the transmission destination, or the transmission in a space by a horizontal axis value, a vertical axis data, and Z-axis data. The location of the destination.
可选的,当所述传输目的地为一个区域、且所述报文为GeoNetworking报文时,所述GeoNetworking报文的格式为地理范围广播(Geographically-Scoped Broadcast,GBC)封装格式或地理范围任播(Geographically-Scoped Anycast,GAC)封装格式。当所述传输目的地为一个地点、且所述报文为GeoNetworking报文时,所述GeoNetworking报文的格式为地理范围单播(Geographically-Scoped Unicast,GUC)封装格式。Optionally, when the transmission destination is an area, and the packet is a GeoNetworking packet, the format of the GeoNetworking packet is a Geographically-Scoped Broadcast (GBC) encapsulation format or a geographical range. Geographically-Scoped Anycast (GAC) encapsulation format. When the transmission destination is a location and the packet is a GeoNetworking packet, the format of the GeoNetworking packet is a Geographically-Scoped Unicast (GUC) encapsulation format.
步骤402:所述第一转发设备根据所述目标地理位置信息和保存的N个待选的转发设备的地理位置信息,选择第二转发设备,所述第二转发设备的地理位置信息用于指示所述第第二转发设备的覆盖范围,所述第二转发设备的覆盖范围与所述传输目的地存在交集,N为大于或等于1的整数。 Step 402: The first forwarding device selects a second forwarding device according to the target geographic location information and the saved geographic location information of the N selected forwarding devices, where the geographical location information of the second forwarding device is used to indicate The coverage of the second forwarding device, the coverage of the second forwarding device has an intersection with the transmission destination, and N is an integer greater than or equal to 1.
所述第二转发设备为图3所示的车联网的网络架构中的转发设备303。The second forwarding device is the forwarding device 303 in the network architecture of the car network shown in FIG. 3.
其中,第二转发设备的覆盖范围为所述第二转发设备在广播报文时能够接收到所述第二转发设备广播的报文的终端所在的范围。目标地理位置信息指示的传输目的地与所述第二转发设备的覆盖范围有交集。所述第一转发设备将所述报文发送至所述第二转发设备后,所述第二转发设备可继续广播所述报文。比如:所述第二转发设备向所述第二转发设备的覆盖范围内广播所述报文,处于所述交集内的终端即可接收到该报文。因此,所述第一转发设备通过向所述第二转发设备发送所述报文以使所述第二转发设备广播所述报文,实现了将所述报文传输至所述传输目的地。The coverage of the second forwarding device is a range in which the second forwarding device can receive the packet broadcast by the second forwarding device when the second forwarding device broadcasts the packet. The transmission destination indicated by the target geographical location information has an intersection with the coverage of the second forwarding device. After the first forwarding device sends the packet to the second forwarding device, the second forwarding device may continue to broadcast the packet. For example, the second forwarding device broadcasts the packet to the coverage of the second forwarding device, and the terminal in the intersection can receive the packet. Therefore, the first forwarding device transmits the message to the transmission destination by sending the message to the second forwarding device to enable the second forwarding device to broadcast the message.
可选的,在步骤402中,一个待选的转发设备的地理位置信息包含一个经纬度信息或一个坐标信息。所述经纬度信息表示所述待选的转发设备的位置,所述坐标信息也表示所述待选的转发设备的位置。所述第一转发设备可以根据所述待选的转发设备的位置以及所述第一转发设备中预设的所述待选的转发设备的覆盖范围的半径,确定所述待选的转发设备的覆盖范围。Optionally, in step 402, the geographic location information of a forwarding device to be selected includes a latitude and longitude information or a coordinate information. The latitude and longitude information indicates a location of the to-be-selected forwarding device, and the coordinate information also indicates a location of the to-be-selected forwarding device. Determining, by the first forwarding device, the location of the to-be-selected forwarding device according to the location of the to-be-selected forwarding device and the radius of coverage of the to-be-selected forwarding device preset in the first forwarding device Coverage.
所述待选的转发设备的地理位置信息还可以包含所述待选的转发设备的经纬度信息和所述待选的转发设备的覆盖范围的半径,或者所述待选的转发设备的地理位置信息还可以包含所述待选的转发设备的坐标信息和所述待选的转发设备的覆盖范围的半径。所述经纬度信息表示所述待选的转发设备的位置,所述坐标信息也表示所述待选的转发设备的位置。所述第一转发设备可以根据所述待选的转发设备的位置以及所述待选的转发设备的覆盖范围的半径,确定所述待选的转发设备的覆盖范围。The geographic location information of the forwarding device to be selected may further include the latitude and longitude information of the forwarding device to be selected and the radius of the coverage of the forwarding device to be selected, or the geographic location information of the forwarding device to be selected. The coordinate information of the forwarding device to be selected and the radius of the coverage of the forwarding device to be selected may also be included. The latitude and longitude information indicates a location of the to-be-selected forwarding device, and the coordinate information also indicates a location of the to-be-selected forwarding device. The first forwarding device may determine the coverage of the to-be-selected forwarding device according to the location of the to-be-selected forwarding device and the radius of the coverage of the to-be-selected forwarding device.
所述待选的转发设备的地理位置信息还可以包含至少三个经纬度信息至少三个坐标信息。一个经纬度信息表示所述待选的转发设备的覆盖范围中一个顶点的位置。一个坐标信息也表示所述待选的转发设备的覆盖范围中一个顶点的位置。这样,所述第一转发设备可以根据所述待选的转发设备的覆盖范围中所有顶点的位置,确定所述待选的转发设备的覆盖范围。The geographic location information of the forwarding device to be selected may further include at least three coordinate information of at least three latitude and longitude information. A latitude and longitude information indicates the position of one vertex in the coverage of the to-be-selected forwarding device. A coordinate information also indicates the location of one vertex in the coverage of the forwarding device to be selected. In this way, the first forwarding device may determine the coverage of the to-be-selected forwarding device according to the location of all the vertices in the coverage of the to-be-selected forwarding device.
在本实施例中,仅以待选的转发设备的地理位置信息包含坐标信息为例。 In this embodiment, only the geographic location information of the forwarding device to be selected includes coordinate information as an example.
所述N个待选的转发设备的地理位置信息可以为所述第一转发设备收集并保存的,或者为所述第一转发设备从其它设备获取。The geographic location information of the N forwarding devices that are to be selected may be collected and saved by the first forwarding device, or obtained by the first forwarding device from other devices.
当所述N个待选的转发设备的地理位置信息为所述第一转发设备从其它设备获取时,可选的,在执行步骤402之前,还包括:When the location information of the N to be selected is obtained by the first forwarding device from the other device, optionally, before performing step 402, the method further includes:
所述第一转发设备获取所述N个待选的转发设备的地理位置信息,并保存。其中,所述N个待选的转发设备为车联网中除所述第一转发转发设备以外的转发设备。The first forwarding device acquires geographic location information of the N to-be-selected forwarding devices, and saves the information. The N forwarding devices to be selected are forwarding devices other than the first forwarding and forwarding device in the Internet of Vehicles.
可选的,所述第一转发设备获取所述N个待选的转发设备的地理位置信息,包括以下几种方式:Optionally, the first forwarding device acquires geographic location information of the N to-be-selected forwarding devices, including the following methods:
第一种方式:所述第一转发设备接收控制器发送的所述N个待选的转发设备的地理位置信息;The first mode: the first forwarding device receives the geographic location information of the N to-be-selected forwarding devices sent by the controller;
第二种方式:所述第一转发设备接收第三转发设备发送的携带有所述N个待选的转发设备的地理位置信息的路由协议报文。所述第三转发设备为车联网中除所述第一转发设备以外的任意一个转发设备。The second mode: the first forwarding device receives a routing protocol packet that is sent by the third forwarding device and carries the geographic location information of the N to-be-selected forwarding devices. The third forwarding device is any one of the forwarding devices except the first forwarding device in the Internet of Vehicles.
可选的,所述控制器或所述第三转发设备在发送所述N个待选的转发设备的地理位置信息的同时,之前或之后,所述控制器或所述第三转发设备还可以向所述第一转发设备发送所述N个待选的转发设备的互联网协议(Internet Protocol,IP)地址。可选的,所述控制器或所述第三转发设备在发送所述N个待选的转发设备的地理位置信息以及所述N个待选的转发设备的IP地址时,可以同时发送N个待选转发设备的地理位置信息与IP地址的对应关系,对此,本发明不作限定。Optionally, the controller or the third forwarding device may also send the location information of the N to-be-selected forwarding devices before or after the controller or the third forwarding device. Sending, by the first forwarding device, an Internet Protocol (IP) address of the N to-be-selected forwarding devices. Optionally, the controller or the third forwarding device may send N at the same time when transmitting the geographical location information of the N to-be-selected forwarding devices and the IP addresses of the N to-be-selected forwarding devices. The correspondence between the geographic location information of the forwarding device and the IP address is not limited.
在第一种方式中,图3所示的车联网的网络架构中还包括控制器,车联网中的每个转发设备均会向所述控制器发送自身的地理位置信息和IP地址。可选的,所述每个转发设备可以采用网络配置(Network Configuration,netconf)协议,或者开放式流(OpenFlow)协议,向所述控制器发送自身的地理位置信息和IP地址,本发明对此不做限定。所述控制器在接收到所述每个转发设备的地理位置信息和IP地址后,可以采用netconf协议或OpenFlow 协议,分别向任意一个转发设备发送除所述任意一个转发设备以外的其它转发设备的地理位置信息和IP地址。这样,所述车联网中的每个转发设备均能获取所述车联网中其它转发设备的地理位置信息和IP地址,所述其它转发设备即为待选的转发设备。每个转发设备将获取的每个待选的转发设备的地理位置信息和IP地址对应起来,例如表1所示的转发设备1中保存的待选的转发设备的地理位置信息和IP地址。In the first mode, the network architecture of the Internet of Vehicles shown in FIG. 3 further includes a controller, and each forwarding device in the car network transmits its own geographical location information and an IP address to the controller. Optionally, each forwarding device may use a Network Configuration (netconf) protocol or an OpenFlow protocol to send its own geographical location information and an IP address to the controller. Not limited. After receiving the geographical location information and the IP address of each forwarding device, the controller may adopt the netconf protocol or OpenFlow. The protocol sends the geographical location information and the IP address of the forwarding device other than the any one of the forwarding devices to any one of the forwarding devices. In this way, each forwarding device in the car network can obtain the geographical location information and the IP address of the other forwarding devices in the car network, and the other forwarding devices are the forwarding devices to be selected. Each forwarding device associates the acquired geographic location information of the forwarding device with the IP address, such as the geographic location information and the IP address of the forwarding device to be selected stored in the forwarding device 1 shown in Table 1.
可选的,所述控制器可以通过一个数据包,向任意一个转发设备发送除所述任意一个转发设备以外的其它转发设备的地理位置信息和IP地址。所述数据包携带了所述其它转发设备的地理位置信息和IP地址。Optionally, the controller may send, by using one data packet, geographical location information and an IP address of a forwarding device other than the any one of the forwarding devices to any one of the forwarding devices. The data packet carries geographic location information and an IP address of the other forwarding device.
可选的,所述控制器还可以通过多个数据包,向任意一个转发设备发送除所述任意一个转发设备以外的其它转发设备的地理位置信息和IP地址,例如,所述控制器将第二转发设备地理位置信息和IP地址封装到第一数据包,并将第三转发设备地理位置信息和IP地址封装到第二数据包,然后所述控制器向所述第一转发设备发送第一数据包和第二数据包。Optionally, the controller may further send, by using multiple data packets, geographic location information and an IP address of the forwarding device except any one of the forwarding devices to any one of the forwarding devices, for example, the controller The second forwarding device geographical location information and the IP address are encapsulated into the first data packet, and the third forwarding device geographical location information and the IP address are encapsulated into the second data packet, and then the controller sends the first to the first forwarding device. The packet and the second packet.
表1Table 1
待选的转发设备的地理位置信息Geographic location information of the forwarding device to be selected IP地址IP address 备注Remarks
(x2,y2),r2(x2, y2), r2 2001:2::22001:2::2 转发设备2Forwarding device 2
(x3,y3),r3(x3, y3), r3 2001:3::22001:3::2 转发设备3Forwarding device 3
(x4,y4),r4(x4, y4), r4 2001:4::22001:4::2 转发设备4Forwarding device 4
其中,坐标信息(xi,yi)为待选的转发设备i的位置,ri为所述待选的转发设备i的覆盖范围的半径,i为1,2,3,4。The coordinate information (xi, yi) is the location of the forwarding device i to be selected, and ri is the radius of the coverage of the forwarding device i to be selected, i is 1, 2, 3, 4.
在第二种方式中,携带有所述N个待选的转发设备的地理位置信息的路由协议报文可以为开放式最短路径优先(Open Shortest Path First,OSPF)协议报文或边界网关协议(Border Gateway Protocol,BGP)报文。所述OSPF协议报文的格式可以为链路状态广播(Link-State Advertisement,LSA)或不透明链路状态广播(Opaque Link-State Advertisement,OLSA),在车联网中设 置有第三转发设备,所述第三转发设备为指定路由器(Designated Router,DR)或任意一个转发设备,所述第三转发设备为除所述第一转发设备以外的任意一个转发设备。所述车联网中的除所述第三转发设备以外的其它转发设备均会向所述第三转发设备发送包含自身的地理位置信息和IP地址的路由协议报文。所述第三转发设备接收其它转发设备的地理位置信息和IP地址。所述第三转发设备获取自身的地理位置信息和IP地址后,所述第三转发设备再向任意一个转发设备发送包含所述任意一个转发设备的下一跳转发设备的地理位置信息和IP地址的路由协议报文。所述任意一个转发设备的下一跳转发设备即为除所述任意一个转发设备以外的其它转发设备。这样,所述车联网中的每个转发设备均能获取所述车联网中其它转发设备的地理位置信息和IP地址,所述其它转发设备即为待选的转发设备。所述每个转发设备将获取的所述每个待选的转发设备的地理位置信息和IP地址对应起来,例如表2所示的转发设备1中保存的待选的转发设备的地理位置信息和IP地址。In the second mode, the routing protocol packet carrying the geographic location information of the N to be selected forwarding device may be an Open Shortest Path First (OSPF) protocol packet or a Border Gateway Protocol ( Border Gateway Protocol (BGP) packet. The format of the OSPF protocol packet may be Link-State Advertisement (LSA) or Opaque Link-State Advertisement (OLSA), which is set in the Internet of Vehicles. The third forwarding device is configured as a designated router (DR) or any one of the forwarding devices, and the third forwarding device is any one of the forwarding devices except the first forwarding device. The forwarding device except the third forwarding device in the car network sends a routing protocol message including the geographical location information and the IP address of the third forwarding device to the third forwarding device. The third forwarding device receives geographical location information and an IP address of other forwarding devices. After the third forwarding device obtains the geographical location information and the IP address of the forwarding device, the third forwarding device sends the geographic location information and the IP address of the next hop forwarding device including the any one of the forwarding devices to any one of the forwarding devices. Routing protocol packet for the address. The next hop forwarding device of any one of the forwarding devices is a forwarding device other than any one of the forwarding devices. In this way, each forwarding device in the car network can obtain the geographical location information and the IP address of the other forwarding devices in the car network, and the other forwarding devices are the forwarding devices to be selected. Each of the forwarding devices associates the acquired geographic location information of each of the to-be-selected forwarding devices with an IP address, such as the geographic location information of the forwarding device to be selected and saved in the forwarding device 1 shown in Table 2. IP address.
表2Table 2
待选的转发设备的地理位置信息Geographic location information of the forwarding device to be selected IP地址IP address 接口interface 备注Remarks
(x2,y2),r2(x2, y2), r2 2001:2::22001:2::2 IF0:2001:1::2IF0:2001:1::2 转发设备2Forwarding device 2
(x3,y3),r3(x3, y3), r3 2001:3::22001:3::2 IF0:2001:1::2IF0:2001:1::2 转发设备3Forwarding device 3
(x4,y4),r4(x4, y4), r4 2001:4::22001:4::2 IF0:2001:1::2IF0:2001:1::2 转发设备4Forwarding device 4
坐标信息(xi,yi)为待选的转发设备i的位置,ri为所述待选的转发设备i的覆盖范围的半径,i为1,2,3,4。The coordinate information (xi, yi) is the location of the forwarding device i to be selected, and ri is the radius of the coverage of the forwarding device i to be selected, i is 1, 2, 3, 4.
当携带有所述N个待选的转发设备的地理位置信息的路由协议报文为OSPF协议报文时,所述OSPF协议报文的格式参阅图5所示,其中,所述OSPF协议报文为OLSA格式,所述OSPF协议报文中的LSA类型(LS Type)与传统的OSPF协议报文中的取值不同,且所述OSPF协议报文中的不透明类型(Opaque Type)也与传统的OSPF协议报文中的取值不同,所述OSPF协议报文中的LSA类型和不透明类型均需要针对传输待选的转发设备的地理位 置信息和IP地址而进行重新定义。所述OSPF协议报文中的通告路由器(Advertising Router)字段用于携带至少一个待选的转发设备的IP地址,所述OSPF协议报文中的不透明信息(Opaque Information)字段用于携带至少一个待选的转发设备的地理位置信息。When the routing protocol packet carrying the geographic location information of the N to be selected is an OSPF protocol packet, the format of the OSPF protocol packet is as shown in FIG. 5, where the OSPF protocol packet is used. In the OLSA format, the LSA type (LS Type) in the OSPF packet is different from the value in the traditional OSPF protocol packet, and the opaque type (Opaque Type) in the OSPF protocol packet is also different from the traditional one. The value of the OSPF packet is different. The LSA type and the opaque type of the OSPF packet need to be transmitted to the geographic location of the forwarding device to be selected. Redefine the information and IP address. The advertised router field in the OSPF protocol packet is used to carry the IP address of the at least one forwarding device to be selected, and the opaque information field in the OSPF protocol packet is used to carry at least one to be carried. Geographic location information of the selected forwarding device.
当所述目标地理位置信息指示的传输目的地为一个地点时,所述目标地理位置信息包含一个坐标信息,所述坐标信息也用于表示所述传输目的地的位置,每个待选的转发设备的地理位置信息包括:所述每个待选的转发设备的位置和所述每个待选的转发设备的覆盖范围的半径。步骤402,包括以下步骤:When the transmission destination indicated by the target geographical location information is a location, the target geographical location information includes coordinate information, and the coordinate information is also used to indicate the location of the transmission destination, and each to-be-selected forwarding The geographic location information of the device includes: a location of each of the to-be-selected forwarding devices and a radius of coverage of each of the to-be-selected forwarding devices. Step 402 includes the following steps:
所述第一转发设备根据第i待选的转发设备的位置和所述传输目的地的位置,获得第一距离,所述第一距离为所述传输目的地的位置和所述第i个待选的转发设备的位置间的距离,所述第i待选的转发设备为所述N个待选的转发设备中的任意一个待选的转发设备;The first forwarding device obtains a first distance according to a location of the i-th forwarding device and a location of the transmission destination, where the first distance is a location of the transmission destination and the i-th waiting The distance between the locations of the selected forwarding devices, where the ith to-be-selected forwarding device is any one of the N to-be-selected forwarding devices to be selected;
如果所述第一距离小于所述第i待选的转发设备的覆盖范围的半径,则所述第一转发设备将所述第i待选的转发设备作为所述第二转发设备。If the first distance is smaller than the radius of the coverage of the ith to-be-selected forwarding device, the first forwarding device uses the ith to-be-selected forwarding device as the second forwarding device.
当目标地理位置信息指示的传输目的地为一个圆形区域时,目标地理位置信息包括:所述传输目的地的中心点的位置和所述传输目的地的半径,如所述传输目的地的中心点的位置为(0,500),所述传输目的地的半径为100,目标地理位置信息指示以(0,500)为圆心,以100为半径的圆为传输目的地;When the transmission destination indicated by the target geographical location information is a circular area, the target geographical location information includes: a location of a central point of the transmission destination and a radius of the transmission destination, such as a center of the transmission destination The position of the point is (0,500), the radius of the transmission destination is 100, the target geographical position information indicates a circle with (0,500) as a center, and a circle with a radius of 100 as a transmission destination;
每个待选的转发设备的地理位置包括:所述每个每个待选的转发设备的位置和所述每个待选的转发设备的覆盖范围的半径,例如某个待选的转发设备的位置为(0,100),所述待选的转发设备的覆盖范围的半径为200,所述待选的转发设备的地理位置指示以以(0,100)为圆心,以200为半径的圆为传输目的地,以上数据的单位可以为米。可选的,执行步骤402,包括以下步骤:The geographic location of each of the to-be-selected forwarding devices includes: a location of each of the to-be-selected forwarding devices and a radius of coverage of each of the to-be-selected forwarding devices, such as a forwarding device to be selected The location is (0, 100), the radius of the coverage of the forwarding device to be selected is 200, and the geographic location indication of the forwarding device to be selected is a circle with a radius of 200 as a transmission destination with a circle of (0, 100) as a center. The unit of the above data can be meters. Optionally, step 402 is performed, including the following steps:
所述第一转发设备根据第i待选的转发设备的位置和所述传输目的地的中心点的位置,获得第一距离,所述第一距离为所述传输目的地的中心点的位置和所述第i待选的转发设备的位置间的距离,所述第i待选的转发设备为 所述N个待选的转发设备中的任意一个待选的转发设备;Determining, by the first forwarding device, a first distance according to a location of the i-th forwarding device and a location of a central point of the transmission destination, where the first distance is a location of a center point of the transmission destination The distance between the locations of the ith to-be-selected forwarding devices, where the ith to-be-selected forwarding device is Any one of the N selected forwarding devices to be selected;
所述第一转发设备根据所述第i待选的转发设备的覆盖范围的半径和所述传输目的地的半径,获得第二距离,所述第二距离为所述第i待选的转发设备的覆盖范围的半径和所述传输目的地的半径之和;The first forwarding device obtains a second distance according to a radius of a coverage range of the ith to-be-selected forwarding device and a radius of the transmission destination, where the second distance is the ith to-be-selected forwarding device The sum of the radius of the coverage and the radius of the transmission destination;
如果所述第一距离小于所述第二距离,则所述第一转发设备将所述第i待选的转发设备作为所述第二转发设备。If the first distance is smaller than the second distance, the first forwarding device uses the ith to-be-selected forwarding device as the second forwarding device.
其中,当所述第一距离小于所述第二距离时,所述第i待选的转发设备的覆盖范围与所述传输目的地存在交集。Wherein, when the first distance is smaller than the second distance, the coverage of the ith to-be-selected forwarding device and the transmission destination have an intersection.
例1,转发设备1接收携带目标地理位置信息的报文,所述目标地理位置信息指示所述报文的传输目的地,所述目标地理位置信息包括所述传输目的地的中心点的位置为(0,450),所述传输目的地的半径为50,转发设备1中保存的3个待选的转发设备的地理位置信息,如表3所示,For example, the forwarding device 1 receives a message carrying the target geographical location information, where the target geographical location information indicates a transmission destination of the message, and the target geographical location information includes a location of a central point of the transmission destination. (0,450), the radius of the transmission destination is 50, and the geographical location information of the three forwarding devices to be selected stored in the forwarding device 1 is as shown in Table 3.
表3table 3
Figure PCTCN2016091780-appb-000001
Figure PCTCN2016091780-appb-000001
其中,转发设备2的地理位置信息中的0为表1中的x2,转发设备2的地理位置信息中的500为表1中的y2,转发设备2的地理位置信息中的100为表1中的r2。0 in the geographical location information of the forwarding device 2 is x2 in the table 1, 500 in the geographical location information of the forwarding device 2 is y2 in the table 1, and 100 in the geographical location information of the forwarding device 2 is in the table 1. R2.
转发设备1可采用本发明实施例提供的方法,获得表4中的第一距离和第二距离,在此不再赘述。The forwarding device 1 can obtain the first distance and the second distance in Table 4 by using the method provided by the embodiment of the present invention, and details are not described herein again.
表4 Table 4
待选的转发设备Pending forwarding device 第一距离First distance 第二距离Second distance
转发设备2Forwarding device 2 5050 150150
转发设备3Forwarding device 3 502502 150150
转发设备4Forwarding device 4 538538 150150
由表4可知,转发设备2对应的第一距离小于第二距离,表示所述转发设备2的覆盖范围与所述传输目的地存在交集,且由以上坐标数据可知,所述传输目的地完全在所述转发设备2的覆盖范围内。因此,所述转发设备1选择所述转发设备2,并向所述转发设备2发送所述报文。It can be seen from Table 4 that the first distance corresponding to the forwarding device 2 is smaller than the second distance, indicating that the coverage of the forwarding device 2 has an intersection with the transmission destination, and it is known from the above coordinate data that the transmission destination is completely Within the coverage of the forwarding device 2. Therefore, the forwarding device 1 selects the forwarding device 2 and transmits the message to the forwarding device 2.
例2,转发设备1接收携带目标地理位置信息的报文,所述目标地理位置信息指示所述报文的传输目的地,所述目标地理位置信息包括所述传输目的地的中心点的位置为(500,300),所述传输目的地的半径为200,转发设备1中保存的3个待选的转发设备的地理位置信息,仍如表3所示,转发设备1确定每个待选的转发设备对应的第一距离和第二距离,如表5所示:In the example 2, the forwarding device 1 receives a message carrying the target geographical location information, where the target geographical location information indicates a transmission destination of the message, and the target geographical location information includes a location of a central point of the transmission destination. (500,300), the radius of the transmission destination is 200, and the geographical location information of the three candidate forwarding devices stored in the forwarding device 1 is still as shown in Table 3. The forwarding device 1 determines each forwarding device to be selected. Corresponding first distance and second distance, as shown in Table 5:
表5table 5
待选的转发设备Pending forwarding device 第一距离First distance 第二距离Second distance
转发设备2Forwarding device 2 538538 150150
转发设备3Forwarding device 3 500500 150150
转发设备4Forwarding device 4 5050 150150
由表5可知,转发设备3对应的第一距离小于第二距离,表示所述转发设备3的覆盖范围与所述传输目的地存在交集,转发设备4对应的第一距离也小于第二距离,表示转发设备4的覆盖范围与所述传输目的地也存在交集,且由以上坐标数据可知,所述传输目的地部分在转发设备3的覆盖范围内,部分在所述转发设备4的覆盖范围内。因此,所述转发设备1选择转发设备3和转发设备4,并分别向所述转发设备3和转发设备4发送所述报文。It can be seen from Table 5 that the first distance corresponding to the forwarding device 3 is smaller than the second distance, indicating that the coverage of the forwarding device 3 and the transmission destination overlap, and the first distance corresponding to the forwarding device 4 is also smaller than the second distance. It is indicated that the coverage of the forwarding device 4 also intersects with the transmission destination, and it is known from the above coordinate data that the transmission destination portion is within the coverage of the forwarding device 3 and partially within the coverage of the forwarding device 4. . Therefore, the forwarding device 1 selects the forwarding device 3 and the forwarding device 4, and sends the message to the forwarding device 3 and the forwarding device 4, respectively.
步骤403:所述第一转发设备向所述第二转发设备发送所述报文。 Step 403: The first forwarding device sends the packet to the second forwarding device.
具体的,在执行步骤403时,包括:所述第一转发设备通过与所述第二转发设备间建立的隧道,向所述第二转发设备发送所述报文。Specifically, when the step 403 is performed, the first forwarding device sends the packet to the second forwarding device by using a tunnel established with the second forwarding device.
所述第一转发设备与所述第二转发设备间建立的隧道,可以是预先建立的,如在所述第一转发设备接收到所述第二转发设备的地理位置信息以及IP地址后,或在执行步骤403之前建立的,本发明对此不做限定。The tunnel established between the first forwarding device and the second forwarding device may be pre-established, such as after the first forwarding device receives the geographical location information and the IP address of the second forwarding device, or This is not limited by the present invention, which is established before the step 403 is performed.
可选的,所述第一转发设备建立与所述第二转发设备的隧道,包括以下步骤:Optionally, the first forwarding device establishes a tunnel with the second forwarding device, including the following steps:
获取所述第二转发设备的IP地址;Obtaining an IP address of the second forwarding device;
根据所述第二转发设备的IP地址,建立与所述第二转发设备的隧道。Establishing a tunnel with the second forwarding device according to the IP address of the second forwarding device.
其中,所述第二转发设备的IP地址可以为互联网协议版本4(Internet Protocol Version 4,IPv4)地址或互联网协议版本6(Internet Protocol Version 6,IPv6)地址等,所述隧道有多种形式,例如通用路由协议封装(Generic Routing Encapsulation,GRE)隧道,或者各种二层或三层的隧道,本发明对此不做限定。The IP address of the second forwarding device may be an Internet Protocol Version 4 (IPv4) address or an Internet Protocol Version 6, IPv6 address, etc. The tunnel has multiple forms. For example, a Generic Routing Encapsulation (GRE) tunnel, or a plurality of Layer 2 or Layer 3 tunnels, which is not limited by the present invention.
可选的,在执行步骤403时,包括:Optionally, when performing step 403, the method includes:
所述第一转发设备获取所述第二转发设备的IP地址;并The first forwarding device acquires an IP address of the second forwarding device;
根据所述第二转发设备的IP地址,将所述报文封装为IP报文;Encapsulating the packet as an IP packet according to the IP address of the second forwarding device;
所述第一转发设备根据所述第二转发设备的IP地址,向所述第二转发设备发送所述IP报文。The first forwarding device sends the IP packet to the second forwarding device according to the IP address of the second forwarding device.
其中,由于所述第二转发设备的IP地址可以为IPv4地址或IPv6地址。当所述第二转发设备的IP地址为IPv4地址时,封装的IP报文为IPv4报文;当所述第二转发设备的IP地址为IPv6地址时,封装的IP报文为IPv6报文。The IP address of the second forwarding device may be an IPv4 address or an IPv6 address. When the IP address of the second forwarding device is an IPv4 address, the encapsulated IP packet is an IPv4 packet. When the IP address of the second forwarding device is an IPv6 address, the encapsulated IP packet is an IPv6 packet.
具体的,在所述报文封装为IP报文时,该IP报文中包括源IP地址,以及目的IP地址,其中源IP地址即为接收所述报文的第一转发设备的IP地址,目的IP地址为所述第二转发设备的IP地址。Specifically, when the packet is encapsulated into an IP packet, the IP packet includes a source IP address and a destination IP address, where the source IP address is the IP address of the first forwarding device that receives the packet. The destination IP address is the IP address of the second forwarding device.
在步骤403后,所述第二转发设备接收到所述报文后,将所述报文进行广播,其中,当所述第一转发设备向所述第二转发设备发送封装后的IP报文 时,所述第二转发设备将接收的所述IP报文进行解封装,生成原始的报文,所述原始的报文为所述第一转发设备接收到的所述报文。所述第二转发设备广播所述原始的报文,使处于所述第二转发设备的覆盖范围内的终端能够接收到所述报文。这样,在所述第二转发设备的覆盖范围与所述传输目的地之间的交集内存在终端时,该终端能够接收到所述报文,实现了所述报文传输至所述传输目的地。After the step 403, the second forwarding device broadcasts the packet after receiving the packet, where the first forwarding device sends the encapsulated IP packet to the second forwarding device. The second forwarding device decapsulates the received IP packet to generate an original packet, where the original packet is the packet received by the first forwarding device. The second forwarding device broadcasts the original packet, so that the terminal in the coverage of the second forwarding device can receive the packet. In this way, when the intersection between the coverage of the second forwarding device and the transmission destination exists in the terminal, the terminal can receive the message, and the message is transmitted to the transmission destination. .
采用本发明上述实施例中的车联网数据传输方法,第一转发设备在接收终端发送的携带目标地理位置信息的报文后,根据所述目标地理位置信息和保存的N个待选的转发设备的地理位置信息中,筛选出第二转发设备,其中,所述目标地理位置信息用于指示所述报文的传输目的地,所述第二转发设备的地理位置信息用于指示所述第二转发设备覆盖范围,所述第二转发设备的覆盖范围与所述传输目的地存在交集;所述第一转发设备向第二转发设备发送所述报文,这样,所述第一转发设备无需考虑所述第一转发设备与所述传输目的地的距离,将接收的报文,通过所述第二转发设备传输到所述传输目的地中,从而所述第一转发设备可以实现远距离通信。According to the car network data transmission method in the above embodiment of the present invention, the first forwarding device, after receiving the message carrying the target geographical location information sent by the terminal, according to the target geographical location information and the saved N candidate forwarding devices The second forwarding device is filtered out, wherein the target geographic location information is used to indicate a transmission destination of the packet, and the geographical location information of the second forwarding device is used to indicate the second Forwarding the coverage of the device, the coverage of the second forwarding device is different from the transmission destination; the first forwarding device sends the packet to the second forwarding device, so that the first forwarding device does not need to consider And the distance between the first forwarding device and the transmission destination, and the received packet is transmitted to the transmission destination by using the second forwarding device, so that the first forwarding device can implement long-distance communication.
在以上实施例中,第一转发设备将接收到报文通过一个转发设备(即第二转发设备)传输所述报文,在实际应用中,所述第一转发设备可以通过多个转发设备传输所述报文,在本实施例中,仅以两个转发设备为例,所述第一转发设备通过所述两个转发设备中任一个转发设备传输所述报文的流程与上述实施例相同。参阅图6所示,具体的流程包括:In the above embodiment, the first forwarding device transmits the packet by using a forwarding device (ie, the second forwarding device), and in the actual application, the first forwarding device may transmit through multiple forwarding devices. The packet is in the embodiment, and only the two forwarding devices are used as an example. The flow of the first forwarding device to transmit the packet by using any one of the two forwarding devices is the same as that in the foregoing embodiment. . Referring to Figure 6, the specific process includes:
步骤601:第一转发设备接收终端发送的携带目标地理位置信息的报文,所述目标地理位置信息用于指示所述报文的传输目的地。Step 601: The first forwarding device receives a packet that carries the target geographical location information and is sent by the terminal, where the target geographic location information is used to indicate a transmission destination of the packet.
其中,所述报文可以为GeoNetworking报文,所述GeoNetworking报文的报文头中携带所述目标地理位置信息。所述报文中携带的目标地理位置信息指示的所述报文的传输目的地可以为一个区域,或者为一个地点,具体的表示方式如步骤401中的描述,此处不再赘述。The packet may be a GeoNetworking packet, and the target location information is carried in a packet header of the GeoNetworking packet. The destination of the packet indicated by the target geographic location information carried in the packet may be an area, or a location. The specific representation is as described in step 401, and details are not described herein.
步骤602:所述第一转发设备根据所述目标地理位置信息和保存的N个 待选的转发设备的地理位置信息,选择第二转发设备以及第三转发设备,所述二转发设备的地理位置信息用于指示所述第二转发设备的覆盖范围,所述第三转发设备的地理位置信息用于指示所述第三转发设备的覆盖范围,所述第二转发设备的覆盖范围与所述传输目的地存在交集,所述第三转发设备的覆盖范围与所述传输目的地存在交集,N为大于或等于1的整数。Step 602: The first forwarding device according to the target geographical location information and the saved N a geographic location information of the forwarding device to be selected, a second forwarding device, and a third forwarding device, where the geographic location information of the second forwarding device is used to indicate the coverage of the second forwarding device, where the third forwarding device The geographic location information is used to indicate the coverage of the third forwarding device, the coverage of the second forwarding device intersects with the transmission destination, and the coverage of the third forwarding device exists with the transmission destination. Intersection, N is an integer greater than or equal to 1.
可选的,在执行步骤602之前,还包括:Optionally, before performing step 602, the method further includes:
所述第一转发设备获取所述N个待选的转发设备的地理位置信息,并保存。其中,所述N个待选的转发设备为车联网中除所述第一转发转发设备以外的转发设备。The first forwarding device acquires geographic location information of the N to-be-selected forwarding devices, and saves the information. The N forwarding devices to be selected are forwarding devices other than the first forwarding and forwarding device in the Internet of Vehicles.
可选的,所述第一转发设备获取所述N个待选的转发设备的地理位置信息,包括以下两种方式:Optionally, the first forwarding device acquires geographic location information of the N to-be-selected forwarding devices, and includes the following two methods:
第一种方式:所述第一转发设备接收控制器发送的所述N个待选的转发设备的地理位置信息;The first mode: the first forwarding device receives the geographic location information of the N to-be-selected forwarding devices sent by the controller;
第二种方式:所述第一转发设备接收第四转发设备发送的携带有所述N个待选的转发设备的地理位置信息的路由协议报文。所述第四转发设备为车联网中除所述第一转发设备以外的任意一个转发设备。其中,所述路由协议报文可以为OSPF协议报文或BGP报文等。当所述路由协议报文为OSPF协议报文时,所述OSPF协议报文中的Opaque Information用于携带至少一个待选的转发设备的地理位置信息。The second mode: the first forwarding device receives a routing protocol packet that is sent by the fourth forwarding device and carries the geographic location information of the N to-be-selected forwarding devices. The fourth forwarding device is any one of the forwarding devices except the first forwarding device in the Internet of Vehicles. The routing protocol packet may be an OSPF packet or a BGP packet. When the routing protocol packet is an OSPF protocol packet, the Opaque Information in the OSPF protocol packet is used to carry the geographical location information of at least one forwarding device to be selected.
当所述传输目的地为一个区域时,所述目标地理位置信息包括所述传输目的地的中心点的位置和所述传输目的地的半径,每个待选的转发设备的地理位置信息包括:所述每个待选的转发设备的位置和所述每个待选的转发设备的覆盖范围的半径;When the transmission destination is an area, the target geographical location information includes a location of a central point of the transmission destination and a radius of the transmission destination, and geographic location information of each forwarding device to be selected includes: a location of each of the to-be-selected forwarding devices and a radius of coverage of each of the to-be-selected forwarding devices;
所述第一转发设备根据所述目标地理位置信息和保存的N个待选的转发设备的地理位置信息,选择第二转发设备,包括:The first forwarding device selects the second forwarding device according to the target geographic location information and the saved geographic location information of the N selected forwarding devices, including:
所述第一转发设备根据第i待选的转发设备的位置和所述传输目的地的中心点的位置,获得第一距离,所述第一距离为所述传输目的地的中心点的 位置和所述第i待选的转发设备的位置间的距离,所述第i待选的转发设备为所述N个待选的转发设备中的任意一个待选的转发设备;The first forwarding device obtains a first distance according to a location of the i-th forwarding device and a location of a central point of the transmission destination, where the first distance is a center point of the transmission destination a distance between the location and the location of the ith to-be-selected forwarding device, where the ith to-be-selected forwarding device is any one of the N to-be-selected forwarding devices to be selected;
所述第一转发设备根据所述第i待选的转发设备的覆盖范围的半径和所述传输目的地的半径,获得第二距离,所述第二距离为所述第i待选的转发设备的覆盖范围的半径和所述传输目的地的半径之和;The first forwarding device obtains a second distance according to a radius of a coverage range of the ith to-be-selected forwarding device and a radius of the transmission destination, where the second distance is the ith to-be-selected forwarding device The sum of the radius of the coverage and the radius of the transmission destination;
如果所述第一距离小于所述第二距离,则所述第一转发设备将所述第i待选的转发设备作为所述第二转发设备。If the first distance is smaller than the second distance, the first forwarding device uses the ith to-be-selected forwarding device as the second forwarding device.
同理,所述第一转发设备根据所述目标地理位置信息和保存的N个待选的转发设备的地理位置信息,选择第三转发设备,包括:Similarly, the first forwarding device selects the third forwarding device according to the target geographic location information and the saved geographic location information of the N selected forwarding devices, including:
所述第一转发设备根据第i待选的转发设备的位置和所述传输目的地的中心点的位置,获得第一距离,所述第一距离为所述传输目的地的中心点的位置和所述第i待选的转发设备的位置间的距离,所述第i待选的转发设备为所述N个待选的转发设备中的除第二转发设备以外的任意一个待选的转发设备;Determining, by the first forwarding device, a first distance according to a location of the i-th forwarding device and a location of a central point of the transmission destination, where the first distance is a location of a center point of the transmission destination a distance between the locations of the ith to-be-selected forwarding devices, where the ith to-be-selected forwarding device is any one of the N to-be-selected forwarding devices except the second forwarding device. ;
所述第一转发设备根据所述第i待选的转发设备的覆盖范围的半径和所述传输目的地的半径,获得第二距离,所述第二距离为所述第i待选的转发设备的覆盖范围的半径和所述传输目的地的半径之和;The first forwarding device obtains a second distance according to a radius of a coverage range of the ith to-be-selected forwarding device and a radius of the transmission destination, where the second distance is the ith to-be-selected forwarding device The sum of the radius of the coverage and the radius of the transmission destination;
如果所述第一距离小于所述第二距离,则所述第一转发设备将所述第i待选的转发设备作为所述第三转发设备。If the first distance is smaller than the second distance, the first forwarding device uses the ith to-be-selected forwarding device as the third forwarding device.
通过步骤602,所述第一转发设备可以确定所述传输目的地与所述第二转发设备的覆盖范围有交集,且所述传输目的地与所述第三转发设备的覆盖范围有交集;所述第一转发设备将所述报文分别发送至所述第二转发设备以及所述第三转发设备后,所述第二转发设备和所述第三转发设备广播所述报文后,使处于所述第二转发设备的覆盖范围内,以及所述第三转发设备的范围内的终端能够接收到所述报文。处于所述传输目的地与所述第二转发设备的覆盖范围的交集内的终端,以及处于所述传输目的地与所述第三转发设备的覆盖范围的交集内的终端,均可接收到所述报文。因此,所述第一转发设备 通过第二转发设备和第三转发设备发送所述报文,实现了所述报文传输至该报文的传输目的地。这样,所述第一转发设备无需考虑所述第一转发设备与所述传输目的地的距离,将接收的报文,通过第二转发设备和第三转发设备传输到所述传输目的地中,从而可以实现远距离通信。In step 602, the first forwarding device may determine that the transmission destination has an intersection with the coverage of the second forwarding device, and the transmission destination and the coverage of the third forwarding device have an intersection; After the first forwarding device sends the packet to the second forwarding device and the third forwarding device, the second forwarding device and the third forwarding device broadcast the packet and then The terminal within the coverage of the second forwarding device and the terminal within the range of the third forwarding device can receive the message. a terminal that is within the intersection of the coverage of the transmission destination and the second forwarding device, and a terminal that is within the intersection of the coverage of the transmission destination and the third forwarding device, can receive the terminal Said message. Therefore, the first forwarding device The message is transmitted to the destination of the message by the second forwarding device and the third forwarding device. In this way, the first forwarding device does not need to consider the distance between the first forwarding device and the transmission destination, and transmits the received packet to the transmission destination through the second forwarding device and the third forwarding device. Thereby, long-distance communication can be achieved.
步骤603:所述第一转发设备分别向所述第二转发设备以及所述第三转发设备发送所述报文。Step 603: The first forwarding device sends the packet to the second forwarding device and the third forwarding device, respectively.
具体的,在执行步骤603时,包括:Specifically, when step 603 is performed, the method includes:
所述第一转发设备通过与所述第二转发设备间建立的隧道,向所述第二转发设备发送所述报文;Transmitting, by the first forwarding device, the packet to the second forwarding device by using a tunnel established with the second forwarding device;
所述第一转发设备通过与所述第三转发设备间建立的隧道,向所述第二转发设备发送所述报文。The first forwarding device sends the packet to the second forwarding device by using a tunnel established with the third forwarding device.
具体的,所述第一转发设备向所述第二转发设备发送所述报文,包括:Specifically, the sending, by the first forwarding device, the packet to the second forwarding device includes:
所述第一转发设备获取所述第二转发设备的IP地址;并The first forwarding device acquires an IP address of the second forwarding device;
根据所述第二转发设备的IP地址,将所述报文封装为IP报文;Encapsulating the packet as an IP packet according to the IP address of the second forwarding device;
所述第一转发设备根据所述第二转发设备的IP地址,向所述第二转发设备发送所述IP报文。The first forwarding device sends the IP packet to the second forwarding device according to the IP address of the second forwarding device.
同理,所述第一转发设备向所述第三转发设备发送所述报文,包括:Similarly, the first forwarding device sends the packet to the third forwarding device, including:
所述第一转发设备获取所述第三转发设备的IP地址;并The first forwarding device acquires an IP address of the third forwarding device;
根据所述第三转发设备的IP地址,将所述报文封装为IP报文;Encapsulating the packet as an IP packet according to the IP address of the third forwarding device;
所述第一转发设备根据所述第三转发设备的IP地址,向所述第三转发设备发送所述IP报文。The first forwarding device sends the IP packet to the third forwarding device according to the IP address of the third forwarding device.
在步骤603后,所述第二转发设备接收到所述报文后,将所述报文进行广播,所述第三转发设备接收到所述报文后,将所述报文进行广播,其中,当所述第一转发设备分别向所述第二转发设备和所述第三转发设备发送封装后的IP报文时,所述第二转发设备和所述第三转发设备分别将接收的IP报文进行解封装,生成原始的报文,所述原始的报文为第一转发设备接收到的报文。所述第二转发设备广播所述原始的报文,使处于所述第二转发设备的覆 盖范围内的终端能够接收到所述报文;所述第三转发设备广播所述原始的报文,使处于所述第三转发设备的覆盖范围内的终端能够接收到所述报文。这样,在所述第二转发设备的覆盖范围与所述传输目的地之间的交集内存在终端时,该终端能够接收到所述报文;所述第三转发设备的覆盖范围与所述传输目的地之间的交集内存在终端时,该终端能够接收到所述报文,实现了所述报文传输至所述传输目的地。这样,由于所述第一转发设备无需考虑所述第一转发设备与所述传输目的地的距离,将接收的报文,通过所述第二转发设备和所述第三转发设备传输到所述传输目的地中,从而所述第一转发设备可以实现远距离通信。After the step 603, after receiving the packet, the second forwarding device broadcasts the packet, and after receiving the packet, the third forwarding device broadcasts the packet, where When the first forwarding device sends the encapsulated IP packet to the second forwarding device and the third forwarding device, the second forwarding device and the third forwarding device respectively receive the received IP address. The packet is decapsulated to generate an original packet, and the original packet is a packet received by the first forwarding device. Transmitting, by the second forwarding device, the original packet, so that the second forwarding device is overwritten The terminal in the coverage area can receive the message; the third forwarding device broadcasts the original message, so that the terminal in the coverage of the third forwarding device can receive the message. In this way, when the intersection between the coverage of the second forwarding device and the transmission destination exists in the terminal, the terminal can receive the message; the coverage of the third forwarding device and the transmission When the intersection between the destinations exists in the terminal, the terminal can receive the message, and the message is transmitted to the transmission destination. In this way, the first forwarding device does not need to consider the distance between the first forwarding device and the transmission destination, and transmits the received packet to the the second forwarding device and the third forwarding device. In the transmission destination, the first forwarding device can thus implement long-distance communication.
基于以上实施例,本发明还提供了一种第一转发设备,所述第一转发设备可以采用图4对应的实施例提供的方法,参阅图7所示,所述第一转发设备700包括:接收单元701、选择单元702以及发送单元703。可选地,所述第一转发设备700还包括处理单元704。Based on the above embodiment, the present invention further provides a first forwarding device, and the first forwarding device may adopt the method provided by the embodiment corresponding to FIG. 4, as shown in FIG. The receiving unit 701, the selecting unit 702, and the transmitting unit 703. Optionally, the first forwarding device 700 further includes a processing unit 704.
所述接收单元701用于接收终端发送的携带目标地理位置信息的报文,所述目标地理位置信息用于指示所述报文的传输目的地。The receiving unit 701 is configured to receive a packet that carries the target geographic location information that is sent by the terminal, where the target geographic location information is used to indicate a transmission destination of the packet.
所述选择单元702用于根据所述目标地理位置信息和保存的N个待选的转发设备的地理位置信息,选择第二转发设备,所述第二转发设备的地理位置信息用于指示所述第二转发设备的覆盖范围,所述第二转发设备的覆盖范围与所述传输目的地存在交集,N为大于或等于1的整数。The selecting unit 702 is configured to select a second forwarding device according to the target geographic location information and the saved geographic location information of the N selected forwarding devices, where the geographical location information of the second forwarding device is used to indicate the The coverage of the second forwarding device, the coverage of the second forwarding device has an intersection with the transmission destination, and N is an integer greater than or equal to 1.
所述发送单元703用于向所述第二转发设备发送所述报文。The sending unit 703 is configured to send the packet to the second forwarding device.
可选的,当所述传输目的地为一个区域时,所述目标地理位置信息包括所述传输目的地的中心点的位置和所述传输目的地的半径,每个待选的转发设备的地理位置信息包括:所述每个待选的转发设备的位置和所述每个待选的转发设备的覆盖范围的半径;Optionally, when the transmission destination is an area, the target geographical location information includes a location of a central point of the transmission destination and a radius of the transmission destination, and a geography of each forwarding device to be selected The location information includes: a location of each of the to-be-selected forwarding devices and a radius of coverage of each of the to-be-selected forwarding devices;
所述选择单元702,具体用于:The selecting unit 702 is specifically configured to:
根据第i待选的转发设备的位置和所述传输目的地的中心点的位置,获得第一距离,所述第一距离为所述传输目的地的中心点的位置和所述第i待选的 转发设备的位置间的距离,所述第i待选的转发设备为所述N个待选的转发设备中的任意一个待选的转发设备;Obtaining a first distance according to a location of the i-th forwarding device and a location of a center point of the transmission destination, where the first distance is a location of a center point of the transmission destination and the ith candidate is selected of The distance between the locations of the forwarding devices, where the i-th forwarding device is the forwarding device of any one of the N to-be-selected forwarding devices;
根据所述第i待选的转发设备的覆盖范围的半径和所述传输目的地的半径,获得第二距离,所述第二距离为所述第i待选的转发设备的覆盖范围的半径和所述传输目的地的半径之和;Obtaining a second distance according to a radius of a coverage range of the ith to-be-selected forwarding device and a radius of the transmission destination, where the second distance is a radius of a coverage range of the ith to-be-selected forwarding device The sum of the radii of the transmission destinations;
如果所述第一距离小于所述第二距离,则将所述第i待选的转发设备作为所述第二转发设备。If the first distance is smaller than the second distance, the ith to-be-selected forwarding device is used as the second forwarding device.
可选的,所述发送单元703,具体用于:Optionally, the sending unit 703 is specifically configured to:
通过所述第一转发设备与所述第二转发设备间建立的隧道,向所述第二转发设备发送所述报文。Transmitting the packet to the second forwarding device by using a tunnel established between the first forwarding device and the second forwarding device.
可选的,所述第一转发设备700还包括处理单元704;Optionally, the first forwarding device 700 further includes a processing unit 704;
所述处理单元704用于获取所述第二转发设备的互联网协议IP地址;The processing unit 704 is configured to obtain an internet protocol IP address of the second forwarding device.
所述处理单元704用于根据所述第二转发设备的IP地址,将所述报文封装为IP报文;The processing unit 704 is configured to encapsulate the packet into an IP packet according to an IP address of the second forwarding device.
所述发送单元703具体用于根据所述第二转发设备的IP地址,向所述第二转发设备发送所述IP报文。The sending unit 703 is specifically configured to send the IP packet to the second forwarding device according to the IP address of the second forwarding device.
可选的,所述报文为基于地理位置的网络体系GeoNetworking报文,所述GeoNetworking报文的报文头中携带所述目标地理位置信息。Optionally, the packet is a geographical network-based network system GeoNetworking packet, and the target location information is carried in a packet header of the GeoNetworking packet.
可选的,在所述选择单元702用于选择第二转发设备之前,所述接收单元701还用于接收控制器发送的所述N个待选的转发设备的地理位置信息;或者Optionally, before the selecting unit 702 is configured to select the second forwarding device, the receiving unit 701 is further configured to receive geographic location information of the N to-be-selected forwarding devices sent by the controller; or
在所述选择单元702用于选择第二转发设备之前,所述接收单元701还用于接收第三转发设备发送的携带有所述N个待选的转发设备的地理位置信息的路由协议报文。Before the selecting unit 702 is configured to select the second forwarding device, the receiving unit 701 is further configured to receive a routing protocol packet that is sent by the third forwarding device and carries the geographic location information of the N to-be-selected forwarding devices. .
可选的,所述路由协议报文为开放式最短路径优先OSPF协议报文,所述OSPF协议报文包括的不透明信息Opaque Information用于携带所述N个待选的转发设备的地理位置信息。 Optionally, the routing protocol packet is an open shortest path first OSPF protocol packet, and the opaque information included in the OSPF protocol packet is used to carry the geographic location information of the N to be selected forwarding devices.
需要说明的是,本发明实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。It should be noted that the division of the unit in the embodiment of the present invention is schematic, and is only a logical function division, and the actual implementation may have another division manner. In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application, in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
基于以上实施例,本发明还提供了一种第一转发设备,所述第一转发设备可采用图4对应的实施例提供的方法,可以是与图7所示的第一转发设备相同的设备。参阅图8所示,该第一转发设备设备800包括:通信接口801、处理器802、总线803以及存储器804,其中:Based on the above embodiment, the present invention further provides a first forwarding device, where the first forwarding device may adopt the method provided by the embodiment corresponding to FIG. 4, and may be the same device as the first forwarding device shown in FIG. . Referring to FIG. 8, the first forwarding device device 800 includes a communication interface 801, a processor 802, a bus 803, and a memory 804, where:
通信接口801、处理器802以及存储器804通过总线803相互连接;总线803可以是外设部件互连标准(peripheral component interconnect,简称PCI)总线或扩展工业标准结构(extended industry standard architecture,简称EISA)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图8中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication interface 801, the processor 802, and the memory 804 are connected to each other through a bus 803. The bus 803 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. Wait. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 8, but it does not mean that there is only one bus or one type of bus.
通信接口801用于与终端以及其他转发设备进行通信,如接收所述终端发送的携带目标地理位置信息的报文,向第二转发设备发送所述报文。The communication interface 801 is configured to communicate with the terminal and other forwarding devices, such as receiving the packet carrying the target geographical location information sent by the terminal, and sending the packet to the second forwarding device.
处理器802用于:The processor 802 is configured to:
接收终端发送的携带目标地理位置信息的报文,所述目标地理位置信息 用于指示所述报文的传输目的地;Receiving a message carrying the target geographical location information sent by the terminal, the target geographical location information Used to indicate a transmission destination of the message;
根据所述目标地理位置信息和保存的N个待选的转发设备的地理位置信息,选择第二转发设备,所述第二转发设备的地理位置信息用于指示所述第二转发设备的覆盖范围,所述第二转发设备的覆盖范围与所述传输目的地存在交集,N为大于或等于1的整数;And selecting a second forwarding device, where the geographic location information of the second forwarding device is used to indicate the coverage of the second forwarding device, according to the target geographic location information and the saved geographic location information of the N to be selected forwarding devices. The coverage of the second forwarding device has an intersection with the transmission destination, and N is an integer greater than or equal to 1;
向所述第二转发设备发送所述报文。Sending the message to the second forwarding device.
可选的,当所述传输目的地为一个区域时,所述目标地理位置信息包括所述传输目的地的中心点的位置和所述传输目的地的半径,每个待选的转发设备的地理位置信息包括:所述每个待选的转发设备的位置和所述每个待选的转发设备的覆盖范围的半径;Optionally, when the transmission destination is an area, the target geographical location information includes a location of a central point of the transmission destination and a radius of the transmission destination, and a geography of each forwarding device to be selected The location information includes: a location of each of the to-be-selected forwarding devices and a radius of coverage of each of the to-be-selected forwarding devices;
根据所述目标地理位置信息和保存的N个待选的转发设备的地理位置信息,选择第二转发设备,包括:And selecting, according to the target geographic location information and the saved geographic location information of the N selected forwarding devices, the second forwarding device, including:
根据第i待选的转发设备的位置和所述传输目的地的中心点的位置,获得第一距离,所述第一距离为所述传输目的地的中心点的位置和所述第i待选的转发设备的位置间的距离,所述第i待选的转发设备为所述N个待选的转发设备中的任意一个待选的转发设备;Obtaining a first distance according to a location of the i-th forwarding device and a location of a center point of the transmission destination, where the first distance is a location of a center point of the transmission destination and the ith candidate is selected The distance between the locations of the forwarding devices, where the i-th forwarding device is the forwarding device of any one of the N to-be-selected forwarding devices;
根据所述第i待选的转发设备的覆盖范围的半径和所述传输目的地的半径,获得第二距离,所述第二距离为所述第i待选的转发设备的覆盖范围的半径和所述传输目的地的半径之和;Obtaining a second distance according to a radius of a coverage range of the ith to-be-selected forwarding device and a radius of the transmission destination, where the second distance is a radius of a coverage range of the ith to-be-selected forwarding device The sum of the radii of the transmission destinations;
如果所述第一距离小于所述第二距离,则将所述第i待选的转发设备作为所述第二转发设备。If the first distance is smaller than the second distance, the ith to-be-selected forwarding device is used as the second forwarding device.
该第一转发设备800还包括存储器804,用于存放程序等。具体地,程序可以包括程序代码,该程序代码包括计算机操作指令。存储器804可能包含随机存取存储器(random access memory,RAM),也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。处理器802执行存储器804所存放的应用程序,实现如上车联网数据传输方法。The first forwarding device 800 further includes a memory 804 for storing programs and the like. In particular, the program can include program code, the program code including computer operating instructions. The memory 804 may include a random access memory (RAM), and may also include a non-volatile memory such as at least one disk storage. The processor 802 executes the application stored in the memory 804 to implement the above-described car network data transmission method.
本发明实施例提供的车联网数据传输方法及第一转发设备,第一转发设 备在接收终端发送的携带目标地理位置信息的报文后,根据所述目标地理位置信息和保存的N个待选的转发设备的地理位置信息中,筛选出第二转发设备,其中,所述目标地理位置信息用于指示所述报文的传输目的地,所述第二转发设备的地理位置信息用于指示所述第二转发设备覆盖范围,所述第二转发设备的覆盖范围与所述传输目的地存在交集;所述第一转发设备向第二转发设备发送所述报文,这样,所述第一转发设备无需考虑所述第一转发设备与所述传输目的地的距离,将接收的报文,通过所述第二转发设备传输到所述传输目的地中,从而所述第一转发设备可以实现远距离通信。Vehicle network data transmission method and first forwarding device provided by embodiment of the present invention, first forwarding device The second forwarding device is selected according to the target geographical location information and the saved geographical location information of the N selected forwarding devices, where the receiving device sends the packet carrying the target geographic location information, where the The target geographic location information is used to indicate the transmission destination of the packet, the geographic location information of the second forwarding device is used to indicate the coverage of the second forwarding device, and the coverage of the second forwarding device is The first forwarding device sends the packet to the second forwarding device, so that the first forwarding device does not need to consider the distance between the first forwarding device and the transmission destination, and receives the packet. The message is transmitted to the transmission destination by the second forwarding device, so that the first forwarding device can implement long-distance communication.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。Although the preferred embodiment of the invention has been described, it will be apparent to those skilled in the < Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and the modifications and
显然,本领域的技术人员可以对本发明实施例进行各种改动和变型而不脱离本发明实施例的精神和范围。这样,倘若本发明实施例的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。 It is apparent that those skilled in the art can make various modifications and variations to the embodiments of the invention without departing from the spirit and scope of the embodiments of the invention. Thus, it is intended that the present invention cover the modifications and modifications of the embodiments of the invention.

Claims (14)

  1. 一种车联网数据传输方法,其特征在于,所述方法包括:A vehicle network data transmission method, characterized in that the method comprises:
    第一转发设备接收终端发送的携带目标地理位置信息的报文,所述目标地理位置信息用于指示所述报文的传输目的地;The first forwarding device receives the packet carrying the target geographical location information sent by the terminal, where the target geographical location information is used to indicate the transmission destination of the packet;
    所述第一转发设备根据所述目标地理位置信息和保存的N个待选的转发设备的地理位置信息,选择第二转发设备,所述第二转发设备的地理位置信息用于指示所述第二转发设备的覆盖范围,所述第二转发设备的覆盖范围与所述传输目的地存在交集,N为大于或等于1的整数;The first forwarding device selects a second forwarding device according to the target geographic location information and the saved geographic location information of the N to be selected forwarding devices, where the geographical location information of the second forwarding device is used to indicate the first The coverage of the second forwarding device, where the coverage of the second forwarding device intersects with the transmission destination, where N is an integer greater than or equal to 1;
    所述第一转发设备向所述第二转发设备发送所述报文。The first forwarding device sends the packet to the second forwarding device.
  2. 如权利要求1所述的方法,其特征在于,当所述传输目的地为一个区域时,所述目标地理位置信息包括所述传输目的地的中心点的位置和所述传输目的地的半径,每个待选的转发设备的地理位置信息包括:所述每个待选的转发设备的位置和所述每个待选的转发设备的覆盖范围的半径;The method according to claim 1, wherein when the transmission destination is an area, the target geographical position information includes a position of a center point of the transmission destination and a radius of the transmission destination, The geographic location information of each of the forwarding devices to be selected includes: a location of each of the to-be-selected forwarding devices and a radius of coverage of each of the to-be-selected forwarding devices;
    所述第一转发设备根据所述目标地理位置信息和保存的N个待选的转发设备的地理位置信息,选择第二转发设备,包括:The first forwarding device selects the second forwarding device according to the target geographic location information and the saved geographic location information of the N selected forwarding devices, including:
    所述第一转发设备根据第i待选的转发设备的位置和所述传输目的地的中心点的位置,获得第一距离,所述第一距离为所述传输目的地的中心点的位置和所述第i待选的转发设备的位置间的距离,所述第i待选的转发设备为所述N个待选的转发设备中的任意一个待选的转发设备;Determining, by the first forwarding device, a first distance according to a location of the i-th forwarding device and a location of a central point of the transmission destination, where the first distance is a location of a center point of the transmission destination The distance between the locations of the ith to-be-selected forwarding devices, where the ith to-be-selected forwarding device is any one of the N to-be-selected forwarding devices to be selected;
    所述第一转发设备根据所述第i待选的转发设备的覆盖范围的半径和所述传输目的地的半径,获得第二距离,所述第二距离为所述第i待选的转发设备的覆盖范围的半径和所述传输目的地的半径之和;The first forwarding device obtains a second distance according to a radius of a coverage range of the ith to-be-selected forwarding device and a radius of the transmission destination, where the second distance is the ith to-be-selected forwarding device The sum of the radius of the coverage and the radius of the transmission destination;
    如果所述第一距离小于所述第二距离,则所述第一转发设备将所述第i待选的转发设备作为所述第二转发设备。If the first distance is smaller than the second distance, the first forwarding device uses the ith to-be-selected forwarding device as the second forwarding device.
  3. 如权利要求1或2所述的方法,其特征在于,所述第一转发设备向所述第二转发设备发送所述报文,包括: The method of claim 1 or 2, wherein the sending, by the first forwarding device, the packet to the second forwarding device comprises:
    所述第一转发设备通过与所述第二转发设备间建立的隧道,向所述第二转发设备发送所述报文。The first forwarding device sends the packet to the second forwarding device by using a tunnel established with the second forwarding device.
  4. 如权利要求1-3任一项所述的方法,其特征在于,所述第一转发设备向所述第二转发设备发送所述报文,包括:The method of any one of the preceding claims, wherein the sending, by the first forwarding device, the packet to the second forwarding device comprises:
    所述第一转发设备获取所述第二转发设备的互联网协议IP地址;并Obtaining, by the first forwarding device, an internet protocol IP address of the second forwarding device;
    根据所述第二转发设备的IP地址,将所述报文封装为IP报文;Encapsulating the packet as an IP packet according to the IP address of the second forwarding device;
    所述第一转发设备根据所述第二转发设备的IP地址,向所述第二转发设备发送所述IP报文。The first forwarding device sends the IP packet to the second forwarding device according to the IP address of the second forwarding device.
  5. 如权利要求1-4任一项所述的方法,其特征在于,所述报文为基于地理位置的网络体系GeoNetworking报文,所述GeoNetworking报文的报文头中携带所述目标地理位置信息。The method according to any one of claims 1 to 4, wherein the message is a geographical network-based network system GeoNetworking message, and the target location information is carried in a packet header of the GeoNetworking message. .
  6. 如权利要求1-5任一项所述的方法,其特征在于,所述第一转发设备根据所述目标地理位置信息和保存的N个待选的转发设备的地理位置信息,选择第二转发设备之前,所述方法还包括:The method according to any one of claims 1-5, wherein the first forwarding device selects the second forwarding according to the target geographical location information and the saved geographical location information of the N selected forwarding devices. Before the device, the method further includes:
    所述第一转发设备接收控制器发送的所述N个待选的转发设备的地理位置信息;或者Receiving, by the first forwarding device, geographic location information of the N to-be-selected forwarding devices that are sent by the controller; or
    所述第一转发设备接收第三转发设备发送的携带有所述N个待选的转发设备的地理位置信息的路由协议报文。The first forwarding device receives a routing protocol packet that is sent by the third forwarding device and carries the geographic location information of the N to-be-selected forwarding devices.
  7. 如权利要求6所述的方法,其特征在于,所述路由协议报文为开放式最短路径优先OSPF协议报文,所述OSPF协议报文包括的不透明信息Opaque Information用于携带所述N个待选的转发设备的地理位置信息。The method of claim 6, wherein the routing protocol message is an open shortest path first OSPF protocol message, and the opaque information Opaque Information included in the OSPF protocol message is used to carry the N to Geographic location information of the selected forwarding device.
  8. 一种第一转发设备,其特征在于,所述第一转发设备包括:A first forwarding device, where the first forwarding device includes:
    接收单元,用于接收终端发送的携带目标地理位置信息的报文,所述目标地理位置信息用于指示所述报文的传输目的地;a receiving unit, configured to receive a packet that is sent by the terminal and carries the target geographic location information, where the target geographic location information is used to indicate a transmission destination of the packet;
    选择单元,用于根据所述目标地理位置信息和保存的N个待选的转发设备的地理位置信息,选择第二转发设备,所述第二转发设备的地理位置信息用于指示所述第二转发设备的覆盖范围,所述第二转发设备的覆盖范围与所 述传输目的地存在交集,N为大于或等于1的整数;a selecting unit, configured to select a second forwarding device according to the target geographic location information and the saved geographic location information of the N selected forwarding devices, where the geographical location information of the second forwarding device is used to indicate the second The coverage of the forwarding device, and the coverage and location of the second forwarding device There is an intersection of the transmission destinations, and N is an integer greater than or equal to 1;
    发送单元,用于向所述第二转发设备发送所述报文。And a sending unit, configured to send the message to the second forwarding device.
  9. 如权利要求8所述的第一转发设备,其特征在于,当所述传输目的地为一个区域时,所述目标地理位置信息包括所述传输目的地的中心点的位置和所述传输目的地的半径,每个待选的转发设备的地理位置信息包括:所述每个待选的转发设备的位置和所述每个待选的转发设备的覆盖范围的半径;The first forwarding device according to claim 8, wherein when the transmission destination is an area, the target geographical position information includes a location of a center point of the transmission destination and the transmission destination Radius, the geographic location information of each forwarding device to be selected includes: a location of each of the to-be-selected forwarding devices and a radius of coverage of each of the to-be-selected forwarding devices;
    所述选择单元,具体用于:The selection unit is specifically configured to:
    根据第i待选的转发设备的位置和所述传输目的地的中心点的位置,获得第一距离,所述第一距离为所述传输目的地的中心点的位置和所述第i待选的转发设备的位置间的距离,所述第i待选的转发设备为所述N个待选的转发设备中的任意一个待选的转发设备;Obtaining a first distance according to a location of the i-th forwarding device and a location of a center point of the transmission destination, where the first distance is a location of a center point of the transmission destination and the ith candidate is selected The distance between the locations of the forwarding devices, where the i-th forwarding device is the forwarding device of any one of the N to-be-selected forwarding devices;
    根据所述第i待选的转发设备的覆盖范围的半径和所述传输目的地的半径,获得第二距离,所述第二距离为所述第i待选的转发设备的覆盖范围的半径和所述传输目的地的半径之和;Obtaining a second distance according to a radius of a coverage range of the ith to-be-selected forwarding device and a radius of the transmission destination, where the second distance is a radius of a coverage range of the ith to-be-selected forwarding device The sum of the radii of the transmission destinations;
    如果所述第一距离小于所述第二距离,则将所述第i待选的转发设备作为所述第二转发设备。If the first distance is smaller than the second distance, the ith to-be-selected forwarding device is used as the second forwarding device.
  10. 如权利要求8或9所述的第一转发设备,其特征在于,所述发送单元,具体用于:The first forwarding device according to claim 8 or 9, wherein the sending unit is specifically configured to:
    通过所述第一转发设备与所述第二转发设备间建立的隧道,向所述第二转发设备发送所述报文。Transmitting the packet to the second forwarding device by using a tunnel established between the first forwarding device and the second forwarding device.
  11. 如权利要求8-10任一项所述的第一转发设备,其特征在于,所述第一转发设备还包括处理单元;The first forwarding device according to any one of claims 8 to 10, wherein the first forwarding device further comprises a processing unit;
    所述处理单元用于获取所述第二转发设备的互联网协议IP地址;The processing unit is configured to obtain an internet protocol IP address of the second forwarding device;
    所述处理单元用于根据所述第二转发设备的IP地址,将所述报文封装为IP报文;The processing unit is configured to encapsulate the packet into an IP packet according to an IP address of the second forwarding device;
    所述发送单元具体用于根据所述第二转发设备的IP地址,向所述第二转发设备发送所述IP报文。 The sending unit is specifically configured to send the IP packet to the second forwarding device according to the IP address of the second forwarding device.
  12. 如权利要求8-11任一项所述的第一转发设备,其特征在于,所述报文为基于地理位置的网络体系GeoNetworking报文,所述GeoNetworking报文的报文头中携带所述目标地理位置信息。The first forwarding device according to any one of claims 8 to 11, wherein the message is a geographical network-based network system GeoNetworking message, and the target of the GeoNetworking message carries the target Location information.
  13. 如权利要求8-12任一项所述的第一转发设备,其特征在于,A first forwarding device according to any of claims 8-12, wherein
    在所述选择单元用于选择第二转发设备之前,所述接收单元还用于接收控制器发送的所述N个待选的转发设备的地理位置信息;或者Before the selecting unit is configured to select the second forwarding device, the receiving unit is further configured to receive geographic location information of the N to-be-selected forwarding devices sent by the controller; or
    在所述选择单元用于选择第二转发设备之前,所述接收单元还用于接收第三转发设备发送的携带有所述N个待选的转发设备的地理位置信息的路由协议报文。Before the selecting unit is configured to select the second forwarding device, the receiving unit is further configured to receive a routing protocol packet that is sent by the third forwarding device and carries the geographic location information of the N to-be-selected forwarding devices.
  14. 如权利要求13所述的第一转发设备,其特征在于,所述路由协议报文为开放式最短路径优先OSPF协议报文,所述OSPF协议报文包括的不透明信息Opaque Information用于携带所述N个待选的转发设备的地理位置信息。 The first forwarding device according to claim 13, wherein the routing protocol message is an open shortest path first OSPF protocol message, and the opaque information included in the OSPF protocol message is used to carry the opaque information Geographical location information of N candidate forwarding devices.
PCT/CN2016/091780 2015-07-31 2016-07-26 Internet of vehicles data transmission method and first forwarding device WO2017020759A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510466703.8A CN106413019B (en) 2015-07-31 2015-07-31 Internet of vehicles data transmission method and first forwarding equipment
CN201510466703.8 2015-07-31

Publications (1)

Publication Number Publication Date
WO2017020759A1 true WO2017020759A1 (en) 2017-02-09

Family

ID=57942430

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/091780 WO2017020759A1 (en) 2015-07-31 2016-07-26 Internet of vehicles data transmission method and first forwarding device

Country Status (2)

Country Link
CN (1) CN106413019B (en)
WO (1) WO2017020759A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110858965A (en) * 2018-08-21 2020-03-03 中兴通讯股份有限公司 Data transmission method and device, terminal and storage medium
CN113923742A (en) * 2021-08-16 2022-01-11 南通大学 Short-distance communication routing method among vehicle nodes in Internet of vehicles

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107276902B (en) * 2017-06-12 2020-07-07 北京邮电大学 Geographic position and IP address combined routing and addressing method for Internet of vehicles
CN110784328B (en) * 2018-07-27 2021-12-14 华为技术有限公司 Internet of vehicles communication solution
WO2020062101A1 (en) * 2018-09-28 2020-04-02 北京小米移动软件有限公司 Data transmission method and apparatus for direct communication, device, and system
CN112885095B (en) * 2021-01-29 2022-09-23 北京梧桐车联科技有限责任公司 Road surface information detection method, device, equipment and computer readable storage medium
CN113259859B (en) 2021-05-27 2021-10-29 之江实验室 Geographical identification forwarding method and device facing area addressing
CN113613196A (en) * 2021-06-16 2021-11-05 北京交通大学 Communication method, device and system for geographic area

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080151841A1 (en) * 2006-12-20 2008-06-26 Honeywell International Inc. Configuration aware packet routing in an ad-hoc network
CN103167024A (en) * 2013-02-05 2013-06-19 广东工业大学 Collaborative information transfer method facing car networking

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104144193A (en) * 2013-05-10 2014-11-12 阳立电子(苏州)有限公司 Distributed distribution method and system of car networking emergent message transmission information
CN103546937B (en) * 2013-10-22 2017-02-22 重庆邮电大学 Opportunistic routing method based on drive link state sensing in vehicle self-organizing network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080151841A1 (en) * 2006-12-20 2008-06-26 Honeywell International Inc. Configuration aware packet routing in an ad-hoc network
CN103167024A (en) * 2013-02-05 2013-06-19 广东工业大学 Collaborative information transfer method facing car networking

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110858965A (en) * 2018-08-21 2020-03-03 中兴通讯股份有限公司 Data transmission method and device, terminal and storage medium
CN110858965B (en) * 2018-08-21 2022-08-02 中兴通讯股份有限公司 Data transmission method and device, terminal and storage medium
CN113923742A (en) * 2021-08-16 2022-01-11 南通大学 Short-distance communication routing method among vehicle nodes in Internet of vehicles
CN113923742B (en) * 2021-08-16 2023-09-12 南通大学 Short-distance communication routing method between vehicle nodes of Internet of vehicles

Also Published As

Publication number Publication date
CN106413019B (en) 2020-02-11
CN106413019A (en) 2017-02-15

Similar Documents

Publication Publication Date Title
WO2017020759A1 (en) Internet of vehicles data transmission method and first forwarding device
US11240647B2 (en) Efficient vehicular services
US8072947B2 (en) Method and apparatus for distributing mobile station information in wireless mesh network
EP3293927B1 (en) Efficient and dynamic support of mobile low latency services
US10659940B2 (en) Method and apparatus for context aware neighbor discovery in a network
CN105766006B (en) Interworking for geo-targeted distribution of application service messages over ad hoc networks
US20220182795A1 (en) Broadcast method, apparatus, and system
Toukabri et al. Experimental evaluation of an open source implementation of IPv6 GeoNetworking in VANETs
KR20120064938A (en) Method and apparatus for collecting and transmitting emergency information based on anycast-multicast communication
US11463852B2 (en) Message distribution system and method for providing local traffic messages
WO2019214571A1 (en) Message transmission method and related device
EP3429272B1 (en) Communication method, forwarding device, and terminal device
JP2010287246A (en) System and method for performing inter-vehicle communication
JP2004297237A (en) Transfer area and validity period designated communication method
JP6171704B2 (en) Relay device, network system, and packet transfer method
Tabar et al. Quality of service in vehicular ad hoc networks
Xiaonan et al. Mobility management solution for IPv6-based vehicular networks
Carneiro et al. Transparent and scalable terminal mobility for vehicular networks
Tao et al. Reliable overlay networking on ETSI GeoNetworking standards
JP4449735B2 (en) Packet transfer apparatus, system and program based on address including geographic information
WO2024078761A1 (en) Sensing in a wireless communication network
Grassi Connected cars: a networking challenge and a computing resource for smart cities
WO2023215379A1 (en) Ranging service
Wen et al. Study of Position-Based Routing Protocols in Vehicular Ad Hoc Networks

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16832247

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16832247

Country of ref document: EP

Kind code of ref document: A1