CN1735072B - An improved implementation method of wireless LAN bridge transparent bridging - Google Patents
An improved implementation method of wireless LAN bridge transparent bridging Download PDFInfo
- Publication number
- CN1735072B CN1735072B CN200410059139XA CN200410059139A CN1735072B CN 1735072 B CN1735072 B CN 1735072B CN 200410059139X A CN200410059139X A CN 200410059139XA CN 200410059139 A CN200410059139 A CN 200410059139A CN 1735072 B CN1735072 B CN 1735072B
- Authority
- CN
- China
- Prior art keywords
- data frame
- mac address
- access bridge
- bridge
- remote access
- 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.)
- Expired - Fee Related
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
- Small-Scale Networks (AREA)
Abstract
本发明公开一种无线局域网网桥透明桥接的改进实现方法,包括中心及远程接入网桥对数据帧的处理流程,中心接入网桥接收到数据帧后,如果带有远程接入网桥标记,则恢复该数据帧的源MAC地址和长度,对于目的端口为远程接入网桥的单目数据帧,要进行目的MAC地址的替换并做上中心接入网桥标记,对其它数据帧则直接由透明桥接转发,相应的,远程接入网桥接收到数据帧后,如果其带有中心接入网桥标记,则恢复其目的MAC地址和长度,对发往无线端口的数据帧,进行源MAC地址的替换并做上远程接入网桥标记,再交透明桥接转发。本发明方法实现了远程接入网桥用户之间,以及远程接入网桥与中心接入网桥用户之间的正常通信,提高了组网的灵活性。
The invention discloses an improved realization method of wireless local area network bridge transparent bridging, including the processing flow of the data frame by the center and the remote access bridge, after the central access bridge receives the data frame, if it has the remote access bridge mark, then restore the source MAC address and length of the data frame. For the monocular data frame whose destination port is the remote access bridge, replace the destination MAC address and mark it as the center access bridge. For other data frames It is directly forwarded by the transparent bridge. Correspondingly, after the remote access bridge receives the data frame, if it has the central access bridge mark, it restores its destination MAC address and length. For the data frame sent to the wireless port, Replace the source MAC address and mark it as a remote access bridge, and then forward it to the transparent bridge. The method of the invention realizes normal communication among users of remote access network bridges, and between users of remote access network bridges and central access network bridges, and improves the flexibility of networking.
Description
技术领域 technical field
本发明涉及一种无线局域网的通信方法,尤其涉及一种IEEE 802.11无线局域网组网时,利用中心接入网桥和远程接入网桥透明桥接进行无线通讯的实现方法。The invention relates to a communication method of a wireless local area network, in particular to a method for realizing wireless communication by using a central access bridge and a remote access bridge for transparent bridging in IEEE 802.11 wireless local area network networking.
背景技术 Background technique
随着无线局域网应用的普及,在一些较难通过线缆架设网络的地区,通过无线局域网网桥的透明桥接解决了传统有线网络所不能克服的难题,而且这种应用越来越受到广大用户的欢迎。所谓透明桥接,是指不改变接收数据帧的内容,依据桥接转发规则,将数据帧透明地发送到目的地。With the popularization of wireless LAN applications, in some areas where it is difficult to set up a network through cables, transparent bridging through wireless LAN bridges solves the problems that traditional wired networks cannot overcome, and this application is more and more popular among users. welcome. The so-called transparent bridging means that the content of the received data frame is not changed, and the data frame is transparently sent to the destination according to the bridging forwarding rules.
在实际组网时,通常中心地区布设一个中心接入网桥(AB-Center),中心接入网桥也可以作为无线接入点(AP),接入多个无线终端(STA)。在边缘地区布设多个远程接入网桥(AB-Client),每个远程接入网桥相当于STA,经无线关联接入到中心接入网桥,该网桥组网模式也称为基础(Infrastructure)架构模式。经远程接入网桥和中心接入网桥的无线透明桥接转发,与远程接入网桥或中心接入网桥相连的有线网络用户之间以及与接入到中心接入网桥的无线终端之间可以互相通信。In actual networking, a central access bridge (AB-Center) is usually deployed in the central area, and the central access bridge can also serve as a wireless access point (AP) to access multiple wireless terminals (STA). Multiple remote access bridges (AB-Client) are deployed in the edge area. Each remote access bridge is equivalent to a STA, and is connected to the central access bridge through wireless association. The bridge networking mode is also called basic (Infrastructure) architecture pattern. Wireless transparent bridging and forwarding via the remote access bridge and the central access bridge, between wired network users connected to the remote access bridge or the central access bridge and with wireless terminals connected to the central access bridge can communicate with each other.
目前以IEEE 802.11MAC固件设计实现的无线局域网中心接入网桥和远程接入网桥产品中,中心接入网桥的IEEE 802.11MAC固件可以直接中继从无线媒介接收的来自关联无线终端或远程接入网桥的组播或广播数据帧,以及目的MAC地址是已关联无线终端的单目(Unicast)数据帧到目的设备,但其他类型的数据帧则不能采用这种直接中继的方式实现。At present, in the wireless LAN central access bridge and remote access bridge products designed and implemented with IEEE 802.11MAC firmware, the IEEE 802.11MAC firmware of the central access bridge can directly relay the information received from the wireless medium from the associated wireless terminal or remote The multicast or broadcast data frame and the destination MAC address of the access bridge are unicast data frames associated with the wireless terminal to the destination device, but other types of data frames cannot be realized by this direct relay method .
例如,远程接入网桥向中心接入网桥发送的所有类型数据帧的源MAC地址必须是远程接入网桥的无线MAC地址,远程接入网桥才能将数据帧经无线媒介发送到中心接入网桥;同时中心接入网桥向远程接入网桥发送的单目数据帧的目的MAC地址必须是远程接入网桥自身的无线MAC地址,远程接入网桥才能接收来自中心接入网桥的数据帧。因此,必须对数据帧的源MAC地址或目的MAC地址做转换,以及在转换后接收方必须恢复数据帧被转换的MAC地址,才能使远程接入网桥与中心接入网桥的用户之间,以及远程接入网桥的用户之间(需经过中心接入网桥)正常通信。而用MAC固件中继的方法就无法实现。For example, the source MAC address of all types of data frames sent by the remote access bridge to the central access bridge must be the wireless MAC address of the remote access bridge, so that the remote access bridge can send the data frame to the center via the wireless medium At the same time, the destination MAC address of the monocular data frame sent by the central access bridge to the remote access bridge must be the wireless MAC address of the remote access bridge itself, so that the remote access bridge can receive data from the central access bridge. Data frames entering the bridge. Therefore, the source MAC address or destination MAC address of the data frame must be converted, and the receiver must restore the converted MAC address of the data frame after conversion, so that the remote access bridge and the user of the central access bridge can communicate with each other. , and the normal communication between users of the remote access bridge (need to go through the central access bridge). However, the method of relaying with MAC firmware cannot be realized.
申请号为200410006574.6的中国专利申请“一种无线局域网网桥透明桥接的实现方法”揭示了一种透明桥接技术,即在有IEEE 802.11MAC固件的网桥产品中,远程接入网桥的有线用户与中心接入网桥的无线终端之间通信时,远程接入网桥的有线用户发往中心接入网桥的无线终端的数据帧直接由IEEE 802.11MAC固件中继,而未经过中心接入网桥的透明桥接转发,并且中心接入网桥的无线终端接收的来自远程接入网桥的有线用户的数据帧,是经过远程接入网桥进行源MAC地址替换的数据帧,并且数据帧长度增加了MAC地址长度和远程接入网桥标记长度。在该技术中,如果无线终端在接收时限制了所接收数据帧的最大允许长度(例如以太网规定数据帧最大长度为1518字节),则远程接入网桥向中心接入网桥无线终端传输最大长度数据帧时,由于进行源MAC地址替换后,数据帧增加了MAC地址长度和远程接入网桥标记长度,从而导致中心接入网桥无线终端不能接收。The Chinese patent application with the application number 200410006574.6 "A method for implementing transparent bridging of a wireless LAN bridge" discloses a transparent bridging technology, that is, in a bridge product with IEEE 802.11MAC firmware, a wired user remotely accessing the bridge When communicating with the wireless terminal of the central access bridge, the data frame sent by the wired user of the remote access bridge to the wireless terminal of the central access bridge is directly relayed by the IEEE 802.11MAC firmware without going through the central access The transparent bridge forwarding of the network bridge, and the data frame received by the wireless terminal of the central access bridge from the wired user of the remote access bridge is a data frame whose source MAC address is replaced by the remote access bridge, and the data frame The length increases the MAC address length and the Remote Access Bridge token length. In this technology, if the wireless terminal limits the maximum allowable length of the received data frame when receiving (for example, Ethernet stipulates that the maximum length of a data frame is 1518 bytes), the remote access bridge will send data to the central access bridge wireless terminal When transmitting a data frame with the maximum length, after the source MAC address is replaced, the data frame increases the length of the MAC address and the length of the tag of the remote access bridge, so that the wireless terminal of the central access bridge cannot receive it.
发明内容 Contents of the invention
本发明要解决的技术问题是提供一种无线局域网网桥透明桥接的改进实现方法,保障在有MAC固件的网桥产品上中心接入网桥的无线终端与远程接入网桥用户之间的正常通信。The technical problem to be solved by the present invention is to provide an improved implementation method of wireless local area network bridge transparent bridging, to ensure the communication between the wireless terminal of the central access bridge and the remote access bridge user on the bridge product with MAC firmware. Normal communication.
为了解决上述技术问题,本发明提供了一种无线局域网中心接入网桥透明桥接的改进实现方法,以及一种相互对应的远程接入网桥透明桥接的改进实现方法。In order to solve the above-mentioned technical problems, the present invention provides an improved implementation method of wireless local area network center access bridge transparent bridging, and an improved implementation method of remote access bridge transparent bridging corresponding to each other.
其中,中心接入网桥透明桥接的改进实现方法包括以下步骤:Wherein, the improved implementation method of the central access bridge transparent bridging includes the following steps:
(a)在中心接入网桥上创建无线终端列表、远程接入网桥列表和MAC地址表;(a) Create a wireless terminal list, a remote access bridge list and a MAC address table on the central access bridge;
(b)接收到数据帧;(b) Receive a data frame;
(c)判断所述数据帧源MAC地址是否存在于远程接入网桥列表,如果是,将数据帧的目的和源MAC地址恢复为原始数据帧的目的和源MAC地址并恢复为原始数据帧的长度,将恢复后的源MAC地址与接收源端口绑定并学习到所述MAC地址表中;否则,将所述数据帧的源MAC地址与接收源端口绑定并学习到所述MAC地址表中;(c) judging whether the source MAC address of the data frame exists in the list of remote access bridges, if so, the purpose and the source MAC address of the data frame are restored to the purpose and the source MAC address of the original data frame and restored to the original data frame length, bind the recovered source MAC address to the receiving source port and learn it into the MAC address table; otherwise, bind the source MAC address of the data frame to the receiving source port and learn the MAC address table;
(d)判断所述数据帧的类型,如果是单目数据帧,执行下一步,如果是组播或广播数据帧,执行步骤(g);(d) judging the type of the data frame, if it is a monocular data frame, perform the next step, if it is a multicast or broadcast data frame, perform step (g);
(e)确定所述数据帧的目的端口,并判断其类型,如果是远程接入网桥,执行下一步,否则执行步骤(g);(e) Determine the destination port of the data frame, and judge its type, if it is a remote access bridge, perform the next step, otherwise perform step (g);
(f)在所述数据帧上保存其目的MAC地址并做上中心接入网桥标记,然后将其目的MAC地址替换成要发往的远程接入网桥的MAC地址,并增加所述数据帧的长度;(f) Save its destination MAC address on the data frame and mark it as the center access bridge, then replace its destination MAC address with the MAC address of the remote access bridge to be sent to, and increase the data the length of the frame;
(g)按透明桥接转发规则,将所述数据帧转发到目的端口。(g) Forwarding the data frame to the destination port according to the transparent bridge forwarding rule.
上述方法还可具有以下特点:在所述步骤(c)之前,先判断所述数据帧的媒介,如果来自无线媒介,执行步骤(c),如果来自有线媒介,将所述数据帧的源MAC地址与接收源端口绑定并学习到所述MAC地址表中,执行步骤(d)。The above method can also have the following characteristics: before the step (c), first judge the medium of the data frame, if it is from a wireless medium, perform step (c), if it is from a wired medium, set the source MAC address of the data frame The address is bound to the receiving source port and learned into the MAC address table, and step (d) is performed.
上述方法还可具有以下特点:在所述步骤(e)中,对于单目数据帧,根据其目的MAC地址从所述MAC地址表确定该数据帧应发往的目的端口,如果没有找到,就以除了接收源端口以外的所有其他端口为目的端口。The above method can also have the following characteristics: in the step (e), for the monocular data frame, determine the destination port that the data frame should send to from the MAC address table according to its destination MAC address, if not found, just Use all other ports except the receiving source port as the destination port.
相应的,本发明远程接入网桥透明桥接的改进实现方法包括以下步骤:Correspondingly, the improved implementation method of the remote access bridge transparent bridging of the present invention includes the following steps:
(a)在远程接入网桥上创建MAC地址表,(a) Create a MAC address table on the remote access bridge,
(b)接收到数据帧;(b) Receive a data frame;
(c)检查所述数据帧,如果带有中心接入网桥标记,执行下一步,否则,将所述数据帧的源MAC地址与接收源端口绑定并学习到所述MAC地址表中,执行步骤(e);(c) Check the data frame, if there is a central access bridge mark, perform the next step, otherwise, bind the source MAC address of the data frame with the receiving source port and learn it into the MAC address table, perform step (e);
(d)将所述数据帧的目的MAC地址恢复为原始数据帧的目的MAC地址并恢复为原始数据帧的长度,将恢复后的源MAC地址与接收源端口绑定并学习到所述MAC地址表中;(d) restore the destination MAC address of the data frame to the destination MAC address of the original data frame and restore the length of the original data frame, bind the restored source MAC address to the receiving source port and learn the MAC address table;
(e)确定所述数据帧的目的端口,如果是发往无线端口,执行下一步,如果发往有线端口,执行步骤(g);(e) Determine the destination port of the data frame, if it is sent to a wireless port, perform the next step, if it is sent to a wired port, perform step (g);
(f)在所述数据帧上保存其目的和源MAC地址,然后将其目的MAC地址替换为所关联中心接入网桥的BSSID(基本服务集标识,为6字节MAC地址),源MAC地址替换成本远程接入网桥的MAC地址,并增加所述数据帧的长度;(f) preserve its purpose and source MAC address on the data frame, then replace its purpose MAC address with the BSSID (basic service set identifier, which is a 6-byte MAC address) of the associated center access bridge, and the source MAC address The address replaces the MAC address of the remote access bridge, and increases the length of the data frame;
(g)按透明桥接转发规则,将数据帧转发到目的端口。(g) According to the transparent bridging forwarding rule, forward the data frame to the destination port.
上述方法还可具有以下特点:在所述步骤(c)之前,先判断所述数据帧的媒介,如果来自无线媒介,执行步骤(c),如果来自有线媒介,将所述数据帧的源MAC地址与接收源端口绑定并学习到所述MAC地址表中,执行步骤(e)。The above method can also have the following characteristics: before the step (c), first judge the medium of the data frame, if it is from a wireless medium, perform step (c), if it is from a wired medium, set the source MAC address of the data frame The address is bound to the receiving source port and learned into the MAC address table, and step (e) is performed.
上述方法还可具有以下特点:在所述步骤(e)中,对于单目数据帧,根据其目的MAC地址从所述MAC地址表确定该数据帧应发往的目的端口,如果没有找到,就以除了接收源端口以外的所有其他端口为目的端口。The above method can also have the following characteristics: in the step (e), for the monocular data frame, determine the destination port that the data frame should send to from the MAC address table according to its destination MAC address, if not found, just Use all other ports except the receiving source port as the destination port.
由上可知,本发明方法在无线终端接收数据帧最大长度限制在以太网规定的最大允许数据帧长度时,实现了有MAC固件的网桥产品上中心接入网桥的无线终端与远程接入网桥用户之间正常通信的效果。As can be seen from the above, when the maximum length of the data frame received by the wireless terminal is limited to the maximum allowable data frame length specified by the Ethernet, the wireless terminal and remote access of the central access bridge on the network bridge product with MAC firmware are realized. The effect of normal communication between bridge users.
附图说明 Description of drawings
图1是本发明实施例无线局域网中心接入网桥与远程接入网桥组网的示意图;FIG. 1 is a schematic diagram of a wireless local area network central access bridge and a remote access bridge networking according to an embodiment of the present invention;
图2是本发明实施例无线局域网中心接入网桥对数据帧处理的流程图;Fig. 2 is the flow chart of data frame processing by the access bridge of the wireless local area network center in the embodiment of the present invention;
图3是本发明实施例无线局域网远程接入网桥对数据帧处理的流程图。Fig. 3 is a flow chart of processing data frames by a wireless local area network remote access bridge according to an embodiment of the present invention.
具体实施方式 Detailed ways
中心接入网桥无线终端接收来自远程接入网桥的数据帧,必须保证是未经改动的数据帧(即数据帧与原始数据帧完全相同),任意中心接入网桥无线终端才能与远程接入网桥的用户正常通信。由于中心接入网桥的IEEE 802.11MAC固件将接收目的MAC地址为BSSID的数据帧直接递交中心接入网桥的透明桥接处理,所以远程接入网桥需要将数据帧的目的地址替换为所关联中心网桥的BSSID,源MAC地址替换为自身的无线MAC地址,并将原始目的和源MAC地址保存在数据帧尾部,数据帧经过中心接入网桥的透明桥接的转发,任意中心接入网桥无线终端将可以与远程接入网桥的用户正常通信。The wireless terminal of the central access bridge receives the data frame from the remote access bridge. It must be guaranteed to be an unmodified data frame (that is, the data frame is exactly the same as the original data frame). Users accessing the bridge communicate normally. Since the IEEE 802.11MAC firmware of the central access bridge directly submits the data frame whose destination MAC address is BSSID to the transparent bridging process of the central access bridge, the remote access bridge needs to replace the destination address of the data frame with the associated The BSSID and source MAC address of the central bridge are replaced with their own wireless MAC address, and the original destination and source MAC address are saved at the end of the data frame. The data frame is forwarded through the transparent bridge of the central access bridge, and any central access network Bridge wireless terminals will be able to communicate normally with users remotely accessing the bridge.
以图1的组网为例,无线终端STA和远程接入网桥AB-Client1、AB-Client2接入中心接入网桥AB-Center,计算机终端PC1、PC2和PC3分别连接到AB-Center,AB-Client1和AB-Client2。这是一个简化的示例,实际应用中AB-Client1、AB-Client2和AB-Center各自可以连接多个有线用户,AB-Center也可以接入更多的无线终端和远程接入网桥。Taking the networking in Figure 1 as an example, the wireless terminal STA and the remote access bridges AB-Client1 and AB-Client2 access the center access bridge AB-Center, and the computer terminals PC1, PC2 and PC3 are respectively connected to the AB-Center. AB-Client1 and AB-Client2. This is a simplified example. In practical applications, AB-Client1, AB-Client2, and AB-Center can each connect to multiple wired users, and AB-Center can also connect to more wireless terminals and remote access bridges.
本发明无线局域网网桥透明桥接的实现方法,包括中心接入网桥透明桥接的实现方法和相应的远程接入网桥透明桥接的实现方法。The realization method of wireless local area network bridge transparent bridging of the present invention comprises the realization method of central access network bridge transparent bridging and the realization method of corresponding remote access network bridge transparent bridging.
中心接入网桥AB-Center上需要创建无线终端列表、远程接入网桥列表和MAC地址表,将接入的无线终端STA加入无线终端列表,将接入远程接入网桥AB-Client1、2映射为虚拟无线端口,加入到远程接入网桥列表同时与该远程接入网桥绑定,将接收到数据帧的源MAC地址学习到MAC地址表,并建立MAC地址和对应端口的绑定关系。The wireless terminal list, remote access bridge list, and MAC address table need to be created on the central access bridge AB-Center, and the connected wireless terminal STA is added to the wireless terminal list, and the remote access bridge AB-Client1, 2 is mapped to a virtual wireless port, added to the remote access bridge list and bound to the remote access bridge at the same time, learns the source MAC address of the received data frame to the MAC address table, and establishes the binding between the MAC address and the corresponding port determine the relationship.
如图2所示,在接收到数据帧后,中心接入网桥的透明桥接的处理流程包括以下步骤:As shown in Figure 2, after receiving the data frame, the processing flow of the transparent bridging of the central access bridge includes the following steps:
步骤100,接收来自无线媒介或有线媒介(即分布系统)的数据帧;Step 100, receiving a data frame from a wireless medium or a wired medium (that is, a distribution system);
步骤110,判断数据帧的接收媒介是否是无线媒介,如果是,执行下一步,否则是来自有线媒介,执行步骤140;Step 110, judge whether the receiving medium of the data frame is a wireless medium, if yes, perform the next step, otherwise it is from a wired medium, perform step 140;
步骤120,检查数据帧的源MAC地址是否位于远程接入网桥列表,如果是,则数据帧来自远程接入网桥,执行下一步,否则来自无线终端,执行步骤140;Step 120, check whether the source MAC address of the data frame is located in the list of remote access bridges, if yes, then the data frame is from the remote access bridge, and perform the next step, otherwise, from the wireless terminal, perform step 140;
步骤130,将数据帧的目的和源MAC地址恢复为保存在数据帧尾部的原始数据帧的目的和源MAC地址,并恢复为原始数据帧的长度;Step 130, recovering the purpose and source MAC address of the data frame as the purpose and source MAC address of the original data frame stored at the end of the data frame, and recovering the length of the original data frame;
步骤140,将数据帧的源MAC地址(如转换过则为恢复后的地址)与其接收端口(即数据帧进入网桥的接收源端口)绑定,学习到MAC地址表;Step 140, binding the source MAC address of the data frame (the address after conversion as the restored one) with its receiving port (that is, the receiving source port where the data frame enters the network bridge), learning the MAC address table;
步骤150,判断数据帧是否组播或广播数据帧,如果是,执行步骤220;否则是单目数据帧,执行下一步;Step 150, judging whether the data frame is a multicast or broadcast data frame, if yes, execute step 220; otherwise, it is a monocular data frame, execute the next step;
步骤160,判断数据帧的源MAC地址和目的MAC地址是否位于同一端口,如果是,执行步骤230,否则执行下一步;Step 160, judging whether the source MAC address of the data frame and the destination MAC address are located at the same port, if yes, perform step 230, otherwise perform the next step;
步骤170,根据数据帧的目的MAC地址在MAC地址表查找数据帧应发往的目的端口,没有找到就向除了接收源端口以外的所有其他端口发送(即采取洪泛发送方式);Step 170, search the destination port that data frame should send to in MAC address table according to the destination MAC address of data frame, if not finding, just send to all other ports except receiving source port (i.e. take flooding sending mode);
步骤180,判断数据帧的目的端口类型,如果是远程接入网桥,执行下一步,如果是无线终端,执行步骤200,如果是有线端口,执行步骤210;Step 180, determine the destination port type of the data frame, if it is a remote access bridge, perform the next step, if it is a wireless terminal, perform step 200, if it is a wired port, perform step 210;
步骤190,将数据帧的目的MAC地址和中心接入网桥标记保存在数据帧尾部,然后将其目的MAC地址替换成相应远程接入网桥的MAC地址,并将数据帧长度增加MAC地址长度和中心接入网桥标记长度;Step 190, save the destination MAC address of the data frame and the central access bridge mark at the end of the data frame, then replace the destination MAC address with the MAC address of the corresponding remote access bridge, and increase the length of the data frame by the length of the MAC address and central access bridge tag length;
步骤200,按透明桥接转发规则,将数据帧转发到无线媒介,结束;Step 200, according to the transparent bridging forwarding rule, forward the data frame to the wireless medium, end;
步骤210,按透明桥接转发规则,将数据帧转发到有线媒介,结束;Step 210, according to the transparent bridging forwarding rule, forward the data frame to the wired medium, end;
步骤220,按透明桥接转发规则,直接将数据帧转发到目标媒介,结束;Step 220, according to the transparent bridge forwarding rule, directly forward the data frame to the target medium, end;
步骤230,过滤掉该单目数据帧,结束。Step 230, filter out the monocular data frame, and end.
根据以上流程,结合图1的组网,中心接入网桥AB-Center接收到无线终端STA或者分布系统用户PC1的数据帧时,直接递交透明桥接转发,而在接收到PC2、PC3通过远程接入网桥AB-Client1、2发来的数据帧时,则需要恢复原始数据帧的目的和源MAC地址和长度。而在转发时,目的MAC地址是远程接入网桥用户PC2、PC3的单目数据帧,需要将目的MAC地址转换为远程接入网桥AB-Client1、2的MAC地址后再发送,而目的MAC地址是无线终端STA或者中心接入网桥分布系统用户PC1的数据帧,或者发往PC1、PC2、PC3或无线终端STA的广播和组播数据帧时,都可以直接采用透明桥接技术转发。According to the above process, combined with the networking in Figure 1, when the central access bridge AB-Center receives the data frame of the wireless terminal STA or the distribution system user PC1, it directly submits the transparent When entering the data frame sent by the bridge AB-Client1, 2, it is necessary to restore the destination and source MAC address and length of the original data frame. When forwarding, the destination MAC address is the monocular data frame of the remote access bridge users PC2 and PC3. It is necessary to convert the destination MAC address into the MAC address of the remote access bridge AB-Client1 and 2 before sending, and the destination When the MAC address is the data frame of the wireless terminal STA or the user PC1 of the central access bridge distribution system, or the broadcast and multicast data frames sent to PC1, PC2, PC3 or the wireless terminal STA, it can be directly forwarded by transparent bridging technology.
对于有MAC固件的网桥产品,STA发送的经中心接入网桥的组播或广播数据帧可以由中心接入网桥的IEEE 802.11MAC固件直接中继。For bridge products with MAC firmware, the multicast or broadcast data frames sent by STA via the central access bridge can be directly relayed by the IEEE 802.11MAC firmware of the central access bridge.
远程接入网桥AB-Client1、2需要创建MAC地址表。将接收到数据帧的源MAC地址学习到MAC地址表,并建立MAC地址和对应端口的绑定关系。Remote access bridges AB-Client1 and 2 need to create MAC address tables. Learn the source MAC address of the received data frame into the MAC address table, and establish the binding relationship between the MAC address and the corresponding port.
如图3所示,在接收到数据帧后,远程接入网桥的透明桥接的处理流程包括以下步骤:As shown in Figure 3, after receiving the data frame, the processing flow of the transparent bridging of the remote access bridge includes the following steps:
步骤300,接收来自无线媒介或分布系统的数据帧;Step 300, receiving a data frame from a wireless medium or a distribution system;
步骤310,判断数据帧的接收媒介是否是无线媒介,如果是,执行下一步,否则是来自有线媒介,执行步骤350;Step 310, judging whether the receiving medium of the data frame is a wireless medium, if yes, perform the next step, otherwise it is from a wired medium, perform step 350;
步骤320,检查数据帧的标记,如果带有中心接入网桥标记,执行下一步,如果没有上述标记,执行步骤350;Step 320, check the mark of the data frame, if there is a central access bridge mark, go to the next step, if there is no above mark, go to step 350;
步骤340,将数据帧的目的MAC地址恢复为原始数据帧的目的MAC地址并恢复为原始数据帧的长度;Step 340, restoring the destination MAC address of the data frame to the destination MAC address of the original data frame and restoring the length of the original data frame;
步骤350,将数据帧的源MAC地址(如转换过则为恢复后的地址)与其接收端口绑定,学习到MAC地址表;Step 350, binding the source MAC address of the data frame (if converted, the address after recovery) to its receiving port, learning the MAC address table;
步骤360,判断是否单目数据帧,如果是,执行下一步,否则执行步骤390;Step 360, judge whether it is a monocular data frame, if yes, execute the next step, otherwise execute step 390;
步骤370,判断单目数据帧的源MAC地址和目的MAC地址是否位于相同的端口,如果是,执行步骤430,否则执行下一步;Step 370, judging whether the source MAC address and the destination MAC address of the monocular data frame are located at the same port, if yes, perform step 430, otherwise perform the next step;
步骤380,根据单目数据帧的目的MAC地址在MAC地址表查找数据帧应发往的目的端口,没有找到就向除了接收源端口以外的所有其他端口发送;Step 380, according to the destination MAC address of the monocular data frame, look up the destination port to which the data frame should be sent in the MAC address table, if not found, send to all other ports except the receiving source port;
步骤390,判断数据帧的目的端口是否无线端口,如果是,执行下一步,否则执行步骤420;Step 390, judge whether the destination port of the data frame is a wireless port, if yes, perform the next step, otherwise perform step 420;
步骤400,将数据帧的目的和源MAC地址保存在数据帧尾部,然后将其目的MAC地址替换为所关联中心接入网桥BSSID,源MAC地址替换成本地远程接入网桥的MAC地址,并将数据帧长度增加目的和源MAC地址长度;Step 400, save the purpose and source MAC address of the data frame at the tail of the data frame, then replace the destination MAC address with the BSSID of the associated center access bridge, and replace the source MAC address with the MAC address of the local remote access bridge, And increase the length of the data frame to the length of the destination and source MAC addresses;
步骤410,按透明桥接转发规则,将数据帧转发到无线媒体,结束;Step 410, according to the transparent bridging forwarding rule, forward the data frame to the wireless medium, end;
步骤420,按透明桥接转发规则,将数据帧转发到有线媒体,结束;Step 420, according to the transparent bridge forwarding rule, forward the data frame to the wired medium, end;
步骤430,过滤掉该单目数据帧,结束。Step 430, filter out the monocular data frame, and end.
根据以上流程,结合图1的组网,PC2通过远程接入网桥AB-Client1经无线媒介发送所有类型数据帧到PC1、PC3、STA时,均进行目的和源MAC地址的替换。远程接入网桥AB-Client1接收到带有中心接入网桥标记的数据帧,如STA、PC1或PC3发到PC2的单目数据帧,需恢复数据帧的目的MAC地址和原始数据帧的长度。对于从无线媒介接收到的没有上述中心接入网桥标记的数据帧,及来自分布系统的数据帧则不必进行地址的恢复操作。According to the above process, combined with the networking in Figure 1, when PC2 sends all types of data frames to PC1, PC3, and STA through the remote access bridge AB-Client1 through the wireless medium, the destination and source MAC addresses are replaced. When the remote access bridge AB-Client1 receives a data frame marked with the central access bridge, such as a monocular data frame sent from STA, PC1 or PC3 to PC2, it needs to restore the destination MAC address of the data frame and the address of the original data frame. length. For the data frames received from the wireless medium without the mark of the central access bridge and the data frames from the distribution system, no address recovery operation is necessary.
将本实施例远程接入网桥和中心接入网桥的透明桥接方法结合起来,以PC2发往PC3的单目数据帧为例,在远程接入网桥AB-Client1会进行目的和源MAC地址的替换,中心接入网桥AB-Center在接收时会恢复其目的和源MAC地址,在透明桥接转发时则进行目的MAC地址替换并做上中心接入网桥标记,而在远程接入网桥AB-Client2上再恢复其目的地址,从而实现了PC2和PC3之间的正常通信,同时对接收方用户来说,数据帧的内容没有改变,实现了透明桥接。Combining the transparent bridging methods of the remote access bridge and the central access bridge in this embodiment, taking the monocular data frame sent from PC2 to PC3 as an example, the remote access bridge AB-Client1 will perform destination and source MAC For address replacement, the center access bridge AB-Center will restore its destination and source MAC addresses when receiving, and replace the destination MAC address and mark it on the center access bridge during transparent bridging and forwarding. The destination address of the bridge AB-Client2 is restored, thereby realizing the normal communication between PC2 and PC3, and at the same time, for the receiving user, the content of the data frame remains unchanged, realizing transparent bridging.
又如,PC2发往STA的单目数据帧,在远程接入网桥AB-Client1会进行目的和源MAC地址的替换,中心接入网桥AB-Center在接收时会恢复其目的和源MAC地址,在透明桥接转发时将数据帧直接发送到STA,从而实现了PC2和STA之间的正常通信,同时对STA来说,数据帧的内容没有改变,实现了透明桥接。As another example, for the monocular data frame sent from PC2 to STA, the remote access bridge AB-Client1 will replace the destination and source MAC addresses, and the central access bridge AB-Center will restore its destination and source MAC addresses when receiving address, the data frame is directly sent to the STA during transparent bridging forwarding, thereby realizing normal communication between PC2 and STA, and at the same time, for the STA, the content of the data frame remains unchanged, realizing transparent bridging.
又如,PC1发往PC2的单目数据帧,在中心接入网桥AB-Center上会进行目的MAC地址的替换并做上中心接入网桥标记,而通过透明桥接转发到远程接入网桥AB-Client1后,再恢复其原始数据帧的目的MAC地址,从而实现了PC1和PC2之间的正常通信和透明桥接。For another example, the monocular data frame sent from PC1 to PC2 will replace the destination MAC address on the central access bridge AB-Center and mark it on the central access bridge, and forward it to the remote access network through transparent bridging After bridging AB-Client1, the destination MAC address of its original data frame is restored, thereby realizing normal communication and transparent bridging between PC1 and PC2.
其它,如STA与PC1、PC2、PC3之间,都可以根据本发明的流程实现正常通信和透明桥接,在此就不再一一赘述。Others, such as between STA and PC1, PC2, and PC3, can realize normal communication and transparent bridging according to the process of the present invention, and details will not be repeated here.
上述流程中的中心接入网桥标记可以通过计算数据帧固定位置和长度的数据32位校验和获得。例如计算数据帧目的MAC地址和源MAC地址这12字节的32位校验和,中心接入网桥标记取低16位。The central access bridge mark in the above process can be obtained by calculating the 32-bit checksum of the fixed position and length of the data frame. For example, calculate the 32-bit checksum of the 12-byte destination MAC address and source MAC address of the data frame, and take the lower 16 bits of the central access bridge mark.
综上所述,通过本发明无线局域网网桥透明桥接的改进实现方法,通过远程接入网桥和中心接入网桥对发送数据帧的源MAC地址和目的MAC地址的转换或恢复,并经远程接入网桥或中心接入网桥的透明桥接转发,实现了远程接入网桥用户之间,以及远程接入网桥与中心接入网桥用户之间的相互通信。特别是在无线终端接收数据帧最大长度限制在以太网规定的最大允许数据帧长度时,实现了有MAC固件的网桥产品上中心接入网桥的无线终端与远程接入网桥用户的正常通信。事实上,实施例的方法解决了包括有MAC固件在内的以基础架构方式设计实现的网桥产品存在的所有情况下用户间通信的问题,并取得了数据帧快速中继的效果,使得组网应用更加广泛,提高了组网的灵活性。In summary, through the improved implementation method of wireless LAN bridge transparent bridging of the present invention, the conversion or recovery of the source MAC address and the destination MAC address of the transmitted data frame by the remote access bridge and the central access bridge, and through The transparent bridging and forwarding of the remote access bridge or the central access bridge realizes mutual communication between users of the remote access bridge and between users of the remote access bridge and the central access bridge. Especially when the maximum length of the data frame received by the wireless terminal is limited to the maximum allowable data frame length specified by the Ethernet, the normal communication between the wireless terminal of the central access bridge on the bridge product with MAC firmware and the user of the remote access bridge is realized. communication. In fact, the method of the embodiment solves the problem of communication between users in all cases of bridge products designed and implemented in the form of infrastructure including MAC firmware, and achieves the effect of fast relay of data frames, making the group The network application is more extensive, which improves the flexibility of networking.
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200410059139XA CN1735072B (en) | 2004-08-13 | 2004-08-13 | An improved implementation method of wireless LAN bridge transparent bridging |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200410059139XA CN1735072B (en) | 2004-08-13 | 2004-08-13 | An improved implementation method of wireless LAN bridge transparent bridging |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1735072A CN1735072A (en) | 2006-02-15 |
| CN1735072B true CN1735072B (en) | 2010-04-21 |
Family
ID=36077273
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN200410059139XA Expired - Fee Related CN1735072B (en) | 2004-08-13 | 2004-08-13 | An improved implementation method of wireless LAN bridge transparent bridging |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN1735072B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101309235A (en) * | 2007-05-18 | 2008-11-19 | 华为技术有限公司 | Method for forwarding message, media gateway controller, media gateway and network system |
| CN102523628B (en) | 2011-12-23 | 2015-09-30 | 华为终端有限公司 | Relay method for wireless relay device and wireless relay device |
| CN109743326B (en) * | 2019-01-10 | 2021-09-07 | 新华三云计算技术有限公司 | Traffic transmission method and device |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1414742A (en) * | 2002-12-03 | 2003-04-30 | 北京朗通环球科技有限公司 | Method of isolating user in radio local network |
| CN1437114A (en) * | 2002-02-08 | 2003-08-20 | 联想(北京)有限公司 | Two-layer exchange type firewall package filtering method based on bridge |
-
2004
- 2004-08-13 CN CN200410059139XA patent/CN1735072B/en not_active Expired - Fee Related
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1437114A (en) * | 2002-02-08 | 2003-08-20 | 联想(北京)有限公司 | Two-layer exchange type firewall package filtering method based on bridge |
| CN1414742A (en) * | 2002-12-03 | 2003-04-30 | 北京朗通环球科技有限公司 | Method of isolating user in radio local network |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1735072A (en) | 2006-02-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7436784B2 (en) | Resilient packet ring network for realizing MAC bridging | |
| US9065766B2 (en) | Medium for storing packet conversion program, packet conversion apparatus and packet conversion method | |
| JP5054056B2 (en) | Network system, core switch, edge switch, data relay method | |
| CN105812259B (en) | A kind of message forwarding method and equipment | |
| CN101242285B (en) | Switching hub and LAN system | |
| US7216159B2 (en) | Wireless LAN system for virtual LAN | |
| CN104168184B (en) | Message forwarding method and equipment | |
| CN112039920B (en) | Communication method, communication device, electronic device and storage medium | |
| WO2013145167A1 (en) | Lan multiplexer apparatus | |
| CN102144420B (en) | Proxy Mechanism for Mesh Networks | |
| CN100502354C (en) | Data message transmission method and Ethernet bridge apparatus based on VLAN | |
| WO2022160665A1 (en) | Packet forwarding method, packet processing method, and device | |
| CN1282342C (en) | Method for implementing transparent bridging of radio local network bridging | |
| CN115955431B (en) | Data transmission method, device and storage medium | |
| JP5092241B2 (en) | Network system | |
| CN102932228B (en) | The communication means of TRILL network and device, system | |
| US20090003295A1 (en) | Ad-hoc network device with reduced data loss | |
| US8175106B2 (en) | Fast and automatic self-forming meshing topology to integrate with wired networks | |
| CN1735072B (en) | An improved implementation method of wireless LAN bridge transparent bridging | |
| CN101729135A (en) | Transmission method, communication device and communication system of wireless mesh networks | |
| JP2003060656A (en) | Vlan constructing method in wireless lan, vlan packet processing program for wireless repeater, recording medium recording vlan packet processing program for wireless repeater, wireless repeater with vlan function and wireless vlan system | |
| CN115277545A (en) | Active-standby network switching method and device | |
| JP5733473B2 (en) | Interworking apparatus, method, and program | |
| JP5458340B2 (en) | Network relay device | |
| CN102026246B (en) | Link aggregation processing method, system and wireless access point |
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 | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20100421 Termination date: 20170813 |