CN106603658B - Internet of vehicles data transmission method and device based on software defined network - Google Patents
Internet of vehicles data transmission method and device based on software defined network Download PDFInfo
- Publication number
- CN106603658B CN106603658B CN201611143296.8A CN201611143296A CN106603658B CN 106603658 B CN106603658 B CN 106603658B CN 201611143296 A CN201611143296 A CN 201611143296A CN 106603658 B CN106603658 B CN 106603658B
- Authority
- CN
- China
- Prior art keywords
- data forwarding
- data
- forwarding layer
- layer equipment
- next hop
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/38—Flow based routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明提供了一种基于软件定义的车联网数据传输方法和装置,所述车联网包括应用层、控制层和数据转发层;控制层分别通过北向接口、南向接口与应用层和数据转发层进行信息交互;该方法包括:控制层设备获取所有数据转发层设备的位置信息和未来轨迹信息;控制层设备获知数据转发层设备需要发送数据报文时,判断是否需要通过长距离蜂窝无线通信网络传输数据报文,如果是,则指示数据转发层设备从蜂窝接口转发数据报文,否则,根据数据转发层设备的位置信息和未来轨迹信息生成数据报文对应的流表并下发至数据转发层设备,以使数据转发层设备基于流表转发数据报文,实现数据报文的短距离无线通信。
The invention provides a software-defined vehicle networking data transmission method and device. The vehicle networking includes an application layer, a control layer and a data forwarding layer; the control layer is connected to the application layer and the data forwarding layer through the northbound interface and the southbound interface respectively performing information exchange; the method includes: the control layer device obtains the location information and future trajectory information of all the data forwarding layer devices; when the control layer device learns that the data forwarding layer device needs to send a data message, judging whether it is necessary to pass the long-distance cellular wireless communication network Transmit data packets, if yes, instruct the data forwarding layer device to forward the data packets from the cellular interface, otherwise, generate a flow table corresponding to the data packets according to the location information and future trajectory information of the data forwarding layer device and send it to the data forwarding layer device, so that the data forwarding layer device forwards the data packet based on the flow table, and realizes the short-distance wireless communication of the data packet.
Description
技术领域technical field
本发明涉及无线通信技术领域,特别涉及一种基于软件定义网络的车联网数据传输方法和装置。The present invention relates to the technical field of wireless communication, in particular to a method and device for data transmission of the Internet of Vehicles based on a software-defined network.
背景技术Background technique
近年来,车联网技术被认为是提高车辆行驶安全、提升交通运行效率、降低交通能源消耗、减少交通污染的重要技术手段之一,日益受到关注。此外,利用车辆作为互联网入口,通过车联网为正在行驶的车辆中的用户提供更多的信息及娱乐服务;或利用车辆作为感知节点,对城市环境及车辆本身各类数据进行感知、采集、传输等,也日益成为受人关注的新应用需求。In recent years, the Internet of Vehicles technology is considered to be one of the important technical means to improve vehicle driving safety, improve traffic operation efficiency, reduce traffic energy consumption, and reduce traffic pollution, and has received increasing attention. In addition, the vehicle is used as the Internet entrance to provide more information and entertainment services for users in the moving vehicle through the Internet of Vehicles; or the vehicle is used as a sensing node to perceive, collect and transmit various data of the urban environment and the vehicle itself. And so on, it has also increasingly become a new application requirement that attracts attention.
当前被广泛接受的主流车联网网络架构可大致分为两大类:基于蜂窝架构的车联网和基于短距无线通信技术(如Wi-Fi、802.11p,DSRC等)的车联网,其中,后者以车辆ad-hoc网络(简称为VANET)为主要代表。The currently widely accepted mainstream IoV network architectures can be roughly divided into two categories: IoV based on cellular architecture and IoV based on short-range wireless communication technologies (such as Wi-Fi, 802.11p, DSRC, etc.). The main representative is the vehicle ad-hoc network (referred to as VANET).
基于蜂窝架构的车联网并不以一个独立网络体系的身份存在:车辆作为蜂窝网络中的一类节点,通过蜂窝接入获得网络接入能力。新一代蜂窝网络架构(如4G、5G)针对车辆节点的特殊性及相关应用所提出的技术需求,对自身的空口协议等通信和网络协议及参数进行调整和适配,使蜂窝网络能够满足对车辆节点覆盖的需求,并支撑车辆行驶安全、信息娱乐等各类应用。在蜂窝网络中,当任何车辆需发送数据包时,均须经由蜂窝上行链路发送给蜂窝基站,同样的,所有下行数据包均经由蜂窝下行链路发送给车辆。The Internet of Vehicles based on the cellular architecture does not exist as an independent network system: as a kind of node in the cellular network, the vehicle obtains the network access capability through cellular access. The new-generation cellular network architecture (such as 4G, 5G) adjusts and adapts its own air interface protocol and other communication and network protocols and parameters according to the particularity of vehicle nodes and the technical requirements of related applications, so that the cellular network can meet the requirements of It meets the needs of vehicle node coverage, and supports various applications such as vehicle driving safety and infotainment. In a cellular network, when any vehicle needs to send a data packet, it must be sent to the cellular base station via the cellular uplink, and similarly, all downlink data packets are sent to the vehicle via the cellular downlink.
相对地,基于短距无线通信技术的车联网是一种独立于蜂窝网络之外的、由车辆节点通过短距无线通信手段彼此连接、并依赖每一个车辆自身路由的自组织网络。在该类型网络中,数据包的远距离传输常常必须通过多跳中继的方式完成,即:端到端路径由数个车辆因相遇而形成的临时链路组成,数据包必须通过车辆间多次的中继传递才能从源节点车辆传输至目的节点车辆。In contrast, the Internet of Vehicles based on short-range wireless communication technology is an ad hoc network independent of the cellular network, in which vehicle nodes are connected to each other through short-range wireless communication, and rely on each vehicle's own route. In this type of network, the long-distance transmission of data packets must often be completed by means of multi-hop relays, that is, the end-to-end path is composed of temporary links formed by several vehicles due to encounters, and data packets must pass through multiple inter-vehicle links. It takes several relay transfers to transmit from the source node vehicle to the destination node vehicle.
可以看出,蜂窝架构车联网能够很好的支撑车辆安全等相关应用对数据传输实时性和可靠性的需求。短距无线通信技术车联网架构中的多跳传输方式,则会在数据传输过程中带来较大延迟和丢包概率。It can be seen that the cellular architecture of the Internet of Vehicles can well support the real-time and reliability requirements of data transmission for related applications such as vehicle safety. The multi-hop transmission method in the short-range wireless communication technology vehicle networking architecture will bring greater delay and packet loss probability in the data transmission process.
然而,随着大数据时代的到来,车辆自身的设备运行数据及其行驶过程中所经过的不同区域内的环境、商业等相关数据,被视为具有巨大的应用潜力和价值。尤其是当前对这些数据的感知和采集手段越来越成熟,使得对该类海量数据传输和采集的需求也日益成为城市网络建设的一个重要考量。从这一角度出发,基于短距无线通信技术的车联网所具有的免费、灵活、自由等特点,使其在海量数据采集场景中能够占有一席之地,其原因在于:首先,其免费的特点能够在海量数据传输中为各方用户节省巨大的流量和资费开销;其次,使用多跳传输技术来传输海量非时延敏感数据,能够极大缓解蜂窝网络压力,同时为行驶安全类应用极大地节省了带宽等网络资源;最后,基于短距无线通信技术的车辆网络接入可以由车辆企业利用现有成熟技术完成(如利用802.11p和Wi-Fi等),所产生和传输的数据也可以通过特定收集方式适度保密,而无须使大量具有高商业价值或涉及驾驶安全性的保密数据必须通过公有的运营商网络传输。这一特点对车辆生产企业,尤其是具有较强市场优势地位的企业,具有较强的吸引力,从而增加了短距接入技术应用的空间。However, with the advent of the era of big data, the operating data of the vehicle's own equipment and the environment, business and other related data in different areas in the driving process are considered to have huge application potential and value. In particular, the current perception and collection methods for these data are becoming more and more mature, making the demand for such massive data transmission and collection increasingly an important consideration for urban network construction. From this point of view, the free, flexible, and free characteristics of the Internet of Vehicles based on short-range wireless communication technology enable it to occupy a place in massive data collection scenarios. The reasons are: first, its free features can be used in Mass data transmission saves huge traffic and tariff overhead for all users; secondly, the use of multi-hop transmission technology to transmit massive non-delay sensitive data can greatly relieve the pressure on the cellular network, and at the same time greatly save driving safety applications. network resources such as bandwidth; finally, vehicle network access based on short-range wireless communication technology can be completed by vehicle companies using existing mature technologies (such as using 802.11p and Wi-Fi, etc.), and the data generated and transmitted can also be generated and transmitted through specific The collection method is reasonably confidential without necessitating the transmission of large amounts of confidential data of high commercial value or related to driving safety through public operator networks. This feature is attractive to vehicle manufacturers, especially those with a strong market dominance, thus increasing the space for the application of short-distance access technology.
综上所述,如果能够在同一个网络架构下高效协调和应用不同网络传输手段,例如在以蜂窝网络保障交通安全等实时性强的应用的基础上,充分利用以短距对等通信为手段的多跳传输等网络传输方式分担时延不敏感数据的传输,则能够有效分摊海量数据传输给蜂窝网络带来的传输压力,具有较强的实用价值和现实意义。To sum up, if different network transmission methods can be efficiently coordinated and applied under the same network architecture, for example, on the basis of real-time applications such as ensuring traffic safety with cellular networks, short-distance peer-to-peer communication can be fully utilized. It can effectively share the transmission pressure brought by massive data transmission to the cellular network, which has strong practical value and practical significance.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本发明的目的在于提供一种基于软件定义网络的车联网实现方法和装置,能够实现车联网环境下对多种网络传输手段进行管理并使其能够满足海量数据采集应用需求。In view of this, the purpose of the present invention is to provide a method and device for realizing the Internet of Vehicles based on a software-defined network, which can realize the management of various network transmission means in the Internet of Vehicles environment and make it meet the application requirements of mass data collection.
为了达到上述目的,本发明提供了如下技术方案:In order to achieve the above object, the present invention provides the following technical solutions:
一种基于软件定义的车联网数据传输方法,所述车联网包括应用层、控制层和数据转发层;控制层分别通过北向接口、南向接口与应用层和数据转发层进行信息交互;该方法包括:A software-defined Internet of Vehicles data transmission method, the Internet of Vehicles includes an application layer, a control layer and a data forwarding layer; the control layer exchanges information with the application layer and the data forwarding layer through a northbound interface and a southbound interface respectively; the method include:
控制层设备获取所有数据转发层设备的位置信息和未来轨迹信息;The control layer device obtains the location information and future trajectory information of all data forwarding layer devices;
控制层设备获知数据转发层设备需要发送数据报文时,判断是否需要通过长距离蜂窝无线通信网络传输数据报文,如果是,则指示数据转发层设备从蜂窝接口转发数据报文,否则,根据数据转发层设备的位置信息和未来轨迹信息生成数据报文对应的流表并下发至数据转发层设备,以使数据转发层设备基于流表转发数据报文,实现数据报文的短距离无线通信。When the control layer device learns that the data forwarding layer device needs to send a data packet, it determines whether the data packet needs to be transmitted through the long-distance cellular wireless communication network. If so, it instructs the data forwarding layer device to forward the data packet from the cellular interface, otherwise, according to The location information and future trajectory information of the data forwarding layer device generates a flow table corresponding to the data packet and sends it to the data forwarding layer device, so that the data forwarding layer device forwards the data packet based on the flow table, and realizes the short-range wireless transmission of the data packet. communication.
一种基于软件定义的车联网数据传输装置,所述车联网包括应用层、控制层和数据转发层;控制层分别通过北向接口、南向接口与应用层和数据转发层进行信息交互;该装置应用于控制层设备,包括:A software-defined Internet of Vehicles data transmission device, the Internet of Vehicles includes an application layer, a control layer and a data forwarding layer; the control layer exchanges information with the application layer and the data forwarding layer through a northbound interface and a southbound interface respectively; the device Applied to control plane devices, including:
获取单元,用于获取所有数据转发层设备的位置信息和未来轨迹信息;an acquisition unit for acquiring the location information and future trajectory information of all data forwarding layer devices;
决策单元,用于获知数据转发层设备需要发送数据报文时,判断是否需要通过长距离蜂窝无线通信网络传输数据报文,如果是,则指示数据转发层设备从蜂窝接口转发数据报文,否则,根据数据转发层设备的位置信息和未来轨迹信息生成数据报文对应的流表并下发至数据转发层设备,以使数据转发层设备基于流表转发数据报文,实现数据报文的短距离无线通信。The decision-making unit is used to determine whether the data packet needs to be transmitted through the long-distance cellular wireless communication network when the device at the data forwarding layer needs to send a data packet, and if so, instruct the device at the data forwarding layer to forward the data packet from the cellular interface, otherwise , according to the location information and future trajectory information of the data forwarding layer device, generate a flow table corresponding to the data packet and send it to the data forwarding layer device, so that the data forwarding layer device forwards the data packet based on the flow table and realizes the shortening of the data packet. Distance wireless communication.
由上面的技术方案可知,本发明中,在基于软件定义网络的车联网架构中,控制层设备在获知数据转发层设备需要发送数据报文时,决策传输数据报文的网络,当需要通过长距离蜂窝无线通信网络传输数据报文时,指示数据转发层设备从蜂窝接口转发数据报文,当需要通过短距离无线通信网络传输数据报文时,根据数据转发层设备的位置信息和未来轨迹信息生成数据报文对应的流表并下发至数据转发层设备,从而使得数据转发层设备基于流表转发数据报文,实现数据报文的短距离无线通信。It can be seen from the above technical solutions that in the present invention, in the IoV architecture based on the software-defined network, when the control layer device learns that the data forwarding layer device needs to send data packets, it decides the network to transmit the data packets, and when it needs to pass the long When transmitting data packets from the cellular wireless communication network, the data forwarding layer device is instructed to forward the data packets from the cellular interface. A flow table corresponding to the data message is generated and sent to the data forwarding layer device, so that the data forwarding layer device forwards the data message based on the flow table, and realizes short-distance wireless communication of the data message.
附图说明Description of drawings
图1是本发明实施例基于软件定义网络的车联网架构示意图;1 is a schematic diagram of an Internet of Vehicles architecture based on a software-defined network according to an embodiment of the present invention;
图2是本发明实施例基于软件定义网络的车辆网数据传输方法流程图;2 is a flowchart of a method for transmitting vehicle network data based on a software-defined network according to an embodiment of the present invention;
图3是本发明实施例基于软件定义的车联网数据传输装置的结构示意图。FIG. 3 is a schematic structural diagram of a software-defined Internet of Vehicles data transmission device according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,下面结合附图并据实施例,对本发明的技术方案进行详细说明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be described in detail below with reference to the accompanying drawings and embodiments.
本发明中,将软件定义网络的实现思想应用到车联网中,实现基于软件定义网络的车联网架构。基于软件定义网络的车辆网架构,如图1所示,包括应用层、控制层、数据转发层三个层次,其中,In the present invention, the realization idea of the software-defined network is applied to the Internet of Vehicles to realize the architecture of the Internet of Vehicles based on the software-defined network. The vehicle network architecture based on software-defined network, as shown in Figure 1, includes three layers: application layer, control layer, and data forwarding layer.
应用层:Application layer:
提供车联网中各种类型的业务应用,如交通流量监控、网络情况监控、感知应用场景下各类感知数据及要素的获取、用户对协议的管理等。与其他软件定义网络架构相比,本发明所提出的车联网架构中,应用层的特征在于提供了车联网环境下的各种应用模式,并且能够依靠其他层次结构的设计保证这些模式的正常应用。Provide various types of business applications in the Internet of Vehicles, such as traffic flow monitoring, network condition monitoring, acquisition of various sensing data and elements in sensing application scenarios, and user management of protocols. Compared with other software-defined network architectures, in the Internet of Vehicles architecture proposed by the present invention, the application layer is characterized in that it provides various application modes in the Internet of Vehicles environment, and can rely on the design of other hierarchical structures to ensure the normal application of these modes. .
控制层:control layer:
控制层由控制层设备组成,控制层设备的数量根据网络规模和具体拟采用的组织结构决定,可以是一个也可以是数个。在本发明提出的车联网架构中,当存在不止一个控制层设备时,可采用层次型结构,即存在一个主控制层设备对其下一级控制层设备进行协调和管理,这种分级的层次型结构支持两级及以上。控制层设备对网络数据的转发行为和策略进行集中式的控制,包括但不限于以下控制功能:网络流量控制、路由控制、调度控制、策略管理等;各个控制模块均可支持算法、协议、策略等的替换,也即支持软件定义。控制层设备利用对全局信息的掌握,对网络进行管理和控制,对资源调度、路由选择等进行决策。The control layer is composed of control layer devices. The number of control layer devices is determined according to the network scale and the specific organizational structure to be adopted. It can be one or several. In the Internet of Vehicles architecture proposed by the present invention, when there is more than one control layer device, a hierarchical structure can be adopted, that is, there is a main control layer device to coordinate and manage its lower level control layer devices. Type structure supports two levels and above. The control layer device centrally controls the forwarding behavior and policies of network data, including but not limited to the following control functions: network flow control, routing control, scheduling control, policy management, etc.; each control module can support algorithms, protocols, policies The replacement of etc., that is, support for software definition. The control layer equipment uses the global information to manage and control the network, and make decisions on resource scheduling and routing.
控制层设备能够掌握的全局信息包括但不限于:数据转发层设备的位置信息(表明数据转发层设备的当前位置,可以用经度、纬度表示,由数据转发层设备自身上传或由交通管理机构通过监测手段获取)和轨迹信息(包括过去轨迹信息和未来轨迹信息)。The global information that the control layer device can grasp includes but is not limited to: the location information of the data forwarding layer device (indicating the current location of the data forwarding layer device, which can be expressed in longitude and latitude, uploaded by the data forwarding layer device itself or passed by the traffic management agency) monitoring means) and trajectory information (including past trajectory information and future trajectory information).
由于控制层设备能够采用全局视角进行调度决策,其路由和调度的准确性(指保证数据包能够被投递而不会丢失的概率)必然远远高于仅依据局部信息甚至仅依靠单节点的信息进行分布式路由决策的VANET。Since the control layer equipment can make scheduling decisions from a global perspective, the accuracy of routing and scheduling (referring to the probability of ensuring that data packets can be delivered without loss) must be much higher than only relying on local information or even only relying on single-node information. VANET for distributed routing decisions.
数据转发层:Data forwarding layer:
数据转发层由数据转发层设备组成。数据转发层设备有两种:车辆节点和与网络相关的路边装置(Road-Side Unit,RSU,指依托城市道路等建设的、具有无线通信功能的、可用于采集车联网数据的一种装置,为车联网相关研究领域的公知名词)。其中,车辆节点的位置不固定,其未来轨迹信息表明了将要行驶的轨迹,使用包括行驶路段、行驶方向、行驶速度等信息表示;车辆节点的未来轨迹信息可以基于车载导航仪上传等手段获取,当用户不允许此类上传时则不获取该信息。路边装置的位置固定,其未来轨迹信息为空。The data forwarding layer is composed of data forwarding layer devices. There are two types of data forwarding layer devices: vehicle nodes and network-related roadside units (Road-Side Unit, RSU, which refers to a device built on urban roads, with wireless communication functions, and used to collect data from the Internet of Vehicles). , which is a well-known term in the research field related to the Internet of Vehicles). Among them, the position of the vehicle node is not fixed, and its future trajectory information indicates the trajectory to be driven, which is represented by information including the driving section, driving direction, driving speed, etc.; This information is not obtained when the user does not allow such uploads. The location of the roadside device is fixed, and its future trajectory information is empty.
由于车联网具有较大网络规模,可以对数据转发层设备实施网络分簇(也可称为分区等)管理,不分簇的情况则可被视为是网络仅存在一个簇。网络分簇可以依据多种分簇逻辑:可以根据地理位置区域进行划分,例如,可以将城市划分为10×10公里的网格,并将每个网格中的车辆归为一个簇,并分配相应的控制层设备进行管理;也可以根据数据转发层设备的功能属性划分,例如,可以将城市中所有的9路公交车分为一簇、或将某公司所有的出租车分为一簇,并分配相应的控制层设备进行管理。网络分簇的管理方式能够降低每个控制层设备的管理负担并提高其响应速度,同时也利于对网络资源的更精确掌握。当不同簇采用不同控制层设备管理时,其需要最终被一个全局控制层设备管理,从而保证部分信息的全局同步,并协调数据转发层设备中车辆节点的跨区切换等。Due to the large network scale of the Internet of Vehicles, network clustering (also called partitioning, etc.) management can be implemented for the data forwarding layer devices, and the case of no clustering can be regarded as a network with only one cluster. Network clustering can be based on a variety of clustering logic: it can be divided according to geographical areas, for example, cities can be divided into 10 × 10 km grids, and the vehicles in each grid can be grouped into a cluster and assigned The corresponding control layer equipment is managed; it can also be divided according to the functional attributes of the data forwarding layer equipment, for example, all 9 buses in the city can be divided into one cluster, or all taxis of a company can be divided into one cluster. And assign the corresponding control layer equipment for management. The management method of network clustering can reduce the management burden of each control layer device and improve its response speed, and is also conducive to more accurate control of network resources. When different clusters are managed by different control layer devices, they need to be finally managed by a global control layer device, so as to ensure the global synchronization of some information and coordinate the cross-region handover of vehicle nodes in the data forwarding layer device.
在本发明中,控制层通过北向接口与应用层进行信息交互,通过南向接口(SBI)与数据转发层进行信息交互,SBI负责传输控制和通知报文,由于此类报文具有高实时性要求,可以通过长距离蜂窝无线通信网络进行传输。数据转发层设备之间的数据传输则采用短距无线通信网络实现对等、多跳传输。In the present invention, the control layer exchanges information with the application layer through the northbound interface, and exchanges information with the data forwarding layer through the southbound interface (SBI). The SBI is responsible for transmitting control and notification messages, because such messages have high real-time performance. requirements, can be transmitted over a long-range cellular wireless communication network. The data transmission between the data forwarding layer devices adopts the short-distance wireless communication network to realize peer-to-peer and multi-hop transmission.
结合以上对本发明网络架构的描述,下面具体介绍软件定义架构中最关键的接口协议即南向接口协议。In combination with the above description of the network architecture of the present invention, the most critical interface protocol in the software-defined architecture, that is, the southbound interface protocol, will be specifically introduced below.
在本发明实施例中,将当前广泛使用的OpenFlow协议进行扩展以作为本发明网络架构的南向接口协议,以下将改进版本简称为V-OpenFlow。In the embodiment of the present invention, the currently widely used OpenFlow protocol is extended to serve as the southbound interface protocol of the network architecture of the present invention, and the improved version is hereinafter referred to as V-OpenFlow for short.
本发明实施例中,南向接口协议定义了数据转发层面的端口(即无线接口)、流表、通信信道和通信流程,协议流程总共需要30种消息类型,用于实现通信信道建立、信道维护、端口特性获取、异常包上报、下发流表、删除流表等功能。其中,多数消息仍采用OpenFlow协议定义的消息类型,下面仅对变化的消息类型进行说明。In the embodiment of the present invention, the southbound interface protocol defines the port (that is, the wireless interface), the flow table, the communication channel, and the communication process at the data forwarding level. The protocol process requires a total of 30 message types, which are used to implement communication channel establishment and channel maintenance. , port feature acquisition, abnormal packet reporting, issuing flow table, deleting flow table and other functions. Among them, most of the messages still use the message types defined by the OpenFlow protocol, and only the changed message types are described below.
Multipart回复消息:Multipart reply message:
网络初始化时,控制层设备通过初始化控制信令等进行网络初始化并获得节点信息,其中,节点信息的获取由“Multipart请求/回复消息”的交互完成。OpenFlow协议中利用“Multipart请求/回复消息”来获取数据平面节点的端口信息。而V-OpenFlow则利用experimenter字段对其扩展,用以描述数据转发层设备的端口信息、状态信息等。During network initialization, the control layer device initializes the network through initialization control signaling and obtains node information, wherein the acquisition of node information is completed by the interaction of "Multipart request/reply message". In the OpenFlow protocol, the "Multipart request/reply message" is used to obtain the port information of the data plane node. V-OpenFlow uses the experimenter field to extend it to describe the port information and status information of the data forwarding layer device.
其中,“Multipart请求消息”不须扩展;而“Multipart回复消息”由数据转发层设备发出,其应携带数据转发层设备的端口信息和状态信息,因此利用ofp_experimenter_structure结构进行扩展,该结构如下所示:Among them, the "Multipart request message" does not need to be expanded; and the "Multipart reply message" is sent by the data forwarding layer device, which should carry the port information and status information of the data forwarding layer device. Therefore, the ofp_experimenter_structure structure is used for expansion, and the structure is as follows :
struct ofp_experimenter_structure{struct ofp_experimenter_structure{
uint32_t experimenter;uint32_t experimenter;
uint32_t exp_type;uint32_t exp_type;
uint8_t experimenter_data[0];uint8_t experimenter_data[0];
};};
其中,experimenter字段为消息的ID;Among them, the experimenter field is the ID of the message;
exp_type字段标识结构的类型,可以用一个预设字符串标识;The exp_type field identifies the type of structure, which can be identified by a preset string;
experimenter_data[0]为可扩展内容字段,在本发明中,在该字段中添加位置、行驶速度、缓存容量等信息,作为一个优选的实现方式,其名称和结构可实现如下:experimenter_data[0] is an extensible content field. In the present invention, information such as location, driving speed, and cache capacity are added to this field. As a preferred implementation, its name and structure can be implemented as follows:
struct ofp_port_desc_prop_vehicle{struct ofp_port_desc_prop_vehicle{
uint16_t type;uint16_t type;
uint16_t length;uint16_t length;
uint8_t moving_speed;uint8_t moving_speed;
uint8_t caching_capacity;uint8_t caching_capacity;
unit8_t pad[2];unit8_t pad[2];
struct location;struct location;
};};
其中,type=OFPPDPT_EXPERIMENTER,表示本结构为扩展消息;Among them, type=OFPPDPT_EXPERIMENTER, indicating that this structure is an extended message;
length代表该结构长度;length represents the length of the structure;
moving_speed代表当前车速;moving_speed represents the current speed;
caching_capacity代表该节点剩余缓存容量;caching_capacity represents the remaining cache capacity of the node;
pad[2]为填充位;pad[2] is the padding bit;
location代表车辆位置,以经纬度表征,具体结构如下:location represents the location of the vehicle, which is represented by latitude and longitude. The specific structure is as follows:
struct location{struct location{
uint8_t altitude;uint8_t altitude;
uint8_t longitude;uint8_t longitude;
}}
Echo请求消息:Echo request message:
在OpenFlow协议中,当控制层设备与数据转发层设备建立控制通信信道后,会通过“Echo请求/回复消息”来维持该通信信道,同时,利用该信息实现对短距无线链路的控制,即,通过“Echo请求消息”下发命令允许或禁止Hello报文的发送。In the OpenFlow protocol, after the control layer device and the data forwarding layer device establish a control communication channel, the communication channel is maintained through the "Echo request/reply message", and at the same time, the information is used to control the short-range wireless link. That is, the sending of the Hello message is allowed or prohibited by issuing commands through the "Echo Request Message".
当数据转发层设备有需要发送的数据报文时,首先发送“Packet_In消息”给控制层设备,控制层设备根据消息体中的地址信息等,结合网络整体情况,根据当前所确定的路由规则,确定数据包的下一跳节点(集),并将其流表决策通过“Flow_Mod消息”下发。数据转发层设备在获得流表后,即获知了该数据报文的下一跳节点,并等待短距无线链路的建立。控制层设备通过节点全局位置信息根据当前所采用的判断规则,当认为节点能够在未来路段与其指定下一跳相遇时,通过链路保持报文“Echo消息”下发命令以开启短距Hello报文的发送(即授权建立短距无线链路);数据转发层设备能够利用Hello报文与其被选定的下一跳节点建立短距无线链路,并完成数据包的投递。When the data forwarding layer device has a data packet that needs to be sent, it first sends a "Packet_In message" to the control layer device. The control layer device, according to the address information in the message body, combined with the overall situation of the network, according to the currently determined routing rules, Determine the next hop node (set) of the data packet, and send its flow table decision through the "Flow_Mod message". After obtaining the flow table, the data forwarding layer device knows the next hop node of the data packet, and waits for the establishment of the short-distance wireless link. The control layer device uses the global location information of the node and according to the currently adopted judgment rules, when it is believed that the node can meet its designated next hop in the future section, it sends a command through the link hold message "Echo message" to enable the short-distance Hello message. Sending the message (that is, authorizing the establishment of a short-distance wireless link); the data forwarding layer device can use the Hello message to establish a short-distance wireless link with its selected next-hop node, and complete the delivery of the data packet.
在V-OpenFlow中,需要扩展“Echo请求消息”实现通信信道维护和链路建立命令下发,以下进行介绍:In V-OpenFlow, it is necessary to extend the "Echo request message" to implement communication channel maintenance and link establishment command delivery. The following is an introduction:
Echo请求消息结构如下:The structure of the echo request message is as follows:
struct ofp_echo{struct ofp_echo{
struct ofp_header;struct ofp_header;
uint8_t echo_data[0];uint8_t echo_data[0];
}}
其中,作为一个优选的实现方式,echo_data[0]的名称和结构可实现如下:Among them, as a preferred implementation, the name and structure of echo_data[0] can be implemented as follows:
struct opportunistic_link_switch{struct opportunistic_link_switch{
struct opf_port;struct opf_port;
boolean switch;boolean switch;
}}
其中,opf_port代表允许建立对等机会链路的端口的ID;Among them, opf_port represents the ID of the port that is allowed to establish a peer-to-peer opportunity link;
switch代表是否开启数据转发层节点间Hello消息的发送,值为on或off。switch represents whether to enable the sending of Hello messages between data forwarding layer nodes. The value is on or off.
以上对本申请的基于软件定义网络的车联网架构以及其中的南向接口协议进行了详细说明,本发明的数据传输方法基于该架构实现,下面结合图2进行详细说明。The software-defined network-based IoV architecture of the present application and the southbound interface protocol therein have been described in detail above. The data transmission method of the present invention is implemented based on this architecture, and is described in detail below with reference to FIG. 2 .
参见图2,图2是本发明实施例基于软件定义网络的车联网中数据传输方法流程图,所述车联网包括应用层、控制层和数据转发层;控制层分别通过北向接口、南向接口与应用层和数据转发层进行信息交互;如图2所示,该方法包括以下步骤:Referring to FIG. 2, FIG. 2 is a flowchart of a method for data transmission in the Internet of Vehicles based on a software-defined network according to an embodiment of the present invention. The Internet of Vehicles includes an application layer, a control layer, and a data forwarding layer; the control layer passes through the northbound interface and the southbound interface respectively. Carry out information exchange with the application layer and the data forwarding layer; as shown in Figure 2, the method includes the following steps:
步骤201、控制层设备获取所有数据转发层设备的位置信息和未来轨迹信息。Step 201: The control layer device acquires the location information and future trajectory information of all data forwarding layer devices.
数据转发层设备包括车辆节点和路边装置。The data forwarding layer equipment includes vehicle nodes and roadside devices.
控制层设备可以在车辆网初始化时获取所有车辆节点和路边装置的位置信息及未来轨迹信息。由于车辆节点是移动的,位置不固定,需要定期上报自身的位置信息和未来轨迹信息到控制层设备,使得控制层设备及时更新该车辆节点的位置信息和未来轨迹信息,以便精准掌控全局信息。The control layer equipment can obtain the location information and future trajectory information of all vehicle nodes and roadside devices when the vehicle network is initialized. Since the vehicle node is mobile and the location is not fixed, it is necessary to regularly report its own location information and future trajectory information to the control layer device, so that the control layer device can update the vehicle node's location information and future trajectory information in time, so as to accurately control the global information.
步骤202、控制层设备获知数据转发层设备需要发送数据报文时,判断是否需要通过长距离蜂窝无线通信网络传输数据报文,如果是,则指示数据转发层设备从蜂窝接口转发数据报文,否则,根据数据转发层设备的位置信息和未来轨迹信息生成数据报文对应的流表并下发至数据转发层设备,以使数据转发层设备基于流表转发数据报文,实现数据报文的短距离无线通信。Step 202: When the control layer device learns that the data forwarding layer device needs to send a data message, it determines whether the data message needs to be transmitted through the long-distance cellular wireless communication network, and if so, instructs the data forwarding layer device to forward the data message from the cellular interface, Otherwise, a flow table corresponding to the data packet is generated according to the location information and future trajectory information of the data forwarding layer device and sent to the data forwarding layer device, so that the data forwarding layer device forwards the data packet based on the flow table, and realizes the transmission of the data packet. Short-range wireless communication.
数据转发层设备生成一个数据流的数据报文或接收到一个数据流的数据报文并需要进行转发时,向控制层设备发送一个RTS(Ready to Send,准备发送)报文,控制层设备接收到此RTS报文,确定/获知数据转发层设备需要发送数据报文。RTS报文相当于前面所述的Packet_In消息。When the data forwarding layer device generates a data packet of a data stream or receives a data packet of a data stream and needs to forward it, it sends an RTS (Ready to Send) packet to the control layer device, and the control layer device receives it. At this RTS message, it is determined/learned that the data forwarding layer device needs to send a data message. The RTS message is equivalent to the aforementioned Packet_In message.
在实际应用中,数据报文不可能被无限制转发下去,因此有转发跳数限制。在本实施例中,优先使用短距离无线通信网络(即采用无线短距技术的网络)传输数据报文,也即采用无线短距技术将数据报文在数据转发层设备之间进行对等、多跳传输。然而,如果数据报文已经经过了多次转发仍然未能达到目标设备(本发明中目标设备为路边装置,路边装置能够将数据报文以有线或无线网络回传至服务器),此时需要考虑放弃使用短距离无线通信网络传输数据报文,进而选择使用长距离蜂窝无线通信网络(即蜂窝网络)传输数据报文。In practical applications, data packets cannot be forwarded without limit, so there is a limit on the number of forwarding hops. In this embodiment, the short-range wireless communication network (that is, the network using the wireless short-range technology) is preferentially used to transmit data packets, that is, the wireless short-range technology is used to peer the data packets among the data forwarding layer devices, Multi-hop transmission. However, if the data packet has been forwarded for many times and still fails to reach the target device (the target device in the present invention is a roadside device, and the roadside device can send the data packet back to the server via a wired or wireless network), at this time It is necessary to consider giving up using a short-range wireless communication network to transmit data packets, and then choose to use a long-distance cellular wireless communication network (ie, a cellular network) to transmit data packets.
为此,本发明中,预先设置一个最大转发跳数,并在RTS报文中设置一个携带数据报文的传输跳数(也即被转发的跳数/次数)的字段。当控制层设备接收到数据转发层设备上送的RTS报文后,根据RTS报文中携带数据报文的传输跳数与预设最大转发跳数的大小比较结果,可以确定后续的转发控制行为,具体地,如果RTS报文中携带的数据报文的传输跳数大于预设最大转发跳数,则可以确定需要通过长距离蜂窝无线通信网络传输数据报文,否则,可以确定继续通过短距离无线通信网络传输数据报文。Therefore, in the present invention, a maximum forwarding hop count is preset, and a field carrying the transmission hop count of the data message (ie, the forwarded hop count/number of times) is set in the RTS message. After the control layer device receives the RTS packet sent by the data forwarding layer device, it can determine the subsequent forwarding control behavior according to the comparison result between the transmission hop count of the data packet carried in the RTS packet and the preset maximum forwarding hop count Specifically, if the number of transmission hops of the data message carried in the RTS message is greater than the preset maximum number of forwarding hops, it can be determined that the data message needs to be transmitted through the long-distance cellular wireless communication network, otherwise, it can be determined to continue to pass the short-distance Wireless communication networks transmit data packets.
当需要通过长距离蜂窝无线通信网络传输数据报文时,控制层设备通知数据转发层设备将数据报文通过蜂窝接口发送出去即可。当需要通过短距离无线通信网络传输数据报文时,控制层设备首先要根据数据转发层设备的位置信息和未来轨迹信息生成数据报文对应的流表,将流表下发至数据转发层设备,从而使得数据转发层设备基于流表转发数据报文。其中,所述流表中包括一个或多个下一跳信息。When the data packet needs to be transmitted through the long-distance cellular wireless communication network, the control layer device may notify the data forwarding layer device to send the data packet through the cellular interface. When a data packet needs to be transmitted through a short-distance wireless communication network, the control layer device must first generate a flow table corresponding to the data packet according to the location information and future trajectory information of the data forwarding layer device, and deliver the flow table to the data forwarding layer device. , so that the data forwarding layer device forwards data packets based on the flow table. Wherein, the flow table includes one or more next hop information.
短距离无线通信应用在距离相近的设备之间,在本发明中,当前数据转发层设备通过将数据报文发往附近的其它数据转发层设备,来实现短距无线通信,因此,与当前数据转发层设备距离相近的其它数据转发层设备均可作为数据报文的下一跳。然而,由于数据转发层设备中的车辆节点的位置信息是随着未来轨迹的变化而变化的,当前距离相近的数据转发层设备,可能会逐渐拉开距离,而原来距离较远的数据转发层设备,则也可能会逐渐接近。因此,在确定数据报文的下一跳,需要兼顾数据转发层设备的位置信息和未来轨迹信息,只有距离当前数据转发层设备比较接近且未来呈缩短趋势的其它数据转发层设备才比较适合作为数据报文的下一跳。Short-range wireless communication is applied between devices with similar distances. In the present invention, the current data forwarding layer device realizes short-range wireless communication by sending data packets to other nearby data forwarding layer devices. Other data forwarding layer devices that are close to the forwarding layer device can be used as the next hop of the data packet. However, since the location information of the vehicle nodes in the data forwarding layer device changes with the future trajectory, the data forwarding layer devices that are currently close in distance may gradually become more distant, while the data forwarding layer that is far away equipment, it may also gradually approach. Therefore, when determining the next hop of a data packet, it is necessary to take into account the location information and future trajectory information of the data forwarding layer device. Only other data forwarding layer devices that are relatively close to the current data forwarding layer device and tend to shorten in the future are more suitable as The next hop of the data packet.
本实施例中,根据数据转发层设备的位置信息和未来轨迹信息生成数据报文对应的流表的方法具体可以为:根据该数据转发层设备的位置信息确定与该数据转发层设备的距离在预设距离范围内的第一数据转发层设备集合;基于该数据转发层设备的未来轨迹信息确定与该数据转发层设备之间的距离呈缩短趋势的第二数据转发层设备集合;计算第一数据转发层设备集合与第二数据转发层设备集合的交集,将交集运算结果中的所有数据转发层设备信息作为下一跳信息写入数据报文对应的流表。In this embodiment, the method for generating a flow table corresponding to a data packet according to the location information and future trajectory information of the data forwarding layer device may specifically be: determining the distance to the data forwarding layer device according to the location information of the data forwarding layer device a first data forwarding layer device set within a preset distance range; a second data forwarding layer device set whose distance from the data forwarding layer device tends to be shortened is determined based on the future trajectory information of the data forwarding layer device; the first set of data forwarding layer devices is calculated For the intersection of the data forwarding layer device set and the second data forwarding layer device set, all the data forwarding layer device information in the intersection operation result is written into the flow table corresponding to the data packet as next hop information.
需要说明的是,以上只是生成流表的一种具体方法,实际上也可以采用其它实现方法,只要能够保证流表中的下一跳距离当前数据转发层设备较近,且与当前数据转发层设备的距离呈缩短趋势即可。It should be noted that the above is only a specific method for generating a flow table. In fact, other implementation methods can also be used, as long as the next hop in the flow table can be guaranteed to be closer to the current data forwarding layer device and to the current data forwarding layer. The distance between the devices tends to decrease.
在本发明中,数据转发层设备之间的数据转发依靠短距离无线通信技术,在通信之前,需要先建立数据转发层设备之间的无线链路,而数据转发层设备之间无线链路的建立过程与任何其他架构中无线链路的建立过程均有显著不同:In the present invention, data forwarding between data forwarding layer devices relies on short-distance wireless communication technology, and before communication, a wireless link between data forwarding layer devices needs to be established, and the wireless link between data forwarding layer devices needs to be established. The establishment process is significantly different from that of a wireless link in any other architecture:
车联网环境中,在其他网络架构下节点(在本发明中为数据转发层设备)之间无线链路的建立分为两大类:纯粹确定性与纯粹机会性;其中,In the Internet of Vehicles environment, the establishment of wireless links between nodes (data forwarding layer devices in the present invention) under other network architectures can be divided into two categories: pure deterministic and pure opportunistic; among them,
纯粹确定性是指控制层设备依靠全局信息中对节点位置的掌握,通过GPS信息获知两个节点位置处于彼此通信半径内时则授权其二者建立通信链路,此时两个节点才会发起链路建立过程或直接广播发送数据包;Pure determinism means that the control layer device relies on the mastery of the node position in the global information. When the two nodes are within the communication radius of each other through GPS information, they are authorized to establish a communication link. At this time, the two nodes will initiate Link establishment process or direct broadcast to send data packets;
纯粹机会性是指在没有全局信息的情况下,车辆间不断广播Hello报文,并与能够收到Hello报文并反馈的节点建立起链路。Pure opportunistic means that in the absence of global information, vehicles continuously broadcast Hello packets and establish links with nodes that can receive Hello packets and feedback.
以上二者的缺陷非常明显:前者为集中式控制,需要控制层设备极为频繁的对GPS等实时信息的获取和全局计算,这样的行为需要大量开销的同时,也存在以下问题:1)不可能用于大规模网络;2)某些帧的丢失或延时均会造成传输效率的损失,而帧丢失及延时的情况十分常见。相对而言,后者的完全分布式控制虽然免去了集中式控制的弊端,然而这样的建立过程需要海量的HELLO报文广播,容易造成资源浪费,在通信机会紧张的区域,例如十字路口或其他车辆密集区域,会因Hello报文的碰撞、信道争用等导致资源的不合理使用。The defects of the above two are very obvious: the former is centralized control, which requires the control layer equipment to obtain and globally calculate real-time information such as GPS very frequently. While such behavior requires a lot of overhead, there are also the following problems: 1) Impossible It is used for large-scale networks; 2) the loss or delay of some frames will cause the loss of transmission efficiency, and the situation of frame loss and delay is very common. Relatively speaking, although the latter's fully distributed control avoids the drawbacks of centralized control, such a setup process requires massive HELLO message broadcasts, which is prone to waste of resources. In other densely populated areas, resources may be unreasonably used due to the collision of Hello packets and channel contention.
本发明中采用确定性和机会性相结合的无线链路建立方法,首先,需要控制层设备掌握数据转发层设备的位置信息,要求数据转发层设备中的车辆节点周期性(一个周期的时间长度为T)上报自身的位置信息,T的取值可以根据网络规模等确定,可远大于纯粹确定性方法中要求的上报间隔;其次,数据转发层设备不持续广播Hello报文,而是在收到控制层设备的授权时才会开始发送Hello报文,并仅与流表中的下一跳节点建立无线连接。In the present invention, a method for establishing a wireless link combining deterministic and opportunistic is adopted. First, the control layer device is required to grasp the position information of the data forwarding layer device, and the vehicle nodes in the data forwarding layer device are required to be periodically (the time length of one cycle) For T) to report its own location information, the value of T can be determined according to the network scale, etc., and can be much larger than the reporting interval required in the purely deterministic method; Only when the control layer device is authorized will it start sending Hello packets, and only establish a wireless connection with the next hop node in the flow table.
具体的控制层设备的连接授权过程为:控制层设备首先要根据数据转发层设备的位置信息和未来轨迹信息生成数据报文对应的流表后,判断该数据转发层设备与流表中每个下一跳之间是否符合连接授权条件(利用Echo请求消息实现授权),如果符合连接授权条件,则授权该数据转发层设备建立与该下一跳之间的连接,从而该数据转发层设备接收到控制层设备的授权后,开始执行建立与该下一跳之间的连接的操作数据转发层设备。The specific connection authorization process of the control layer device is as follows: the control layer device first generates a flow table corresponding to the data packet according to the location information and future trajectory information of the data forwarding layer device, and then judges the data forwarding layer device and each flow table in the flow table. Whether the connection authorization conditions are met between the next hops (using the Echo request message to achieve authorization), if the connection authorization conditions are met, the data forwarding layer device is authorized to establish a connection with the next hop, so that the data forwarding layer device receives After being authorized by the control layer device, the operation data forwarding layer device that establishes the connection with the next hop starts to be executed.
其中,in,
控制层设备生成数据报文对应的流表后,判断数据转发层设备与流表中每一下一跳之间是否符合连接授权条件的方法为:如果该下一跳为路边装置,则确定该数据转发层设备与该路边装置符合连接授权条件;如果该数据转发层设备和该下一跳位于同一行驶路段,且该数据转发层设备的行驶方向为相向而行,则确定该数据转发层设备与该下一跳之间符合连接授权条件;否则,确定该数据转发层设备与该下一跳之间不符合连接授权条件,其中,同一行驶路段是指仅在存在两个路口供车辆驶离的一个路段。After the control layer device generates the flow table corresponding to the data message, the method for judging whether the connection authorization condition is met between the data forwarding layer device and each next hop in the flow table is as follows: if the next hop is a roadside device, determine the The data forwarding layer device and the roadside device meet the connection authorization conditions; if the data forwarding layer device and the next hop are located in the same driving section, and the driving direction of the data forwarding layer device is opposite to each other, then the data forwarding layer device is determined. The connection authorization condition is met between the device and the next hop; otherwise, it is determined that the connection authorization condition is not met between the data forwarding layer device and the next hop, where the same driving section means that there are only two intersections for vehicles to drive on a road away.
数据转发层设备接收到控制层设备对数据转发层设备与某一下一跳之间的连接授权后,开始执行建立与某一下一跳之间的连接操作,具体方法为:向外广播Hello报文,并在接收到该下一跳返回的应答报文后,建立与该下一跳之间的连接。且在建立与该下一跳的连接后,停止向外广播Hello报文,直至接收到数据转发层设备与其它下一跳之间的连接授权。After the data forwarding layer device receives the authorization of the connection between the data forwarding layer device and a certain next hop from the control layer device, it starts to establish a connection with a certain next hop. The specific method is: broadcast Hello packets to the outside. , and after receiving the response packet returned by the next hop, establish a connection with the next hop. And after establishing the connection with the next hop, stop broadcasting Hello packets to the outside until the connection authorization between the data forwarding layer device and other next hops is received.
本实施例中,控制层设备生成数据报文对应的流表,并将流表下发到数据转发层设备之后,数据转发层设备就可以基于流表转发数据报文,由于路边装置是数据报文的目标设备,因此,如果下一跳中存在路边装置,则优先将报文发送至路边装置,因此,具体的转发方法为:确定已经与该数据转发层设备建立连接的所有下一跳,如果其中存在一下一跳为路边装置,则通过建立的与该下一跳的连接转发数据报文到该下一跳,否则,从中选择一下一跳,并通过建立的与该下一跳的连接转发数据报文到该下一跳。In this embodiment, after the control layer device generates the flow table corresponding to the data packet and delivers the flow table to the data forwarding layer device, the data forwarding layer device can forward the data packet based on the flow table. Therefore, if there is a roadside device in the next hop, the packet will be sent to the roadside device preferentially. Therefore, the specific forwarding method is: determine all the downstream devices that have established a connection with the data forwarding layer device. One hop, if the next hop is a roadside device, the data packet is forwarded to the next hop through the established connection with the next hop, otherwise, the next hop is selected, and the established connection with the next hop A hop connection forwards data packets to the next hop.
本实施例中,由于路边装置是数据报文的目标设备,因此,一旦路边装置接收到数据报文,则不需要继续在网络中传输该数据报文,为此,在RTS报文中设置携带数据报文信息的字段,其中的数据报文信息能够表征数据报文。数据转发层设备接收到其它数据转发层设备发来的数据报文时,如果该数据转发层设备为路边装置,则将接收的数据报文上报至控制层设备,这时,控制层设备可以设置丢弃该数据报文的规则,并在再次接收到携带该数据报文信息的RTS报文时,根据丢弃该数据报文的规则通知发送该RTS报文的数据转发层设备丢弃该数据报文,从而使得该数据报文不会在网络中继续传输。In this embodiment, since the roadside device is the target device of the data message, once the roadside device receives the data message, it does not need to continue to transmit the data message in the network. Therefore, in the RTS message Set the field that carries the data packet information, where the data packet information can represent the data packet. When the data forwarding layer device receives a data packet sent by other data forwarding layer devices, if the data forwarding layer device is a roadside device, it will report the received data packet to the control layer device. At this time, the control layer device can Set a rule for discarding the data packet, and when the RTS packet carrying the data packet information is received again, notify the data forwarding layer device that sent the RTS packet to discard the data packet according to the rules for discarding the data packet , so that the data packet will not continue to be transmitted in the network.
本发明还提供了一种基于软件定义的车联网数据传输装置,以下结合图3进行详细说明。The present invention also provides a software-defined vehicle networking data transmission device, which will be described in detail below with reference to FIG. 3 .
参见图3,图3是本发明实施例基于软件定义的车联网数据传输装置的结构示意图,所述车联网包括应用层、控制层和数据转发层;控制层分别通过北向接口、南向接口与应用层和数据转发层进行信息交互;该装置应用于控制层设备,包括:Referring to FIG. 3, FIG. 3 is a schematic structural diagram of a software-defined Internet of Vehicles data transmission device according to an embodiment of the present invention. The Internet of Vehicles includes an application layer, a control layer, and a data forwarding layer; the control layer communicates with the northbound interface, the southbound interface, and the The application layer and the data forwarding layer exchange information; the device is applied to the control layer equipment, including:
获取单元301,用于获取所有数据转发层设备的位置信息和未来轨迹信息;an
决策单元302,用于获知数据转发层设备需要发送数据报文时,判断是否需要通过长距离蜂窝无线通信网络传输数据报文,如果是,则指示数据转发层设备从蜂窝接口转发数据报文,否则,根据数据转发层设备的位置信息和未来轨迹信息生成数据报文对应的流表并下发至数据转发层设备,以使数据转发层设备基于流表转发数据报文,实现数据报文的短距离无线通信。The decision-
图3所示装置中,In the device shown in Figure 3,
数据转发层设备包括车辆节点和路边装置;The data forwarding layer equipment includes vehicle nodes and roadside devices;
所述获取单元301,用于在车联网初始化时获取所有车辆节点和路边装置的位置信息及未来轨迹信息,并根据各车辆节点定期上报的位置信息和未来轨迹信息对该车辆节点的位置信息和未来轨迹信息进行更新。The obtaining
图3所示装置中,In the device shown in Figure 3,
所述决策单元302,接收到数据转发层设备上送的准备发送RTS报文时,获知数据转发层设备需要发送数据报文;The decision-
所述决策单元302,接收到数据转发层设备上送的RTS报文后,判断RTS报文中携带数据报文的传输跳数是否大于预设最大转发跳数,如果是,则确定需要通过长距离蜂窝无线通信网络传输数据报文,否则,确定不通过长距离蜂窝无线通信网络传输数据报文。The decision-
图3所示装置中,In the device shown in Figure 3,
车辆节点的未来轨迹信息包括:车辆节点的行驶路段、行驶方向、行驶速度;路边装置的未来轨迹信息为空;The future trajectory information of the vehicle node includes: the driving section, driving direction, and driving speed of the vehicle node; the future trajectory information of the roadside device is empty;
所述流表包括下一跳信息;the flow table includes next hop information;
所述决策单元302,根据数据转发层设备的位置信息和未来轨迹信息生成数据报文对应的流表的方法为:根据该数据转发层设备的位置信息确定与该数据转发层设备的距离在预设距离范围内的第一数据转发层设备集合;基于该数据转发层设备的未来轨迹信息确定与该数据转发层设备之间的距离呈缩短趋势的第二数据转发层设备集合;计算第一数据转发层设备集合与第二数据转发层设备集合的交集,将交集运算结果中的所有数据转发层设备信息作为下一跳信息写入数据报文对应的流表。The method for generating the flow table corresponding to the data packet according to the location information and future trajectory information of the data forwarding layer device by the
图3所示装置中,In the device shown in Figure 3,
所述决策单元302,生成数据转发层设备数据报文对应的流表后,进一步用于:判断该数据转发层设备与流表中每个下一跳之间是否符合连接授权条件,如果符合连接授权条件,则授权该数据转发层设备建立与该下一跳之间的连接,以使该数据转发层设备执行建立与该下一跳之间的连接的操作。The decision-
图3所示装置中,In the device shown in Figure 3,
所述决策单元302,判断该数据转发层设备与流表中每个下一跳之间是否符合连接授权条件时,用于:如果该下一跳为路边装置,则确定该数据转发层设备与该路边装置符合连接授权条件;如果该数据转发层设备和该下一跳位于同一行驶路段,且该数据转发层设备的行驶方向为相向而行,则确定该数据转发层设备与该下一跳之间符合连接授权条件;否则,确定该数据转发层设备与该下一跳之间不符合连接授权条件,其中,同一行驶路段是指仅在存在两个路口供车辆驶离的一个路段。The decision-
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the present invention. within the scope of protection.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611143296.8A CN106603658B (en) | 2016-12-13 | 2016-12-13 | Internet of vehicles data transmission method and device based on software defined network |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611143296.8A CN106603658B (en) | 2016-12-13 | 2016-12-13 | Internet of vehicles data transmission method and device based on software defined network |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106603658A CN106603658A (en) | 2017-04-26 |
| CN106603658B true CN106603658B (en) | 2020-04-24 |
Family
ID=58598957
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201611143296.8A Active CN106603658B (en) | 2016-12-13 | 2016-12-13 | Internet of vehicles data transmission method and device based on software defined network |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106603658B (en) |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| DE102017222905A1 (en) * | 2017-12-15 | 2019-06-19 | Audi Ag | Method for coupling a final vehicle to a stationary data network and system for carrying out the method |
| CN108271139A (en) * | 2018-01-18 | 2018-07-10 | 重庆大学 | A kind of method for routing based on software definition car networking |
| CN108922203B (en) * | 2018-07-26 | 2020-09-18 | 泉州装备制造研究所 | Regional traffic signal control system based on software defined network |
| CN110708246A (en) * | 2019-10-17 | 2020-01-17 | 山东健康医疗大数据有限公司 | Medical health data transmission optimization method and system based on SDN network |
| CN112929848B (en) * | 2021-05-10 | 2021-07-20 | 北京全路通信信号研究设计院集团有限公司 | Message sending method and relay sending node for vehicle-to-vehicle communication |
| CN114338510B (en) * | 2021-12-09 | 2023-07-07 | 北京华云安信息技术有限公司 | Data forwarding method and system for controlling and forwarding separation |
| CN119743185B (en) * | 2024-12-11 | 2025-09-16 | 中国电子科技集团公司第五十四研究所 | A high availability system and method for software-defined satellite communication ground station |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103763376A (en) * | 2014-01-25 | 2014-04-30 | 胡伟浩 | Intelligent automobile network cloud service system and method and special WIFI system for automobile network |
| CN103854143A (en) * | 2014-03-24 | 2014-06-11 | 深圳市众鸿科技股份有限公司 | Automobile networking service system and platform layer thereof |
| CN105208619A (en) * | 2014-06-25 | 2015-12-30 | 英特尔公司 | Techniques for generating a routing table for a mesh network having ad hoc connections |
| CN105208616A (en) * | 2015-06-17 | 2015-12-30 | 重庆邮电大学 | Road topology based adaptive multi-copy routing method in vehicular ad hoc network |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10129181B2 (en) * | 2014-08-16 | 2018-11-13 | New York University | Controlling the reactive caching of wildcard rules for packet processing, such as flow processing in software-defined networks |
| CN108307677A (en) * | 2015-05-05 | 2018-07-20 | 诺基亚通信公司 | method, system and device |
-
2016
- 2016-12-13 CN CN201611143296.8A patent/CN106603658B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103763376A (en) * | 2014-01-25 | 2014-04-30 | 胡伟浩 | Intelligent automobile network cloud service system and method and special WIFI system for automobile network |
| CN103854143A (en) * | 2014-03-24 | 2014-06-11 | 深圳市众鸿科技股份有限公司 | Automobile networking service system and platform layer thereof |
| CN105208619A (en) * | 2014-06-25 | 2015-12-30 | 英特尔公司 | Techniques for generating a routing table for a mesh network having ad hoc connections |
| CN105208616A (en) * | 2015-06-17 | 2015-12-30 | 重庆邮电大学 | Road topology based adaptive multi-copy routing method in vehicular ad hoc network |
Non-Patent Citations (1)
| Title |
|---|
| Software Defined Networking-based Vehicular Adhoc Network with Fog Computing;Nguyen B.Truong;《2015IFIP/IEEE International Symposium on IntegratedNetwork Management》;20150702;附图1、第1203-1204页 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106603658A (en) | 2017-04-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106603658B (en) | Internet of vehicles data transmission method and device based on software defined network | |
| Khan et al. | A multi-hop moving zone (MMZ) clustering scheme based on cellular-V2X | |
| Abrougui et al. | Design and evaluation of context-aware and location-based service discovery protocols for vehicular networks | |
| Rivoirard et al. | Performance evaluation of AODV, DSR, GRP and OLSR for VANET with real-world trajectories | |
| CN107404733A (en) | A kind of 5G method of mobile communication and system based on MEC and layering SDN | |
| CN111741448B (en) | A clustered AODV routing method based on edge computing strategy | |
| Gao et al. | A hierarchical routing scheme with load balancing in software defined vehicular ad hoc networks | |
| CN105553780A (en) | Method for deducing vehicular infrastructure-based connectivity model in urban scene | |
| Katsaros et al. | Effective implementation of location services for VANETs in hybrid network infrastructures | |
| CN103326942A (en) | Reliable routing protocol used for vehicle-mounted Ad Hoc network | |
| CN109842854A (en) | A kind of message multicast, message broadcasting method and apparatus | |
| CN108271139A (en) | A kind of method for routing based on software definition car networking | |
| WO2019223639A1 (en) | Wireless communication method and device | |
| CN106255153A (en) | There is under car networking the vehicle of caching capabilities hive off cooperation transmission method | |
| WO2019192350A1 (en) | Method implemented in internet of vehicles-based data transmission system, vehicle-mounted unit, and internet of vehicles-based data transmission system | |
| Balen et al. | Survey on using 5G technology in VANETs | |
| Wahid et al. | Software‐Defined Networks and Named Data Networks in Vehicular Ad Hoc Network Routing: Comparative Study and Future Directions | |
| Shafiq et al. | Qos in vehicular ad hoc networks–a survey | |
| CN110248392B (en) | Opportunity forwarding method based on node efficiency in Internet of vehicles | |
| Jiao et al. | Predictive big data collection in vehicular networks: A software defined networking based approach | |
| CN109804612B (en) | Method and apparatus for inter-user equipment communication | |
| WO2019206026A1 (en) | Method for v2x dynamically adjusting video transmission parameter and related product | |
| Yang et al. | A data transmitting scheme based on improved AODV and RSU-assisted forwarding for large-scale VANET | |
| CN108112046A (en) | A kind of routing scheduling method based on vehicle-mounted internet | |
| Huang et al. | CarAgent: Collecting and disseminating floating car data in vehicular networks |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20211223 Address after: 100191 No. 40, Haidian District, Beijing, Xueyuan Road Patentee after: CHINA ACADEMY OF INFORMATION AND COMMUNICATIONS Address before: 100191 No. 52 Garden North Road, Beijing, Haidian District Patentee before: CHINA ACADEME OF TELECOMMUNICATION RESEARCH OF MIIT |
|
| TR01 | Transfer of patent right |