CN101511132B - Method and system for forwarding data message - Google Patents
Method and system for forwarding data message Download PDFInfo
- Publication number
- CN101511132B CN101511132B CN200910080652XA CN200910080652A CN101511132B CN 101511132 B CN101511132 B CN 101511132B CN 200910080652X A CN200910080652X A CN 200910080652XA CN 200910080652 A CN200910080652 A CN 200910080652A CN 101511132 B CN101511132 B CN 101511132B
- Authority
- CN
- China
- Prior art keywords
- virtual
- entity
- protocol
- wireless
- interface
- 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
- 238000000034 method Methods 0.000 title claims abstract description 64
- 238000006243 chemical reaction Methods 0.000 claims description 12
- 230000008569 process Effects 0.000 claims description 11
- 230000005540 biological transmission Effects 0.000 description 18
- 238000004891 communication Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 230000007547 defect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000000523 sample Substances 0.000 description 1
- 238000000060 site-specific infrared dichroism spectroscopy Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及网络技术领域,特别涉及一种数据报文的转发方法和系统。The invention relates to the field of network technology, in particular to a data message forwarding method and system.
背景技术Background technique
目前,普通的无线局域网(WLAN)中的实体主要是无线接入点(AP:Access Point),其中,该AP下行,即面向站点(STA)是无线接入,即为站点提供WLAN中802.11a/b/g协议的接入服务,而上行却是通过交换机进行有线传输。这样,在整个网络中就会出现纷繁复杂的布线,影响网络性能。因此,人们越来越渴望下行接入和上行传输都是无线的技术。At present, the entity in the ordinary wireless local area network (WLAN) is mainly a wireless access point (AP: Access Point), where the AP is downlink, that is, for the station (STA) to provide wireless access, that is, to provide the station with 802.11a in the WLAN /b/g protocol access service, while the uplink is wired transmission through the switch. In this way, there will be complicated wiring in the whole network, which will affect the performance of the network. Therefore, people are more and more eager for a technology in which both downlink access and uplink transmission are wireless.
随着网络通信技术的发展,出现了一种新的网络技术,即无线网状(Mesh)网络。在Mesh网络中,可以使下行接入和上行传输都采用无线方式。其中,该Mesh网络也称为多跳(multi-hop)网络,它是一种与传统无线网络完全不同的网络技术。该Mesh网络中的实体可以作为网关,实现有线网络和无线网络的互联、以及提供802.11接入服务等。With the development of network communication technology, a new network technology, that is, wireless mesh (Mesh) network, has emerged. In a Mesh network, both downlink access and uplink transmission can be wireless. Wherein, the Mesh network is also called a multi-hop network, which is a completely different network technology from the traditional wireless network. Entities in the Mesh network can serve as gateways to realize interconnection between wired networks and wireless networks, and provide 802.11 access services.
如果在Mesh网络中使下行接入和上行传输都采用无线方式,一种方案是将Mesh网络中的现有普通实体AP替换为Mesh网络接入点(MPAP:Mesh AP),即AP提供802.11a/b/g协议的接入服务,而MP通过其包含的支持Mesh协议的无线接口提供上行的无线传输。这种方案需要将AP替换为MPAP,这样,大大浪费了原来的AP,并且,MPAP由于其提供多个无线接口,因此其市场价格数倍于AP,从而大大增加了整个流程的投资成本。If both downlink access and uplink transmission are wireless in the Mesh network, one solution is to replace the existing common physical AP in the Mesh network with a Mesh network access point (MPAP: Mesh AP), that is, the AP provides 802.11a The access service of the /b/g protocol, while the MP provides uplink wireless transmission through its included wireless interface supporting the Mesh protocol. This solution needs to replace the AP with an MPAP, which greatly wastes the original AP. Moreover, since the MPAP provides multiple wireless interfaces, its market price is several times that of the AP, which greatly increases the investment cost of the entire process.
随着Mesh网络和AP的不断发展,通过对AP升级可以实现Mesh网络中的下行无线接入和上行无线传输,具体包括:将该升级后的AP的无线接口在具有原为站点提供802.11a/b/g协议接入服务的基础上还同时支持Mesh网络协议,其中,Mesh网络协议具体可为802.11s协议,如此,将该AP的无线接口通过时分方式提供服务,即将该AP的无线接口在第一预设时间内工作在802.11s下提供上行传输工作,而在第二预设时间内工作在802.11a/b/g下提供下行的用户接入工作。With the continuous development of Mesh networks and APs, the downlink wireless access and uplink wireless transmission in the Mesh network can be realized by upgrading the APs, specifically including: the wireless interface of the upgraded AP is provided with the original 802.11a/ The b/g protocol access service also supports the Mesh network protocol at the same time. The Mesh network protocol can specifically be the 802.11s protocol. In this way, the wireless interface of the AP is provided with services in a time-division manner, that is, the wireless interface of the AP is in the Working under 802.11s for the first preset time provides uplink transmission work, and working under 802.11a/b/g for the second preset time provides downlink user access work.
可见,现有的方法中虽然能够实现下行接入和上行传输都采用无线方式,但是,使AP的无线接口通过时分的方式提供服务,大大降低了服务质量,进而提高了信息传输的时延。It can be seen that although the existing method can realize both downlink access and uplink transmission in a wireless manner, the wireless interface of the AP is used to provide services in a time-division manner, which greatly reduces the service quality and further increases the delay of information transmission.
发明内容Contents of the invention
有鉴于此,本发明提供了一种数据报文的转发方法和系统,以便降低信息传输的时延。In view of this, the present invention provides a data packet forwarding method and system, so as to reduce the time delay of information transmission.
一种数据报文的转发方法,该方法应用于Mesh网络中,包括:A kind of forwarding method of data message, this method is applied in Mesh network, comprises:
a)、从第一实体的无线接口接收基于无线协议的数据报文;a) receiving a data packet based on a wireless protocol from a wireless interface of the first entity;
b)、将该数据报文转换为基于有线协议的数据报文,并通过与第一实体的有线接口相连接的交换设备将所述基于有线协议的数据报文发送给第二实体;b), converting the data message into a data message based on a wired protocol, and sending the data message based on a wired protocol to a second entity through a switching device connected to the wired interface of the first entity;
c)、从第二实体的有线接口接收所述基于有线协议的数据报文;c) receiving the data packet based on the wire protocol from the wire interface of the second entity;
d)、将该基于有线协议的数据报文转换为基于无线协议的数据报文,将该基于无线协议的数据报文通过第二实体的无线接口发送出去;d), converting the data message based on the wired protocol into a data message based on the wireless protocol, and sending the data message based on the wireless protocol through the wireless interface of the second entity;
其中,所述第一实体的无线接口和第二实体的无线接口中至少有一个是支持无线网状Mesh网络协议的无线接口。Wherein, at least one of the wireless interface of the first entity and the wireless interface of the second entity is a wireless interface supporting a wireless mesh network protocol.
一种数据报文的转发系统,包括:第一实体、第二实体和交换设备;其中,A data packet forwarding system, comprising: a first entity, a second entity, and a switching device; wherein,
所述第一实体用于通过自身的无线接口接收基于无线协议的数据报文,将该数据报文转换为基于有线协议的数据报文,并通过自身的有线接口发送该基于有线协议的数据报文给所述交换设备;The first entity is configured to receive a data packet based on a wireless protocol through its own wireless interface, convert the data packet into a data packet based on a wired protocol, and send the data packet based on a wired protocol through its own wired interface send a message to the switching device;
所述交换设备,通过所述有线接口与所述第一实体相连接,用于发送接收的所述基于有线协议的数据报文给所述第二实体;The switching device is connected to the first entity through the wired interface, and is configured to send and receive the data message based on the wired protocol to the second entity;
所述第二实体通过自身的有线接口与所述交换设备相连接,用于通过自身的所述有线接口接收所述基于有线协议的数据报文;将该基于有线协议的数据报文转换为基于无线协议的数据报文,将该基于无线协议的数据报文通过自身的无线接口发送出去;The second entity is connected to the switching device through its own wired interface, and is used to receive the data message based on the wired protocol through the wired interface of itself; convert the data message based on the wired protocol into a data message based on the wired protocol The data message of the wireless protocol, the data message based on the wireless protocol is sent out through its own wireless interface;
其中,所述第一实体的无线接口和第二实体的无线接口中至少有一个是支持无线网状Mesh网络协议的无线接口。Wherein, at least one of the wireless interface of the first entity and the wireless interface of the second entity is a wireless interface supporting a wireless mesh network protocol.
由上可见,本发明所提供的一种数据报文的转发方法和系统中,从第一实体的无线接口接收基于无线协议的数据报文;将该数据报文转换为基于有线协议的数据报文,并通过与第一实体的有线接口相连接的交换设备将所述基于有线协议的数据报文发送给第二实体;从第二实体的有线接口接收所述基于有线协议的数据报文;将该基于有线协议的数据报文转换为基于无线协议的数据报文,将该基于无线协议的数据报文通过第二实体的无线接口发送出去;其中,所述第一实体的无线接口和第二实体的无线接口中至少有一个是支持无线网状Mesh网络协议的无线接口;避免了现有技术中Mesh网络中的实体AP利用时分方式通过无线接口提供服务,降低了信息传输的时延,大大提高了无线回程链路的吞吐。As can be seen from the above, in the forwarding method and system of a data message provided by the present invention, the data message based on the wireless protocol is received from the wireless interface of the first entity; the data message is converted into a data message based on the wired protocol Send the data message based on the wired protocol to the second entity through the switching device connected to the wired interface of the first entity; receive the data message based on the wired protocol from the wired interface of the second entity; converting the data message based on the wired protocol into a data message based on the wireless protocol, and sending the data message based on the wireless protocol through the wireless interface of the second entity; wherein, the wireless interface of the first entity and the second entity At least one of the wireless interfaces of the two entities is a wireless interface that supports the wireless mesh Mesh network protocol; avoiding the use of time division by the entity AP in the Mesh network in the prior art to provide services through the wireless interface, reducing the delay of information transmission, The throughput of the wireless backhaul link is greatly improved.
进一步地,本发明中,Mesh网络中的第一实体和第二实体之间并非采用现有技术一直采用无线接口的方式进行信息交互,进而避免了Mesh网络中的实体仅采用无线接口进行上行传输的操作,可解决现有技术中无线射频口不够用的缺陷。Further, in the present invention, the information exchange between the first entity and the second entity in the Mesh network does not always use the wireless interface in the prior art, thereby avoiding the fact that the entities in the Mesh network only use the wireless interface for uplink transmission The operation can solve the defect of insufficient radio frequency ports in the prior art.
进一步地,本发明中,第一实体和第二实体并非都要求为MP,其也可为普通的AP,或者为通过软件升级方式升级的用户现网的MP,其中该第一实体和第二实体包含的无线接口的个数可为一个或者为多个,如此,可大大降低用户的投资成本。Further, in the present invention, the first entity and the second entity are not required to be MPs, and they can also be ordinary APs, or MPs on the user's live network upgraded through software upgrades, wherein the first entity and the second entity The number of wireless interfaces included in the entity can be one or more, so that the user's investment cost can be greatly reduced.
附图说明Description of drawings
图1为本发明实施例提供的数据报文转发方法的基本流程图;Fig. 1 is the basic flowchart of the data packet forwarding method provided by the embodiment of the present invention;
图2为本发明实施例提供的数据报文转发方法的详细流程图;FIG. 2 is a detailed flowchart of a data packet forwarding method provided by an embodiment of the present invention;
图3为本发明实施例提供的数据报文转发方法的另一详细流程图;Fig. 3 is another detailed flow chart of the data packet forwarding method provided by the embodiment of the present invention;
图4为本发明实施例提供的加入到虚拟MP的流程图;Fig. 4 is the flow chart that joins virtual MP that the embodiment of the present invention provides;
图5a为本发明实施例提供的虚拟MP中的Leader离开虚拟MP的流程图;Figure 5a is a flow chart of the Leader in the virtual MP leaving the virtual MP according to an embodiment of the present invention;
图5b为本发明实施例提供的虚拟MP中的下属离开虚拟MP的流程图;Fig. 5b is a flowchart of a subordinate in a virtual MP leaving a virtual MP according to an embodiment of the present invention;
图6为本发明实施例提供的数据报文的转发系统结构图。FIG. 6 is a structural diagram of a data packet forwarding system provided by an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案和优点更加清楚,下面结合附图和具体实施例对本发明进行详细描述。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.
参见图1,图1为本发明实施例提供的数据报文转发方法的基本流程图。该方法可应用于包含Mesh网络中,则如图1所示,该方法主要包括以下步骤:Referring to FIG. 1 , FIG. 1 is a basic flowchart of a data packet forwarding method provided by an embodiment of the present invention. This method can be applied to a Mesh network, as shown in Figure 1, the method mainly includes the following steps:
步骤101,从第一实体的无线接口接收基于无线协议的数据报文。Step 101: Receive a data packet based on a wireless protocol from a wireless interface of a first entity.
这里,上述的第一实体可有多种形式,比如,其可为普通的AP,或者为MP等。其中,当第一实体为AP时,该AP包含的无线接口的个数可以为1个,也可以为多个;而当第一实体为MP时,该MP包含的无线接口的个数为1个,也可以为多个。本发明实施例并不具体限定。Here, the above-mentioned first entity may have various forms, for example, it may be a common AP, or an MP. Wherein, when the first entity is an AP, the number of wireless interfaces included in the AP may be 1 or multiple; and when the first entity is an MP, the number of wireless interfaces included in the MP is 1 One, or more than one. The embodiments of the present invention are not specifically limited.
优选地,若上述第一实体为MP,其中,假如该MP仅包含一个支持Mesh网络协议(该网络协议具体可为802.11s协议)的无线接口和一个以上的有线接口,该MP可通过支持Mesh网络协议的无线接口接收数据报文;之后,直接执行步骤102。当然,若该MP至少包含两个支持Mesh网络协议的无线接口和一个以上的有线接口,该MP可通过其中一个支持Mesh网络协议的无线接口接收数据报文;之后,确定发送该数据报文的出接口,若该出接口为另一个无线接口,则直接通过该另一个无线接口发送数据报文;若该出接口为有线接口,则执行步骤102。Preferably, if the above-mentioned first entity is an MP, wherein, if the MP only includes a wireless interface supporting the Mesh network protocol (the network protocol may specifically be the 802.11s protocol) and more than one wired interface, the MP may support the Mesh The wireless interface of the network protocol receives the data packet; after that,
当然,若第一实体为AP,其中,假如该AP仅包含1个支持无线接入协议(该无线接入协议具体可为802.11a/b/g协议)的无线接口和一个以上的有线接口,则该AP可通过支持无线接入协议的无线接口接收数据报文,之后,直接执行步骤102。当然,若该AP至少包含两个支持无线接入协议的无线接口和一个以上的有线接口,该AP可通过其中一个支持Mesh网络协议的无线接口接收数据报文;之后,确定发送该数据报文的出接口,若该出接口为另一个无线接口,则直接通过该另一个无线接口发送数据报文;若该出接口为有线接口,则执行步骤102。Of course, if the first entity is an AP, if the AP only includes one wireless interface supporting a wireless access protocol (the wireless access protocol may specifically be an 802.11a/b/g protocol) and more than one wired interface, Then the AP can receive the data message through the wireless interface supporting the wireless access protocol, and then directly execute
步骤102,将该数据报文转换为基于有线协议的数据报文,并通过与第一实体的有线接口相连接的交换设备将所述基于有线协议的数据报文发送给第二实体。Step 102: Convert the data message into a data message based on the wire protocol, and send the data message based on the wire protocol to the second entity through a switching device connected to the wired interface of the first entity.
这里,步骤102中的有线接口为步骤101中确定出的出接口。步骤101接收的数据报文为基于无线协议的数据报文,其在发送给交换设备时需要进行转换,即将该基于无线协议的数据报文转换为基于有线协议的数据报文,具体地,是将步骤101接收的数据报文的格式转换为交换设备所支持的格式。比如,若上述接收的数据报文的格式对应802.11s协议,则将该数据报文的格式转换为交换设备支持的格式(优选地,交换设备支持的格式为对应802.3协议);若上述接收的数据报文的格式对应802.11a/b/g协议,则将该数据报文的格式转换为交换设备支持的格式(优选地,交换设备支持的格式为对应802.3协议)。Here, the wired interface in
需要说明的是,本发明实施例中,上述交换设备可有多种实现形式,比如其可为以太网交换机等,本发明实施例并不具体限定。It should be noted that, in the embodiment of the present invention, the foregoing switching device may have various implementation forms, for example, it may be an Ethernet switch, etc., which is not specifically limited in the embodiment of the present invention.
步骤103,从第二实体的有线接口接收所述基于有线协议的数据报文。
这里,上述第二实体的有线接口为与交换设备相连接的有线接口,其中,该第二实体可有多种形式,比如,其可为普通的AP,或者为MP等,其中,当第二实体为AP时,该AP包含的无线接口的个数可以为1个,也可以为多个;而当第二实体为MP时,该MP包含的无线接口的个数为1个,也可以为多个。本发明实施例并不具体限定。Here, the wired interface of the above-mentioned second entity is a wired interface connected to the switching device, wherein, the second entity can have various forms, for example, it can be a common AP, or an MP, etc., wherein, when the second When the entity is an AP, the number of wireless interfaces included in the AP may be one or multiple; and when the second entity is an MP, the number of wireless interfaces included in the MP may be one or Multiple. The embodiments of the present invention are not specifically limited.
步骤104,将该基于有线协议的数据报文转换为基于无线协议的数据报文,将该基于无线协议的数据报文通过第二实体的无线接口发送出去。Step 104: Convert the data packet based on the wired protocol into a data packet based on the wireless protocol, and send the data packet based on the wireless protocol through the wireless interface of the second entity.
这里,若上述第二实体的无线接口为支持Mesh协议的无线接口,则本步骤中将该基于有线协议的数据报文转换为基于无线协议的数据报文具体可为将基于有线协议的数据报文的格式(该格式为交换设备支持的格式,具体可对应802.3协议)转换为需要在Mesh网络中传输所对应的格式(具体为对应802.11s的格式),之后,可通过该支持Mesh协议的无线接口发送数据报文。Here, if the wireless interface of the above-mentioned second entity is a wireless interface supporting the Mesh protocol, then in this step, the data packet based on the wired protocol is converted into a data packet based on the wireless protocol. The format of the text (this format is the format supported by the switching device, specifically, it can correspond to the 802.3 protocol) is converted into the format corresponding to the transmission in the Mesh network (specifically, the format corresponding to 802.11s). The wireless interface sends data packets.
若上述第一实体的无线接口为支持无线接入协议的无线接口,则本步骤中基于有线协议的数据报文转换为基于无线协议的数据报文具体可为将基于有线协议的数据报文的格式(该格式为交换设备支持的格式,具体可对应802.3协议)转换为其支持的格式(该格式具体为对应802.11a/b/g协议的格式),之后,通过该支持无线接入协议的无线接口发送转换后的数据报文。If the wireless interface of the above-mentioned first entity is a wireless interface that supports the wireless access protocol, then in this step, the data message based on the wired protocol is converted into a data message based on the wireless protocol. format (the format is the format supported by the switching device, specifically corresponding to the 802.3 protocol) is converted to a supported format (the format is specifically the format corresponding to the 802.11a/b/g protocol), and then, through the wireless access protocol supported The wireless interface sends the converted data packets.
需要说明的是,不管第一实体和第二实体具体为AP还是为MP,本发明实施例在实现时,都需要保证第一实体的无线接口和第二实体的无线接口中至少有一个是支持Mesh网络协议的无线接口。It should be noted that, regardless of whether the first entity and the second entity are APs or MPs, when implementing the embodiment of the present invention, it is necessary to ensure that at least one of the wireless interface of the first entity and the wireless interface of the second entity supports The wireless interface of the Mesh network protocol.
如此,实现了本发明实施例提供的数据报文的转发操作。In this way, the forwarding operation of the data packet provided by the embodiment of the present invention is realized.
为使本发明实施例更加清楚,下面结合具体实施例对上述方法进行详述。In order to make the embodiments of the present invention more clear, the above methods will be described in detail below in conjunction with specific embodiments.
参见图2,图2为本发明实施例提供的数据报文转发的详细流程图。本实施例中第一实体和第二实体都为MP,其中,假如该MP至少包含2个支持Mesh协议的无线接口和一个以上的有线接口,为便于描述,可将第一实体MP简称为MP1,第二实体MP简称为MP2,则如图2所示,该流程可包括以下步骤:Referring to FIG. 2, FIG. 2 is a detailed flowchart of data message forwarding provided by an embodiment of the present invention. In this embodiment, both the first entity and the second entity are MPs. If the MP includes at least two wireless interfaces supporting the Mesh protocol and more than one wired interface, for the convenience of description, the first entity MP can be referred to as MP1 for short. , the second entity MP is referred to as MP2 for short, as shown in Figure 2, the process may include the following steps:
步骤201,使MP1和MP2加入到同一个虚拟MP中。
本实施例中,虚拟MP实质上为预先设置的可包含多个实体的一个群组。优选地,在执行步骤201之前,可根据实际情况预先确定是否在Mesh网络中组建虚拟MP,以及在确定出需要组建虚拟MP时,确定该虚拟MP所包含的各个成员。比如,MP1为双频设备,其需要同时和相邻的多个MP(比如MP2、MP3和MP4)进行上行通信,为避免信道竞争,则可将该四个MP(MP 1、MP2、MP3和MP4)组建成一个虚拟MP,并对该虚拟MP进行标识,通常,要求Mesh网络中各个虚拟MP的标识方式统一。In this embodiment, the virtual MP is essentially a preset group that can include multiple entities. Preferably, before
通常,为了保证上述确定的各个成员能够加入到其对应的虚拟MP中,需要预先为各个成员配置对应的参数,其中,该参数对应一定的角色,比如,若一实体需要在虚拟MP中担任领导者角色,则为该实体配置对应领导者角色的参数信息。若一实体需要在虚拟MP中担任下属角色,则为该实体配置对应的下属角色的参数信息。需要说明的是,本实施例中,在对Mesh网络中的实体进行参数配置时,需要保证Mesh网络中的任何一个实体只能加入到一个虚拟MP中,不能同时加入两个以上的虚拟MP中。Usually, in order to ensure that each member determined above can join its corresponding virtual MP, it is necessary to configure corresponding parameters for each member in advance, where the parameter corresponds to a certain role, for example, if an entity needs to be a leader in the virtual MP If the leader role is used, configure the parameter information corresponding to the leader role for the entity. If an entity needs to act as a subordinate role in the virtual MP, the parameter information of the corresponding subordinate role is configured for the entity. It should be noted that, in this embodiment, when configuring parameters for entities in the Mesh network, it is necessary to ensure that any entity in the Mesh network can only be added to one virtual MP, and cannot be added to more than two virtual MPs at the same time. .
上述步骤201使MP1和MP2加入到同一个虚拟MP中具体可根据MP1和MP2担任的角色来执行,其中,若MP1在一虚拟MP中担任领导者角色,则MP2需加入到MP1担任领导者角色的虚拟MP中;若MP2在一虚拟MP中担任领导者角色,则MP1需加入到MP2担任领导者角色的虚拟MP中;需要说明的是,本发明实施例中,一个虚拟MP中通常只有一个处于激活状态的领导者。The
如此,通过上述操作,可保证MP1和MP2加入到同一个虚拟MP中,至于如何加入到虚拟MP的操作流程可参见下述图4所示的流程,这里不再赘述。In this way, through the above operations, it can be ensured that MP1 and MP2 are added to the same virtual MP. As for the operation flow of how to join the virtual MP, please refer to the flow shown in FIG. 4 below, which will not be repeated here.
步骤202,MP1通过自身的无线接口接收基于无线协议的数据报文。In
这里,基于无线协议具体可为基于支持Mesh网络的802.11s协议;优选地,上述数据报文中可携带目的地址,并且由于MP1包括至少两个支持Mesh网络协议的无线接口,因此步骤202具体为MP1通过对应该目的地址的一个支持Mesh网络协议的无线接口接收数据报文。Here, based on the wireless protocol, it can specifically be based on the 802.11s protocol that supports the Mesh network; preferably, the above-mentioned data message can carry the destination address, and since MP1 includes at least two wireless interfaces that support the Mesh network protocol,
步骤203,MP1根据上述数据报文携带的目的地址判断发送该数据报文的出接口,若该出接口为有线接口,则执行步骤204,若该出接口为无线接口,则通过该无线接口发送接收的数据报文。
本发明实施例中,虚拟MP中的所有成员都连接到同一交换设备上,本发明实施例中,假如该交换设备为以太网交换机。其中,该以太网交换机可以连接多个虚拟MP。针对每一个虚拟MP,其中的所有成员之间不建立无线回程链路,而是通过以太网交换机进行转发,即在虚拟MP中的各个成员都连接到同一个以太网交换机上,当其中的成员之间需要进行通信时,以太网交换机可以为成员提供通道。然而在虚拟MP中的成员需要与该虚拟MP之外的成员进行通信时,则按照现有技术处理,即利用无线接口进行通信。还需要说明的是,为了保证虚拟MP更广泛的应用,虚拟MP中的各成员也可具有一定的独立性,具体表现在可独立发现自身所在虚拟MP之外的邻居、和该发现的邻居建立无线回程链路以及进行相互认证等,本实施例并不特别限定。In the embodiment of the present invention, all members in the virtual MP are connected to the same switching device. In the embodiment of the present invention, it is assumed that the switching device is an Ethernet switch. Wherein, the Ethernet switch can be connected with multiple virtual MPs. For each virtual MP, wireless backhaul links are not established between all members, but are forwarded through Ethernet switches, that is, each member in the virtual MP is connected to the same Ethernet switch, when the members Ethernet switches can provide channels for members when communication between them is required. However, when a member in the virtual MP needs to communicate with a member other than the virtual MP, it should be handled according to the prior art, that is, the wireless interface is used for communication. It should also be noted that, in order to ensure wider application of virtual MPs, each member in a virtual MP can also have a certain degree of independence, which is specifically manifested in that it can independently discover neighbors other than the virtual MP where it is located, and establish The wireless backhaul link and mutual authentication are not particularly limited in this embodiment.
步骤204,MP1将接收的基于无线协议的数据报文转换为基于有线协议的数据报文,通过与步骤203中的有线接口相连接的以太网交换机发送转换后的数据报文给MP2。In
这里,由于步骤202中MP1接收的数据报文为基于无线协议,具体为Mesh网络所对应的802.11s协议的。由于步骤203判断出发送该数据报文的出接口为有线接口,因此,需要对该数据报文进行转换,即将该基于802.11s协议的数据报文转换为基于有线协议的数据报文,具体是将该支持802.11s协议的数据报文的格式转换为支持802.3协议的格式;其中,802.3协议为以太网交换机支持的有线协议。Here, since the data message received by MP1 in
需要说明的是,本实施例中若MP1仅包含一个无线接口和一个以上的有线接口,则步骤203可省略,而步骤204替换为:MP1将接收的基于无线协议的数据报文转换为基于有线协议的数据报文,根据该数据报文携带的目的地址确定有线接口,通过与该有线接口相连接的以太网交换机发送转换后的数据报文给MP2。也就是说,若MP1仅包含一个无线接口,则本实施例中就无需执行步骤203中的出接口的判断,直接执行上述替换后的步骤204即可。It should be noted that, in this embodiment, if MP1 only includes one wireless interface and more than one wired interface, step 203 can be omitted, and step 204 is replaced by: MP1 converts the received data message based on wireless protocol into For the data message of the protocol, the wired interface is determined according to the destination address carried in the data message, and the converted data message is sent to MP2 through the Ethernet switch connected to the wired interface. That is to say, if MP1 includes only one wireless interface, it is not necessary to perform the determination of the outgoing interface in
步骤205,MP2通过自身与以太网交换机相连接的有线接口接收上述转换后的基于有线协议的数据报文。
步骤206,MP2将接收的数据报文转换为基于无线协议的数据报文。
这理,由于MP2接收的数据报文是以太网交换机发送的,该数据报文为基于有线协议的数据报文,因此,如果MP2需要将接收的数据报文在Mesh网络中发送,则需要将该数据报文转换为在Mesh网络中传输的基于无线协议的数据报文,具体是将来自以太网交换机的数据报文的格式(该格式为以太网交换机支持的格式,具体可为支持802.3协议的格式)转换为在Mesh网络中传输所对应的格式,即支持802.11s协议的格式。Therefore, since the data packet received by MP2 is sent by the Ethernet switch, the data packet is a data packet based on the wire protocol. Therefore, if MP2 needs to send the received data packet in the Mesh network, it needs to The data message is converted into a wireless protocol-based data message transmitted in the Mesh network, specifically the format of the data message from the Ethernet switch (this format is a format supported by the Ethernet switch, specifically, it can support the 802.3 protocol format) to the format corresponding to transmission in the Mesh network, that is, the format that supports the 802.11s protocol.
步骤207,MP2根据数据报文携带的目的地址确定对应的无线接口,通过确定的无线接口将步骤206转换后的数据报文发送出去。In
当Mesh网络中的其他实体接收到步骤207发送的数据报文时,则该实体继续按照步骤202至步骤207的操作转发该数据报文,直至到达目的地址。When other entities in the Mesh network receive the data packet sent in
需要说明的是,上述实施例中第一实体和第二实体都是MP。优选地,本发明实施例中,上述第一实体和第二实体中可有一个实体为AP,另一个实体为MP,比如,第一实体为AP,第二实体为MP,其中,AP可为未升级的普通AP,其可包含一个以上的支持802.11a/b/g协议的无线接口和一个以上的有线接口,MP可包含一个以上的支持Mesh网络协议的无线接口和一个以上的有线接口。本实施例中假如AP包含一个支持802.11a/b/g协议的无线接口和一个以上的有线接口,MP包含一个支持Mesh网络协议的无线接口和一个有线接口,则如图3所示,该流程可包括以下步骤:It should be noted that, in the foregoing embodiment, both the first entity and the second entity are MPs. Preferably, in the embodiment of the present invention, one of the above-mentioned first entity and the second entity may be an AP, and the other entity may be an MP, for example, the first entity is an AP, and the second entity is an MP, wherein the AP may be A common AP that has not been upgraded can include more than one wireless interface supporting the 802.11a/b/g protocol and more than one wired interface, and an MP can include more than one wireless interface supporting the Mesh network protocol and more than one wired interface. In this embodiment, if the AP includes a wireless interface supporting the 802.11a/b/g protocol and more than one wired interface, and the MP includes a wireless interface supporting the Mesh network protocol and a wired interface, then as shown in Figure 3, the flow process May include the following steps:
步骤301,使AP和MP加入到同一虚拟MP中。In step 301, the AP and the MP are added to the same virtual MP.
步骤302,AP通过自身的无线接口接收站点发送的基于无线协议的数据报文。In step 302, the AP receives the data message based on the wireless protocol sent by the station through its own wireless interface.
这里,步骤302中的无线协议具体可为无线接入协议(该无线接入协议具体可为802.11a/b/g协议);优选地,上述数据报文中可携带目的地址,并且由于AP仅包括一个支持802.11a/b/g协议的无线接口,因此步骤202具体为AP通过对应该目的地址的自身的支持802.11a/b/g协议的无线接口接收数据报文。Here, the wireless protocol in step 302 may specifically be a wireless access protocol (the wireless access protocol may specifically be an 802.11a/b/g protocol); preferably, the above-mentioned data message may carry a destination address, and since the AP only It includes a wireless interface supporting the 802.11a/b/g protocol, so step 202 is specifically that the AP receives the data message through its own wireless interface supporting the 802.11a/b/g protocol corresponding to the destination address.
步骤303,AP将接收的数据报文转换为基于有线协议的格式,根据上述目的地址确定发送该数据报文的有线接口,通过与该确定出的有线接口相连接的交换设备发送转换后的数据报文给MP。Step 303, the AP converts the received data message into a format based on the wired protocol, determines the wired interface for sending the data message according to the above destination address, and sends the converted data through the switching device connected to the determined wired interface The message is sent to the MP.
这里,由于步骤302中AP接收的数据报文为基于无线接入协议的,具体为基于802.11a/b/g协议的。而AP确定出的发送该数据报文的出接口为有线接口,因此,需要对该数据报文进行转换,即将该基于802.11a/b/g协议的数据报文转换为基于有线协议的数据报文,具体是将该支持802.11s协议的数据报文的格式转换为支持802.3协议的格式;其中,802.3协议为交换设备支持的有线协议。这里,交换设备具体可为以太网交换机。Here, since the data message received by the AP in step 302 is based on the wireless access protocol, specifically the 802.11a/b/g protocol. The outgoing interface determined by the AP to send the data message is a wired interface. Therefore, the data message needs to be converted, that is, the data message based on the 802.11a/b/g protocol is converted into a data message based on the wired protocol. The document specifically converts the format of the data packet supporting the 802.11s protocol into a format supporting the 802.3 protocol; wherein, the 802.3 protocol is a wired protocol supported by the switching device. Here, the switching device may specifically be an Ethernet switch.
需要说明的是,本实施例中,AP也可包含至少两个支持802.11a/b/g协议的无线接口,则步骤303可替换为:AP根据上述数据报文携带的目的地址判断发送该数据报文的出接口,若该出接口为有线接口,则通过与该有线接口相连接的交换设备发送转换后的数据报文给MP,若该出接口为另一个无线接口,则直接通过该另一个无线接口发送接收的数据报文。It should be noted that, in this embodiment, the AP may also include at least two wireless interfaces supporting the 802.11a/b/g protocol, then step 303 may be replaced by: the AP judges and sends the data according to the destination address carried in the above data message The outbound interface of the message, if the outbound interface is a wired interface, the converted data message is sent to the MP through the switching device connected to the wired interface, and if the outbound interface is another wireless interface, the A radio interface sends and receives datagrams.
步骤304,MP通过自身与交换设备相连接的有线接口接收转换后的基于有线协议的数据报文。In step 304, the MP receives the converted data message based on the wired protocol through the wired interface connected to the switching device.
步骤305,MP将该接收的数据报文转换为基于无线协议的数据报文。In step 305, the MP converts the received data packet into a data packet based on the wireless protocol.
这里,步骤305具体是将支持802.3协议的数据报文的格式转换为支持802.11s协议的格式。Here, step 305 specifically converts the format of the data packet supporting the 802.3 protocol into a format supporting the 802.11s protocol.
步骤306,MP根据数据报文携带的目的地址确定对应的无线接口,通过确定的无线接口将步骤305转换后的数据报文在Mesh网络中转发Step 306, the MP determines the corresponding wireless interface according to the destination address carried in the data message, and forwards the data message converted in step 305 in the Mesh network through the determined wireless interface
如此,实现了本发明实施例提供的数据报文的转发。In this way, the forwarding of the data message provided by the embodiment of the present invention is realized.
参见图4,图4为本发明实施例提供的加入到虚拟MP的操作流程图。其中,上述第一实体可为虚拟MP中担任领导者角色的实体,或者第二实体为虚拟MP中担任领导者角色的实体,本发明实施例并不具体限定。如图4所示,该流程可包括以下步骤:Referring to FIG. 4, FIG. 4 is an operation flowchart of adding to a virtual MP provided by an embodiment of the present invention. Wherein, the above-mentioned first entity may be an entity acting as a leader in a virtual MP, or the second entity may be an entity acting as a leader in a virtual MP, which is not specifically limited in this embodiment of the present invention. As shown in Figure 4, the process may include the following steps:
步骤401,担任领导者角色的实体在Mesh网络中发送虚拟MP信息。In
这里,为便于描述,将担任领导者角色的实体简称为Leader。其中,Leader在Mesh网络中发送虚拟MP信息的方式可以有多种,比如,可以采用有线接口发送虚拟MP信息或者采用无线接口发送虚拟MP信息。其中,采用有线接口的方式,可以实现Leader向特定的实体发送虚拟MP信息;而采用无线空口,Leader可以直接在Mesh网络中将要发送的虚拟MP信息携带在802.11的Beacon报文或者Probe response报文中发送。Here, for ease of description, the entity that acts as a leader is referred to as Leader for short. Among them, there are many ways for the Leader to send the virtual MP information in the Mesh network, for example, the wired interface may be used to send the virtual MP information or the wireless interface may be used to send the virtual MP information. Among them, using the wired interface, the Leader can send virtual MP information to a specific entity; while using the wireless air interface, the Leader can directly carry the virtual MP information to be sent in the 802.11 Beacon message or Probe response message in the Mesh network sent in.
优选地,上述Leader配置的参数信息可包括:该Leader所在的虚拟MP的标识、该Leader所在的虚拟MP能够支持的最大成员数量、该Leader对加入自身所在的虚拟MP的成员进行安全认证的方法和参数等。其中,上述虚拟MP信息携带了Leader自身所在的虚拟MP的标识。Preferably, the above-mentioned parameter information of the Leader configuration may include: the identity of the virtual MP where the Leader is located, the maximum number of members that the Virtual MP where the Leader is located can support, and the method for the Leader to perform security authentication on members joining the virtual MP where the Leader is located and parameters etc. Wherein, the above virtual MP information carries the identifier of the virtual MP where the Leader itself is located.
优选地,为保证要加入该Leader所在的虚拟MP的各个实体获知该虚拟MP当前的成员信息,上述虚拟MP信息还可包括:虚拟MP当前的成员列表。其中,该列表中可包含各个成员的状态信息、Radio数量等,本实施例并不具体限定。Preferably, in order to ensure that each entity that wants to join the virtual MP where the Leader is located knows the current member information of the virtual MP, the above virtual MP information may further include: a current member list of the virtual MP. Wherein, the list may include status information of each member, the number of Radios, etc., which are not specifically limited in this embodiment.
步骤402,接收到上述虚拟MP信息的实体确定是否需要加入到该Leader所在的虚拟MP中,如果是,则执行步骤403,否则,忽略该虚拟MP信息。In
这里,为担任下属角色的实体配置的参数信息可包括:表示使能虚拟MP的工作方式的参数或者不使能虚拟MP的工作方式的参数,以及表示强制加入到某一个虚拟MP的参数或者表示不强制加入到某一个虚拟MP的参数。通常,在对作为下属的实体进行参数配置时,可根据实际情况进行配置,比如,如果希望该实体不加入到任何虚拟MP中,则配置表示该实体不使能任何虚拟MP工作方式的参数,否则,配置表示该实体使能需要加入的某一个虚拟MP所对应的工作方式的参数;如果希望强制该实体加入到特定的虚拟MP中,则在为该实体进行参数配置时,配制表示需要强制该实体加入到特定的虚拟MP的参数,比如为该实体配置需要强制其加入的特定的虚拟MP对应的标识;相应地,如果希望该实体完全根据Mesh网络中各个实体之间的协议交互来选择加入特定的虚拟MP,则对该实体进行参数配置时,配置表示不希望强制该实体加入到特定virtual MP的参数。Here, the parameter information configured for the entity acting as a subordinate role may include: parameters indicating the working mode of enabling the virtual MP or disabling the working mode of the virtual MP, and parameters indicating the forced joining of a certain virtual MP or indicating It is not mandatory to add parameters to a certain virtual MP. Usually, when configuring parameters for a subordinate entity, it can be configured according to the actual situation. For example, if it is desired that the entity does not join any virtual MP, configure parameters indicating that the entity does not enable any virtual MP working mode. Otherwise, the configuration indicates that the entity enables the parameters corresponding to the working mode of a certain virtual MP that needs to be added; if you want to force the entity to join a specific virtual MP, when configuring parameters for the entity, the configuration indicates that it needs to be forced The entity joins the parameters of a specific virtual MP, such as configuring the identity corresponding to the specific virtual MP that needs to be forced to join for the entity; correspondingly, if you want the entity to be selected completely according to the protocol interaction between the various entities in the Mesh network When adding a specific virtual MP, when configuring parameters for the entity, the configuration indicates that you do not want to force the entity to join the parameters of a specific virtual MP.
通常,在一个虚拟MP中,任何时刻处于激活状态的Leader的个数只有一个,为避免Leader不工作时影响整个虚拟MP的正常工作,可设置当前Leader的备份,如此,当Leader不工作时,可以将该Leader的功能平滑切换到备份。因此,对于准备作为Leader备份的实体,其配置的参数除上述担任下述角色对应的参数信息之外,还需要包括配置表示使能备份Leader的参数。Usually, in a virtual MP, there is only one leader that is active at any time. In order to avoid affecting the normal operation of the entire virtual MP when the leader is not working, a backup of the current leader can be set. In this way, when the leader is not working, The function of the leader can be smoothly switched to the backup. Therefore, for an entity that is preparing to backup as a Leader, its configuration parameters need to include parameters indicating that the backup Leader is enabled, in addition to the above-mentioned parameter information corresponding to the following roles.
优选地,上述步骤401发送的虚拟MP信息还可包括:(1)用于实现虚拟MP中各成员之间进行通信的协议版本信息,具体可为该协议的版本号。本领域技术人员应该知道,虚拟MP中各个成员之间需要利用协议来交互信息,其中,版本号是协议的一个基本内容信息。(2)虚拟MP所支持的最大成员数量。(3)虚拟MP当前的成员数量。(4)对成员的安全认证方法和参数中的任意一种或多种的组合。Preferably, the virtual MP information sent in the
如此,本步骤402中接收到上述虚拟MP信息的实体确定是否需要加入到该Leader所在的虚拟MP中具体可考虑以下一种或多种因素:In this way, the entity that receives the above virtual MP information in
自身所支持(配置)的协议版本信息是否与上述虚拟MP信息包含的协议版本信息相匹配;当前虚拟MP的负载是否准许,即虚拟MP信息包含的虚拟MP当前的成员数量是否未超出上述虚拟MP所支持的最大成员数量;以及自身是否支持上述虚拟MP信息包含的对成员的安全认证方法;Whether the protocol version information supported (configured) matches the protocol version information contained in the above virtual MP information; whether the current virtual MP load is allowed, that is, whether the current number of members of the virtual MP contained in the virtual MP information does not exceed the above virtual MP The maximum number of members supported; and whether it supports the security authentication method for members contained in the above virtual MP information;
在均为是的情况下,确定当前需要加入Leader所在的虚拟MP;否则,确定当前不加入Leader所在的虚拟MP。If both are yes, it is determined that the virtual MP where the leader is located currently needs to be added; otherwise, it is determined that the virtual MP where the leader is currently not to be added.
步骤403,发送加入报文给上述Leader。
这里,为避免空口竞争,本步骤可通过交换设备提供的有线通道来发送加入报文给Leader。其中,该加入报文中携带了该发送加入报文的实体的ID(比如该MP的Mac地址)和安全认证参数等。Here, in order to avoid air interface competition, in this step, a join message may be sent to the Leader through a wired channel provided by the switching device. Wherein, the joining message carries the ID of the entity sending the joining message (for example, the Mac address of the MP), security authentication parameters, and the like.
需要说明的是,由于在一个虚拟MP中,任何时刻处于激活状态的Leader只有一个,因此,本步骤发送加入报文的实体在发送加入报文之前,需要进一步判断其要加入的虚拟MP当前是否只有一个Leader处于激活状态,如果是,则发送加入报文给该Leader,否则,按照预设的选举原则(比如从虚拟MP信息所携带的成员列表中选举出Mac地址最低的实体为Leader),之后,再发送加入报文给该选举出的Leader。It should be noted that in a virtual MP, there is only one Leader that is active at any time, so the entity that sends the join message in this step needs to further determine whether the virtual MP it wants to join is currently Only one Leader is active, if so, send a join message to the Leader, otherwise, according to the preset election principle (such as electing the entity with the lowest Mac address as the Leader from the member list carried by the virtual MP information), Afterwards, a Join message is sent to the elected Leader.
步骤404,Leader接收加入报文,判断该加入报文所携带的安全认证参数是否支持已配置的自身对成员的安全认证方法,如果是,执行步骤405;否则,执行步骤406。In
这里,判断该加入报文所携带的安全认证参数是否支持已配置的自身对成员的安全认证方法具体可为判断该加入报文所携带的安全认证参数是否与已配置的自身对成员进行安全认证时的参数匹配。Here, the method for judging whether the security authentication parameters carried in the join message support the configured security authentication for members by itself may specifically be to judge whether the security authentication parameters carried in the join message are consistent with the configured security authentication for members by itself. parameter match.
步骤405,Leader准许该发送加入报文的实体加入其所在的虚拟MP,使该实体加入到自身所在的虚拟MP中。结束流程。In
步骤406,不允许该发送加入报文的实体加入自身所在的虚拟MP中。结束流程。In
如此,通过上述步骤,该发送加入报文的实体成为虚拟MP中的成员。之后,Leader使虚拟MP中各成员间的信息同步,其中,可定期或者事件触发(如新发现一个邻居)来实现虚拟MP中成员间的信息同步,本实施例并未具体限定。这里,Leader使虚拟MP中各成员间的信息同步可包括:Leader同步获取各成员的状态信息,其中,针对每个成员,该状态信息可包括该成员的radio数量、该成员的不在虚拟MP中的邻居信息和该成员的接入用户信息等。优选地,若步骤401发送的虚拟MP信息还包括:虚拟MP当前的成员列表,则本步骤中,Leader利用获取的状态信息更新已存储的虚拟MP的成员列表。此外,需要说明的是,若发生漫游,则Leader使虚拟MP中各成员间的信息同步还可包括:Leader在漫游前后所对应的MP间同步用户漫游的相关数据。比如,客户端从MP1漫游到MP2对应的区域内,则Leader在MP1需要发送数据信息给MP2时,告知MP1不需要发送信息给MP2,而是直接发送给MP2的下一跳,如此,实现了MP间用户漫游的相关数据的同步。In this way, through the above steps, the entity sending the joining message becomes a member of the virtual MP. Afterwards, the Leader synchronizes the information among the members in the virtual MP. The information synchronization between the members in the virtual MP can be realized periodically or triggered by an event (such as a new neighbor is discovered), which is not specifically limited in this embodiment. Here, the Leader synchronizing the information among the members in the virtual MP may include: the Leader synchronously obtains the state information of each member, wherein, for each member, the state information may include the number of radios of the member, the number of radios of the member not in the virtual MP The neighbor information of the member and the access user information of the member, etc. Preferably, if the virtual MP information sent in
此外,为了便于管理虚拟MP的信息,优选地,本实施例中,Leader还可定期向虚拟MP中的各成员发送握手报文,其中,Leader发送握手报文的方式可与现有技术类似,这里不再赘述。In addition, in order to facilitate the management of virtual MP information, preferably, in this embodiment, the Leader can also periodically send handshake messages to each member in the virtual MP, wherein the way the Leader sends handshake messages can be similar to the prior art, I won't go into details here.
至此,按照上述步骤,Mesh网络中的各个实体可加入其对应的虚拟MP中。So far, according to the above steps, each entity in the Mesh network can join its corresponding virtual MP.
需要说明的是,虚拟MP只是本发明实施例提出的一个概念,本实施例可不需要对加入到虚拟MP的实体进行任何物理上的改动。It should be noted that the virtual MP is only a concept proposed by the embodiment of the present invention, and this embodiment does not require any physical changes to the entities added to the virtual MP.
还需要说明的是,本实施例中,在上述Mesh网络中的实体加入到对应的虚拟MP之后,并非一直在虚拟MP中,其也可离开该虚拟MP。因此,若虚拟MP中的成员需要离开虚拟MP,则可执行图5a和图5b所示的操作。It should also be noted that, in this embodiment, after the entity in the above-mentioned Mesh network joins the corresponding virtual MP, it is not always in the virtual MP, and it can also leave the virtual MP. Therefore, if a member in the virtual MP needs to leave the virtual MP, the operations shown in Fig. 5a and Fig. 5b can be performed.
参见图5a,图5a为本发明实施例提供的虚拟MP中的Leader离开虚拟MP的流程图。则如图5a所示,该流程可包括以下步骤:Referring to FIG. 5 a , FIG. 5 a is a flowchart of a leader in a virtual MP leaving a virtual MP according to an embodiment of the present invention. Then as shown in Figure 5a, the process may include the following steps:
步骤501a,当虚拟MP中的Leader要离开虚拟MP时,确定虚拟MP的当前成员中是否存在Leader的备份,如果是,执行步骤502a,否则,执行步骤503a。
这里,当虚拟MP中的下属没有定期收到来自Leader的握手报文,则确定该Leader要离开虚拟MP。Here, when the subordinates in the virtual MP do not regularly receive the handshake message from the Leader, it is determined that the Leader will leave the virtual MP.
步骤502a,在备份的个数为1时,将该备份作为虚拟MP中的Leader;在备份的个数大于1时,从该备份中选举出一个作为虚拟MP中Leader。
这里,上述确定的备份的个数大于1时,从该备份中选举出一个作为虚拟MP中Leader可有多种实现形式,如选择媒体接入控制(Mac:Media accesscontrol)地址低的备份作为Leader;或者选择Mac地址高的备份作为LeaderMP,本实施例对此并未限定。Here, when the number of the above-mentioned determined backups is greater than 1, electing one from the backup as the Leader in the virtual MP can have multiple implementation forms, such as selecting a backup with a low Media Access Control (Mac: Media accesscontrol) address as the Leader ; Or select a backup with a high Mac address as the LeaderMP, which is not limited in this embodiment.
步骤503a,从虚拟MP当前的所有成员中选举出一个作为虚拟MP中Leader。
从虚拟MP当前的所有成员中选举出一个作为虚拟MP中Leader可有多种实现形式,如选择Mac地址低的成员作为Leader;或者选择Mac地址高的成员作为Leader,本实施例对此并未限定。From all the current members of the virtual MP, one can be elected as the Leader in the virtual MP, and there can be multiple implementation forms, such as selecting a member with a low Mac address as the Leader; or selecting a member with a high Mac address as the Leader. This embodiment does not limited.
参见图5b,图5b为本发明实施例提供的虚拟MP中的处于下属角色的实体离开虚拟MP的流程图。则如图5b所示,为便于描述,将要离开的处于下属角色的实体简称为下属1,该流程可包括以下步骤:Referring to FIG. 5b, FIG. 5b is a flowchart of an entity in a subordinate role in a virtual MP leaving the virtual MP according to an embodiment of the present invention. As shown in Figure 5b, for the convenience of description, the entity in the subordinate role that will leave is referred to as subordinate 1 for short, and the process may include the following steps:
步骤501b,下属1发送离开信息给其所在的虚拟MP中的Leader。In
步骤502b,Leader接收到该离开信息,并向该虚拟MP中未离开的成员通告该下属1的离开消息。In
这里,可采用现有技术中的保密方法来保证通告的该下属1离开消息的安全性。Here, the security method in the prior art may be adopted to ensure the security of the notified subordinate 1 leaving message.
优选地,本发明实施例还可预先设置成员之间的备份。这样,当一个处于下属角色的成员离开时,Leader在自身所在的虚拟MP中选择该离开成员的备份,使该离开成员的配置(比如无线接入的ssid)在选择出的备份上使能,如此,能够保证某个成员离线不影响当前虚拟MP的业务提供。因此,本实施例还可继续执行步骤503b至步骤504b。Preferably, in this embodiment of the present invention, backup among members can also be preset. In this way, when a member in the subordinate role leaves, the Leader selects the backup of the leaving member in the virtual MP where it is located, so that the configuration of the leaving member (such as the SSID of wireless access) is enabled on the selected backup, In this way, it can be guaranteed that a certain member's offline will not affect the service provision of the current virtual MP. Therefore, this embodiment may continue to execute step 503b to step 504b.
步骤503b,Leader确定虚拟MP的当前成员中是否存在下属1的备份,如果存在,则执行步骤504b,否则,结束下属1对应的业务。In step 503b, the leader determines whether there is a backup of subordinate 1 among the current members of the virtual MP, and if so, executes
步骤504b,将该下属1的配置在备份上使能。结束流程。
通常,下属的备份一般为1个。当然,如果一些特殊情况而导致下属的备份的个数大于1时,则可根据实际情况选举出一个作为离开的下属的备份(其中,选举的原则可有多种形式,比如选择备份中MAC地址最低的;或者最高的等)。因此,本实施例描述的只是一种举例,不应理解为一种限制。Usually, there is generally 1 backup for subordinates. Of course, if some special circumstances cause the number of backups of subordinates to be greater than 1, one can be elected as a backup of the subordinate who leaves according to the actual situation (wherein, the principle of election can have various forms, such as selecting the MAC address in the backup the lowest; or the highest, etc.). Therefore, what is described in this embodiment is only an example, and should not be construed as a limitation.
综上所述,可以知道本发明实施例中将虚拟MP作为一个逻辑整体进行统一管理,其中,在管理过程中,Leader将作为虚拟MP的代言人,维护了整个虚拟MP的管理数据以及虚拟MP中所有成员的管理数据。如此,本实施例中只要访问Leader,就可以获得虚拟MP的radio数量(该虚拟MP中所包含的所有MP的radio数量之和)、邻居数量(该虚拟MP中所包含的所有MP分别发现的邻居数量之和)等。To sum up, it can be seen that in the embodiment of the present invention, the virtual MP is managed as a logical whole, wherein, in the management process, the Leader will act as the spokesperson of the virtual MP and maintain the management data of the entire virtual MP and the information in the virtual MP. Administrative data for all members. In this way, as long as the Leader is accessed in this embodiment, the number of radios of the virtual MP (the sum of the radio numbers of all MPs included in the virtual MP), the number of neighbors (the number of radios found by all the MPs included in the virtual MP) can be obtained sum of the number of neighbors), etc.
上述对本发明实施例提供的方法进行了详细描述,下面对本发明实施例提供的系统进行描述。The method provided by the embodiment of the present invention has been described in detail above, and the system provided by the embodiment of the present invention will be described below.
参见图6,图6为本发明实施例提供的数据报文的转发系统结构图。如图6所示,该系统包括:第一实体601、第二实体602和交换设备603。Referring to FIG. 6, FIG. 6 is a structural diagram of a data packet forwarding system provided by an embodiment of the present invention. As shown in FIG. 6 , the system includes: a
其中,第一实体601用于通过自身的无线接口接收基于无线协议的数据报文,将该数据报文转换为基于有线协议的数据报文,并通过自身的有线接口发送该基于有线协议的数据报文给所述交换设备。Wherein, the
交换设备603通过所述有线接口与第一实体601有线连接,用于发送接收的所述基于有线协议的数据报文给第二实体602。The
第二实体602通过自身的有线接口与交换设备603相连接,用于通过自身的所述有线接口接收所述基于有线协议的数据报文;将该基于有线协议的数据报文转换为基于无线协议的数据报文,将该基于无线协议的数据报文通过自身的无线接口发送出去。The
其中,第一实体601的无线接口和第二实体602的无线接口中至少有一个是支持Mesh网络协议的无线接口。Wherein, at least one of the wireless interface of the
优选地,如图6所示,第一实体601可包括:第一接收单元6011、第一判断单元6012、第一转换单元6013和第一转发单元6014。Preferably, as shown in FIG. 6 , the
其中,第一接收单元6011用于通过无线接口接收基于无线协议的数据报文。Wherein, the
第一判断单元6012用于根据第一接收单元6011接收到的数据报文的目的地址判断发送该数据报文的出接口,若该出接口为有线接口,则发送转换通知给第一转换单元6013;若该出接口为无线接口,则发送第一转发通知给所述第一转发单元6014。The first judging unit 6012 is used to judge the outgoing interface for sending the data packet according to the destination address of the data packet received by the
第一转换单元6013用于接收到转换通知后,将该数据报文转换为基于有线协议的数据报文,发送第二转发通知给所述第一转发单元6014。这里,比如第一接收单元6011接收了基于Mesh网络协议的数据报文,其中,Mesh网络协议具体可为802.11s协议;则第一转换单元6013将该数据报文转换为基于有线协议的数据报文,其中,有线协议可为802.3协议;优选地,本发明实施例中第一转换单元6013将该数据报文转换为基于有线协议的数据报文具体可为将接收的数据报文的格式由支持802.11s协议转换为支持802.3协议。The
第一转发单元6014用于接收第一转发通知,将第一接收单元6011接收的数据报文通过第一判断单元6012判断出的无线接口转发出去;以及用于接收第二转发通知,通过与第一判断单元6012判断出的有线接口相连接的交换设备将第一转换单元6013转换后的基于有线协议的数据报文发送给第二实体602。The first forwarding unit 6014 is configured to receive the first forwarding notification, and forward the data packet received by the
优选地,若第一实体601为MP,其中,该第一实体601包括至少两个支持Mesh网络协议的无线接口,若第一判断单元6012判断出的出接口是另一个无线接口,则第一转发单元6014将第一接收单元6011接收的数据报文通过所述另一个无线接口发送出去;或者,Preferably, if the
若第一实体601为AP,所述无线接口为基于无线接入协议的无线接口,若第一判断单元6012判断出的出接口是该无线接口,则第一转发单元6014将第一接收单元6011接收的数据报文通过该无线接口发送出去。If the
优选地,如图6所示,第二实体602可包括:第二接收单元6021、第二转换单元6022和第二转发单元6023。Preferably, as shown in FIG. 6 , the
其中,第二接收单元6021用于通过与所述交换设备连接的有线接口接收所述基于有线协议的数据报文;Wherein, the second receiving unit 6021 is configured to receive the data message based on the wired protocol through a wired interface connected to the switching device;
第二转换单元6022用于将第二接收单元6021接收的基于有线协议的数据报文转换为基于无线协议的数据报文。The second converting
第二转发单元6023用于将第二转换单元6022转换后的基于无线协议的数据报文通过自身的无线接口发送出去。The
这里,交换设备603具体可为以太网交换机。Here, the
优选地,第一实体601和第二实体602在同一个虚拟MP中,其中,第一实体601和第二实体602中至少有一个被配置为领导者,被配置为领导者的实体代表该虚拟MP与网络管理设备进行交互。其中,该虚拟MP实质上为预先设置的可包含多个实体的一个群组。Preferably, the
若第一实体601被配置为一虚拟MP的领导者,则第一转发单元6014还用于在Mesh网络中发送虚拟MP信息;第二实体602还可包括:第二判断单元6024。If the
第二接收单元6021还用于接收所述虚拟MP信息;The second receiving unit 6021 is also configured to receive the virtual MP information;
第二判断单元6024用于根据第二接收单元6021接收的虚拟MP信息确定是否需要加入所述虚拟MP,如果是,则确定成为所述虚拟MP的成员。The
当然,若第二实体602被配置为一虚拟MP的领导者,则第二转发单元6023还用于在Mesh网络中发送虚拟MP信息;Of course, if the
第一接收单元6011还用于接收所述虚拟MP信息;The
第一判断单元6012还用于根据第一接收单元6011接收的虚拟MP信息确定是否需要加入所述虚拟MP,如果是,则成为所述虚拟MP的成员。The first judging unit 6012 is further configured to determine whether to join the virtual MP according to the virtual MP information received by the
其中,上述虚拟MP信息包含已加入到所述虚拟MP的成员信息。Wherein, the above virtual MP information includes member information that has been added to the virtual MP.
优选地,上述虚拟MP信息还可包括:虚拟MP中各成员之间进行通信时所采用的协议版本信息、虚拟MP所支持的最大成员数量、虚拟MP当前的成员数量以及对成员的安全认证方法任意一种或多种组合;Preferably, the above-mentioned virtual MP information may also include: protocol version information adopted when communicating among members in the virtual MP, the maximum number of members supported by the virtual MP, the current number of members of the virtual MP, and security authentication methods for members Any one or combination of multiples;
第一判断单元6012或者第二判断单元6024根据虚拟MP信息确定是否需要加入虚拟MP包括下述三种判断中的一种或多种的组合:The first judging unit 6012 or the
判断支持的协议版本信息是否与所述虚拟MP信息包含的协议版本信息相匹配;和判断所述虚拟MP信息包含的当前虚拟MP成员数量是否未超出所述虚拟MP所支持的最大成员数量;以及判断自身是否支持所述虚拟MP信息包含的对成员的安全认证方法;judging whether the supported protocol version information matches the protocol version information included in the virtual MP information; and judging whether the current number of virtual MP members included in the virtual MP information does not exceed the maximum number of members supported by the virtual MP; and Judging whether it supports the security authentication method for members included in the virtual MP information;
在是的情况下,确定需要加入虚拟MP;否则,确定不需要加入虚拟MP。If yes, it is determined that the virtual MP needs to be added; otherwise, it is determined that the virtual MP does not need to be added.
优选地,若第一实体601被配置为一虚拟MP的领导者,则第一接收单元6011还用于接收离开该虚拟MP的实体发送的离开信息;第一转发单元6014还用于确定所述虚拟MP中当前是否存在该离开的实体的备份,如果是,触发该离开的实体的配置在所述备份上使能;并在所述虚拟MP中公开第一接收单元6011接收的离开消息。Preferably, if the
若第二实体被配置为一虚拟MP的领导者,则第二接收单元6021还用于接收离开该虚拟MP的实体发送的离开信息;第二转发单元6023还用于确定所述虚拟MP中当前是否存在该离开的实体的备份,如果是,触发该离开的实体的配置在所述备份上使能;并在所述虚拟MP中公开第二接收单元6021接收的离开消息。If the second entity is configured as the leader of a virtual MP, the second receiving unit 6021 is also used to receive the leaving information sent by the entity leaving the virtual MP; the
由上可见,本发明所提供的一种数据报文的转发方法和系统中,从第一实体的无线接口接收基于无线协议的数据报文;将该数据报文转换为基于有线协议的数据报文,并通过与第一实体的有线接口相连接的交换设备将所述基于有线协议的数据报文发送给第二实体;从第二实体的有线接口接收所述基于有线协议的数据报文;将该基于有线协议的数据报文转换为基于无线协议的数据报文,将该基于无线协议的数据报文通过第二实体的无线接口发送出去;其中,所述第一实体的无线接口和第二实体的无线接口中至少有一个是支持Mesh网络协议的无线接口;这样,当第一实体为包含一个无线接口的AP时,本发明使通过与AP相连接的交换设备发送数据报文给第二实体,之后,第二实体通过自身的无线接口发送数据报文,如此,实现了Mesh网络中数据报文的转发,避免了现有技术中Mesh网络中的实体AP利用时分方式通过无线接口提供服务,降低了信息传输的时延,大大提高了无线回程链路的吞吐。As can be seen from the above, in the forwarding method and system of a data message provided by the present invention, the data message based on the wireless protocol is received from the wireless interface of the first entity; the data message is converted into a data message based on the wired protocol Send the data message based on the wired protocol to the second entity through the switching device connected to the wired interface of the first entity; receive the data message based on the wired protocol from the wired interface of the second entity; converting the data message based on the wired protocol into a data message based on the wireless protocol, and sending the data message based on the wireless protocol through the wireless interface of the second entity; wherein, the wireless interface of the first entity and the second entity At least one of the wireless interfaces of the two entities is a wireless interface that supports the Mesh network protocol; like this, when the first entity is an AP that includes a wireless interface, the present invention sends a data message to the second entity through a switching device connected to the AP. Two entities, after that, the second entity sends the data message through its own wireless interface, so that the forwarding of the data message in the Mesh network is realized, and the entity AP in the Mesh network in the prior art is prevented from using the time-division method to provide the data message through the wireless interface. service, which reduces the delay of information transmission and greatly improves the throughput of the wireless backhaul link.
进一步地,本发明中,虚拟MP中的各个实体并不要求为多射频MP,其可包含一个无线接口,也可包含2个以上的无线接口,本发明实施例并不具体限定,并且,各个实体其可为通过软件升级方式升级的用户现网的MP,或者为普通的AP。如此,可大大降低用户投资成本,实现了价格低廉的多射频MP,进一步提高了多射频MP的应用广泛性。Further, in the present invention, each entity in the virtual MP is not required to be a multi-radio MP, which may include one wireless interface, or may include more than two wireless interfaces, which are not specifically limited in the embodiment of the present invention, and each The entity can be an MP on the user's live network upgraded through a software upgrade, or a common AP. In this way, the user's investment cost can be greatly reduced, a low-cost multi-radio MP is realized, and the application versatility of the multi-radio MP is further improved.
进一步地,本发明通过使在同一个虚拟MP中的各个实体之间进行有线传输,能够使Mesh网络中的实体之间并非一直采用无线接口进行上行传输,进而避免了Mesh网络中的实体仅采用无线接口进行上行传输的操作,可解决现有技术中无线射频口不够用的缺陷。Further, the present invention enables the entities in the Mesh network to not always use the wireless interface for uplink transmission by enabling wired transmission between entities in the same virtual MP, thereby avoiding that the entities in the Mesh network only use The uplink transmission operation of the wireless interface can solve the defect of insufficient wireless radio frequency ports in the prior art.
更进一地,本发明实施例中,将虚拟MP作为一个整体进行集中管理,将该虚拟MP中的担任领导者角色的实体代表该虚拟MP与网络管理设备进行交互,进而可以简化设备和网络管理。Furthermore, in the embodiment of the present invention, the virtual MP is centrally managed as a whole, and the entity acting as the leader in the virtual MP interacts with the network management device on behalf of the virtual MP, thereby simplifying the device and network manage.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。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 (26)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910080652XA CN101511132B (en) | 2009-03-23 | 2009-03-23 | Method and system for forwarding data message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910080652XA CN101511132B (en) | 2009-03-23 | 2009-03-23 | Method and system for forwarding data message |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101511132A CN101511132A (en) | 2009-08-19 |
CN101511132B true CN101511132B (en) | 2011-01-05 |
Family
ID=41003351
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200910080652XA Active CN101511132B (en) | 2009-03-23 | 2009-03-23 | Method and system for forwarding data message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101511132B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102546403B (en) * | 2011-12-27 | 2014-12-10 | 华为技术有限公司 | Method for transmitting message and small base station |
GB2500208B (en) * | 2012-03-13 | 2017-04-12 | Airspan Networks Inc | Cooperative components in a wireless feeder network |
CN105100153B (en) * | 2014-05-14 | 2018-12-07 | 中兴通讯股份有限公司 | Cloud terminal device, from equipment and its communication means and device |
CN104363603B (en) * | 2014-10-28 | 2018-05-22 | 福建星网锐捷网络有限公司 | A kind of AP, data transmission method for uplink and data receiver method |
CN106717056A (en) * | 2014-10-31 | 2017-05-24 | 华为技术有限公司 | Method and apparatus for allocating downhaul links |
CN105991679B (en) | 2015-01-30 | 2019-07-09 | 阿里巴巴集团控股有限公司 | A kind of implementation method and device of network sharing |
CN109474913B (en) * | 2017-09-06 | 2021-01-15 | 中国移动通信有限公司研究院 | Multi-hop transmission method and device |
CN110535826B (en) * | 2019-07-16 | 2022-01-11 | 浙江大华技术股份有限公司 | Wireless networking method and device, computer equipment and storage medium |
CN115396520B (en) * | 2021-05-19 | 2024-10-11 | 华为技术有限公司 | Control method, device, electronic device and readable storage medium |
-
2009
- 2009-03-23 CN CN200910080652XA patent/CN101511132B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN101511132A (en) | 2009-08-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101511132B (en) | Method and system for forwarding data message | |
US6757269B2 (en) | Mobile wireless router | |
US9356865B2 (en) | Method for dynamically controlling data paths, MTC gateway and network device using the same | |
CN101151853B (en) | A spanning-tree protocol for wireless networks | |
US7623863B2 (en) | System and method for adjusting connection parameters in a wireless network | |
US8300578B2 (en) | System, apparatus and method for seamless roaming through the use of routing update messages | |
US7376097B2 (en) | Method of associating an IP address with a plurality of link layer addresses in a wireless communication network | |
CN112106397A (en) | Wireless access point and method for providing alternate network connections | |
CN103024832B (en) | Architecture for multiple MIH users | |
US8477748B2 (en) | Base station and data transfer method | |
US20120207116A1 (en) | Wimax r6 management protocol | |
CN101572935A (en) | Wireless communication system, wireless communication apparatus, wireless communication method, and program | |
EP1830522B1 (en) | Bridging end point device supporting inter access point communication | |
WO2005006800A1 (en) | Paging control method, paging control device, and wireless access network | |
JP2010093652A (en) | Wireless communication equipment, gateway apparatus, access point, wireless lan module, and wireless communication system, and method | |
JP2005184808A (en) | Use of mobile control channel for roaming between networks | |
JP2007201781A (en) | Wireless packet communication system and wireless packet communication method | |
CN117121556A (en) | Handover techniques for time-sensitive networking | |
EP2445268A1 (en) | Method for managing an hybrid wired/wireless network | |
US20120020344A1 (en) | Wireless macro cell overlay | |
CN104812016B (en) | A kind of virtual terminal system construction method based on multi-hop | |
JP2006304118A (en) | Handover method, C-planeWireless Controller device, base station and terminal station | |
CN116017291A (en) | Communication system and method | |
TW202429947A (en) | Communication device, base station, mobile station, control circuit, storage medium, and gateway selection method | |
CN116803012A (en) | A method and device for wireless communication |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd. Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd. |
|
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20241227 Address after: texas Patentee after: HEWLETT PACKARD ENTERPRISE DEVELOPMENT L.P. Country or region after: U.S.A. Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466 Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd. Country or region before: China |