Nothing Special   »   [go: up one dir, main page]

CN101902399B - Wireless network communication method, system and device based on spanning tree protocol (STP) - Google Patents

Wireless network communication method, system and device based on spanning tree protocol (STP) Download PDF

Info

Publication number
CN101902399B
CN101902399B CN2010102292650A CN201010229265A CN101902399B CN 101902399 B CN101902399 B CN 101902399B CN 2010102292650 A CN2010102292650 A CN 2010102292650A CN 201010229265 A CN201010229265 A CN 201010229265A CN 101902399 B CN101902399 B CN 101902399B
Authority
CN
China
Prior art keywords
virtual interface
address information
connection
mac address
message
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
Application number
CN2010102292650A
Other languages
Chinese (zh)
Other versions
CN101902399A (en
Inventor
常鹏
卓志强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Star Net Ruijie Networks Co Ltd
Original Assignee
Beijing Star Net Ruijie Networks Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Star Net Ruijie Networks Co Ltd filed Critical Beijing Star Net Ruijie Networks Co Ltd
Priority to CN2010102292650A priority Critical patent/CN101902399B/en
Publication of CN101902399A publication Critical patent/CN101902399A/en
Application granted granted Critical
Publication of CN101902399B publication Critical patent/CN101902399B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses an application method of a spanning tree protocol (STP) in a wireless network, which is used for solving the problem that in the wireless network, the control of the AP to the message forwarding state of a port based on the STP affects the message transmission between the AP and other AP. The method comprises the following steps: receiving a BPDU message sent from a second AP by a first AP; sending the message to a virtual interface corresponding to an MAC address according to the MAC address information of the second AP and the virtual interface corresponding to the MAC address information; and controlling the message forwarding state of the virtual interface based on the STP according to the message received by the virtual interface. The invention also discloses an application device of the STP in the wireless network. In the scheme provided by the invention, because the AP establishes the corresponding virtual interface based on the connection between the AP and other AP, the message forwarding state of each virtual interface can be controlled so that the message transmission between the AP and other AP can not be affected.

Description

Wireless network communication method, system and device based on spanning tree protocol
Technical Field
The present invention relates to the field of wireless network technologies, and in particular, to a wireless network communication method, system, and apparatus based on Spanning Tree Protocol (STP).
Background
Wireless bridges may interconnect at the link layer of a Local Area Network (LAN) and may store and forward messages. The wireless network bridge can be used for connecting equipment located in different independent network segments and has the advantages of large transmission power, long transmission distance, strong anti-interference capability and the like. A wireless Access Point (AP) may implement the functionality of a wireless bridge.
The connection mode between the wireless bridges comprises the following steps: point-to-point connections, point-to-multipoint connections, relay connections, and the like. Fig. 1 is a schematic diagram of a connection structure of a wireless bridge using a point-to-multipoint connection in the prior art. The AP has the function of a wireless bridge, the root bridge is the wireless bridge for realizing decision in wireless connection, and the non-root bridge is connected with the root bridge. Specifically, in fig. 1, the first AP is a root bridge, and the second AP, the third AP, and the fourth AP are three non-root bridges. Due to the interconnection between the root bridge and each non-root bridge, when the non-root bridges are also interconnected, the links consisting of the root bridge and the non-root bridges will constitute a ring link.
In the ring link, when a certain wireless network in the link bridges and receives a message with unknown destination address, the wireless bridge broadcasts the message, and since the link where the wireless bridge is located is a ring link, the message may be broadcast all the time in the link, forming a broadcast storm, and wasting resources of the wireless bridge.
STP may be used to suppress the formation of broadcast storms in the prior art, but STP-based forwarding devices are generally applied in the physical link when suppressing broadcast storms. As shown in fig. 2, ports 3 of port 2 correspond to one another, ports 6 of port 4 correspond to one another, and ports 5 of port 1 correspond to one another, and when the port of the device receives a Bridge Protocol Data Unit (BPDU) message sent by another device through the physical connection, the device determines a message forwarding state of the port according to the message based on STP.
For a wireless network, as shown in fig. 1, since a first AP is a root bridge in a wireless link, the root bridge does not have only one connection, and the root bridge first AP is connected to a second AP, a third AP and a fourth AP, which are not root bridges. When a first AP of a root bridge receives a BPDU (packet data Unit) forwarded by a second AP of a non-root bridge, the first AP determines that the message forwarding state of a physical port of the first AP is closed based on the STP (spanning Tree protocol), and then the first AP closes the physical port of the first AP. However, since the physical port of the first AP of the root bridge is connected to multiple non-root bridge APs at the same time, after the physical port is closed, the messages sent by the other two non-root bridge APs, that is, the third AP and the fourth AP of the non-root bridge, cannot be forwarded through the first AP of the root bridge.
Therefore, in the wireless link, the method for controlling the message forwarding state of the own physical port by the first AP of the root bridge based on the STP may affect the message transmission of other APs only according to the message sent by a certain AP of the non-root bridge because the physical port is connected to at least two non-root bridges.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, a system, and a device for wireless network communication based on a spanning tree protocol, so as to solve the problem that an AP in a wireless network affects packet transmission between the AP and other APs by controlling a packet forwarding state of a physical port based on an STP.
The embodiment of the invention provides a wireless network communication method based on a spanning tree protocol, which comprises the following steps:
a first Access Point (AP) receives a Bridge Protocol Data Unit (BPDU) message sent by a second AP;
sending the message to a virtual interface corresponding to the MAC address according to the MAC address information of the second AP and the corresponding relation between the stored MAC address information and the virtual interface;
and controlling the message forwarding state of the virtual interface based on a spanning tree protocol according to the message received by the virtual interface.
The embodiment of the invention provides a wireless network communication device based on a spanning tree protocol, which comprises:
the physical port is used for receiving a Bridge Protocol Data Unit (BPDU) message;
and the spanning tree protocol module is used for sending the message to a virtual interface corresponding to the MAC address according to the Media Access Control (MAC) address information of a sending end sending the BPDU message and the corresponding relation between the stored MAC address information and the virtual interface, and controlling the message forwarding state of the virtual interface according to the message received by the virtual interface based on the spanning tree protocol.
The embodiment of the invention provides a wireless network communication system based on a spanning tree protocol, which comprises: the wireless network communication device based on the spanning tree protocol and the sending end for sending the bridge protocol data unit BPDU message to the device.
The embodiment of the invention provides a wireless network communication method, a system and a device based on a spanning tree protocol, wherein a first AP receives a BPDU message sent by a second AP, the message is sent to a virtual interface corresponding to an MAC address according to MAC address information of the second AP and the virtual interface corresponding to the MAC address information, and the message forwarding state of the virtual interface is controlled based on the spanning tree protocol according to the message received by the virtual interface. In the embodiment of the invention, the AP establishes the corresponding virtual interface based on the connection with each other AP, so the message forwarding state of the virtual interface can be controlled according to the message received by each virtual interface, and the message transmission between the AP and other APs is not influenced.
Drawings
Fig. 1 is a schematic diagram of a connection structure of a wireless bridge using a point-to-multipoint connection in the prior art;
FIG. 2 is a schematic diagram of a connection structure of a physical link;
fig. 3 is a wireless network communication process based on STP protocol according to an embodiment of the present invention;
fig. 4 is a specific communication process of a wireless network based on STP protocol according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a wireless network communication device based on a spanning tree protocol according to an embodiment of the present invention;
fig. 6 is a detailed description of a process for establishing a connection and a virtual interface according to an embodiment of the present invention;
fig. 7 is a detailed description of a wireless network communication method based on a spanning tree protocol according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a wireless network communication system based on a spanning tree protocol according to an embodiment of the present invention.
Detailed Description
In order to enable an AP in a wireless network to control a message forwarding state of a physical port based on STP and not to influence message transmission between the AP and other APs, the embodiment of the invention provides a wireless network communication method based on STP. Because the AP establishes the corresponding virtual interface based on the connection with each other AP, the message forwarding state of each virtual interface can be controlled, and the message transmission between the AP and other APs is not influenced.
The following detailed description of embodiments of the invention refers to the accompanying drawings.
Fig. 3 is a STP-based wireless network communication process provided by an example of the present invention, which includes the following steps:
s301: and the first AP receives the BPDU message sent by the second AP.
In the embodiment of the present invention, in order to identify the receiving end of the packet, the BPDU packet includes Media Access Control (MAC) address information of the destination AP, and also includes destination multicast address information and source address information.
In the embodiment of the present invention, the message frame formed by the BPDU message may be a message frame conforming to an 802.11 protocol. The frame format of the message frame defined in the 802.11 protocol includes four address information, and when the BPDU message includes three address information, the three addresses in the message frame defined in the 802.11 protocol may be used to identify the MAC address information of the destination AP, the destination multicast address information, and the source address information, respectively.
S302: and sending the message to a virtual interface corresponding to the MAC address according to the MAC address information of the second AP and the corresponding relation between the stored MAC address information and the virtual interface.
Since there may be a connection relationship between the first AP and at least two other APs in the wireless link, there is only one physical port for the first AP itself, and the physical port is connected to each of the other APs at the same time. In the embodiment of the present invention, in order to effectively control a broadcast storm based on STP, a corresponding virtual interface may be respectively established in the first AP for each other AP connected to the first AP, and a message sent by the corresponding other AP is received through the virtual interface.
As shown in fig. 1, a first AP is connected to a second AP, a third AP and a fourth AP, respectively, a corresponding second virtual interface, a corresponding third virtual interface and a corresponding fourth virtual interface are established in the first AP for the second AP, the third AP and the fourth AP, respectively, and a corresponding relationship between MAC address information of the second AP and the second virtual interface, a corresponding relationship between MAC address information of the third AP and the third virtual interface, and a corresponding relationship between MAC address information of the fourth AP and the fourth virtual interface are stored in the first AP.
S303: and the first AP controls the message forwarding state of the virtual interface based on the STP according to the message received by the virtual interface.
Because each virtual interface receives the message sent by the corresponding other AP, the first AP may send the message to the corresponding virtual interface according to the correspondence between the MAC address information of the other AP stored in the first AP and the virtual interface, and determine the message forwarding state of the virtual interface based on the STP. When the first AP determines that the message forwarding state of the virtual interface is the closed state based on the STP, the first AP closes the message forwarding function of the virtual interface, that is, when the first AP determines that the message received by the virtual interface is a repeatedly transmitted message, it determines that a link transmitting the message at this time is a loop, and in order to prevent a broadcast storm, the first AP closes the message forwarding function of the virtual interface.
For the virtual interface, when the first AP determines that the message forwarding state of the virtual interface is the open state based on the STP, the first AP maintains or starts the message forwarding function of the virtual interface.
Since in a wireless network where a ring link exists, in order to avoid the formation of a broadcast storm, the decision-making AP, i.e., the first AP, needs to be determined in the wireless link. In the embodiment of the present invention, an AP may be determined arbitrarily in a wireless link as an AP for making a decision, or for convenience, and the formation of a broadcast storm is effectively avoided. When the number of root bridge APs in the wireless link is large, one root bridge AP can be arbitrarily selected from the wireless link as the AP for decision making.
Because the destination MAC address of the BPDU message in the original STP is a specific broadcast address, in order to control the message forwarding state of the virtual port based on the STP, the BPDU message in the embodiment of the present invention may carry MAC address information of the destination AP, and further includes destination multicast address information and source address information. That is, in the embodiment of the present invention, the message frame formed by the BPDU message may be a message frame conforming to the 802.11 protocol. The frame format of the packet frame defined in the 802.11 protocol includes four address information, three of which may be used to identify MAC address information of the destination AP, destination multicast address information, and source address information, respectively.
In the embodiment of the present invention, in order to identify the corresponding relationship between each other AP connected to the first AP and the virtual interface, the corresponding relationship between the MAC address information and the virtual interface is stored for each virtual interface established in the first AP. Therefore, when the second AP is connected to the physical port of the first AP and the physical port of the first AP receives the message sent by the second AP, the message is sent to the virtual interface corresponding to the MAC address of the second AP for processing according to the MAC address information of the second AP and the correspondence between the stored MAC address information and the virtual interface.
In order to improve the accuracy of message reception and improve the control of the message forwarding state of the first AP for each virtual interface based on the STP, in the embodiment of the present invention, the first AP may further establish a corresponding connection on its own driver layer according to the connection with each other AP, and store the corresponding relationship between the MAC address information and the connection. Specifically, when establishing a connection, the driver layer of the first AP locally establishes a corresponding connection for the connection between the physical port and each of the other APs, and locally stores a corresponding relationship between MAC address information and the connection according to MAC address information of the other APs corresponding to the connection.
When the first AP establishes corresponding connection on a driving layer, reporting an event established by the connection to a protocol layer, locally creating a virtual interface by the protocol layer according to the event, determining index address information of the virtual interface, returning the index address information of the virtual interface to the driving layer by the protocol layer, and locally storing the corresponding relation between the connection and the index address information of the virtual interface by the driving layer.
Fig. 4 is a specific communication process of an STP-based wireless network according to an embodiment of the present invention, where the process includes the following steps:
s401: and the first access point AP receives a Bridge Protocol Data Unit (BPDU) message sent by the second AP.
S402: and the first AP sends the BPDU message to the connection corresponding to the MAC address information of the second AP in the driving layer according to the MAC address information of the second AP and the corresponding relation between the MAC information address stored locally and the connection.
S403: and the first AP driving layer sends the message received by the connection to the virtual interface of the corresponding index address of the protocol layer according to the corresponding relation between the stored connection and the index address information of the virtual interface.
S404: the first AP protocol layer receives the virtual interface of the message, extracts the information in the message according to the STP, calculates according to the STP and determines the message forwarding state of the virtual interface.
And when the message forwarding state of the virtual interface is determined to be closed, the first AP closes the message forwarding function of the virtual interface. And when the message forwarding state of the virtual interface is determined to be started, the first AP does not perform any processing, and the message forwarding function of the virtual interface is kept or started.
In the embodiment of the present invention, after the corresponding virtual interface is established, since the first AP stores the corresponding relationship between the MAC address information of the second AP and the virtual interface, the first AP may determine whether the second AP still exists in the wireless link according to whether the first AP receives the packet sent by the second AP within the set time period. When the message sent by the second AP is not received within the set time length, the second AP is determined not to exist in the wireless link, at the moment, the first AP deletes the stored MAC address information of the second AP and the corresponding relation of the virtual interface, and deletes the virtual interface corresponding to the MAC address information of the second AP.
In the embodiment of the invention, when a corresponding connection is established in a first AP for a second AP, and a corresponding virtual interface corresponding to the connection is established, namely MAC address information and a corresponding relation of the connection of the second AP are stored in the first AP, and the corresponding relation of the connection and the virtual interface is stored in the first AP, the first AP judges whether a message sent by the second AP is received or not within a set time length, when the message sent by the second AP is not received within the set time length, the second AP does not exist in a wireless link, the first AP deletes the corresponding relation of the MAC address of the second AP and the connection thereof from the corresponding relation of the locally stored MAC address information and the connection, deletes the corresponding connection of the second AP and the corresponding connection, and deletes index address information of the deleted connection and the virtual interface according to the stored corresponding relation of the connection and the index address of the virtual interface, and deleting the virtual interface of the index address corresponding to the deleted connection.
Fig. 5 is a schematic structural diagram of a communication device of an STP-based wireless network according to an embodiment of the present invention, where the device includes:
a physical port 51, configured to receive a BPDU message;
and a spanning tree protocol module 52, configured to send the packet to a virtual interface corresponding to the MAC address according to the MAC address information of the sending end that sends the BPDU packet and the correspondence between the stored MAC address information and the virtual interface, and control a packet forwarding state of the virtual interface according to the packet received by the virtual interface based on a spanning tree protocol.
In the embodiment of the present invention, the spanning tree protocol module 52 includes:
a first query sending unit 521, configured to send the message to a connection corresponding to the MAC address information of the sending end according to the MAC address information of the sending end and a correspondence between locally stored MAC address information and the connection;
a second query sending unit 522, configured to send the packet to the virtual interface of the index address corresponding to the connection according to the stored correspondence between the connection and the index address information of the virtual interface.
In the embodiment of the present invention, the spanning tree protocol module 52 further includes:
the first correspondence establishing and storing unit 523 is configured to establish, according to the connection relationship with the sending end, a connection corresponding to the sending end in a local drive layer, and store a correspondence between the MAC address information of the sending end and the connection.
In the embodiment of the present invention, the spanning tree protocol module 52 further includes:
a second corresponding relationship establishing and saving unit 524, configured to report the event established by the connection to the protocol layer according to the driver layer, where the protocol layer locally creates a virtual interface according to the event and determines index address information of the virtual interface, the protocol layer returns the index address information of the virtual interface to the driver layer, and the driver layer locally saves the corresponding relationship between the connection and the index address information of the virtual interface.
The spanning tree protocol module 52 further includes:
a control unit 525, configured to close a message forwarding function of the virtual interface when determining that the message forwarding state of the virtual interface is a closed state based on a spanning tree protocol, or maintain or open the message forwarding function of the virtual interface when determining that the message forwarding state of the virtual interface is an open state based on the spanning tree protocol.
The spanning tree protocol module 52 further includes:
a deleting unit 526, configured to determine whether the message sent by the second AP is received within a set time length, and when it is determined that the message sent by the second AP is not received, delete the MAC address information of the second AP and the corresponding relationship of the virtual interface according to the stored corresponding relationship between the MAC address information and the virtual interface, and delete the virtual interface corresponding to the MAC address information of the second AP.
The deleting unit 526 is further configured to determine whether a message sent by the second AP is received within a set time length, determine that the second AP does not exist in the wireless link when the message sent by the second AP is not received within the set time length, delete the correspondence between the MAC address of the second AP and the connection thereof from the correspondence between the locally stored MAC address information and the connection, delete the corresponding connection, delete the deleted connection and the index address information of the virtual interface according to the correspondence between the stored connection and the index address of the virtual interface, and delete the virtual interface of the index address corresponding to the deleted connection.
Fig. 6 is a detailed description of a process of establishing a connection and a virtual interface according to an embodiment of the present invention with reference to the apparatus shown in fig. 5, where the process includes the following steps:
s601: the spanning tree protocol module of the device establishes corresponding connection in a local drive layer according to the connection relation between the physical port and each other AP, and locally stores the corresponding relation between the MAC address information and the established connection according to the MAC address information of each other AP.
For example, a physical port of the device is connected to the second AP, the third AP, and the fourth AP, respectively, a spanning tree protocol module of the device establishes a first connection for the second AP, a second connection for the third AP, and a third connection for the fourth AP in a local driver layer. And locally storing the corresponding relation between the first connection and the MAC address information of the second AP, the corresponding relation between the second connection and the MAC address information of the third AP, and the corresponding relation between the third connection and the MAC address information of the fourth AP.
S602: and the spanning tree protocol module reports the events established by the connection to the protocol layer according to each connection established by the driving layer.
Namely reporting the events established by the first connection, the second connection and the third connection to a protocol layer.
Since the connection between the physical port of the device and each AP may not be established at the same time, in the embodiment of the present invention, as long as the physical port of the device establishes a connection with an AP, the spanning tree protocol module establishes a connection corresponding to the AP in the local driver layer, and reports an event established by the connection to the protocol layer.
S603: the protocol layer of the spanning tree protocol module locally creates a virtual interface according to the event established by the connection, and determines INDEX (INDEX) address information of the virtual interface.
For example, the spanning tree protocol module creates a first virtual interface at a protocol layer for an event of first connection establishment, and determines index address information of the first virtual interface.
S604: and the protocol layer of the spanning tree protocol module returns the index address information of the virtual interface to the driving layer.
For example, the spanning tree protocol module returns the index address information of the first virtual interface determined by the protocol layer to the driving layer.
S605: and the driving layer of the spanning tree protocol module locally stores the corresponding relation between the index address information of the virtual interface and the connection according to the index address information returned by the protocol layer.
Because the driver layer of the spanning tree protocol module reports the event created by the first connection to the protocol layer, when the protocol layer returns the index address information of the first virtual interface to the driver layer, the driver layer locally stores the index address information of the first virtual interface and the corresponding relation of the first connection.
After the corresponding relation between the MAC address information and the connection and the corresponding relation between the index address information of the virtual interface and the connection are established in a spanning tree protocol module in the device, the message forwarding state of each virtual interface can be controlled based on STP in the communication process according to the established corresponding relation.
Fig. 7 is a detailed description of an STP-based wireless network communication method according to an embodiment of the present invention, which includes the following steps:
s701: and a physical port in the device receives the BPDU message sent by the second AP.
S702: and a spanning tree protocol module in the device searches for the connection corresponding to the MAC address of the second AP according to the MAC address information of the BPDU sending end received by the physical port, namely according to the MAC address information of the second AP and the corresponding relationship of each locally stored connection and the MAC address information of the AP corresponding to the connection.
For example, the MAC address of the second AP corresponds to the first connection, specifically, the first query sending unit in the spanning tree protocol module establishes a corresponding relationship between each connection stored by the storage unit and the MAC address information of the AP corresponding to the connection according to the first corresponding relationship, and searches for the connection corresponding to the MAC address of the second AP.
S703: and the spanning tree protocol module in the device sends the message to the connection corresponding to the MAC address information of the second AP according to the connection corresponding to the searched MAC address information of the second AP.
And a first query sending unit in the spanning tree protocol module sends the message to the connection corresponding to the MAC address information of the second AP.
S704: the spanning tree protocol module in the device searches the index address information of the virtual interface corresponding to the connection according to the corresponding relation between the index address information of the virtual interface stored locally and the connection.
And a second query sending unit in the spanning tree protocol module establishes the corresponding relation between the index address information of the virtual interface stored by the storage unit and the connection according to the second corresponding relation, and searches the index address information of the virtual interface corresponding to the connection.
S705: and the spanning tree protocol module of the device sends the message to the virtual interface corresponding to the index address information according to the searched index address information of the virtual interface.
And the spanning tree protocol module searches and determines that the index address information of the first connection corresponds to the index address information of the first virtual interface according to the stored corresponding relation between the index address information of the virtual interface and the connection. The spanning tree protocol module sends the message to the first virtual interface.
And a second query sending unit in the spanning tree protocol module sends the message to a virtual interface corresponding to the index address information.
S706: after the first virtual interface of the spanning tree protocol module receives the message, the spanning tree protocol module extracts the information of the message, calculates based on the spanning tree protocol logic and determines the message forwarding state of the virtual interface.
When the spanning tree protocol module determines that the message forwarding state of the virtual interface is closed, a driving layer of the spanning tree protocol module informs a protocol layer to close the message forwarding function of the virtual interface, and the protocol layer closes the message forwarding function of the virtual interface.
And the control unit of the spanning tree protocol module calculates based on the spanning tree protocol logic and determines the message forwarding state of the virtual interface.
When the link has a problem, the device can open the message forwarding state of the closed virtual interface based on the spanning tree protocol, so that the virtual interface can perform normal message forwarding. In the embodiment of the invention, when the first AP identifies that a certain AP connected with the first AP does not exist in the wireless link, the virtual interface corresponding to the certain AP is deleted, so that the resources occupied by the virtual interface are reduced. Meanwhile, when a new AP is added to the wireless link and a connection relationship exists with the first AP, the first AP may establish a corresponding virtual interface according to the connection with the newly added AP, and store a corresponding relationship between the MAC address information of the newly added AP and the virtual interface, so as to receive a packet of the newly added AP according to the virtual interface, and control a packet forwarding state of the virtual interface based on an STP protocol.
In the embodiment of the invention, the corresponding virtual port is established aiming at the connection between the physical port of the AP and each other AP, and the message forwarding state of the virtual port is controlled according to the message received by each virtual port, so that the closing of the message forwarding state of a certain virtual port only plays a role in the message transmission of the corresponding AP, and the message transmission of other APs is not influenced.
Fig. 8 is a schematic structural diagram of a communication system of a wireless network based on a spanning tree protocol according to an embodiment of the present invention, where the system includes a communication device 81 of the wireless network based on the spanning tree protocol shown in fig. 5, and a sending end 82 that sends a message to the device.
The embodiment of the invention provides a wireless network communication method, a system and a device based on a spanning tree protocol, wherein a first AP receives a BPDU message sent by a second AP, the message is sent to a virtual interface corresponding to an MAC address according to MAC address information of the second AP and the virtual interface corresponding to the MAC address information, and the message forwarding state of the virtual interface is controlled based on the spanning tree protocol according to the message received by the virtual interface. In the embodiment of the invention, the AP establishes the corresponding virtual interface based on the connection with each other AP, so the message forwarding state of the virtual interface can be controlled according to the message received by each virtual interface, and the message transmission between the AP and other APs is not influenced.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (9)

1. A wireless network communication method based on a spanning tree protocol is characterized by comprising the following steps:
a first Access Point (AP) receives a Bridge Protocol Data Unit (BPDU) message sent by a second AP;
sending the message to a virtual interface corresponding to the MAC address information of the second AP according to the MAC address information of the second AP and the stored corresponding relation between the MAC address information of the second AP and the virtual interface;
controlling the message forwarding state of the virtual interface according to the message received by the virtual interface based on a spanning tree protocol;
sending the packet to a virtual interface corresponding to the MAC address information of the second AP, which specifically includes: the first AP sends the message to the connection corresponding to the MAC address information of the second AP according to the MAC address information of the second AP and the correspondence between the MAC address information of the second AP and the connection stored locally;
sending the message to the virtual interface of the index address corresponding to the connection according to the corresponding relation between the stored connection and the index address information of the virtual interface;
the storing of the corresponding relationship between the connection and the index address information of the virtual interface specifically includes: reporting the event established by the connection to a protocol layer according to the driving layer; the protocol layer locally creates a virtual interface according to the event and determines the index address information of the virtual interface; the protocol layer returns the index address information of the virtual interface to the driving layer; and the driving layer locally stores the corresponding relation between the connection and the index address information of the virtual interface.
2. The method of claim 1, wherein the saving of the MAC address information and connection correspondence for the second AP comprises:
and the first AP establishes connection corresponding to the second AP in a local drive layer according to the connection relation with the second AP, and stores the corresponding relation between the MAC address information of the second AP and the connection.
3. The method of claim 1 or 2, wherein controlling the packet forwarding state of the virtual interface comprises:
when the first AP determines that the message forwarding state of the virtual interface is a closed state based on a spanning tree protocol, the first AP closes the message forwarding function of the virtual interface;
and when the first AP determines that the message forwarding state of the virtual interface is the open state based on the spanning tree protocol, the first AP keeps or starts the message forwarding function of the virtual interface.
4. The method of claim 1, wherein the method further comprises:
the first AP judges whether a message sent by the second AP is received within a set time length;
and when the message sent by the second AP is judged not to be received, the first AP deletes the MAC address information of the second AP and the corresponding relation of the virtual interface according to the stored corresponding relation between the MAC address information of the second AP and the virtual interface, and deletes the virtual interface corresponding to the MAC address information of the second AP.
5. A spanning tree protocol based wireless network communication apparatus, the apparatus comprising:
the physical port is used for receiving a Bridge Protocol Data Unit (BPDU) message;
a spanning tree protocol module, configured to send the packet to a virtual interface corresponding to the MAC address information of the sending end according to the MAC address information of the sending end that sends the BPDU packet and the stored correspondence between the MAC address information of the sending end and the virtual interface, and control a packet forwarding state of the virtual interface according to the packet received by the virtual interface based on a spanning tree protocol; wherein,
the spanning tree protocol module comprises: a first query sending unit, configured to send the message to a connection corresponding to the MAC address information of the sending end according to the MAC address information of the sending end and a correspondence between locally stored MAC address information of the sending end and the connection; a second query sending unit, configured to send the packet to the virtual interface of the index address corresponding to the connection according to the stored correspondence between the connection and the index address information of the virtual interface;
further, the spanning tree protocol module further comprises: and the second corresponding relation establishing and storing unit is used for reporting the event established by the connection to the protocol layer according to the driving layer, the protocol layer locally establishes the virtual interface according to the event and determines the index address information of the virtual interface, the protocol layer returns the index address information of the virtual interface to the driving layer, and the driving layer locally stores the corresponding relation between the connection and the index address information of the virtual interface.
6. The apparatus of claim 5, wherein the spanning tree protocol module further comprises:
and the first corresponding relation establishing and storing unit is used for establishing a connection corresponding to the sending end in a local driving layer according to the connection relation with the sending end, and storing the corresponding relation between the MAC address information of the sending end and the connection.
7. The apparatus of claim 5, wherein the spanning tree protocol module further comprises:
and the control module is used for closing the message forwarding function of the virtual interface when determining that the message forwarding state of the virtual interface is a closed state based on a spanning tree protocol, or keeping or starting the message forwarding function of the virtual interface when determining that the message forwarding state of the virtual interface is an open state based on the spanning tree protocol.
8. The apparatus of claim 5, wherein the spanning tree protocol module further comprises:
and the deleting unit is used for judging whether the message sent by the sending end is received within a set time length, deleting the corresponding relation between the MAC address information of the sending end and the virtual interface according to the stored corresponding relation between the MAC address information of the sending end and the virtual interface when the message sent by the sending end is judged not to be received, and deleting the virtual interface corresponding to the MAC address information of the sending end.
9. A wireless network communication system based on spanning tree protocol, characterized in that the system comprises the apparatus according to any of claims 5 to 8, and a transmitting end for transmitting Bridge Protocol Data Unit (BPDU) messages to the apparatus.
CN2010102292650A 2010-07-09 2010-07-09 Wireless network communication method, system and device based on spanning tree protocol (STP) Expired - Fee Related CN101902399B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102292650A CN101902399B (en) 2010-07-09 2010-07-09 Wireless network communication method, system and device based on spanning tree protocol (STP)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102292650A CN101902399B (en) 2010-07-09 2010-07-09 Wireless network communication method, system and device based on spanning tree protocol (STP)

Publications (2)

Publication Number Publication Date
CN101902399A CN101902399A (en) 2010-12-01
CN101902399B true CN101902399B (en) 2012-08-15

Family

ID=43227614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102292650A Expired - Fee Related CN101902399B (en) 2010-07-09 2010-07-09 Wireless network communication method, system and device based on spanning tree protocol (STP)

Country Status (1)

Country Link
CN (1) CN101902399B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102065508B (en) * 2010-12-14 2014-06-18 迈普通信技术股份有限公司 Wireless bridge forwarding equipment and method
CN102821033B (en) * 2011-06-10 2017-04-12 中兴通讯股份有限公司 Message transmission method and device
EP2770799B1 (en) 2012-12-14 2016-10-26 Huawei Technologies Co., Ltd. Method and wireless access point device for accessing wireless local area network
CN103701775A (en) * 2013-12-04 2014-04-02 中国科学院深圳先进技术研究院 Method and device for resisting traffic analysis and sending/receiving data
CN105827439B (en) * 2016-03-11 2019-02-01 范晓东 The method for realizing wireless device ad hoc network
CN111064778B (en) * 2019-12-09 2022-09-23 苏州盛科通信股份有限公司 Data processing method and system based on STP

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1518277A (en) * 2003-01-17 2004-08-04 华为技术有限公司 Method of realizing suppressing broadcast storm in Ether net
WO2006130278A1 (en) * 2005-05-31 2006-12-07 Cisco Technology, Inc. A spanning-tree protocol for wireless networks

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100456462B1 (en) * 2002-11-20 2004-11-10 한국전자통신연구원 A BIPC Processing Method for the BPDU Transmission in the Router/Bridge System

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1518277A (en) * 2003-01-17 2004-08-04 华为技术有限公司 Method of realizing suppressing broadcast storm in Ether net
WO2006130278A1 (en) * 2005-05-31 2006-12-07 Cisco Technology, Inc. A spanning-tree protocol for wireless networks
CN101151853A (en) * 2005-05-31 2008-03-26 思科技术公司 A spanning-tree protocol for wireless networks

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
吴君.生成树协议的发展历程浅析.《商场现代化》.2007,(第14期), *
王作芬等.以太网交换机中生成树协议的实现.《数据通信》.2000,(第04期), *
肖仁锋.冗余拓扑和生成树协议.《济南职业学院学报》.2005,(第06期), *
郭彦伟等.生成树协议与交换网络环路研究.《厦门大学学报(自然科学版)》.2006, *

Also Published As

Publication number Publication date
CN101902399A (en) 2010-12-01

Similar Documents

Publication Publication Date Title
CN101902399B (en) Wireless network communication method, system and device based on spanning tree protocol (STP)
EP1747690B1 (en) System and method for aggregating multiple radio interfaces into a single logical bridge interface
CN101820435B (en) Synchronization method and device for MAC (Media Access Control) address table information of distributed network processing system
EP1826964B1 (en) Configuration of a mobile adhoc network
EP2533475B1 (en) Method and system for host route reachability in packet transport network access ring
US20070127459A1 (en) Network apparatus and method for forwarding multicast packets for the same
CN100525312C (en) A method and device for MAC frame forwarding
US7778266B2 (en) Switch and network fault recovery method
US6873603B1 (en) MAC address population protocol
CN102255757B (en) Link switching method and device
CN104378296A (en) Message forwarding method and device
CN102404216A (en) TRILL network protection method, routing bridge and system
KR20050114654A (en) Radio ad hoc communication system, terminal, processing method in the terminal, and program causing the terminal to execute the method
US12021657B1 (en) Fast convergence for MAC mobility
CN101252503B (en) Method and apparatus for switching traffic of looped network
CN104735743A (en) Routing optimization method for embedded wireless self-organized network
CN101102283A (en) A method and device for optimizing unknown unicast forward at wireless access point
CN101340377B (en) Method, apparatus and system for data transmission in double layer network
CN103023773A (en) Method, device and system for forwarding message in multi-topology network
CN103916318A (en) Single-loop network implementation method
CN108601055B (en) Method and system for deploying L3 VPN in L TE mobile backhaul network
US20090003295A1 (en) Ad-hoc network device with reduced data loss
CN101325536A (en) Base station of WiMAX system, method and apparatus for controlling transmission of multicast data packet in gateway
CN102118295B (en) Method and device for forwarding multicast message
CN101483608A (en) EAPS loop network topology structure automatic discovery method

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: 20120815

Termination date: 20210709