CN116156567A - A multi-wireless ad hoc network method based on an intelligent routing device - Google Patents
A multi-wireless ad hoc network method based on an intelligent routing device Download PDFInfo
- Publication number
- CN116156567A CN116156567A CN202211689400.9A CN202211689400A CN116156567A CN 116156567 A CN116156567 A CN 116156567A CN 202211689400 A CN202211689400 A CN 202211689400A CN 116156567 A CN116156567 A CN 116156567A
- Authority
- CN
- China
- Prior art keywords
- address
- routing device
- data packet
- white list
- local
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/18—Self-organising networks, e.g. ad-hoc networks or sensor networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/10—Mapping addresses of different types
- H04L61/103—Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/02—Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
- H04L63/0227—Filtering policies
- H04L63/0236—Filtering by address, protocol, port number or service, e.g. IP-address or URL
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
- H04L63/101—Access control lists [ACL]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/08—Access security
- H04W12/088—Access security using filters or firewalls
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信技术领域,具体而言,涉及一种基于智能路由装置的多无线自组网方法。The present invention relates to the field of communication technology, in particular, to a multi-wireless ad hoc network method based on an intelligent routing device.
背景技术Background technique
局域网通信中,网络环路分为二层网络的交换环路及三层网络的路由环路。二层环路为交换机内或交换机之间闭环形成,会导致网络风暴等异常问题。三层环路一般由路由设置不当导致路由选择出口错误引起,最终表现为有TTL(Time to live)的网络环路,三层环路引起的网络风暴虽可自行消失,但仍会极大增加通信开销。两类环路如发生在无线自组网等带宽资源有限的网络中,都极易引起网络内设备资源耗尽,导致网络瘫痪。In LAN communication, the network loop is divided into the switching loop of the two-layer network and the routing loop of the three-layer network.
目前,针对二层环路的解决思路一般为启用交换机的生成树协议(STP,SpanningTree Protocol),其通过实时交换特殊的协议报文来确定当前网络的拓扑结构。当网络环路发生时,STP简单的将环路中的特定通路阻塞,实现解环。STP虽然可以解决为保持网络健壮性而引入冗余链路导致的物理环路问题,但仍存在拓扑收敛时间慢、无法实现负载均衡功能及无线网络中因拓扑信息交换引起资源消耗等问题。At present, the solution to the
发明内容Contents of the invention
为了改善上述技术问题至少之一,本发明的一个目的在于提供一种基于智能路由装置的多无线自组网方法,简称多无线自组网方法,用于改善多个无线自组网在组成环路网络等应用场景中出现的网络风暴、负载不均等问题。In order to improve at least one of the above-mentioned technical problems, an object of the present invention is to provide a multi-wireless ad hoc network method based on an intelligent routing device, referred to as a multi-wireless ad hoc network method, which is used to improve the formation of multiple wireless ad hoc networks Problems such as network storms and uneven loads that occur in application scenarios such as road networks.
为实现上述目的,本发明的技术方案提供了一种基于智能路由装置的多无线自组网方法,包括如下步骤:In order to achieve the above object, the technical solution of the present invention provides a multi-wireless ad hoc network method based on an intelligent routing device, comprising the following steps:
步骤S1,网口白名单添加:Step S1, add network port whitelist:
本地路由装置接收ARP包,抓取并解析ARP包的源IP地址;The local routing device receives the ARP packet, captures and analyzes the source IP address of the ARP packet;
判断源IP地址是否存在于本地路由装置的白名单中;Determine whether the source IP address exists in the white list of the local routing device;
若本地路由装置的白名单(其中,路由装置的白名单包括多种,分别为自组网网口白名单、对端白名单,且自组网网口白名单的数量等于自组网网口的数量)中不存在源IP地址,则根据该源IP地址将其加入本地路由装置的对应网口的白名单中;其中,网口的类型包括自组网网口、本地设备网口,自组网网口的个数为多个,用于通过自组网连接对端路由装置,本地设备网口用于连接本地设备;If the white list of the local routing device (among them, the white list of the routing device includes multiple types, namely the white list of the ad hoc network port and the white list of the opposite end, and the number of the white list of the ad hoc network port is equal to the number of the ad hoc network port If there is no source IP address in the source IP address, it will be added to the white list of the corresponding network port of the local routing device according to the source IP address; wherein, the type of network port includes an ad hoc network port, a local device network port, and a self-organizing network port. There are multiple networking ports, which are used to connect to the peer routing device through the self-organizing network, and the local device network port is used to connect to the local device;
若本地路由装置的白名单中存在源IP地址,则进一步判断所述源IP地址是否存在于与本地路由装置的相连的另一个自组网网口白名单中;If there is a source IP address in the white list of the local routing device, then further judge whether the source IP address exists in another ad hoc network port white list connected with the local routing device;
若另一个自组网网口白名单中不存在源IP地址,则该地址已存在于收到数据包的组网网口白名单中,不做进一步处理,若另一个自组网网口白名单中存在该源IP地址,则将该源IP地址移入属于本地路由装置的对端白名单中;If the source IP address does not exist in the white list of another ad hoc network port, the address already exists in the white list of the If the source IP address exists in the list, the source IP address is moved into the peer white list belonging to the local routing device;
步骤S2,数据转发:Step S2, data forwarding:
步骤S21,响应于本地路由装置的本地设备网口接收到的数据包,对数据包进行抓包解析,并判断数据包的目的IP地址,是否存在于任一白名单中:Step S21, in response to the data packet received by the local device network port of the local routing device, capture and analyze the data packet, and determine whether the destination IP address of the data packet exists in any white list:
若数据包的目的IP地址存在于本地路由装置的白名单中,则根据目的IP地址,将数据包发送至相应的网口;If the destination IP address of the data packet exists in the white list of the local routing device, the data packet is sent to the corresponding network port according to the destination IP address;
若数据包的目的IP地址存在于对端白名单中,则获取通过本地路由装置上每个自组网网络的每条通信线路通信代价值,选择通信代价值小的通信线路传输数据包;If the destination IP address of the data packet exists in the white list of the opposite end, then obtain the communication cost value of each communication line through each ad hoc network on the local routing device, and select a communication line with a small communication cost value to transmit the data packet;
若数据包的目的IP地址不存在于本地路由装置的任一白名单中,则将将该数据包的源IP地址加入本地设备网口的白名单中,并将数据包从任一网口均发出;If the destination IP address of the data packet does not exist in any white list of the local routing device, the source IP address of the data packet will be added to the white list of the network port of the local device, and the data packet will be sent from any network port to the white list. issue;
步骤S22,响应于本地路由装置的自组网网口接收到的数据包,数据包进行抓包解析,并判断数据包的目的IP地址,是否存在于任一白名单中;Step S22, in response to the data packet received by the ad hoc network port of the local routing device, the data packet is captured and analyzed, and it is judged whether the destination IP address of the data packet exists in any white list;
若数据包的目的IP地址存在于本地路由装置的白名单中,则根据目的IP地址,将数据包通过相应的网口发出;If the destination IP address of the data packet exists in the white list of the local routing device, the data packet is sent through the corresponding network port according to the destination IP address;
若数据包的目的IP地址不存在于本地路由装置的白名单中,,且为收到数据包的组网网口的本身地址,则将数据包的目的IP地址替换为数据包的真实目的IP地址,并将数据包由本地路由装置的另一自组网网口发出;If the destination IP address of the data packet does not exist in the white list of the local routing device, and is the address of the networking port that received the data packet, replace the destination IP address of the data packet with the real destination IP of the data packet address, and send the data packet from another ad hoc network port of the local routing device;
若数据包的目的IP地址不存在于本地路由装置的白名单中、非收到数据包的组网网口的本身地址,且所述数据包的源IP地址不存在于收到数据包的组网网口白名单中,则将源IP地址加入收到数据包的组网网口白名单中,并从本地路由装置的另一自组网网口及本地设备网口发出;若源IP地址存在于收到数据包的组网网口白名单中,则将数据包从本地路由装置的另一自组网网口及本地设备网口发出。If the destination IP address of the data packet does not exist in the white list of the local routing device, it is not the own address of the networking port that received the data packet, and the source IP address of the data packet does not exist in the group that received the data packet In the white list of the network port, the source IP address is added to the white list of the network port that received the data packet, and sent from another ad hoc network port of the local routing device and the network port of the local device; if the source IP address If it exists in the white list of the networking port that receives the data packet, the data packet is sent from another ad hoc network port of the local routing device and the local device network port.
本技术方案所提供的多无线自组网方法,考虑到无线网络带宽资源有限的特点,尽可能减少了在无线网络中传输智能路由装置工作所需的同步数据。其中,首先通过智能路由装置实时监测环路内各类数据包流向,并将数据包按照既定规则转发至其目的设备,对不符合转发规则的数据包进行拦截、杜绝无效转发,从而实现网络风暴免疫。其次通过控制接入无线自组网内的设备在开机后发出ARP广播包,智能路由装置接收并分析广播包内容,完成属于该入网设备的相关信息维护后,入网设备即可在第一时间使用网络进行通信,从而保证短时间完成收敛。再次,通过智能路由装置实时监测无线自组网拓扑结构,分别计算更新两个自组网内任意两节点间的通信代价值,如数据业务需要进行负载均衡,则参考其可行的两条链路代价值大小并选择代价更小的链路发出,从而实现两个自组网之间的负载均衡。The multi-wireless ad hoc network method provided by the technical solution takes into account the characteristics of limited wireless network bandwidth resources, and reduces as much as possible the synchronization data required for the transmission of intelligent routing devices in the wireless network. Among them, the intelligent routing device first monitors the flow of various data packets in the loop in real time, and forwards the data packets to their destination devices according to the established rules, intercepts the data packets that do not conform to the forwarding rules, and prevents invalid forwarding, thereby realizing network storms immunity. Secondly, by controlling the devices connected to the wireless ad-hoc network to send out ARP broadcast packets after starting up, the intelligent routing device receives and analyzes the content of the broadcast packets, and after completing the maintenance of relevant information belonging to the network-connected devices, the network-connected devices can be used immediately The network communicates to ensure convergence in a short time. Thirdly, monitor the topological structure of the wireless ad hoc network in real time through the intelligent routing device, and calculate and update the communication cost between any two nodes in the two ad hoc networks respectively. If the data service needs to be load balanced, refer to the two feasible links The value of the cost and select the link with a lower cost to send out, so as to achieve load balancing between the two ad hoc networks.
另外,本发明提供的上述技术方案中的基于智能路由装置的多无线自组网方法还可以具有如下附加技术特征:In addition, the multi-wireless ad hoc network method based on the intelligent routing device in the above-mentioned technical solution provided by the present invention can also have the following additional technical features:
在上述技术方案中,在步骤S21中,荻取通过本地路由装置上每个自组网网口的每条通信线路的通信代价值的步骤包括:In the above-mentioned technical scheme, in step S21, the step of getting the communication cost value of each communication line by each ad hoc network port on the local routing device includes:
根据数据包的源IP地址及目的IP地址,枚举两个IP地址间的全部通讯线路;According to the source IP address and destination IP address of the data packet, enumerate all the communication lines between the two IP addresses;
根据每条通讯线路上的各设备的通信代价,得到各通讯线路的通信代价值。According to the communication cost of each device on each communication line, the communication cost value of each communication line is obtained.
进一步地,在步骤S21中,选择通信代价值小的通信线路传输数据包的步骤包括:Further, in step S21, the step of selecting a communication line with a small communication cost to transmit the data packet includes:
实时获取两个IP地址间的通信代价值,并存入通信代价值矩阵中;Obtain the communication cost value between two IP addresses in real time and store it in the communication cost value matrix;
根据数据包的源IP地址及目的IP地址,读取通信代价值矩阵中的各通讯线路的通信代价值,从中选出通信代价值小的通讯线路。According to the source IP address and the destination IP address of the data packet, read the communication cost value of each communication line in the communication cost value matrix, and select a communication line with a small communication cost value.
在上述技术方案中,本地路由装置设有一个本地设备网口及多个自组网网口,本地设备网口用于连接本地网络中的本地设备,自组网网口用于通过自组网连接对端路由装置;对端路由装置设有一个本地设备网口及多个自组网网口,本地设备网口用于连接对端网络中的本地设备,自组网网口用于通过自组网连接其他对端路由装置或本地路由装置。In the above technical solution, the local routing device is provided with a local device network port and a plurality of ad hoc network ports, the local device network port is used to connect local devices in the local network, and the ad hoc network port is used to pass through the ad hoc network Connect to the peer routing device; the peer routing device is equipped with a local device network port and multiple ad hoc network ports, the local device network port is used to connect to the local device in the peer network, and the ad hoc Networking to connect other peer routing devices or local routing devices.
进一步地,本地路由装置与一个对端路由装置、两个自组网,组成通讯环路。Further, the local routing device forms a communication loop with a peer routing device and two ad hoc networks.
综上,本发明所提供的基于智能路由装置的多无线自组网方法,至少具有如下有益效果:To sum up, the multi-wireless ad hoc network method based on the intelligent routing device provided by the present invention has at least the following beneficial effects:
1)采用本发明进行两个(或多个)无线组网进行环路通信,可避免因各类广播数据无效转发引起的网络风暴问题。1) By adopting the present invention to carry out two (or more) wireless networking for loop communication, the problem of network storm caused by invalid forwarding of various broadcast data can be avoided.
2)采用入网设备开机即检的方式进行网络拓扑监测,可保证入网设备在最短时间内完成选路规划,大幅度缩短收敛时间。2) The network topology monitoring is carried out by adopting the method of detecting network-connected devices immediately after power-on, which can ensure that the network-connected devices complete the route selection planning in the shortest time, and greatly shorten the convergence time.
3)针对无线网资源有限的特点,加入了无线通信代价值作为负载均衡的参考。用户在使用本发明进行多业务、大带宽通信时,智能路由装置可自动实现多个无线网间负载的有效均衡,保证多业务传输的稳定性、实时性及数据正确性。3) Aiming at the characteristics of limited wireless network resources, wireless communication cost is added as a reference for load balancing. When a user uses the present invention for multi-service and large-bandwidth communication, the intelligent routing device can automatically realize effective load balancing among multiple wireless networks, ensuring the stability, real-time performance and data accuracy of multi-service transmission.
本发明的附加方面和优点将在下面的描述部分中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the invention will become apparent in the description which follows, or may be learned by practice of the invention.
附图说明Description of drawings
本发明的上述和/或附加的方面和优点从结合下面附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and understandable from the description of the embodiments in conjunction with the following drawings, wherein:
图1是本发明的一些实施例的智能路由装置的连接关系示意图。Fig. 1 is a schematic diagram of the connection relationship of the intelligent routing device in some embodiments of the present invention.
图2是本发明的一些实施例的多无线自组网方法中的网口白名单添加步骤的流程框图。Fig. 2 is a block flow diagram of the steps of adding a network port whitelist in the multi-wireless ad hoc network method according to some embodiments of the present invention.
图3是本发明的一些实施例的多无线自组网方法中的网口3接收数据转发的流程框图。Fig. 3 is a flowchart of data forwarding received by the
图4是本发明的一些实施例的多无线自组网方法中的网口1或网口2接收数据转发的流程框图。Fig. 4 is a flowchart of data forwarding received by
图5是本发明的一些实施例的自组网环路通信连接示意图。Fig. 5 is a schematic diagram of ad hoc network loop communication connections according to some embodiments of the present invention.
图6是本发明的一些实施例的本地设备A1发送数据至自组网设备C1的状态示意图。Fig. 6 is a schematic diagram of the state of the local device A1 sending data to the ad hoc network device C1 according to some embodiments of the present invention.
图7是本发明的一些实施例的本地设备A1发送数据至本地设备B1的状态示意图。Fig. 7 is a schematic diagram of the status of the local device A1 sending data to the local device B1 according to some embodiments of the present invention.
图8是本发明的一些实施例的自组网设备C1发送数据至本地设备A1的状态示意图。Fig. 8 is a schematic diagram of the state of the ad hoc network device C1 sending data to the local device A1 according to some embodiments of the present invention.
图9是本发明的一些实施例的自组网设备C1发送数据至自组网设备D1的状态示意图。Fig. 9 is a schematic diagram of the state of the ad hoc network device C1 sending data to the ad hoc network device D1 according to some embodiments of the present invention.
具体实施方式Detailed ways
为了能够更清楚地理解本发明的上述目的、特征和优点,下面结合附图和具体实施方式对本发明进行进一步的详细描述。需要说明的是,在不冲突的情况下,本申请的实施例及实施例中的特征可以相互组合。In order to understand the above-mentioned purpose, features and advantages of the present invention more clearly, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the case of no conflict, the embodiments of the present application and the features in the embodiments can be combined with each other.
在下面的描述中阐述了很多具体细节以便于充分理解本发明,但是,本发明还可以采用其他不同于在此描述的其他方式来实施,因此,本发明的保护范围并不受下面公开的具体实施例的限制。In the following description, many specific details are set forth in order to fully understand the present invention. However, the present invention can also be implemented in other ways different from those described here. Therefore, the protection scope of the present invention is not limited by the specific details disclosed below. EXAMPLE LIMITATIONS.
本申请的一些实施例提供了一种智能路由装置。Some embodiments of the present application provide an intelligent routing device.
该智能路由装置部署于无线环路中,装置的网口数量可根据使用场景扩展。该装置在保证环路通畅的同时,实时记录网内所有设备第一次上电时出现在装置各网口的ARP包源、目的地址信息,经过装置内部智能分析,为每个网口生成并维护一个专属白名单。所有经过该装置转发的数据将进行白名单验证,保证数据通过正确的接口发出,从而杜绝数据无效转发引起网络风暴;针对具备冗余链路的通行场景,该装置同时计算并维护每个无线网络内所有节点的通信代价值,在装置接收到数据包后参考其代价值较小的一条链路发出。智能路由装置之间仅需定时交互本地地址的白名单等信息,作为对端修正白名单的参考,数据量极小、几乎不占用无线资源。The intelligent routing device is deployed in the wireless loop, and the number of network ports of the device can be expanded according to usage scenarios. While ensuring the unobstructed loop, the device records in real time the source and destination address information of ARP packets that appear on each network port of the device when all devices in the network are powered on for the first time. After intelligent analysis inside the device, it generates and Maintain an exclusive whitelist. All data forwarded by the device will undergo whitelist verification to ensure that the data is sent through the correct interface, thereby preventing network storms caused by invalid data forwarding; for traffic scenarios with redundant links, the device simultaneously calculates and maintains each wireless network The communication cost values of all nodes in the device are sent with reference to a link with a smaller cost value after the device receives the data packet. The intelligent routing devices only need to regularly exchange information such as the white list of the local address, as a reference for the peer to modify the white list, the amount of data is extremely small, and almost no wireless resources are occupied.
具体地,如图1所示,该智能路由装置使用CPU作为核心,并根据使用需求配备多个网络接口作为对外数据接口。其中,一个网口连接本地设备,剩余网口连接自组网设备,如图1所示。Specifically, as shown in FIG. 1 , the intelligent routing device uses a CPU as a core, and is equipped with multiple network interfaces as external data interfaces according to usage requirements. Among them, one network port is connected to the local device, and the remaining network ports are connected to the self-organizing network device, as shown in Figure 1.
基于上述智能路由装置,本发明还提供了一种多无线自组网方法。其中的智能路由装置的数量为多个,一个作为本地路由装置,其余作为对端路由装置。其中,如图2至9所示,本地智能路由装置简称为装置A,对端智能路由装置简称为装置B。Based on the above intelligent routing device, the present invention also provides a multi-wireless ad hoc network method. There are multiple intelligent routing devices, one of which is used as a local routing device, and the rest are used as peer routing devices. Wherein, as shown in FIGS. 2 to 9 , the local intelligent routing device is referred to as device A for short, and the remote intelligent routing device is referred to as device B for short.
多无线自组网方法包括网口白名单添加及数据转发两大部分。The multi-wireless ad hoc network method includes two parts: network port whitelist addition and data forwarding.
一、白名单包括本地设备白名单、自组网设备白名单及对端设备白名单3类,其中对端设备指环路另一端智能路由装置所连接的本地设备。白名单添加流程如图2所示。1. The white list includes three categories: local device white list, ad hoc network device white list, and peer device white list. The peer device refers to the local device connected to the intelligent routing device at the other end of the loop. The whitelist addition process is shown in Figure 2.
1)本地设备白名单:本地设备开机后发出ARP包到达装置A的网口3,CPU抓取并解析ARP包的源IP地址(简称源地址),将其添加至网口3的白名单中。网口3的白名单均按照此规则添加。1) Local device whitelist: After the local device is turned on, the ARP packet is sent to network
2)自组网设备白名单:自组网设备连接自组网1(2)后发出ARP包到达对应装置A的网口1(2),CPU抓取并解析ARP包源IP地址,将其添加至网口1(2)的白名单中。自组网1(2)的白名单均按照此规则添加。2) White list of self-organizing network equipment: After the self-organizing network equipment is connected to the self-organizing network 1(2), it sends an ARP packet to the network port 1(2) of the corresponding device A, and the CPU captures and analyzes the source IP address of the ARP packet, and saves it to Add it to the whitelist of network port 1(2). The white list of Ad hoc network 1(2) is added according to this rule.
3)对端设备白名单:装置B连接的本地设备开机后发出ARP包到达装置B的网口3。装置B将ARP包通过其网口1、2同时发送至两个无线自组网1、2,最终到达装置A的网口1、2。因两个无线网络延时不一致,且均为毫秒级,因此具备相同源IP地址的ARP包到达网口1、2时间不一致且差别很小,根据此特点筛选后将ARP包的源IP地址记录至装置A的对端设备白名单中。随后装置A将ARP包转发至网口3。对端设备白名单均按照此规则添加。3) Peer device whitelist: The local device connected to device B sends an ARP packet to network
二、数据转发规则分为连接本地设备的网口3转发规则及连接自组网设备的网口1、2转发规则,对规则外的数据不做转发,其中网口3的转发规则会影响到两个自组网间的负载均衡,需要计算通信代价值。装置A会定期访问连接的两个自组网中存储的拓扑信息数据,并根据两个无线网络全部链路通信质量,实时计算任意两节点间的通信代价值并分别存入自组网1、2的通信代价值矩阵中。2. The data forwarding rules are divided into the forwarding rules of the
1、网口3转发规则:网口3接收到数据包后进行抓包解析,如数据包目的地址为网口1(2)白名单中的地址,则从网口1(2)发出;目的地址为对端设备白名单中的地址,则查询两个自组网进行通信的代价值,选择代价较小的一路发出;数据包为ARP包,如源地址为网口3白名单中的地址,则数据包从网口1、2均发出。1.
2、网口1(2)转发规则:网口1(2)接收到数据包后进行抓包解析,如数据包目的地址为网口3白名单中的地址,则从网口3发出;目的地址为网口2(1)白名单中的地址,则从网口2(1)发出;目的地址为网口1(2)本身地址,并且源地址为对端设备白名单中的地址,则将数据包的目的地址替换为数据包中附加的真实源地址,并将数据包从2(1)网口发出;数据包为ARP包,如源地址为网口1(2)白名单中的地址,则数据包从网口2(1)、3均发出。2. Network port 1(2) forwarding rules: Network port 1(2) performs packet capture and analysis after receiving the data packet. If the destination address of the data packet is an address in the white list of
环路内智能路由装置均按照以上规则维护自身工作所需白名单信息,并按照各自网口转发规则进行转发,对不符合转发规则的数据包不做转发处理,从而避免无效数据转发引起网络风暴。两个智能路由装置间定时交互自身白名单信息及网口相关信息,以保证双方信息同步,防止无线自组网网络波动引起智能路由装置的误判。The intelligent routing devices in the loop maintain the white list information required for their work according to the above rules, and forward according to the forwarding rules of their respective network ports, and do not forward the data packets that do not meet the forwarding rules, so as to avoid network storms caused by invalid data forwarding . The two intelligent routing devices regularly exchange their own whitelist information and network port related information to ensure that the information of both parties is synchronized and prevent the wireless ad hoc network from causing misjudgment by the intelligent routing device.
下面参照附图,通过一些具体实施例描述本发明一些实施例中的基于智能路由装置的多无线自组网方法。Referring to the accompanying drawings, the multi-wireless ad hoc network method based on the intelligent routing device in some embodiments of the present invention will be described through some specific embodiments.
以两个自组网组成的环路为例,其连接关系如图5所示。无线自组网C、D与智能路由装置A、B组成中心环路网络,无线自组网分别连接各自网内无线用户设备,智能路由装置第三个网口通过交换机连接多台本地设备。Taking the loop composed of two ad hoc networks as an example, the connection relationship is shown in Figure 5. The wireless ad hoc networks C, D and the intelligent routing devices A and B form a central loop network. The wireless ad hoc networks are respectively connected to wireless user equipment in their respective networks, and the third network port of the intelligent routing device is connected to multiple local devices through a switch.
下面以智能路由装置A为例分析本发明工作方式:Take the intelligent routing device A as an example to analyze the working mode of the present invention below:
实施例1Example 1
如图5所示,本地设备(A1~AN)开机后发出ARP包,通过交换机A到达智能路由装置A的网口3,此时ARP包的源IP地址被记录至网口3的白名单中。随后智能路由装置A将ARP包同时转发至网口1及网口2,分别进入自组网C、D内。网口3的白名单均按照此规则添加。As shown in Figure 5, the local devices (A1~AN) send out ARP packets after starting up, and reach the
实施例2Example 2
如图5所示,自组网C(D)内设备开机后发出ARP包,通过无线网络C(D)到达智能路由装置A的网口1(2),此时ARP包的源IP地址被记录至网口1(2)对应的白名单中。随后智能路由装置A将ARP包转发至网口2(1)、3,分别进入自组网D(C)及本地网络A中。此时智能路由装置B的网口2(1)会收到此ARP包,因ARP包不符合转发规则(源地址属于网口1(2)白名单中的地址)所以不做转发,从而打断了无效环路。网口1、2的白名单均按照此规则添加。As shown in Figure 5, the device in the ad hoc network C(D) sends out an ARP packet after it is turned on, and reaches the network port 1(2) of the intelligent routing device A through the wireless network C(D). At this time, the source IP address of the ARP packet is Record it in the white list corresponding to network port 1(2). Then the intelligent routing device A forwards the ARP packet to the network ports 2(1) and 3, and enters the ad hoc network D(C) and the local network A respectively. At this time, the network port 2 (1) of the intelligent routing device B will receive the ARP packet. Because the ARP packet does not meet the forwarding rules (the source address belongs to the address in the white list of the network port 1 (2)), it will not forward it, thus opening The invalid loop is broken. The whitelists of
实施例3Example 3
如图5所示,本地网络B内设备开机后发出ARP包,通过交换机、智能路由装置B同时发送至无线网络C、D,最终到达智能路由装置A的网口1、2。因两个无线网络延时不一致,且均为毫秒级,所以具备相同源IP地址的ARP包到达网口1、2时间不一致且差别很小。此ARP包符合对端设备白名单筛选特点,因此将其源IP地址记录至智能路由装置A的对端设备白名单中。随后智能路由装置A将ARP包转发至网口3。属于智能路由装置A的对端设备白名单均按照此规则添加。As shown in Figure 5, after the device in the local network B is powered on, it sends an ARP packet, which is sent to the wireless networks C and D through the switch and the intelligent routing device B at the same time, and finally reaches the
实施例4Example 4
如图5所示,智能路由A通过定期访问存在于自组网C0、D0设备内的无线自组网建网信息数据,根据两个网络全部链路通信质量,实时计算任意两节点间的通信代价值并分别存入自组网C、D的代价值矩阵中。As shown in Figure 5, intelligent routing A regularly accesses the wireless ad hoc network construction information data existing in the ad hoc network C0 and D0 equipment, and calculates the communication between any two nodes in real time according to the communication quality of all links of the two networks The cost value is stored in the cost value matrix of the ad hoc network C and D respectively.
此外,两台智能路由装置按照上述工作方式完成自身工作所需信息分析及记录后,网络进入正常通信阶段,下面分析数据根据转发规则从不同起点出发到达目的地的过程:In addition, after the two intelligent routing devices complete the information analysis and recording required for their own work according to the above-mentioned working method, the network enters the normal communication stage. The following analyzes the process of data starting from different starting points and reaching the destination according to the forwarding rules:
实施例5Example 5
如图6所示,本地设备A1数据发送至自组网设备C1(发送至设备D1同理)As shown in Figure 6, the local device A1 sends data to the ad hoc network device C1 (send to device D1 in the same way)
本地设备A1以自身IP地址作为源地址、自组网设备C1地址作为目的地址将数据打包发送至交换机A。数据到达智能路由装置A的网口3后,分析数据包内两个IP地址信息,解析到数据包源地址属于网口3白名单、目的地址属于网口1白名单,符合转发规则。智能路由装置A此时查询通过环路两边(路线A:智能路由装置A->自组网C0->自组网C1,路线B:智能路由装置A->自组网D0->智能路由装置B->自组网C1)通信代价值,如线路A代价值更小,则从网口1发出,最终到达自组网设备C1。如线路B代价值更小,则将数据包内的目的IP地址替换为智能路由装置B网口2的IP地址源目的地址附加至数据包,经自组网D发送至智能路由装置B。智能路由装置B网口2接收到数据包后,解析到数据包源地址属于对端设备白名单、目的地址为本网口IP,则将数据包目的地址恢复为原始状态、去除附加位后从网口1发出,最终到达自组网设备C1。The local device A1 uses its own IP address as the source address and the address of the ad hoc network device C1 as the destination address to package and send the data to the switch A. After the data arrives at
实施例6Example 6
如图7所示,本地设备A1以自身IP地址作为源地址、自组网设备A1地址作为目的地址将数据打包发送至交换机A。数据到达智能路由装置A的网口3后,分析数据包内两个IP地址信息,解析到数据包源地址属于网口3白名单、目的地址属于对端设备白名单,符合转发规则。智能路由装置A此时查询通过环路两边(路线A:智能路由装置A->自组网C0->自组网C->智能路由装置B->本地设备B1,路线B:智能路由装置A->自组网D0->自组网D->智能路由装置B->本地设备B1)无线传输部分的通信代价值,如线路A代价值更小则从网口1发出,线路B代价值更小则从网口2发出,最终到达本地设备B1。As shown in FIG. 7 , the local device A1 uses its own IP address as the source address and the address of the ad hoc network device A1 as the destination address to send the data to the switch A in packets. After the data arrives at
实施例7Example 7
如图8所示,自组网设备C1数据发送至本地设备A1。As shown in FIG. 8, the ad hoc network device C1 sends data to the local device A1.
自组网设备C1以自身IP地址作为源地址、本地设备A1地址作为目的地址将数据打包经自组网C发送至智能路由装置A的网口1。智能路由装置A解析到数据包源地址属于网口1白名单、目的地址属于网口3白名单,符合转发规则,将数据包从网口3发出,到达本地设备A1。因自组网工作模式限制,自组网设备C1数据包仅会发送至自组网设备C0,所以此类数据转发仅存在一条路线。The ad hoc network device C1 uses its own IP address as the source address and the local device A1 address as the destination address to package the data and send it to the
实施例8Example 8
如图9所示,自组网设备C1数据发送至自组网设备D1。As shown in FIG. 9 , the ad hoc network device C1 sends data to the ad hoc network device D1.
自组网设备C1以自身IP地址作为源地址、自组网设备D1地址作为目的地址将数据打包经自组网C发送至智能路由装置A的网口1。智能路由装置A解析到数据包源地址属于网口1白名单、目的地址属于网口2白名单,符合转发规则,将数据包从网口2发出,到达自组网设备D1。因自组网工作模式限制,自组网设备C1数据包仅会发送至自组网设备C0(或C_0),所以此类数据转发仅存在一条路线。The ad hoc network device C1 uses its own IP address as the source address and the ad hoc network device D1 address as the destination address to package the data and send it to the
综上,针对无线自组网通信应用特点,本发明通过实时分析网络拓扑情况、无线网络负载情况,将数据按照代价最小的路径转发至目的设备,实现两个无线网络间的负载均衡及快速拓扑收敛。同时因发明装置实时分析数据流向,对不符合转发规则的数据包进行过滤处理,杜绝环路内发生网络风暴的可能。To sum up, in view of the application characteristics of wireless ad hoc network communication, the present invention forwards data to the destination device according to the path with the least cost by analyzing the network topology and wireless network load in real time, so as to realize load balancing and fast topology between two wireless networks. convergence. At the same time, because the inventive device analyzes the data flow direction in real time, it filters the data packets that do not conform to the forwarding rules, so as to prevent the possibility of network storms in the loop.
在本发明中,术语“多个”则指两个或两个以上,除非另有明确的限定。术语“安装”、“相连”、“连接”、“固定”等术语均应做广义理解,例如,“连接”可以是固定连接,也可以是可拆卸连接,或一体地连接;“相连”可以是直接相连,也可以通过中间媒介间接相连。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。In the present invention, the term "plurality" refers to two or more, unless otherwise clearly defined. The terms "installation", "connection", "connection", "fixed" and other terms should be interpreted in a broad sense, for example, "connection" can be fixed connection, detachable connection, or integral connection; "connection" can be directly or indirectly through an intermediary. Those of ordinary skill in the art can understand the specific meanings of the above terms in the present invention according to specific situations.
在本说明书的描述中,术语“一个实施例”、“一些实施例”、“具体实施例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或实例。而且,描述的具体特征、结构、材料或特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, descriptions of the terms "one embodiment", "some embodiments", "specific embodiments" and the like mean that specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in the present invention In at least one embodiment or example of . In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
以上仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211689400.9A CN116156567B (en) | 2022-12-27 | 2022-12-27 | Multi-wireless ad hoc network method based on intelligent routing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211689400.9A CN116156567B (en) | 2022-12-27 | 2022-12-27 | Multi-wireless ad hoc network method based on intelligent routing device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN116156567A true CN116156567A (en) | 2023-05-23 |
| CN116156567B CN116156567B (en) | 2025-05-27 |
Family
ID=86353604
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211689400.9A Active CN116156567B (en) | 2022-12-27 | 2022-12-27 | Multi-wireless ad hoc network method based on intelligent routing device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116156567B (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110276636A1 (en) * | 2010-03-29 | 2011-11-10 | Konaware, Inc. | Efficient transactional messaging between loosely coupled client and server over multiple intermittent networks with policy based routing |
| US20150067764A1 (en) * | 2013-09-03 | 2015-03-05 | Electronics And Telecommunications Research Institute | Whitelist-based network switch |
| CN110831104A (en) * | 2019-12-04 | 2020-02-21 | 深圳市纽瑞芯科技有限公司 | A network routing method for a linear topology wireless ad hoc network |
| US10848423B1 (en) * | 2018-09-26 | 2020-11-24 | Amazon Technologies, Inc. | Multi-account gateway |
-
2022
- 2022-12-27 CN CN202211689400.9A patent/CN116156567B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110276636A1 (en) * | 2010-03-29 | 2011-11-10 | Konaware, Inc. | Efficient transactional messaging between loosely coupled client and server over multiple intermittent networks with policy based routing |
| US20150067764A1 (en) * | 2013-09-03 | 2015-03-05 | Electronics And Telecommunications Research Institute | Whitelist-based network switch |
| US10848423B1 (en) * | 2018-09-26 | 2020-11-24 | Amazon Technologies, Inc. | Multi-account gateway |
| CN110831104A (en) * | 2019-12-04 | 2020-02-21 | 深圳市纽瑞芯科技有限公司 | A network routing method for a linear topology wireless ad hoc network |
Non-Patent Citations (1)
| Title |
|---|
| "RP-070188", 3GPP TSG_RAN\\TSG_RAN, no. 35, 5 March 2007 (2007-03-05) * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116156567B (en) | 2025-05-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9769054B2 (en) | Network topology discovery method and system | |
| US8672566B2 (en) | Node apparatus and communication method | |
| US8199655B2 (en) | Optimized layer-2 network switching systems and methods | |
| JP5542927B2 (en) | Inter-node link aggregation system and method | |
| CN103780407B (en) | gateway dynamic switching method and device in distributed elastic network interconnection (DRNI) | |
| US20130148547A1 (en) | Method and system for collecting topology information | |
| CN106713177B (en) | A multi-controller wmSDN networking method | |
| JP7144539B2 (en) | NETWORK TOPOLOGY GENERATING METHOD AND APPARATUS | |
| CN106100990A (en) | A kind of communication network various dimensions resources regulation method and system based on SDN framework | |
| TW201703473A (en) | Hybrid network spanning tree establishment method, backup method and control system thereof | |
| CN113347088B (en) | Improved wireless self-organizing network multilink routing method | |
| WO2005008922A1 (en) | Signalling routing apparatus and method in optical network | |
| CN111726253A (en) | Cloud computing core network system | |
| CN101997703B (en) | Method and device for managing Ethernet topology | |
| CN1567891B (en) | A method for realizing data service transmission path selection | |
| CN106330536A (en) | Method for acquiring network state information of wmSDN | |
| CN116156567A (en) | A multi-wireless ad hoc network method based on an intelligent routing device | |
| US20050254473A1 (en) | Routing within a mobile communication network | |
| CN109525492B (en) | IP data backup transmission method independent of routing protocol or algorithm | |
| Hakiri et al. | Work-in-progress: Towards real-time smart city communications using software defined wireless mesh networking | |
| US11431632B1 (en) | ID/location hybrid forwarding method based on source routing | |
| CN117395725A (en) | Link selection method and device of heterogeneous network convergence terminal | |
| US8085654B2 (en) | Method for reducing fault detection time in a telecommunication network | |
| JP4467500B2 (en) | Network relay device | |
| CN116054929A (en) | business protection system |
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 |