WO2014089829A1 - 无线局域网访问方法、设备、系统,无线站点和无线接入点 - Google Patents

无线局域网访问方法、设备、系统,无线站点和无线接入点 Download PDF

Info

Publication number
WO2014089829A1
WO2014089829A1 PCT/CN2012/086674 CN2012086674W WO2014089829A1 WO 2014089829 A1 WO2014089829 A1 WO 2014089829A1 CN 2012086674 W CN2012086674 W CN 2012086674W WO 2014089829 A1 WO2014089829 A1 WO 2014089829A1
Authority
WO
WIPO (PCT)
Prior art keywords
mac address
data frame
wireless
ethernet
wireless lan
Prior art date
Application number
PCT/CN2012/086674
Other languages
English (en)
French (fr)
Inventor
王云贵
庄艳
唐纳德•东湖
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201280003030.7A priority Critical patent/CN103999538B/zh
Priority to EP12888212.3A priority patent/EP2770799B1/en
Priority to PCT/CN2012/086674 priority patent/WO2014089829A1/zh
Priority to US14/306,031 priority patent/US9325523B2/en
Publication of WO2014089829A1 publication Critical patent/WO2014089829A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4604LAN interconnection over a backbone network, e.g. Internet, Frame Relay
    • H04L12/462LAN interconnection over a bridge based backbone
    • H04L12/4625Single bridge functionality, e.g. connection of two networks over a single bridge
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/283Processing of data at an internetworking point of a home automation network
    • H04L12/2834Switching of information between an external network and a home network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a wireless local area network access method, device, system, wireless station, and wireless access point.
  • a wireless station (English: service set) in a wireless local area network (English: service set) architecture, a wireless station associated with a wireless access point (English: access point, abbreviation: AP) English: station, abbreviation: STA) Sends data to the wireless AP to communicate with other wireless STAs.
  • the wireless STA does not forward data sent by other devices over a wired connection.
  • the WLAN can be connected to the wired network where the user is located.
  • data is forwarded from the wired network where the user is located to the wireless network, and can be forwarded to the wired network of another user or forwarded to the WAN.
  • the wireless STA In order to implement the function of the WLAN connected to the wired network where the user is located, the wireless STA must also be able to forward data sent by other devices over the wired connection. That is, in this architecture, the wireless STA also provides a bridging function. Summary of the invention
  • the present invention provides a wireless local area network access method, device, system, wireless station and wireless access point to provide a bridging function for a wireless station.
  • the present invention provides a method for accessing a wireless local area network, including:
  • the first wireless station bridge generates a first wireless local area network data frame according to the first Ethernet data frame;
  • the frame header of the first wireless local area network data frame includes a sender MAC address and a receiver MAC address; a sender MAC address in a frame header of a wireless local area network data frame, a virtual interface MAC address corresponding to a source MAC address of the first Ethernet data frame, where the virtual interface MAC address is the first wireless station bridge One of a plurality of virtual interface MAC addresses;
  • the first wireless station bridge transmits the first wireless local area network data frame.
  • the method further includes: the first wireless station bridge generating a source MAC address of the first Ethernet data frame and the source Correspondence between MAC addresses of virtual interfaces corresponding to MAC addresses;
  • the first wireless station bridge sends a correspondence between a source MAC address of the first Ethernet data frame and a virtual interface MAC address of the first wireless station bridge corresponding to the source MAC address to a wireless access point. .
  • the method further includes: the first wireless station bridge receiving a virtual interface MAC address of the second wireless station bridge sent by the access point a correspondence between an address and a MAC address of an Ethernet device connected to the second wireless site bridge;
  • a frame header of the second wireless local area network data frame includes a source MAC address, a sender MAC address, and a receiver MAC address
  • the receiving MAC address in the frame header of the second WLAN data frame is a virtual interface MAC address of the first wireless station bridge
  • the source MAC address in the frame header of the second WLAN data frame is a virtual interface MAC address of the second wireless station bridge
  • the first wireless station bridge generates a second Ethernet data frame according to the second wireless local area network data frame; the destination MAC address of the second Ethernet data frame is based on the source MAC address of the first Ethernet data frame Corresponding relationship between the address and the virtual interface MAC address corresponding to the source MAC address, and the Ethernet connected to the first wireless station bridge corresponding to the receiver MAC address in the frame header of the second WLAN data frame MAC address of the network device;
  • the source MAC address of the second Ethernet data frame is based on a correspondence between a virtual interface MAC address of the second wireless station bridge and a MAC address of an Ethernet device connected to the second wireless station bridge, and
  • the source MAC address in the frame header of the second WLAN data frame corresponds to the MAC address of the Ethernet device connected to the second wireless station bridge.
  • the first implementation manner and the second implementation manner of the first aspect, the third implementation manner of the first aspect further characterized by:
  • the first wireless station bridge receives a third wireless local area network data frame sent by the wireless access point, and the frame header of the third wireless local area network data frame includes a source MAC address, a sender MAC address, and a receiver MAC address;
  • the receiver MAC address in the frame header of the third WLAN data frame is a broadcast MAC address or a multicast MAC address
  • the source MAC address in the frame header of the third WLAN data frame is the first
  • the first wireless site bridge discards the third wireless local area network data frame.
  • the destination MAC address of the first Ethernet data frame is a broadcast MAC address or a multicast MAC address
  • the first WLAN data frame carries the aggregated MAC service data unit A-MSDU
  • the A-MSDU includes an A-MSDU subframe
  • the A-MSDU subframe is generated according to the first Ethernet data frame, and the source address of the A-MSDU subframe is a virtual interface MAC corresponding to the source MAC address of the first Ethernet data frame.
  • the destination address of the A-MSDU subframe is the destination MAC address of the first Ethernet data frame.
  • any one of the first implementation manner and the fourth implementation manner of the first aspect in a fifth implementation manner of the first aspect, further includes:
  • the first wireless station bridge receives a third wireless local area network data frame sent by the wireless access point, and the third wireless local area network data frame carries an aggregated MAC service data unit A-MSDU, where the third wireless local area network data frame is in the frame header
  • the receiving MAC address is a broadcast MAC address or a multicast MAC address
  • the first radio station bridge discards the A-MSDU subframe.
  • the present invention provides a method for accessing a wireless local area network, including:
  • the wireless access point receives a first wireless local area network data frame from a second wireless station bridge;
  • the frame header of the first WLAN data frame includes a sender MAC address and a receiver MAC address; and the target device in the first WLAN data frame passes the first wireless with the wireless access point
  • the wireless access point In the case of a device connected to the site bridge, the wireless access point generates a second wireless local area network data frame according to the first wireless local area network data frame, where the frame header of the second wireless local area network data frame includes a sender MAC address and Receiver MAC address;
  • the receiver MAC address in the frame header of the second WLAN data frame is between the virtual interface MAC address of the first wireless station bridge and the MAC address of the Ethernet device connected to the first wireless station bridge.
  • the first WLAN data frame carries a MAC service data unit (MSDU);
  • the frame header of the first WLAN data frame includes a source MAC address, a sender MAC address, and a receiver MAC address;
  • the MAC address of the target device of the first WLAN data frame is the destination MAC address in the frame header of the first WLAN data frame
  • the frame header of the second WLAN data frame includes a source MAC address, a sender MAC address, and a receiver MAC address;
  • the source MAC address in the frame header of the second WLAN data frame is the sender MAC address in the frame header of the first WLAN data frame.
  • the first WLAN data frame carries an aggregated MAC service data unit A-MSDU;
  • the frame header of the first WLAN data frame includes a basic service set identifier BSSID, a sender MAC address, and a receiver MAC address;
  • the MAC address of the target device of the first WLAN data frame is the destination MAC address of the A-MSDU subframe of the A-MSDU carried by the first WLAN data frame;
  • the frame header of the second WLAN data frame includes a source MAC address, a sender MAC address, and a receiver MAC address;
  • the source MAC address in the frame header of the second WLAN data frame is a sender MAC address in a frame header of the first WLAN data frame
  • the receiver MAC address in the frame header of the second WLAN data frame is between the virtual interface MAC address of the first wireless station bridge and the MAC address of the Ethernet device connected to the first wireless station bridge.
  • the first WLAN data frame carries an aggregated MAC service data unit A-MSDU;
  • the frame header of the first WLAN data frame includes a basic service set identifier BSSID, a sender MAC address, and a receiver MAC address;
  • the MAC address of the target device of the first WLAN data frame is the destination MAC address of the A-MSDU subframe of the A-MSDU carried by the first WLAN data frame;
  • the frame header of the second WLAN data frame includes the BSSID, a sender MAC address, and a receiver MAC address;
  • the second WLAN data frame carries the A_MSDU.
  • the method further includes:
  • the wireless access point receives a third wireless local area network data frame from a second wireless station bridge;
  • the third WLAN data frame carries a MAC service data unit MSDU;
  • the frame header of the third WLAN data frame includes a destination MAC address, a sender MAC address, and a receiver MAC address;
  • the wireless access point is according to the third wireless The local area network data frame is generated by the first Ethernet data frame;
  • the source MAC address of the first Ethernet data frame is based on a correspondence between a virtual interface MAC address of the second wireless station bridge and a MAC address of an Ethernet device connected to the second wireless station bridge, and a MAC address corresponding to a sender MAC address in a frame header of the third wireless local area network data frame;
  • the destination MAC address of the first Ethernet data frame is a destination MAC address in a frame header of the third WLAN data frame;
  • the wireless access point transmits the first Ethernet data frame.
  • the first implementation manner and the fourth implementation manner of the second aspect, the fifth implementation manner of the second aspect further includes:
  • the wireless access point is configured according to the The second Ethernet data frame generates a fourth wireless local area network data frame, where the frame header of the fourth wireless local area network data frame includes a source MAC address, a sender MAC address, and a receiver MAC address;
  • the source MAC address in the frame header of the fourth WLAN data frame is the source MAC address of the second WAN data frame
  • the receiver MAC address in the frame header of the fourth WLAN data frame is between the virtual interface MAC address of the first wireless station bridge and the MAC address of the Ethernet device connected to the first wireless station bridge.
  • the wireless access point transmits the fourth wireless local area network data frame.
  • the first WLAN data frame carries a MAC service data unit MSDU;
  • the frame header of the first WLAN data frame includes a source MAC address, a sender MAC address, and a receiver MAC address;
  • the MAC address of the target device of the first WLAN data frame is the destination MAC address in the frame header of the first WLAN data frame
  • the frame header of the second WLAN data frame includes a source MAC address, a sender MAC address, and a receiver MAC address;
  • the source MAC address in the frame header of the second WLAN data frame is a sender MAC address in a frame header of the first WLAN data frame
  • the wireless access point receives a virtual interface of the second wireless site bridge from the second wireless site bridge
  • the first wireless station bridge receives a correspondence between a virtual interface MAC address of the second wireless station bridge and a MAC address of an Ethernet device connected to the second wireless station bridge;
  • the method further includes:
  • the first wireless station bridge generates a third Ethernet data frame according to the second wireless local area network data frame; the destination MAC address of the third Ethernet data frame is based on the virtual interface MAC of the first wireless station bridge a correspondence between an address and a MAC address of an Ethernet device connected to the first wireless station bridge, and a MAC address of an Ethernet device corresponding to a receiver MAC address in a frame header of the second wireless local area network data frame;
  • the source MAC address of the third Ethernet data frame is based on a correspondence between a virtual interface MAC address of the second wireless station bridge and a MAC address of an Ethernet device connected to the second wireless station bridge, and The source MAC address in the frame header of the second WLAN data frame corresponds to the MAC address of the Ethernet device connected to the second wireless station bridge.
  • the present invention provides a wireless local area network access device, which is implemented by a first wireless station bridge, where the wireless local area network access device includes a receiving module, a generating module, and a sending module, where
  • the receiving module is configured to receive a first Ethernet data frame sent by the first Ethernet device, where a source medium access control MAC address of the first Ethernet data frame is a first connection with the first wireless station bridge MAC address of the Ethernet device;
  • the generating module is configured to generate a first wireless local area network data frame according to the first Ethernet data frame; the frame header of the first wireless local area network data frame includes a sender MAC address and a receiver MAC address;
  • the sender MAC address in the frame header of the WLAN data frame is a virtual interface MAC address corresponding to the source MAC address of the first Ethernet data frame, and the virtual interface MAC address is generated by the generation module.
  • the sending module is configured to send the first wireless local area network data frame.
  • the generating module is further configured to generate a correspondence between a source MAC address of the first Ethernet data frame and a virtual interface MAC address corresponding to the source MAC address.
  • the sending module is further configured to send, to the wireless access point, a correspondence between a source MAC address of the first Ethernet data frame and a virtual interface MAC address generated by the generating module corresponding to the source MAC address.
  • the receiving module is further configured to receive a virtual interface MAC address of the second wireless site bridge sent by the wireless access point. Corresponding relationship between the MAC address of the Ethernet device connected to the second wireless station bridge;
  • the receiving module is further configured to receive a second WLAN data frame sent by the wireless access point, where a frame header of the second WLAN data frame includes a source MAC address, a sender MAC address, and a receiver MAC address. ;
  • the receiving MAC address in the frame header of the second WLAN data frame is a virtual interface MAC address generated by the generating module
  • the source MAC address in the frame header of the second WLAN data frame is a virtual interface MAC address of the second wireless station bridge
  • the generating module is further configured to generate a second Ethernet data frame according to the second wireless local area network data frame;
  • the destination MAC address of the second Ethernet data frame is, according to the source of the first Ethernet data frame Corresponding relationship between the MAC address and the virtual interface MAC address corresponding to the source MAC address, and the first wireless station bridge corresponding to the receiver MAC address in the frame header of the second WLAN data frame MAC address of the Ethernet device;
  • the source MAC address of the second Ethernet data frame is based on a correspondence between a virtual interface MAC address of the second wireless station bridge and a MAC address of an Ethernet device connected to the second wireless station bridge, and
  • the source MAC address in the frame header of the second WLAN data frame corresponds to the MAC address of the Ethernet device connected to the second wireless station bridge.
  • the receiving module is further configured to receive a wireless access point Sending a third wireless local area network data frame, where the frame header of the third wireless local area network data frame includes a source MAC address, a sender MAC address, and a receiver MAC address;
  • the receiving MAC address in the frame header of the third WLAN data frame is a broadcast MAC address or a multicast MAC address
  • the source MAC address in the frame header of the third WLAN data frame is the generating module
  • the first wireless site bridge discards the third wireless local area network data frame.
  • the destination MAC address of the first Ethernet data frame is a broadcast MAC address or a multicast MAC address, And in the case that the first WLAN data frame carries the aggregated MAC service data unit A-MSDU,
  • the A-MSDU includes an A-MSDU subframe
  • the A-MSDU subframe is generated by the generating module according to the first Ethernet data frame, and the source address of the A-MSDU subframe is corresponding to the source MAC address of the first Ethernet data frame.
  • the virtual interface MAC address, the destination address of the A-MSDU subframe is the destination MAC address of the first Ethernet data frame.
  • the receiving module is further configured to receive a wireless access point
  • the third WLAN data frame is sent, the third WLAN data frame carries the aggregated MAC service data unit A-MSDU, and the receiver MAC address in the frame header of the third WLAN data frame is a broadcast MAC address or a multicast MAC address.
  • the generating module is further configured to acquire an A-MSDU subframe in the A-MSDU carried by the third WLAN data frame;
  • the generating module discards the A-MSDU subframe.
  • the present invention provides a wireless local area network access device, which is implemented by a wireless access point, where the wireless local area network access device includes a receiving module, a generating module, and a sending module;
  • the receiving module is configured to receive, by the first wireless station bridge, a correspondence between a virtual interface MAC address of the first wireless station bridge and a MAC address of an Ethernet device connected to the first wireless station bridge;
  • the receiving module is further configured to receive, by the wireless access point, a first wireless local area network data frame from a second wireless station bridge;
  • the frame header of the first WLAN data frame includes a sender MAC address and a receiver MAC address;
  • the generating module is configured to: target the device in the first WLAN data frame with the wireless access point And generating, by the first wireless station bridge, a second wireless local area network data frame according to the first wireless local area network data frame, where a frame header of the second wireless local area network data frame includes a sender MAC address And the recipient MAC address;
  • the receiver MAC address in the frame header of the second WLAN data frame is between the virtual interface MAC address of the first wireless station bridge and the MAC address of the Ethernet device connected to the first wireless station bridge.
  • the first WLAN data frame carries a MAC service data unit MSDU;
  • the frame header of the first WLAN data frame includes a source MAC address, a sender MAC address, and a receiver MAC address;
  • the MAC address of the target device of the first WLAN data frame is the destination MAC address in the frame header of the first WLAN data frame
  • the frame header of the second WLAN data frame includes a source MAC address, a sender MAC address, and a receiver MAC address;
  • the source MAC address in the frame header of the second WLAN data frame is the sender MAC address in the frame header of the first WLAN data frame.
  • the first WLAN data frame carries an aggregated MAC service data unit A-MSDU;
  • the frame header of the first WLAN data frame includes a basic service set identifier BSSID, a sender MAC address, and a receiver MAC address;
  • the MAC address of the target device of the first WLAN data frame is the destination MAC address of the A-MSDU subframe of the A-MSDU carried by the first WLAN data frame;
  • the frame header of the second WLAN data frame includes a source MAC address, a sender MAC address, and a receiver MAC address;
  • the source MAC address in the frame header of the second WLAN data frame is a sender MAC address in a frame header of the first WLAN data frame;
  • the receiver MAC address in the frame header of the second WLAN data frame is between the virtual interface MAC address of the first wireless station bridge and the MAC address of the Ethernet device connected to the first wireless station bridge.
  • the first WLAN data frame carries an aggregated MAC service data unit A-MSDU;
  • the frame header of the first WLAN data frame includes a basic service set identifier BSSID, a sender MAC address, and a receiver MAC address;
  • the MAC address of the target device of the first WLAN data frame is the destination MAC address of the A-MSDU subframe of the A-MSDU carried by the first WLAN data frame;
  • the frame header of the second WLAN data frame includes the BSSID, a sender MAC address, and a receiver MAC address;
  • the second WLAN data frame carries the A_MSDU.
  • the receiving module is further configured to receive a third wireless local area network data frame from the second wireless station bridge;
  • the third WLAN data frame carries a MAC service data unit MSDU;
  • the frame header of the third WLAN data frame includes a destination MAC address, a sender MAC address, and a receiver MAC address;
  • the generating module is further configured to: when the destination MAC address in the frame header of the third wireless local area network data frame is a MAC address of a device connected to the wireless access point through an Ethernet, according to the foregoing
  • the third wireless local area network data frame is generated by the first Ethernet data frame;
  • the source MAC address of the first Ethernet data frame is based on a correspondence between a virtual interface MAC address of the second wireless station bridge and a MAC address of an Ethernet device connected to the second wireless station bridge, and a MAC address corresponding to a sender MAC address in a frame header of the third wireless local area network data frame;
  • the destination MAC address of the first Ethernet data frame is a destination MAC address in a frame header of the third WLAN data frame;
  • the sending module is further configured to send the first Ethernet data frame.
  • the receiving module is further configured to receive the second a second Ethernet data frame of the network device;
  • the generating module is further configured to: when the destination MAC address of the second Ethernet data frame is a MAC address of a device connected to the wireless access point through the first wireless station bridge, The second Ethernet data frame generates a fourth wireless local area network data frame, where the frame header of the fourth wireless local area network data frame includes a source MAC address, a sender MAC address, and a receiver MAC address;
  • the source MAC address in the frame header of the fourth WLAN data frame is the source MAC address of the second WAN data frame
  • the receiver MAC address in the frame header of the fourth WLAN data frame is between the virtual interface MAC address of the first wireless station bridge and the MAC address of the Ethernet device connected to the first wireless station bridge.
  • the sending module is further configured to send the fourth wireless local area network data frame.
  • the present invention provides a wireless station, including a wireless network adapter, a wireless local area network adapter, a processor, and a memory;
  • the Ethernet adapter is connected to the processor, the wireless LAN adapter is connected to the processor, and the memory is connected to the processor;
  • the processor receives, by the Ethernet adapter, a first Ethernet data frame sent by the first Ethernet device, where a source medium access control MAC address of the first Ethernet data frame is a MAC address of the first Ethernet device connected to the wireless station Addressing: the processor generates a first wireless local area network data frame according to the first Ethernet data frame;
  • the frame header of the first WLAN data frame includes a sender MAC address and a receiver MAC address; the sender MAC address in the frame header of the first WLAN data frame is, and the first Ethernet data a virtual interface MAC address corresponding to the source MAC address of the frame, where the virtual interface MAC address is one of multiple virtual interface MAC addresses of the wireless station;
  • the wireless local area network adapter transmits the first wireless local area network data frame.
  • the processor after receiving the first Ethernet data frame, the processor generates a source MAC address of the first Ethernet data frame and a virtual interface corresponding to the source MAC address. Correspondence between MAC addresses;
  • the wireless local area network adapter sends a correspondence between a source MAC address of the first Ethernet data frame and a virtual interface MAC address of the wireless station corresponding to the source MAC address to a wireless access point.
  • the method further includes: the wireless local area network adapter receiving a virtual interface MAC address of the second wireless station bridge sent by the wireless access point Corresponding relationship between the MAC address of the Ethernet device connected to the second wireless station bridge;
  • a frame header of the second wireless local area network data frame includes a source MAC address, a sender MAC address, and a receiver MAC address
  • the receiver MAC address in the frame header of the second WLAN data frame is a virtual interface MAC address of the wireless station
  • the source MAC address in the frame header of the second WLAN data frame is a virtual interface MAC address of the second wireless station bridge
  • the processor generates a second Ethernet data frame according to the second wireless local area network data frame
  • the destination MAC address of the second Ethernet data frame is based on a correspondence between a source MAC address of the first Ethernet data frame and a virtual interface MAC address corresponding to the source MAC address, and the second The MAC address of the Ethernet device connected to the wireless station corresponding to the receiver MAC address in the frame header of the WLAN data frame; the source MAC address of the second Ethernet data frame is according to the second wireless station Corresponding relationship between a virtual interface MAC address of the bridge and a MAC address of the Ethernet device connected to the second wireless station bridge, corresponding to the source MAC address in the frame header of the second WLAN data frame The MAC address of the Ethernet device to which the second wireless site bridge is connected.
  • the first implementation manner and the second implementation manner of the fifth aspect, the third implementation manner of the fifth aspect further includes:
  • the wireless local area network adapter Receiving, by the wireless local area network adapter, a third wireless local area network data frame sent by the wireless access point, where the frame header of the third wireless local area network data frame includes a source MAC address, a sender MAC address, and a receiver MAC address;
  • the processor, the recipient MAC address in the frame header of the third WLAN data frame is a broadcast MAC address or a multicast MAC address, and the source MAC address in the frame header of the third WLAN data frame In the case of the virtual interface MAC address of the wireless station, the third wireless local area network data frame is discarded.
  • the destination MAC address of the first Ethernet data frame is a broadcast MAC address or a multicast MAC address, And in the case that the first WLAN data frame carries the aggregated MAC service data unit A-MSDU,
  • the A-MSDU includes an A-MSDU subframe;
  • the A-MSDU subframe is generated by the processor according to the first Ethernet data frame, and the source address of the A-MSDU subframe is corresponding to a source MAC address of the first Ethernet data frame.
  • the virtual interface MAC address, the destination address of the A-MSDU subframe is the destination MAC address of the first Ethernet data frame.
  • any one of the first implementation manner and the fourth implementation manner of the fifth aspect in a fifth implementation manner of the fifth aspect, is a fifth implementation manner of the fifth aspect.
  • the wireless local area network adapter receives a third wireless local area network data frame sent by the wireless access point, and the third wireless local area network data frame carries an aggregated MAC service data unit A-MSDU, and the receiver in the frame header of the third wireless local area network data frame
  • the MAC address is a broadcast MAC address or a multicast MAC address.
  • the present invention provides a wireless access point, including a baseband processor, a processor, and a memory, wherein the baseband processor is connected to the processor, and the memory is connected to the processor;
  • the processor receives, by the baseband processor, a virtual interface MAC address of the first wireless station bridge from a first wireless station bridge and a MAC address of an Ethernet device connected to the first wireless station bridge Correspondence relationship
  • the processor receives, by the baseband processor, a first wireless local area network data frame from a second wireless station bridge;
  • the frame header of the first WLAN data frame includes a sender MAC address and a receiver MAC address; and the target device in the first WLAN data frame passes the first wireless with the wireless access point
  • the processor In the case of a site bridge connected device, the processor generates a second wireless local area network data frame according to the first wireless local area network data frame, where the frame header of the second wireless local area network data frame includes a sender MAC address and a receiver MAC address;
  • the receiver MAC address in the frame header of the second WLAN data frame is between the virtual interface MAC address of the first wireless station bridge and the MAC address of the Ethernet device connected to the first wireless station bridge.
  • the first WLAN data frame carries a MAC service data unit MSDU;
  • the frame header of the first WLAN data frame includes a source MAC address, a sender MAC address, and a receiver MAC address;
  • the MAC address of the target device of the first WLAN data frame is the destination MAC address in the frame header of the first WLAN data frame
  • the frame header of the second WLAN data frame includes a source MAC address, a sender MAC address, and a receiver MAC address;
  • the source MAC address in the frame header of the second WLAN data frame is the sender MAC address in the frame header of the first WLAN data frame.
  • the first WLAN data frame carries an aggregated MAC service data unit A-MSDU;
  • the frame header of the first WLAN data frame includes a basic service set identifier BSSID, a sender MAC address, and a receiver MAC address;
  • the MAC address of the target device of the first WLAN data frame is the destination MAC address of the A-MSDU subframe of the A-MSDU carried by the first WLAN data frame;
  • the frame header of the second WLAN data frame includes a source MAC address, a sender MAC address, and a receiver MAC address;
  • the source MAC address in the frame header of the second WLAN data frame is a sender MAC address in a frame header of the first WLAN data frame
  • the receiver MAC address in the frame header of the second WLAN data frame is between the virtual interface MAC address of the first wireless station bridge and the MAC address of the Ethernet device connected to the first wireless station bridge.
  • the first WLAN data frame carries an aggregated MAC service data unit A-MSDU;
  • the frame header of the first WLAN data frame includes a basic service set identifier BSSID, a sender MAC address, and a receiver MAC address;
  • the MAC address of the target device of the first WLAN data frame is the destination MAC address of the A-MSDU subframe of the A-MSDU carried by the first WLAN data frame;
  • the frame header of the second WLAN data frame includes the BSSID, a sender MAC address, and a receiver MAC address;
  • the second WLAN data frame carries the A_MSDU.
  • the processor receives, by the baseband processor, a third wireless local area network data frame from a second wireless station bridge;
  • the third WLAN data frame carries a MAC service data unit MSDU;
  • the frame header of the third WLAN data frame includes a destination MAC address, a sender MAC address, and a receiver MAC address;
  • the processor is configured according to the third WLAN data
  • the frame is generated by the first Ethernet data frame
  • the source MAC address of the first Ethernet data frame is based on a correspondence between a virtual interface MAC address of the second wireless station bridge and a MAC address of an Ethernet device connected to the second wireless station bridge, and a MAC address corresponding to a sender MAC address in a frame header of the third wireless local area network data frame;
  • the destination MAC address of the first Ethernet data frame is a destination MAC address in a frame header of the third WLAN data frame;
  • the processor transmits the first Ethernet data frame through the baseband processor.
  • the first implementation manner and the fourth implementation manner of the sixth aspect, the fifth implementation manner of the sixth aspect further includes:
  • the processor receives, by the baseband processor, a second Ethernet data frame from the second Ethernet device; the destination MAC address of the second Ethernet data frame is between the wireless access point and the wireless access point
  • the processor generates a fourth wireless local area network data frame according to the second Ethernet data frame, where the frame header of the fourth wireless local area network data frame includes a source MAC address, sender MAC address and receiver MAC address;
  • the source MAC address in the frame header of the fourth WLAN data frame is the source MAC address of the second WAN data frame
  • the receiver MAC address in the frame header of the fourth WLAN data frame is between the virtual interface MAC address of the first wireless station bridge and the MAC address of the Ethernet device connected to the first wireless station bridge.
  • the present invention provides a wireless local area network system, including a first wireless station bridge, a second wireless station bridge, and a wireless access point;
  • the first wireless station bridge Receiving, by the first wireless station bridge, a first Ethernet data frame sent by the first Ethernet device, where a source medium access control MAC address of the first Ethernet data frame is a first connection with the first wireless station bridge a MAC address of the Ethernet device; the first wireless station bridge generates a first wireless local area network data frame according to the first Ethernet data frame; the frame header of the first wireless local area network data frame includes a sender MAC address and receiving a MAC address of the sender in the frame header of the first WLAN data frame, a virtual interface MAC address corresponding to the source MAC address of the first Ethernet data frame, and the virtual interface MAC address is One of a plurality of virtual interface MAC addresses of the first wireless station bridge; the first wireless station bridge transmitting the first wireless local area network data frame; the first wireless station bridge generating the first Ethernet data link Corresponding relationship between a source MAC address of the frame and a virtual interface MAC address corresponding to the source MAC address; the first wireless station bridge transmitting the first to the wireless access point
  • the wireless access point receives a correspondence between a source MAC address of the first Ethernet data frame and a virtual interface MAC address of the first wireless station bridge corresponding to the source MAC address; Pointing a correspondence between a source MAC address of the first Ethernet data frame and a virtual interface MAC address of the first wireless station bridge corresponding to the source MAC address; the wireless access point receiving from the Corresponding relationship between the virtual interface MAC address of the second wireless station bridge and the MAC address of the Ethernet device connected to the second wireless station bridge; the wireless access point receiving from the second wireless station bridge a first wireless local area network data frame of a wireless station bridge; wherein, in a case where the target device of the first wireless local area network data frame is a device connected to the wireless access point through the second wireless station bridge, Generating, by the wireless access point, a second wireless local area network data frame according to the first wireless local area network data frame, where a frame header of the second wireless local area network data frame includes a sender MAC address and a connection a receiving MAC address;
  • the second wireless station bridge receives a correspondence between a source MAC address of the first Ethernet data frame and a virtual interface MAC address of the first wireless station bridge corresponding to the source MAC address;
  • the wireless station bridge receives the second wireless local area network data frame sent by the wireless access point;
  • the second wireless station bridge generates a second Ethernet data frame according to the second wireless local area network data frame.
  • the wireless local area network system further includes a second Ethernet device, where the second Ethernet device is connected to the wireless access point;
  • the wireless access point in a case that the destination MAC address of the second Ethernet data frame is a MAC address of a device connected to the first wireless station bridge, the wireless access point generates a fourth according to the second Ethernet data frame.
  • a wireless local area network data frame where the frame header of the fourth wireless local area network data frame includes a source MAC address, a sender MAC address, and a receiver MAC address;
  • the source MAC address in the frame header of the fourth WLAN data frame is the source MAC address of the second WAN data frame
  • the receiver MAC address in the frame header of the fourth WLAN data frame is between the virtual interface MAC address of the first wireless station bridge and the MAC address of the Ethernet device connected to the first wireless station bridge.
  • the wireless access point transmits the fourth wireless local area network data frame.
  • the present invention provides a method for accessing a wireless local area network, including:
  • the first wireless station bridge generates a first wireless local area network data frame according to the first Ethernet data frame; the frame header of the first wireless local area network data frame includes a sender MAC address, a receiver MAC address, and a basic service set. Identify the BSSID;
  • the sender MAC address in the frame header of the first WLAN data frame is the source MAC address of the first Ethernet data frame, and the receiver MAC address in the frame header of the first WLAN data frame is wireless.
  • the first WLAN data frame carries an aggregated MAC service data unit A-MSDU
  • the A-MSDU includes an A-MSDU subframe
  • the A-MSDU subframe is generated according to the first Ethernet data frame
  • the source address of the A-MSDU subframe is a virtual interface MAC address corresponding to the source MAC address of the first Ethernet data frame
  • the virtual interface MAC address is multiple virtual spaces of the first wireless station bridge.
  • the first wireless station bridge transmits the first wireless local area network data frame.
  • the destination MAC address of the first Ethernet data frame is a broadcast MAC address or a multicast MAC address.
  • the method after receiving the first Ethernet data frame, the method further includes:
  • the first wireless station bridge generates a correspondence between a source MAC address of the first Ethernet data frame and a virtual interface MAC address corresponding to the source MAC address;
  • the first implementation manner and the second implementation manner of the eighth aspect, the third implementation manner of the eighth aspect further includes:
  • the first wireless station bridge receives a third wireless local area network data frame sent by the wireless access point, and the third wireless local area network data frame carries an A-MSDU;
  • a second Ethernet data frame is generated, by the first radio station bridge, a second Ethernet data frame according to the A-MSDU subframe, where a destination MAC address of the second Ethernet data frame is a destination address of the A-MSDU subframe, and second Ethernet data
  • the source MAC address of the frame is a MAC address corresponding to the source MAC address of the A-MSDU subframe according to the corresponding relationship broadcasted by the wireless access point; and the second Ethernet data frame is sent.
  • the first implementation manner and the second implementation manner of the eighth aspect, the fourth implementation manner of the eighth aspect further includes:
  • the first wireless station bridge receives a third wireless local area network data frame sent by the wireless access point, the third wireless local area network data frame carries an A-MSDU, and the receiving side MAC in the frame header of the third wireless local area network data frame
  • the address is a broadcast MAC address or a multicast MAC address
  • the first radio station bridge discards the A-MSDU subframe.
  • the present invention provides a wireless local area network access device, which is implemented by a first wireless station bridge, where the wireless local area network access device includes a receiving module, a generating module, and a sending module, where The receiving module is configured to receive a first Ethernet data frame sent by the first Ethernet device, where a source medium access control MAC address of the first Ethernet data frame is a first connection with the first wireless station bridge MAC address of the Ethernet device;
  • the generating module is configured to generate a first wireless local area network data frame according to the first Ethernet data frame; the frame header of the first wireless local area network data frame includes a sender MAC address, a receiver MAC address, and a basic service set Identify the BSSID;
  • the sender MAC address in the frame header of the first WLAN data frame is the source MAC address of the first Ethernet data frame, and the receiver MAC address in the frame header of the first WLAN data frame is The MAC address of the wireless access point;
  • the first WLAN data frame carries an aggregated MAC service data unit A-MSDU, and the A-MSDU includes
  • An A-MSDU subframe is generated according to the first Ethernet data frame, and a source address of the A-MSDU subframe is a source MAC address of the first Ethernet data frame a virtual interface MAC address corresponding to the address, the virtual interface MAC address being one of the plurality of virtual interface MAC addresses of the first wireless station bridge, and the destination address of the A-MSDU subframe is the first Ethernet The destination MAC address of the data frame;
  • the sending module is configured to send the first wireless local area network data frame.
  • the destination MAC address of the first Ethernet data frame is a broadcast MAC address or a multicast MAC address.
  • the generating module is further configured to generate a source MAC address of the first Ethernet data frame and Corresponding relationship between virtual MAC addresses corresponding to the source MAC address;
  • the sending module is further configured to send, between the source MAC address of the first Ethernet data frame and the virtual interface MAC address of the first wireless site bridge corresponding to the source MAC address, to the wireless access point. Correspondence.
  • the receiving module is further configured to receive the wireless connection a third WLAN data frame sent by the ingress, the third WLAN data frame carrying the A-MSDU;
  • the generating module is further configured to acquire an A-MSDU subframe in the A-MSDU carried by the third WLAN data frame, and generate a second Ethernet data frame according to the A-MSDU subframe, the second Ethernet
  • the destination MAC address of the data frame is the destination address of the A-MSDU subframe
  • the source MAC address of the second Ethernet data frame is based on the corresponding relationship broadcasted by the wireless access point, and the A-MSDU subframe.
  • the sending module is further configured to send the second Ethernet data frame.
  • the receiving module is further configured to receive the wireless connection a third WLAN data frame sent by the ingress, the third WLAN data frame carrying the A-MSDU, and the receiving MAC address in the frame header of the third WLAN data frame is a broadcast MAC address or a multicast MAC address;
  • the receiving module is further configured to acquire an A-MSDU subframe in the A-MSDU carried by the third WLAN data frame, where a source address of the A-MSDU subframe is the first wireless station bridge In the case of the virtual interface MAC address, the A-MSDU subframe is discarded.
  • the present invention provides a wireless station, including a wireless network adapter, a wireless local area network adapter, a processor, and a memory;
  • the Ethernet adapter is connected to the processor, the wireless LAN adapter is connected to the processor, and the memory is connected to the processor;
  • the processor receives, by the Ethernet adapter, a first Ethernet data frame sent by the first Ethernet device, where a source medium access control MAC address of the first Ethernet data frame is a MAC address of the first Ethernet device connected to the wireless station Addressing: the processor generates a first wireless local area network data frame according to the first Ethernet data frame;
  • the frame header of the first WLAN data frame includes a sender MAC address, a receiver MAC address, and a basic service set identifier BSSID;
  • the sender MAC address in the frame header of the first WLAN data frame is the source MAC address of the first Ethernet data frame, and the receiver MAC address in the frame header of the first WLAN data frame is wireless.
  • the first WLAN data frame carries an aggregated MAC service data unit A-MSDU, and the A-MSDU includes
  • An A-MSDU subframe is generated according to the first Ethernet data frame, and a source address of the A-MSDU subframe is a source MAC address of the first Ethernet data frame a virtual interface MAC address corresponding to the address, the virtual interface MAC address being one of the plurality of virtual interface MAC addresses of the wireless site bridge, and the destination address of the A-MSDU subframe is the first Ethernet data frame Destination MAC address;
  • the wireless local area network adapter transmits the first wireless local area network data frame.
  • the destination MAC address of the first Ethernet data frame is a broadcast MAC address or a multicast MAC address.
  • the processor after receiving the first Ethernet data frame, the processor generates the first Ethernet data frame Correspondence between the source MAC address and the virtual interface MAC address corresponding to the source MAC address;
  • the wireless local area network adapter sends a correspondence between a source MAC address of the first Ethernet data frame and a virtual interface MAC address of the wireless station bridge corresponding to the source MAC address to the wireless access point.
  • the first implementation manner and the second implementation manner of the tenth aspect, the third implementation manner of the tenth aspect further includes:
  • the wireless local area network adapter receives a third wireless local area network data frame sent by the wireless access point, and the third wireless local area network data frame carries an A-MSDU;
  • the processor acquires an A-MSDU subframe in the A-MSDU carried by the third WLAN data frame; the processor generates a second Ethernet data frame according to the A-MSDU subframe, and the second Ethernet
  • the destination MAC address of the data frame is the destination address of the A-MSDU subframe, and the source MAC address of the second Ethernet data frame is based on the corresponding relationship broadcasted by the wireless access point, and the A-MSDU subframe.
  • the Ethernet adapter transmits the second Ethernet data frame.
  • the first implementation manner and the second implementation manner of the tenth aspect, the fourth implementation manner of the tenth aspect further includes:
  • the wireless local area network adapter receives the third wireless local area network data frame sent by the wireless access point, the third wireless local area network data frame carries the A-MSDU, and the receiving party MAC address in the frame header of the third wireless local area network data frame is Broadcast MAC address or multicast MAC address;
  • an A-MSDU subframe in an A-MSDU carried by the third WLAN data frame where a source address of the A-MSDU subframe is a virtual interface MAC address of the wireless site bridge
  • the processor discards the A-MSDU subframe.
  • the wireless station bridge in the present invention sets a virtual interface MAC address for the Ethernet device, so that the Ethernet device connected to the wireless site bridge has a corresponding MAC address in the wireless local area network, so that the Ethernet device can pass
  • the bridge function of the wireless site bridge accesses the wireless LAN.
  • FIG. 1 is a schematic diagram of a network system according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a wireless local area network access device according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of another wireless local area network access apparatus according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a wireless station according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a wireless access point according to an embodiment of the present invention.
  • BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, a specific implementation process of the present invention will be exemplified by way of examples. It is apparent that the embodiments described below are a part of the embodiments of the present invention, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
  • FIG. 1 is a schematic diagram of a network system according to an embodiment of the present invention.
  • the solid line in the schematic diagram of the network system indicates a wired connection, and the broken line indicates a wireless connection.
  • 102 is a wireless AP.
  • 104, 106 and 108 are wireless stations associated with the wireless AP. Among them, 104 and 106 also provide bridging functions, so they can also be called wireless bridges (English: station bridge, abbreviated: STA bridge).
  • 110, 112, 114, 116, and 118 devices connected to the network via Ethernet are referred to as Ethernet devices in the embodiment of the present invention. Wherein 110 and 112 are connected to 104, and 114 and 116 are connected to 106.
  • the wireless station and the Ethernet device can also be a tablet computer, a personal digital assistant (English: personal digital assistant) , Abbreviations: PDA), mobile Internet devices (English: mobile Internet device, abbreviation: MID) and e-book reader (English: e-book reader).
  • PDA personal digital assistant
  • MID mobile Internet device
  • e-book reader English: e-book reader
  • an embodiment of the present invention provides a method for accessing a wireless local area network.
  • 2 is a flow chart of a method in accordance with an embodiment of the present invention. The method includes:
  • the first wireless station bridge receives a first Ethernet data frame sent by the first Ethernet device, and the source media access control (English: media access control, abbreviation: MAC) address of the first Ethernet data frame is The MAC address of the first Ethernet device connected to the first wireless station bridge.
  • the source media access control English: media access control, abbreviation: MAC
  • the first wireless station bridge in the embodiment of the present invention may be any wireless station bridge.
  • the first wireless station bridge in the following description is 104 in FIG.
  • the first wireless site bridge may also be referred to as a first wireless station, which provides a bridging function.
  • the first Ethernet device is a device that is connected to the first wireless site bridge via Ethernet, such as 110 or 112 in FIG.
  • a wireless site bridge generates multiple virtual interface MAC addresses. Any one of the plurality of virtual interface MAC addresses generated by a wireless station bridge is different from the wireless station bridge's own MAC address. Any one of the plurality of virtual interface MAC addresses generated by a wireless station bridge is different from the MAC address of the Ethernet device connected to the wireless station bridge.
  • the first wireless station bridge After receiving the first Ethernet data frame, the first wireless station bridge generates a correspondence between the source MAC address of the first Ethernet data frame and a virtual interface MAC address.
  • the virtual interface MAC address is one of a plurality of virtual interface MAC addresses generated by the first wireless site bridge.
  • the first wireless station bridge generates the corresponding relationship in the following manner.
  • the first wireless site bridge can generate multiple virtual interface MAC addresses when it is associated with the wireless AP. After receiving the first Ethernet data frame, selecting an unused virtual interface MAC address from the plurality of generated virtual interface MAC addresses, generating a source MAC address of the first Ethernet data frame and the unused virtual interface MAC The correspondence between addresses. The selected virtual interface MAC address becomes the used virtual interface MAC address.
  • the first wireless station bridge may also generate a virtual interface MAC address corresponding to the source MAC address of the first Ethernet data frame after receiving the first Ethernet data frame.
  • the generated virtual interface MAC address is different from the virtual interface MAC address generated by the first wireless site bridge.
  • the first wireless station bridge generates a correspondence between the source MAC address of the first Ethernet data frame and the generated virtual interface MAC address.
  • the first wireless station bridge may also generate multiple virtual interface MAC addresses when it is associated with the wireless AP. After receiving the first Ethernet data frame, if the generated multiple virtual interface MAC addresses have been used, a virtual interface MAC address corresponding to the source MAC address of the first Ethernet data frame is newly generated. The newly created virtual interface MAC address is different from the virtual interface MAC address that the first wireless site bridge has generated. The first wireless station bridge generates a correspondence between the source MAC address of the first Ethernet data frame and the newly generated virtual interface MAC address.
  • the first wireless station bridge may also generate the virtual interface MAC address in other manners, regardless of the manner, the used multiple virtual interface MAC addresses of the first wireless station bridge communicate with the first wireless station bridge.
  • the MAC addresses of the Ethernet devices correspond one-to-one. That is, all source MAC addresses in the correspondence between the source MAC address of all the Ethernet data frames and the virtual interface MAC address generated by the first wireless station bridge are dual-shot to all virtual interface MAC addresses in the corresponding relationship. .
  • a wireless site bridge can randomly generate a virtual interface MAC address, or generate a virtual interface MAC address according to a preset rule. For example, the wireless site bridge can set the 24 most significant bits of the generated virtual interface MAC address (English: mos ts ignif icant bit, abbreviation: MSB) to a fixed value, such as an organization unique identifier (English: Organiza t iona l ly Unique Ident if ier , 0UI ) , the OUI can be the OUI of the wireless site bridge itself, that is, the same as the 24 MSB in the MAC address of the wireless site bridge itself, or it can be a preset specific 0UI.
  • MSB organizational unique identifier
  • the 24MSB is the association identifier (AID) of the wireless station bridge on the AP. Since the 2 MSB of the AID is a fixed value, only the least significant bit of the AID can be placed here (English: least significant bit, abbreviation: LSB). The 10 LSB of the virtual interface MAC address is reserved, padded (English: padding) or random number.
  • the wireless site bridge may follow the preset algorithm according to the source MAC address. The address calculates the virtual interface MAC address to be generated.
  • the first wireless station bridge After the correspondence is generated, the first wireless station bridge sends the corresponding relationship to the wireless AP associated with the first wireless station bridge. After receiving the corresponding relationship, the wireless AP broadcasts the correspondence. According to the correspondence, the wireless AP or other wireless station bridge can know which Ethernet device the frame or subframe containing the virtual interface MAC address comes from.
  • the first wireless station bridge generates a first wireless local area network data frame according to the first Ethernet data frame.
  • the header of the first WLAN data frame includes a sender MAC address and a receiver MAC address.
  • the sender MAC address in the frame header of the first WLAN data frame is a virtual interface MAC address corresponding to the source MAC address of the first Ethernet data frame, and the virtual interface MAC address is the first wireless One of the virtual interface MAC addresses of the site bridge.
  • a WLAN data frame (English: data frame) is a frame for transmitting data in a wireless local area network.
  • the WLAN data frame includes a frame header and a MAC service data unit (English: MAC service data unit, abbreviated as MSDU), or includes a frame header and an aggregated MSDU (English: MSDU, referred to as A-MSDU).
  • the MSDU includes a portion of the received Ethernet data frame other than the source MAC address and the destination MAC address.
  • the A-MSDU aggregates multiple MSDUs in one WLAN data frame for transmission. Only multiple MSDUs with the same sender address (English: transmitter address) and receiver address (English address: receiver address) in the WLAN are aggregated and transmitted in one A-MSDU.
  • a plurality of A-MSDU subframes are included in one A-MSDU, and each A-MSDU subframe includes an A-MSDU subframe header and an MSDU.
  • the A-MSDU sub-frame header includes a source address (English: source address, abbreviation: SA), a destination address (English: destination address, abbreviation: SA), and the length of the MSDU in the A-MSDU subframe.
  • the frame header of the WLAN data frame is the MAC header (English: MAC header).
  • the number of MAC addresses in the header of the WLAN data frame transmitted between the wireless STA and the wireless AP is three.
  • the MAC address in the frame header of the WLAN data frame always includes the sender address and the receiver address. Since both the sender address and the receiver address are MAC addresses, the following are respectively referred to as the sender MAC address and the receiver MAC address. If the WLAN data frame carries the MSDU, the MAC address in the frame header of the WLAN data frame further includes the destination MAC address.
  • the MAC address in the frame header of the WLAN data frame further includes a basic service set identifier (abbreviation: BSSID), that is, the MAC of the wireless AP. address.
  • BSSID basic service set identifier
  • the first WLAN data frame is sent by the first wireless station bridge to the wireless AP, so the receiver MAC address in the frame header of the first WLAN data frame is the MAC address of the wireless AP.
  • the sender MAC address of the WLAN data frame sent by the usual wireless station is the MAC address of the wireless station. If the wireless station bridge uses the wireless station bridge's own MAC address as the sender MAC address, the wireless AP that receives the WLAN data frame and the wireless station that is forwarded by the wireless AP to the WLAN data frame cannot distinguish that the device that transmits the WLAN data frame is The wireless site bridge itself is also a device that is connected to the wireless site bridge via Ethernet. If the wireless site bridge uses the MAC address of the received Ethernet data frame as the sender MAC address of the WLAN data frame, the wireless AP cannot identify the sender MAC address of the WLAN data frame.
  • the first wireless station bridge generates a virtual interface MAC address for each Ethernet device connected to the first wireless station bridge through the Ethernet, and when the first WLAN data frame is sent, The virtual interface MAC address corresponding to the source MAC address of an Ethernet data frame is used as the sender MAC address of the first WLAN data frame.
  • the foregoing Ethernet device connected to the first wireless station bridge through the Ethernet may be a device directly connected to the first wireless site bridge, or may be connected to the first through a network switch or an Ethernet hub (English: Ethernet hub) A wireless station bridge device.
  • the destination MAC address in the frame header of the first WLAN data frame is the destination MAC address of the first Ethernet data frame.
  • the first wireless site bridge can aggregate multiple MSDUs.
  • the first wireless station bridge generates a first WLAN data frame according to the first Ethernet data frame and other Ethernet data frames, and the first WLAN data frame carries the A-MSDU.
  • the A-MSDU includes a plurality of A-MSDU subframes, and one of the A-MSDU subframes is generated according to the first Ethernet data frame.
  • the destination address of the A-MSDU subframe is the destination MAC address of the first Ethernet data frame. If the first Ethernet data frame is a unicast data frame, the source address of the A-MSDU subframe is the source MAC address of the first Ethernet data frame.
  • the destination address of the A-MSDU subframe is the destination MAC address of the first Ethernet data frame, that is, the broadcast MAC address or the multicast MAC address
  • the A - The source address of the MSDU subframe is the virtual interface MAC address corresponding to the source MAC address of the first Ethernet data frame.
  • the sender MAC address of the first WLAN data frame carrying the A-MSDU may not be the virtual interface MAC address, but the MAC address of the first wireless station bridge.
  • the first wireless station bridge sends the first WLAN data frame.
  • the wireless AP receives the WLAN data frame sent by the second wireless station bridge, the WLAN data frame carries the MSDU, and the destination MAC address in the frame header of the WLAN data frame is an Ethernet device connected to the first wireless station bridge, for example The MAC address of the first Ethernet device, the wireless AP sends a second WLAN data frame to the first wireless station bridge.
  • the second wireless station bridge may also be referred to as a second wireless station, which provides a bridging function.
  • Frame header of the second WLAN data frame The receiving MAC address is the frame header of the WLAN data frame sent by the second wireless station bridge according to the correspondence between the source MAC address of the first Ethernet data frame and the virtual interface MAC address sent by the first wireless station bridge.
  • the virtual interface MAC address corresponding to the destination MAC address.
  • the sender MAC address in the frame header of the second WLAN data frame is the MAC address of the wireless AP. If the MSDU is carried in the second WLAN data frame, the MSDU is the MSDU carried by the WLAN data frame sent by the second wireless station bridge, and the MAC address in the frame header of the second WLAN data frame further includes the source MAC address.
  • the source MAC address is the sender MAC address in the frame header of the WLAN data frame sent by the second wireless station bridge.
  • the MSDU in the A-MSDU subframe in the A-MSDU is the MSDU carried by the WLAN data frame sent by the second wireless station bridge, and the A-MSDU subframe
  • the destination address is the destination MAC address in the frame header of the WLAN data frame sent by the second wireless station bridge, and the source address of the A-MSDU subframe is the sender in the frame header of the WLAN data frame sent by the second wireless station bridge.
  • MAC address is carried in the second WLAN data frame, the MAC address in the frame header of the second WLAN data frame further includes the BSS ID.
  • the wireless AP receives the WLAN data frame sent by the second wireless station bridge, the WLAN data frame carries the A-MSDU, and the destination address of one A-MSDU subframe in the A-MSDU carried by the WLAN data frame is the first wireless station.
  • the Ethernet device connected to the bridge such as the MAC address of the first Ethernet device, transmits a second WLAN data frame to the first wireless station bridge.
  • the wireless AP receives the correspondence between the MAC address of the Ethernet device connected to the second wireless station bridge and the virtual interface MAC address sent by the second wireless station bridge.
  • the sender MAC address in the frame header of the second WLAN data frame is the MAC address of the wireless AP.
  • the MSDU is carried in the second WLAN data frame
  • the MSDU is in the A-MSDU carried by the WLAN data frame sent by the second wireless station bridge
  • the destination address is the MAC address of the Ethernet device connected to the first wireless station bridge.
  • the MSDU of the A-MSDU subframe The receiving MAC address in the frame header of the second WLAN data frame is, according to the correspondence between the source MAC address of the first Ethernet data frame and the virtual interface MAC address sent by the first wireless station bridge, and the second wireless station
  • the destination address of the A-MSDU carried by the WLAN data frame sent by the bridge is the virtual interface MAC address corresponding to the destination address of the A-MSDU subframe of the MAC address of the Ethernet device connected to the first wireless station bridge.
  • the MAC address in the header of the second WLAN data frame further includes a source MAC address.
  • the source MAC address in the frame header of the second WLAN data frame is the sender MAC address in the frame header of the WLAN data frame transmitted by the second wireless station bridge.
  • the source MAC address in the frame header of the second WLAN data frame is, according to the correspondence between the MAC address of the Ethernet device connected to the second wireless station bridge and the virtual interface MAC address sent by the second wireless station bridge, The virtual interface MAC corresponding to the source address of the A-MSDU sub-frame in the A-MSDU carried by the WLAN data frame sent by the second radio station bridge, the destination address being the MAC address of the Ethernet device connected to the first radio station bridge address.
  • one A-MSDU subframe in the A-MSDU is in the A-MSDU carried by the WLAN data frame sent by the second wireless station bridge, and the destination address is A-MSDU sub-network of the Ethernet device connected to the wireless station bridge frame.
  • the recipient MAC address in the frame header of the second WLAN data frame is the MAC address of the first wireless station bridge.
  • the receiving party MAC address in the frame header of the second WLAN data frame is, according to the correspondence between the source MAC address of the first Ethernet data frame and the virtual interface MAC address sent by the first wireless station bridge, and the second wireless
  • the destination address of the A-MSDU carried by the WLAN data frame sent by the site bridge is the MAC address of the Ethernet device connected to the first wireless station bridge, and the virtual interface MAC address corresponding to the destination address of the A-MSDU subframe.
  • the MAC address in the header of the second WLAN data frame also includes the BSS ID.
  • the wireless AP After the wireless AP receives the correspondence between the MAC address of the Ethernet device connected to the second wireless station bridge and the MAC address of the virtual interface sent by the second wireless station bridge, the wireless AP broadcasts the corresponding relationship.
  • the first wireless site bridge receives the correspondence.
  • the first wireless station bridge receives the second WLAN data frame sent by the wireless AP. If the second WLAN data frame carries the MSDU, the first wireless station generates a second Ethernet data frame according to the second WLAN data frame.
  • the destination MAC address of the second Ethernet data frame is based on the correspondence between the source MAC address of the first Ethernet data frame and the virtual interface MAC address corresponding to the source MAC address, and the second WLAN data.
  • the destination in the frame header of the second WLAN data frame is because the receiver MAC address in the frame header of the second WLAN data frame is the virtual interface MAC address corresponding to the MAC address of the Ethernet device connected to the first wireless station bridge.
  • the MAC address is the MAC address of the Ethernet device connected to the first wireless site bridge.
  • the source MAC address of the second Ethernet data frame is, according to the correspondence between the virtual interface MAC address of the second wireless station bridge and the MAC address of the Ethernet device connected to the second wireless station bridge, The MAC address corresponding to the source MAC address in the frame header of the second WLAN data frame.
  • the source MAC address in the frame header of the second WLAN data frame is the sender MAC address in the frame header of the WLAN data frame sent by the second wireless station bridge, that is, the Ethernet data frame is sent to the second wireless station bridge.
  • the virtual interface MAC address corresponding to the MAC address of the Ethernet device, so the source MAC address of the second Ethernet data frame is the MAC address of the Ethernet device that sends the Ethernet data frame to the second wireless station bridge.
  • the first wireless station bridge generates a second Ethernet data frame according to the A-MSDU subframe in the A-MSDU carried by the second WLAN data frame.
  • the destination MAC address and the source MAC address of the second Ethernet data frame are the destination address and the source address of the A-MSDU subframe, respectively.
  • the destination MAC address in the frame header of the first WLAN data frame is the first Ethernet data frame.
  • Destination MAC address which is the broadcast MAC address or multicast MAC address.
  • the wireless AP After receiving the first WLAN data frame, the wireless AP sends a third WLAN data frame.
  • the receiver MAC address in the frame header of the third WLAN data frame is the destination MAC address in the frame header of the first WLAN data frame, that is, the broadcast MAC address or the multicast MAC address.
  • the sender MAC address in the frame header of the third WLAN data frame is the MAC address of the wireless AP.
  • the MSDU is carried by the first WLAN data frame.
  • the MSDU, the MAC address in the frame header of the third WLAN data frame further includes a source MAC address.
  • the source MAC address is the sender MAC address in the frame header of the first WLAN data frame.
  • the MSDU in one A-MSDU subframe in the A-MSDU is the first The MSDU of the WLAN data frame, the destination address of the A-MSDU subframe is the destination MAC address in the frame header of the first WLAN data frame, that is, the broadcast MAC address or the multicast MAC address, and the source of the A-MSDU subframe The address is the sender MAC address in the frame header of the first WLAN data frame. If the A-MSDU is carried in the third WLAN data frame, the MAC address in the frame header of the third WLAN data frame further includes the BSS ID.
  • the first Ethernet data frame is a broadcast data frame or a multicast data frame
  • the first WLAN data frame carries the A-MSDU
  • the first Ethernet data frame carries the A-MSDU
  • the destination address of the A-MSDU subframe is the destination MAC address of the first Ethernet data frame, that is, the broadcast MAC address or the multicast MAC address
  • the source address of the A-MSDU subframe is the first Ethernet data frame.
  • the receiver MAC address in the frame header of the third WLAN data frame is the destination address of the A-MSDU subframe, that is, the broadcast MAC address or the multicast MAC address.
  • the sender MAC address in the frame header of the third WLAN data frame is the MAC address of the wireless AP. If the MSDU is carried in the third WLAN data frame, the MSDU is the MSDU of the A-MSDU subframe corresponding to the first Ethernet data frame in the A-MSDU carried by the first WLAN data frame.
  • the MAC address in the header of the third WLAN data frame further includes a source MAC address.
  • the source MAC address in the frame header of the third WLAN data frame is the source MAC address of the A-MSDU subframe corresponding to the first Ethernet data frame in the A-MSDU carried by the first WLAN data frame. If the A-MSDU is carried in the third WLAN data frame, one A-MSDU subframe in the A-MSDU is in the A-MSDU carried by the first WLAN data frame, corresponding to the first Ethernet data frame, A-MSDU subframe. If the A-MSDU is carried in the third WLAN data frame, the MAC address in the frame header of the third WLAN data frame further includes the BSS ID.
  • the second wireless station bridge receives the third WLAN data frame. If the third WLAN data frame carries the A-MSDU, the second wireless station bridge generates the second according to the A-MSDU subframe in the A-MSDU carried by the third WLAN data frame.
  • the destination MAC address of the second Ethernet data frame is the destination address of the A-MSDU subframe.
  • the source MAC address of the second Ethernet data frame is a correspondence between the source MAC address of the first Ethernet data frame broadcasted by the wireless AP and the virtual interface MAC address corresponding to the source MAC address, and the A-MSDU
  • the source MAC address of the second Ethernet data frame is the MAC address of the first Ethernet device, because the source address of the A-MSDU subframe is a virtual interface MAC address corresponding to the source MAC address of the first Ethernet data frame. .
  • the first wireless station bridge Because the receiver MAC address in the frame header of the third WLAN data frame is a broadcast MAC address or a multicast MAC address, the first wireless station bridge also receives the third WLAN data frame. If the MSDU is carried in the third WLAN data frame, the first radio station bridge checks the source MAC address in the frame header of the third WLAN data frame. If the header of the third WLAN data frame is in the header The source MAC address is the virtual interface MAC address of the first wireless station bridge, that is, the source MAC address is one of the plurality of virtual interface MAC addresses of the first wireless station bridge, and the first wireless station bridge discards the third WLAN data. frame.
  • the first radio station bridge acquires each A-MSDU subframe in the A-MSDU carried by the third WLAN data frame.
  • the first radio station bridge checks the source address of the obtained A-MSDU subframe, and if the source address of the A-MSDU subframe is the virtual interface MAC address of the first radio station bridge, that is, the source address is the first radio station bridge.
  • the first radio station bridge discards the A-MSDU subframe.
  • FIG. 2 focuses on the working method of the wireless station bridge.
  • the working method of the wireless access point in this embodiment refer to the embodiment shown in FIG. 3.
  • an embodiment of the present invention provides a method for accessing a wireless local area network.
  • 3 is a flow chart of a method in accordance with an embodiment of the present invention. The method includes:
  • the wireless access point receives a correspondence between a virtual interface MAC address of the first wireless station bridge and a MAC address of an Ethernet device connected to the first wireless station bridge from the first wireless station bridge.
  • the first wireless station bridge in the embodiment of the present invention may be any wireless station bridge.
  • the first wireless station bridge in the following description is 104 in FIG.
  • a wireless site bridge generates multiple virtual interface MAC addresses. Multiple virtual interfaces generated by a wireless site bridge
  • Any one of the MAC addresses is different from the MAC address of the wireless station bridge itself. Any of the multiple virtual interface MAC addresses generated by a wireless site bridge has a different MAC address than the Ethernet device to which the wireless site bridge is connected.
  • the first wireless station bridge After receiving the Ethernet data frame, the first wireless station bridge generates a correspondence between the source MAC address of the Ethernet data frame and a virtual interface MAC address.
  • the virtual interface MAC address is one of a plurality of virtual interface MAC addresses generated by the first wireless site bridge.
  • the first wireless station bridge generates the corresponding relationship in the following manner.
  • the first wireless site bridge can generate multiple virtual interface MAC addresses when it is associated with the wireless AP. After receiving the Ethernet data frame, selecting an unused virtual interface MAC address from the plurality of generated virtual interface MAC addresses, and generating a correspondence between the source MAC address of the Ethernet data frame and the unused virtual interface MAC address. relationship. The selected virtual interface MAC address becomes the used virtual interface MAC address.
  • the first wireless station bridge may also generate a virtual interface MAC address corresponding to the source MAC address of the Ethernet data frame after receiving the Ethernet data frame.
  • the generated virtual interface MAC address is different from the generated virtual interface MAC address of the first wireless site bridge.
  • the first wireless station bridge generates a correspondence between the source MAC address of the Ethernet data frame and the generated virtual interface MAC address.
  • the first wireless station bridge may also generate multiple virtual interface MACs when it is associated with the wireless AP. address. After receiving the Ethernet data frame, if the generated multiple virtual interface MAC addresses have been used, a virtual interface MAC address corresponding to the source MAC address of the Ethernet data frame is newly generated. The newly generated virtual interface MAC address is different from the virtual interface MAC address that the first wireless site bridge has generated. The first wireless station bridge generates a correspondence between the source MAC address of the Ethernet data frame and the newly generated virtual interface MAC address.
  • the first wireless station bridge may also generate the virtual interface MAC address in other manners, regardless of the manner, the used multiple virtual interface MAC addresses of the first wireless station bridge communicate with the first wireless station bridge.
  • the MAC addresses of multiple Ethernet devices correspond one-to-one. That is, all source MAC addresses in the correspondence between the source MAC address of all the Ethernet data frames and the virtual interface MAC address generated by the first wireless station bridge are dual-shot to all virtual interface MAC addresses in the corresponding relationship. .
  • a wireless site bridge can randomly generate a virtual interface MAC address, or generate a virtual interface MAC address according to a preset rule. For example, the wireless site bridge can generate a 24 MSB of the virtual interface MAC address to a fixed value, such as 0UI, followed by the 24 MSB, the AID of the wireless station bridge on the AP, because the 2 MSB of the AID is a fixed value, Here you can only put 14 LSBs of AID.
  • the 10 LSB of the virtual interface MAC address is a reserved bit, padded or random number.
  • the wireless site bridge may follow the preset algorithm according to the source MAC address.
  • the address calculates the virtual interface MAC address to be generated.
  • the first wireless station bridge After the correspondence is generated, the first wireless station bridge sends the corresponding relationship to the wireless AP associated with the first wireless station bridge. After receiving the correspondence, the wireless AP broadcasts the correspondence.
  • the wireless access point may also receive a correspondence between the virtual interface MAC address of the second wireless station bridge and the MAC address of the Ethernet device connected to the second wireless station bridge from the second wireless station bridge. After receiving the correspondence, the wireless AP broadcasts the correspondence. The first wireless site bridge receives the correspondence.
  • the wireless access point receives a first wireless local area network data frame from a second wireless station bridge.
  • the header of the first WLAN data frame includes a sender MAC address and a receiver MAC address.
  • the second wireless station bridge receives an Ethernet data frame sent by the Ethernet device, and the source MAC address of the Ethernet data frame is a MAC address of an Ethernet device connected to the second wireless station bridge.
  • the second wireless station bridge generates a first WLAN data frame according to the Ethernet data frame.
  • the sender MAC address in the frame header of the first WLAN data frame is a virtual interface MAC address corresponding to the source MAC address of the Ethernet data frame, and the virtual interface MAC address is multiple virtualities of the second wireless site bridge.
  • the first WLAN data frame carries the A-MSDU
  • the source address of the A-MSDU subframe in the A-MSDU is the virtual interface MAC address corresponding to the source MAC address of the Ethernet data frame.
  • the sender MAC address in the frame header of the first WLAN data frame may be the second none.
  • the MAC address of the line site bridge may be the second none.
  • a WLAN data frame is a frame in which data is transmitted in a WLAN.
  • the WLAN data frame includes a frame header and an MSDU, or includes a frame header and A-MSDU 0 includes a plurality of A-MSDU subframes in one A-MSDU, and each A-MSDU subframe includes an A-MSDU subframe header and an MSDU.
  • the A-MSDU subframe header includes a source address, a destination address, and a length of the MSDU in the A-MSDU subframe.
  • the frame header of the WLAN data frame is the MAC header.
  • the frame header of the WLAN data frame transmitted between the wireless STA and the wireless AP is the MAC header.
  • the number of MAC addresses is three.
  • the wireless access point is configured according to the first wireless
  • the local area network data frame generates a second wireless local area network data frame.
  • the frame header of the second WLAN data frame includes a sender MAC address and a receiver MAC address.
  • the receiver MAC address in the frame header of the second WLAN data frame is between the virtual interface MAC address of the first wireless station bridge and the MAC address of the Ethernet device connected to the first wireless station bridge.
  • a virtual interface MAC address corresponding to a MAC address of a target device of the first wireless local area network data frame.
  • the sender MAC address in the frame header of the second WLAN data frame is the MAC address of the wireless AP.
  • the destination MAC address is included in the header of the first WLAN data frame.
  • the destination MAC address is the MAC address of the target device.
  • the target device of the first WLAN data frame is a device connected to the wireless access point through the first wireless station bridge, that is, the destination MAC address in the frame header of the first WLAN data frame is between the wireless access point and the wireless access point.
  • the MSDU is the MSDU carried by the WLAN data frame sent by the second wireless station bridge, and the MAC address in the frame header of the second WLAN data frame further includes the source MAC address.
  • the source MAC address is the sender MAC address in the frame header of the first WLAN data frame.
  • the MSDU in the A-MSDU subframe of the A-MSDU is the MSDU carried by the first WLAN data frame
  • the destination address of the A-MSDU subframe is the first A destination MAC address in a frame header of a WLAN data frame
  • the source address of the A-MSDU subframe being a sender MAC address in a frame header of the first WLAN data frame.
  • the MAC address in the header of the second WLAN data frame also includes the BSS ID.
  • the recipient MAC address in the frame header of the second WLAN data frame may be the MAC address of the second wireless station bridge.
  • the target device is a device connected to the wireless AP via Ethernet, such as device 118 in FIG. 1, and the wireless AP is in accordance with the third The WLAN data frame is generated with the first Ethernet data frame.
  • the third WLAN data frame carries the MSDU
  • the frame header of the third WLAN data frame includes a destination MAC address, a sender MAC address, and a receiver MAC address.
  • the target device of the third WLAN data frame is The device connected to the wireless AP through the Ethernet, that is, the destination MAC address in the frame header of the third WLAN data frame is the MAC address of the device connected to the wireless AP through the Ethernet.
  • the destination MAC address of the first Ethernet data frame is the destination MAC address in the frame header of the third WLAN data frame.
  • the source MAC address of the first Ethernet data frame is, according to the correspondence between the virtual interface MAC address of the second wireless station bridge and the MAC address of the Ethernet device connected to the second wireless station bridge, and the third WLAN data The MAC address corresponding to the sender MAC address in the frame header of the frame. Because the sender MAC address in the frame header of the third WLAN data frame is the virtual interface MAC address corresponding to the MAC address of the Ethernet device that sends the Ethernet data frame to the second wireless station bridge, the first Ethernet data frame The source MAC address is the MAC address of the Ethernet device that sends the Ethernet data frame to the second wireless site bridge.
  • the frame header of the third WLAN data frame includes a BSS ID, a sender MAC address, and a receiver MAC address.
  • the target device of the third WLAN data frame is a device that is connected to the wireless AP through the Ethernet, that is, the destination address of any one of the multiple A-MSDU subframes in the A-MSDU carried by the third WLAN data frame is the wireless AP.
  • the destination MAC address of the first Ethernet data frame is the destination address of the A-MSDU subframe.
  • the source MAC address of the first Ethernet data frame is the source address of the A-MSDU subframe.
  • the wireless local area network If the destination MAC address in the frame header of the first WLAN data frame is a broadcast MAC address or a multicast MAC address, the wireless
  • the AP After receiving the first WLAN data frame, the AP sends a fifth WLAN data frame.
  • the receiving MAC address in the frame header of the fifth WLAN data frame is the destination MAC address in the frame header of the first WLAN data frame, that is, the broadcast MAC address or the multicast MAC address.
  • the sender MAC address in the frame header of the fifth WLAN data frame is the MAC address of the wireless AP. If the MSDU is carried in the fifth WLAN data frame, the MSDU is the MSDU carried by the first WLAN data frame, and the MAC address in the frame header of the fifth WLAN data frame further includes the source MAC address.
  • the source MAC address is the sender MAC address in the frame header of the first WLAN data frame.
  • the MSDU in one A-MSDU subframe in the A-MSDU is the first The MSDU of the WLAN data frame
  • the destination address of the A-MSDU subframe is the destination MAC address in the frame header of the first WLAN data frame, that is, the broadcast MAC address or the multicast MAC address
  • the source of the A-MSDU subframe is the sender MAC address in the frame header of the first WLAN data frame.
  • the MAC address in the frame header of the fifth WLAN data frame further includes a BSS ID.
  • the A-MSDU carried by the first WLAN data frame includes multiple A-MSDU subframes.
  • the destination address of the multiple A-MSDU subframes is the MAC address of the target device.
  • the target device of the first WLAN data frame is a device that is connected to the wireless access point through the first wireless station bridge, and is any one of multiple A-MSDU subframes in the A-MSDU carried by the first WLAN data frame.
  • the destination address of one is the MAC address of the device connected to the wireless access point through the first wireless station bridge.
  • the sender MAC address in the frame header of the second WLAN data frame is the MAC address of the wireless AP. If the MSDU is carried in the second WLAN data frame, the MSDU is in the A-MSDU carried by the first WLAN data frame, and the destination address is the MAC address of the Ethernet device connected to the first wireless station bridge, A-MSDU The MSDU of the subframe.
  • the receiver MAC address in the frame header of the second WLAN data frame is, according to the virtual interface MAC address of the first wireless station bridge sent by the first wireless station bridge and the Ethernet device connected to the first wireless station bridge.
  • the correspondence between the MAC addresses and the destination address of the A-MSDU subframe corresponding to the MAC address of the Ethernet device connected to the first wireless station bridge in the A-MSDU carried by the first WLAN data frame Virtual interface MAC address.
  • the MAC address in the header of the second WLAN data frame further includes a source MAC address.
  • the source MAC address in the frame header of the second WLAN data frame is, according to the correspondence between the MAC address of the Ethernet device connected to the second wireless station bridge and the virtual interface MAC address sent by the second wireless station bridge, and the first The destination address of the A-MSDU carried by the WLAN data frame is the virtual interface MAC address corresponding to the source address of the A-MSDU subframe of the MAC address of the Ethernet device connected to the first wireless station bridge.
  • the sender MAC address in the frame header of the first WLAN data frame is a virtual interface MAC address corresponding to the source MAC address of the Ethernet data frame received by the second wireless station bridge
  • the frame header of the second WLAN data frame The source MAC address may be the sender MAC address in the frame header of the first WLAN data frame.
  • one A-MSDU subframe in the A-MSDU is in the A-MSDU carried by the first WLAN data frame, and the destination address is connected to the first wireless station bridge.
  • the recipient MAC address in the frame header of the second WLAN data frame is the MAC address of the first wireless station bridge.
  • the receiving party MAC address in the frame header of the second WLAN data frame is the virtual interface MAC address of the first wireless station bridge and the Ethernet device connected to the first wireless station bridge according to the first wireless station bridge.
  • the correspondence between the MAC addresses and the destination address of the A-MSDU subframe corresponding to the MAC address of the Ethernet device connected to the first wireless station bridge in the A-MSDU carried by the first WLAN data frame Virtual interface MAC address.
  • the MAC address in the header of the second WLAN data frame also includes the BSS ID.
  • the wireless AP sends the fifth WLAN data frame after receiving the first WLAN data frame.
  • the receiver MAC address in the frame header of the fifth WLAN data frame is the destination address of the A-MSDU subframe, that is, the broadcast MAC address or the multicast MAC address.
  • the sender MAC address in the frame header of the fifth WLAN data frame is the MAC address of the wireless AP. If the MSDU is carried in the fifth WLAN data frame, the MSDU is the MSDU of the A-MSDU subframe in the A-MSDU carried by the first WLAN data frame.
  • the MAC address in the frame header of the fifth WLAN data frame further includes a source MAC address.
  • the source MAC address in the frame header of the fifth WLAN data frame is the source MAC address of the A-MSDU subframe in the A-MSDU carried by the first WLAN data frame. If the A-MSDU is carried in the fifth WLAN data frame, one A-MSDU subframe in the A-MSDU is the A-MSDU subframe in the A-MSDU carried by the first WLAN data frame. If the fifth WLAN data frame carries the A-MSDU, the fifth The MAC address in the frame header of the WLAN data frame also includes the BSS ID.
  • the wireless AP also broadcasts or multicasts Ethernet data frames over Ethernet.
  • the destination MAC address of the Ethernet data is the destination address of the A-MSDU subframe, that is, a broadcast MAC address or a multicast MAC address.
  • the source MAC address of the Ethernet data frame is, according to the correspondence between the virtual interface MAC address of the second wireless station bridge and the MAC address of the Ethernet device connected to the second wireless station bridge, and the foregoing A-MSDU subframe MAC address corresponding to the source MAC address. Because the source address of the A-MSDU subframe is a virtual interface MAC address corresponding to the MAC address of the Ethernet device connected to the second wireless station bridge, the source MAC address of the Ethernet data frame is connected to the second wireless site bridge. MAC address of the Ethernet device.
  • the first wireless station bridge receives the fifth WLAN data frame. If the fifth WLAN data frame carries the A-MSDU, the first wireless station bridge generates an Ethernet according to the A-MSDU subframe in the A-MSDU carried by the fifth WLAN data frame. Data Frame.
  • the destination MAC address of the Ethernet data frame is the destination address of the A-MSDU subframe.
  • the source MAC address of the Ethernet data frame is, according to the correspondence between the virtual interface MAC address of the second wireless station bridge broadcasted by the wireless AP and the MAC address of the Ethernet device connected to the second wireless station bridge, and the A- MAC address corresponding to the source MAC address of the MSDU subframe.
  • the source address of the A-MSDU subframe is a virtual interface MAC address corresponding to the MAC address of the Ethernet device connected to the second wireless station bridge
  • the source MAC address of the Ethernet data frame is connected to the second wireless site bridge. MAC address of the Ethernet device.
  • the second wireless station bridge Because the receiver MAC address in the frame header of the fifth WLAN data frame is a broadcast MAC address or a multicast MAC address, the second wireless station bridge also receives the fifth WLAN data frame. If the MSDU is carried in the fifth WLAN data frame, the second radio station bridge checks the source MAC address in the frame header of the fifth WLAN data frame. If the source MAC address in the frame header of the fifth WLAN data frame is the virtual interface MAC address of the second wireless station bridge, that is, the source MAC address is one of the plurality of virtual interface MAC addresses of the second wireless station bridge, the second The wireless site bridge discards the fifth WLAN data frame.
  • the second radio station bridge acquires each A-MSDU subframe in the A-MSDU carried by the fifth WLAN data frame.
  • the second radio station bridge checks the source address of the obtained A-MSDU subframe, and if the source address of the A-MSDU subframe is the virtual interface MAC address of the second radio station bridge, that is, the source address is the second radio station bridge.
  • the second radio site bridge discards the A-MSDU subframe.
  • the wireless AP receives the second Ethernet data frame from the second Ethernet device, and the destination MAC address of the second Ethernet data frame is the MAC address of the device connected to the wireless AP through the first wireless station bridge, the wireless The AP generates a fourth WLAN data frame according to the second Ethernet data frame.
  • the second Ethernet device is a device that is connected to the wireless AP via Ethernet, such as device 118 in FIG.
  • the frame header of the fourth WLAN data frame includes a source MAC address, a sender MAC address, and a receiver MAC address.
  • the source MAC address in the frame header of the fourth WLAN data frame is the source MAC address of the second Ethernet data frame.
  • the receiver MAC address in the frame header of the fourth WLAN data frame is, according to the virtual interface of the first wireless station bridge The correspondence between the MAC address and the MAC address of the Ethernet device connected to the first wireless station bridge, and the virtual interface MAC address of the first wireless station bridge corresponding to the destination MAC address of the second Ethernet data frame.
  • the sender MAC address in the frame header of the fourth WLAN data frame is the MAC address of the wireless AP, that is, the BSS ID.
  • the wireless AP transmits the fourth wireless local area network data frame.
  • the wireless access point sends the second wireless local area network data frame.
  • the first wireless station bridge receives the second WLAN data frame sent by the wireless AP. If the second WLAN data frame carries the MSDU, the first wireless station generates a third Ethernet data frame according to the second WLAN data frame.
  • the destination MAC address of the third Ethernet data frame is, according to the correspondence between the virtual interface MAC address of the first wireless station bridge and the MAC address of the Ethernet device connected to the first wireless station bridge, and the second The MAC address corresponding to the receiver MAC address in the frame header of the WLAN data frame.
  • the destination in the frame header of the second WLAN data frame is because the receiver MAC address in the frame header of the second WLAN data frame is the virtual interface MAC address corresponding to the MAC address of the Ethernet device connected to the first wireless station bridge.
  • the MAC address is the MAC address of the Ethernet device connected to the first wireless site bridge.
  • the source MAC address of the third Ethernet data frame is, according to the correspondence between the virtual interface MAC address of the second wireless station bridge and the MAC address of the Ethernet device connected to the second wireless station bridge, and the second WLAN data
  • the MAC address corresponding to the source MAC address in the frame header of the frame Because the source MAC address in the frame header of the second WLAN data frame is the sender MAC address in the frame header of the WLAN data frame sent by the second wireless station bridge, that is, the Ethernet data frame is sent to the second wireless station bridge.
  • the virtual interface MAC address corresponding to the MAC address of the Ethernet device, so the source MAC address of the third Ethernet data frame is the MAC address of the Ethernet device that sends the Ethernet data frame to the second wireless station bridge. If the second WLAN data frame carries the A-MSDU, the first wireless station generates a third Ethernet data frame according to the A-MSDU subframe in the A-MSDU carried by the second WLAN data frame.
  • the destination MAC address and source MAC address of the third Ethernet data frame are the destination address and source address of the A-MSDU subframe, respectively.
  • FIG. 3 focuses on the working method of the wireless access point.
  • the working method of the wireless station bridge in this embodiment refer to the embodiment shown in FIG. 2 .
  • an embodiment of the present invention provides a wireless local area network access device.
  • FIG. 4 is a schematic diagram of a wireless local area network access apparatus according to an embodiment of the present invention.
  • the WLAN access device is implemented by a wireless STA. Since the wireless STA implementing the wireless local area network access device provides a bridge function, it can also be referred to as a wireless site bridge.
  • the wireless site bridge can be specifically a mobile phone, various types of computers, tablets, PDAs, MIDs or e-book readers.
  • the wireless station bridge may be any one of the wireless station bridges in FIG.
  • the wireless station bridge is 104 in FIG. 1, and is referred to as a first wireless station bridge, and the WLAN access device is called Access the device for the first WLAN.
  • the WLAN access device includes a receiving module 402, a generating module 404, and a transmitting module 406.
  • the receiving module 402 is configured to receive a first Ethernet data frame sent by the first Ethernet device, where a source MAC address of the first Ethernet data frame is a first Ethernet connected to the first wireless station bridge. The MAC address of the device.
  • the first Ethernet device is a device connected to the first wireless site bridge implementing the first WLAN access device via Ethernet, such as 110 or 112 in FIG.
  • a WLAN access device generates multiple virtual interface MAC addresses. Any one of the plurality of virtual interface MAC addresses generated by one WLAN access device is different from the MAC address of the WLAN access device itself.
  • the first WLAN access device After receiving the first Ethernet data frame, the first WLAN access device generates a correspondence between a source MAC address of the first Ethernet data frame and a virtual interface MAC address.
  • the virtual interface MAC address is one of a plurality of virtual interface MAC addresses generated by the first WLAN access device.
  • the manner in which the first WLAN access device generates the correspondence relationship is as follows.
  • the first WLAN access device may generate multiple virtual interface MAC addresses when it is associated with the wireless AP. After receiving the first Ethernet data frame, selecting an unused virtual interface MAC address from the plurality of generated virtual interface MAC addresses, generating a source MAC address of the first Ethernet data frame and the unused virtual interface MAC The correspondence between addresses. The selected virtual interface MAC address becomes the used virtual interface MAC address.
  • the first WLAN access device may also generate a virtual interface MAC address corresponding to the source MAC address of the first Ethernet data frame after receiving the first Ethernet data frame.
  • the generated virtual interface MAC address is different from the virtual interface MAC address that the first WLAN access device has generated.
  • the first access device generates a correspondence between the source MAC address of the first Ethernet data frame and the generated virtual interface MAC address.
  • the first WLAN access device may also generate multiple virtual interfaces when it is associated with the wireless AP.
  • a virtual interface MAC address corresponding to the source MAC address of the first Ethernet data frame is newly generated.
  • the newly generated virtual interface MAC address is different from the virtual interface MAC address that the first WLAN access device has generated.
  • the first WLAN access device generates a correspondence between the source MAC address of the first Ethernet data frame and the newly generated virtual interface MAC address.
  • the first WLAN access device may also generate the virtual interface MAC address in other manners, regardless of the manner in which the plurality of used virtual interface MAC addresses of the first WLAN access device communicate with the first WLAN access device.
  • the MAC addresses of the Ethernet devices correspond one-to-one. That is, all the source MAC addresses in the correspondence between the source MAC address and the virtual interface MAC address of all the Ethernet data frames that have been generated by the first WLAN access device are dual-shot to all the virtual interface MAC addresses in the corresponding relationship. .
  • a WLAN access device may randomly generate a virtual interface MAC address, or may generate a virtual interface MAC address according to a preset rule.
  • the WLAN access device may set the generated 24 MSB of the virtual interface MAC address to a fixed value, such as 0UI, and the AID of the WLAN access device on the AP immediately after the 24MSB, because the 2 MSB of the AID is a fixed value, where It is possible to put only 14 LSBs of the AID.
  • the 10 LSB of the virtual interface MAC address is a reserved bit, padded or random number.
  • the WLAN access device may follow the source MAC according to a preset algorithm. The address calculates the virtual interface MAC address to be generated.
  • the first WLAN access device After the correspondence is generated, the first WLAN access device sends the correspondence to the wireless AP associated with the first WLAN access device. After receiving the corresponding relationship, the wireless AP broadcasts the correspondence. According to the correspondence, the wireless AP or other wireless station bridge can know which Ethernet device the frame or subframe containing the virtual interface MAC address comes from.
  • the generating module 404 is configured to generate a first wireless local area network data frame (hereinafter referred to as a WLAN data frame) according to the first Ethernet data frame.
  • the header of the first WLAN data frame includes a sender MAC address and a receiver MAC address.
  • the sender MAC address in the frame header of the first WLAN data frame is a virtual interface MAC address corresponding to the source MAC address of the first Ethernet data frame, and the virtual interface MAC address is the first WLAN. Access one of a plurality of virtual interface MAC addresses of the device.
  • a WLAN data frame (English: data frame) is a frame for transmitting data in a wireless local area network.
  • the WLAN data frame includes a frame header and a MAC service data unit (English: MAC service data unit, abbreviated as MSDU), or includes a frame header and an aggregated MSDU (English: MSDU, referred to as A-MSDU).
  • the MSDU includes a portion of the received Ethernet data frame other than the source MAC address and the destination MAC address.
  • the A-MSDU aggregates multiple MSDUs in one WLAN data frame for transmission. Only multiple MSDUs with the same sender address (English: transmitter address) and receiver address (English address: receiver address) in the WLAN are aggregated and transmitted in one A-MSDU.
  • a plurality of A-MSDU subframes are included in one A-MSDU, and each A-MSDU subframe includes an A-MSDU subframe header and an MSDU.
  • the A-MSDU sub-frame header includes a source address (English: source address, abbreviation: SA), a destination address (English: destination address, abbreviation: SA), and the length of the MSDU in the A-MSDU subframe.
  • the frame header of the WLAN data frame is the MAC header (English: MAC header).
  • the number of MAC addresses in the header of the WLAN data frame transmitted between the wireless STA and the wireless AP is three.
  • the MAC address in the frame header of the WLAN data frame always includes the sender address and the receiver address. Since both the sender address and the receiver address are MAC addresses, the following are respectively referred to as the sender MAC address and the receiver MAC address. If the WLAN data frame carries the MSDU, the MAC address in the frame header of the WLAN data frame further includes the destination MAC address.
  • the WLAN data frame carries an A-MSDU
  • the MAC address in the frame header also includes a basic service set identifier (English: ba sics erv i ce set dent if i ca ti on, abbreviated: BSS ID), that is, the MAC address of the wireless AP.
  • BSS ID basic service set identifier
  • the first WLAN data frame is sent by the first WLAN access device to the wireless AP, so the recipient MAC address in the frame header of the first WLAN data frame is the MAC address of the wireless AP.
  • the sender MAC address of the WLAN data frame sent by the usual wireless station is the MAC address of the wireless station.
  • the WLAN access device uses the MAC address of the wireless station bridge that implements the WLAN access device as the sender MAC address, and the wireless AP that receives the WLAN data frame and the wireless station that forwards the WLAN data frame by the wireless AP cannot distinguish and transmit the WLAN data. Whether the device of the frame is the WLAN access device or a device connected to the wireless site bridge implementing the WLAN access device via Ethernet. If the WLAN access device uses the MAC address of the received Ethernet data frame as the sender MAC address of the WLAN data frame, the wireless AP cannot identify the sender MAC address of the WLAN data frame.
  • the first WLAN access device generates a virtual interface MAC address for each Ethernet device connected to the first wireless station bridge that implements the first WLAN access device by using the Ethernet, and sends the first WLAN data frame.
  • the virtual interface MAC address corresponding to the source MAC address of the first Ethernet data frame is used as the sender MAC address of the first WLAN data frame.
  • the foregoing Ethernet device connected to the first wireless station bridge of the first WLAN access device by using the Ethernet may be a device directly connected to the first wireless site bridge, or may be a network switch or an Ethernet hub. E therne t hub ) A device connected to the first wireless station bridge.
  • the destination MAC address in the frame header of the first WLAN data frame is the destination MAC address of the first Ethernet data frame.
  • the first WLAN access device can aggregate multiple MSDUs.
  • the first WLAN access device generates a first WLAN data frame according to the first Ethernet data frame and other Ethernet data frames, and the first WLAN data frame carries the A-MSDU.
  • the A-MSDU includes a plurality of A-MSDU subframes, and one of the A-MSDU subframes is generated according to the first Ethernet data frame.
  • the destination address of the A-MSDU sub-frame is the destination MAC address of the first Ethernet data frame. If the first Ethernet data frame is a unicast data frame, the source address of the A-MSDU subframe is the source MAC address of the first Ethernet data frame.
  • the destination address of the A-MSDU subframe is the destination MAC address of the first Ethernet data frame, that is, the broadcast MAC address or the multicast MAC address
  • the A The source address of the MSDU subframe is a virtual interface MAC address corresponding to the source MAC address of the first Ethernet data frame.
  • the sender MAC address of the first WLAN data frame carrying the A-MSDU may not be the virtual interface MAC address, but the MAC address of the first wireless station bridge.
  • the sending module 406 is configured to send the first WLAN data frame.
  • the wireless AP receives the WLAN data frame sent by the second wireless station bridge, the WLAN data frame carries the MSDU, and the destination MAC address in the frame header of the WLAN data frame is an Ethernet device connected to the first wireless station bridge, for example First The MAC address of an Ethernet device, the wireless AP sends a second WLAN data frame to the first WLAN access device.
  • the receiving MAC address in the frame header of the second WLAN data frame is, according to the correspondence between the source MAC address of the first Ethernet data frame and the virtual interface MAC address sent by the first WLAN access device, and the second wireless site bridge The virtual interface MAC address corresponding to the destination MAC address in the frame header of the transmitted WLAN data frame.
  • the sender MAC address in the frame header of the second WLAN data frame is the MAC address of the wireless AP. If the MSDU is carried in the second WLAN data frame, the MSDU is the MSDU carried by the WLAN data frame sent by the second wireless station bridge, and the MAC address in the frame header of the second WLAN data frame further includes the source MAC address.
  • the source MAC address is a sender MAC address in a frame header of a WLAN data frame transmitted by the second wireless station bridge.
  • the MSDU in the A-MSDU subframe in the A-MSDU is the MSDU carried by the WLAN data frame sent by the second wireless station bridge, and the A-MSDU subframe
  • the destination address is the destination MAC address in the frame header of the WLAN data frame sent by the second wireless station bridge, and the source address of the A-MSDU subframe is the sender in the frame header of the WLAN data frame sent by the second wireless station bridge.
  • MAC address is carried in the second WLAN data frame, the MAC address in the frame header of the second WLAN data frame further includes the BSS ID.
  • the wireless AP receives the WLAN data frame sent by the second wireless station bridge, the WLAN data frame carries the A-MSDU, and the destination address of one A-MSDU subframe in the A-MSDU carried by the WLAN data frame is the first wireless station.
  • the Ethernet device connected to the bridge such as the MAC address of the first Ethernet device, transmits a second WLAN data frame to the first WLAN access device.
  • the wireless AP receives the correspondence between the MAC address of the Ethernet device connected to the second wireless station bridge and the virtual interface MAC address sent by the second wireless station bridge.
  • the sender MAC address in the frame header of the second WLAN data frame is the MAC address of the wireless AP.
  • the MSDU is carried in the second WLAN data frame
  • the MSDU is in the A-MSDU carried by the WLAN data frame sent by the second wireless station bridge
  • the destination address is the MAC address of the Ethernet device connected to the first wireless station bridge.
  • the MSDU of the A-MSDU subframe The receiver MAC address in the frame header of the second WLAN data frame is based on the correspondence between the source MAC address of the first Ethernet data frame and the virtual interface MAC address sent by the first WLAN access device, and the second wireless station.
  • the destination address of the A-MSDU carried by the WLAN data frame sent by the bridge is the MAC address of the Ethernet device connected to the first wireless station bridge, and the virtual interface MAC address corresponding to the destination address of the A-MSDU subframe.
  • the MAC address in the header of the second WLAN data frame further includes a source MAC address.
  • the source MAC address in the frame header of the second WLAN data frame is the sender MAC address in the frame header of the WLAN data frame transmitted by the second wireless station bridge.
  • the source MAC address in the frame header of the second WLAN data frame is, according to the correspondence between the MAC address of the Ethernet device connected to the second wireless station bridge and the virtual interface MAC address sent by the second wireless station bridge, The virtual interface MAC corresponding to the source address of the A-MSDU sub-frame in the A-MSDU carried by the WLAN data frame sent by the second radio station bridge, the destination address being the MAC address of the Ethernet device connected to the first radio station bridge address.
  • one A-MSDU subframe in the A-MSDU is carried by the WLAN data frame sent by the second wireless station bridge.
  • the destination address is the MAC address of the Ethernet device connected to the first wireless station bridge, and the A-MSDU subframe.
  • the recipient MAC address in the frame header of the second WLAN data frame is the MAC address of the first wireless station bridge.
  • the receiving party MAC address in the frame header of the second WLAN data frame is, according to the correspondence between the source MAC address of the first Ethernet data frame and the virtual interface MAC address sent by the first WLAN access device, and the second wireless
  • the destination address of the A-MSDU carried by the WLAN data frame sent by the site bridge is the MAC address of the Ethernet device connected to the first wireless station bridge, and the virtual interface MAC address corresponding to the destination address of the A-MSDU subframe.
  • the MAC address in the header of the second WLAN data frame also includes the BSS ID.
  • the wireless AP After the wireless AP receives the correspondence between the MAC address of the Ethernet device connected to the second wireless station bridge and the MAC address of the virtual interface sent by the second wireless station bridge, the wireless AP broadcasts the corresponding relationship.
  • the first WLAN access device receives the corresponding relationship.
  • the first WLAN access device receives the second WLAN data frame sent by the wireless AP. If the second WLAN data frame carries the MSDU, the first wireless station generates a second Ethernet data frame according to the second WLAN data frame.
  • the destination MAC address of the second Ethernet data frame is based on the correspondence between the source MAC address of the first Ethernet data frame and the virtual interface MAC address corresponding to the source MAC address, and the second WLAN data.
  • the destination in the frame header of the second WLAN data frame is because the receiver MAC address in the frame header of the second WLAN data frame is the virtual interface MAC address corresponding to the MAC address of the Ethernet device connected to the first wireless station bridge.
  • the MAC address is the MAC address of the Ethernet device connected to the first wireless site bridge.
  • the source MAC address of the second Ethernet data frame is, according to the correspondence between the virtual interface MAC address of the second wireless station bridge and the MAC address of the Ethernet device connected to the second wireless station bridge, The MAC address corresponding to the source MAC address in the frame header of the second WLAN data frame.
  • the source MAC address in the frame header of the second WLAN data frame is the sender MAC address in the frame header of the WLAN data frame sent by the second wireless station bridge, that is, the Ethernet data frame is sent to the second wireless station bridge.
  • the virtual interface MAC address corresponding to the MAC address of the Ethernet device, so the source MAC address of the second Ethernet data frame is the MAC address of the Ethernet device that sends the Ethernet data frame to the second wireless station bridge.
  • the first WLAN access device generates a second Ethernet data frame according to the A-MSDU subframe in the A-MSDU carried by the second WLAN data frame.
  • the destination MAC address and the source MAC address of the second Ethernet data frame are the destination address and the source address of the A-MSDU subframe, respectively.
  • the destination MAC address in the frame header of the first WLAN data frame is the first Ethernet data frame.
  • Destination MAC address which is the broadcast MAC address or multicast MAC address.
  • the wireless AP After receiving the first WLAN data frame, the wireless AP sends a third WLAN data frame.
  • the receiver MAC address in the frame header of the third WLAN data frame is the destination MAC address in the frame header of the first WLAN data frame, that is, the broadcast MAC address or the multicast MAC address.
  • the sender MAC address in the frame header of the third WLAN data frame is the wireless AP MAC address.
  • the MSDU is carried in the third WLAN data frame
  • the MSDU is the MSDU carried by the first WLAN data frame
  • the MAC address in the frame header of the third WLAN data frame further includes the source MAC address.
  • the source MAC address is the sender MAC address in the frame header of the first WLAN data frame.
  • the MSDU in the A-MSDU subframe of the A-MSDU is the MSDU carried by the first WLAN data frame
  • the destination address of the A-MSDU subframe is the first The destination MAC address in the frame header of a WLAN data frame, that is, the broadcast MAC address or the multicast MAC address.
  • the source address of the A-MSDU subframe is the sender MAC address in the frame header of the first WLAN data frame. If the A-MSDU is carried in the third WLAN data frame, the MAC address in the frame header of the third WLAN data frame further includes the BSS ID.
  • the first Ethernet data frame is a broadcast data frame or a multicast data frame
  • the first WLAN data frame carries the A-MSDU
  • the first Ethernet data frame carries the A-MSDU
  • the destination address of the A-MSDU subframe is the destination MAC address of the first Ethernet data frame, that is, the broadcast MAC address or the multicast MAC address
  • the source address of the A-MSDU subframe is the first Ethernet data frame.
  • the receiver MAC address in the frame header of the third WLAN data frame is the destination address of the A-MSDU subframe, that is, the broadcast MAC address or the multicast MAC address.
  • the sender MAC address in the frame header of the third WLAN data frame is the MAC address of the wireless AP. If the MSDU is carried in the third WLAN data frame, the MSDU is the MSDU of the A-MSDU subframe corresponding to the first Ethernet data frame in the A-MSDU carried by the first WLAN data frame.
  • the MAC address in the header of the third WLAN data frame further includes a source MAC address.
  • the source MAC address in the frame header of the third WLAN data frame is the source MAC address of the A-MSDU subframe corresponding to the first Ethernet data frame in the A-MSDU carried by the first WLAN data frame. If the A-MSDU is carried in the third WLAN data frame, one A-MSDU subframe in the A-MSDU is in the A-MSDU carried by the first WLAN data frame, corresponding to the first Ethernet data frame, A-MSDU subframe. If the A-MSDU is carried in the third WLAN data frame, the MAC address in the frame header of the third WLAN data frame further includes the BSS ID.
  • the second wireless station bridge receives the third WLAN data frame. If the third WLAN data frame carries the A-MSDU, the second wireless station bridge generates the second according to the A-MSDU subframe in the A-MSDU carried by the third WLAN data frame.
  • the destination MAC address of the second Ethernet data frame is the destination address of the A-MSDU subframe.
  • the source MAC address of the second Ethernet data frame is a correspondence between the source MAC address of the first Ethernet data frame broadcasted by the wireless AP and the virtual interface MAC address corresponding to the source MAC address, and the A-MSDU
  • the source MAC address of the second Ethernet data frame is the MAC address of the first Ethernet device, because the source address of the A-MSDU subframe is a virtual interface MAC address corresponding to the source MAC address of the first Ethernet data frame. .
  • the first WLAN access device Because the receiver MAC address in the frame header of the fifth WLAN data frame is a broadcast MAC address or a multicast MAC address, the first WLAN access device also receives the fifth WLAN data frame. If the fifth WLAN data frame carries the MSDU, the first A WLAN access device checks the source MAC address in the header of the fifth WLAN data frame. If the source MAC address in the frame header of the fifth WLAN data frame is the virtual interface MAC address of the first WLAN access device, that is, the source MAC address is one of the plurality of virtual interface MAC addresses of the first WLAN access device, the first The WLAN access device discards the fifth WLAN data frame.
  • the first WLAN access device acquires each A-MSDU subframe in the A-MSDU carried by the fifth WLAN data frame.
  • the first WLAN access device checks the source address of the acquired A-MSDU subframe, and if the source address of the A-MSDU subframe is the virtual interface MAC address of the first WLAN access device, that is, the source address is the first WLAN access device.
  • the first WLAN access device discards the A-MSDU subframe.
  • FIG. 5 is a schematic diagram of another wireless local area network access apparatus according to an embodiment of the present invention.
  • the other WLAN access device is implemented by a wireless AP.
  • the wireless AP may specifically be a wireless router.
  • the wireless AP can be 102 in Figure 1.
  • Another WLAN access device includes a receiving module 502, a generating module 504, and a transmitting module 506.
  • the receiving module 502 is configured to receive, by the first wireless station bridge, a correspondence between a virtual interface MAC address of the first wireless station bridge and a MAC address of an Ethernet device connected to the first wireless station bridge. .
  • the first wireless station bridge in the embodiment of the present invention may be any wireless station bridge.
  • the first wireless station bridge in the following description is 104 in FIG.
  • a wireless site bridge generates multiple virtual interface MAC addresses. Any one of the multiple virtual interface MAC addresses generated by a wireless station bridge is different from the wireless station bridge's own MAC address. Any of the multiple virtual interface MAC addresses generated by a wireless site bridge has a different MAC address than the Ethernet device to which the wireless site bridge is connected.
  • the first wireless station bridge After receiving the Ethernet data frame, the first wireless station bridge generates a correspondence between the source MAC address of the Ethernet data frame and a virtual interface MAC address.
  • the virtual interface MAC address is one of a plurality of virtual interface MAC addresses generated by the first wireless site bridge.
  • the first wireless station bridge generates the corresponding relationship in the following manner.
  • the first wireless site bridge may generate multiple virtual interface MAC addresses when it is associated with another WLAN access device. After receiving the Ethernet data frame, selecting an unused virtual interface MAC address from the plurality of generated virtual interface MAC addresses, and generating a correspondence between the source MAC address of the Ethernet data frame and the unused virtual interface MAC address. relationship. The selected virtual interface MAC address becomes the used virtual interface MAC address.
  • the first wireless station bridge may also generate a virtual interface MAC address corresponding to the source MAC address of the Ethernet data frame after receiving the Ethernet data frame.
  • the generated virtual interface MAC address is different from the virtual interface MAC address that the first wireless site bridge has generated.
  • the first wireless station bridge generates a source MAC address of the Ethernet data frame and the Correspondence between generated virtual interface MAC addresses.
  • the first wireless station bridge may also generate multiple virtual interface MAC addresses when it is associated with another WLAN access device. After receiving the Ethernet data frame, if the generated multiple virtual interface MAC addresses have been used, a virtual interface MAC address corresponding to the source MAC address of the Ethernet data frame is newly generated. The newly created virtual interface MAC address is different from the virtual interface MAC address that the first wireless site bridge has generated. The first wireless station bridge generates a correspondence between the source MAC address of the Ethernet data frame and the newly generated virtual interface MAC address.
  • the first wireless station bridge may also generate the virtual interface MAC address in other manners, regardless of the manner, the used multiple virtual interface MAC addresses of the first wireless station bridge communicate with the first wireless station bridge.
  • the MAC addresses of multiple Ethernet devices correspond one-to-one. That is, all source MAC addresses in the correspondence between the source MAC address of all the Ethernet data frames and the virtual interface MAC address generated by the first wireless station bridge are dual-shot to all virtual interface MAC addresses in the corresponding relationship. .
  • a wireless site bridge can randomly generate a virtual interface MAC address, or generate a virtual interface MAC address according to a preset rule. For example, the wireless site bridge can generate a 24 MSB of the virtual interface MAC address to a fixed value, such as 0UI, followed by the 24 MSB, the AID of the wireless station bridge on the AP, because the 2 MSB of the AID is a fixed value, Here you can only put 14 LSBs of AID.
  • the 10 LSB of the virtual interface MAC address is a reserved bit, padded or random number.
  • the wireless site bridge may follow the preset algorithm according to the source MAC address.
  • the address calculates the virtual interface MAC address to be generated.
  • the first wireless station bridge After generating the correspondence, the first wireless station bridge sends the corresponding relationship to another WLAN access device associated with the first wireless station bridge. After the receiving module 502 of the other WLAN access device receives the correspondence, the sending module 508 of the other WLAN access device broadcasts the corresponding relationship.
  • the receiving module 502 of another WLAN access device may further receive, between the virtual interface MAC address of the second wireless station bridge and the MAC address of the Ethernet device connected to the second wireless station bridge, from the second wireless station bridge. Correspondence. After the receiving module 502 of the other WLAN access device receives the correspondence, the sending module 506 broadcasts the corresponding relationship. The first wireless site bridge receives the correspondence.
  • the receiving module 502 is further configured to receive a first wireless local area network data frame from the second wireless station bridge.
  • the header of the first WLAN data frame includes a sender MAC address and a receiver MAC address.
  • the second wireless station bridge receives an Ethernet data frame sent by the Ethernet device, and the source MAC address of the Ethernet data frame is a MAC address of an Ethernet device connected to the second wireless station bridge.
  • the second wireless station bridge generates a first WLAN data frame according to the Ethernet data frame.
  • the sender MAC address in the frame header of the first WLAN data frame is, and The virtual interface MAC address corresponding to the source MAC address of the Ethernet data frame, where the virtual interface MAC address is one of multiple virtual interface MAC addresses of the second wireless station bridge.
  • the first WLAN data frame carries the A-MSDU
  • the source address of the A-MSDU subframe in the A-MSDU is the virtual interface MAC address corresponding to the source MAC address of the Ethernet data frame.
  • the sender MAC address in the frame header of the first WLAN data frame may be the MAC address of the second wireless station bridge.
  • a WLAN data frame is a frame in which data is transmitted in a WLAN.
  • the WLAN data frame includes a frame header and an MSDU, or includes a frame header and A-MSDU 0 includes a plurality of A-MSDU subframes in one A-MSDU, and each A-MSDU subframe includes an A-MSDU subframe header and an MSDU.
  • the A-MSDU subframe header includes a source address, a destination address, and a length of the MSDU in the A-MSDU subframe.
  • the frame header of the WLAN data frame is the MAC header.
  • the number of MAC addresses in the header of the WLAN data frame transmitted between the wireless STA and the wireless AP is three.
  • the generating module 504 is configured to generate a second wireless local area network data frame according to the first wireless local area network data frame if the target device of the first wireless local area network data frame is a device connected to the first wireless station bridge.
  • the header of the second WLAN data frame includes a sender MAC address and a receiver MAC address.
  • the receiver MAC address in the frame header of the second WLAN data frame is between the virtual interface MAC address of the first wireless station bridge and the MAC address of the Ethernet device connected to the first wireless station bridge.
  • a virtual interface MAC address corresponding to a MAC address of a target device of the first wireless local area network data frame.
  • the sender MAC address in the frame header of the second WLAN data frame is the MAC address of the wireless AP implementing the other WLAN access device.
  • the destination MAC address is included in the header of the first WLAN data frame.
  • the destination MAC address is the MAC address of the target device.
  • the target device of the first WLAN data frame is a device connected to the first wireless site bridge, that is, the destination MAC address in the frame header of the first WLAN data frame is the MAC address of the device connected to the first wireless site bridge.
  • the MSDU is the MSDU carried by the WLAN data frame sent by the second wireless station bridge, and the MAC address in the frame header of the second WLAN data frame further includes the source MAC address.
  • the source MAC address is the sender MAC address in the frame header of the first WLAN data frame.
  • the MSDU in the A-MSDU subframe of the A-MSDU is the MSDU carried by the first WLAN data frame
  • the destination address of the A-MSDU subframe is the first A destination MAC address in a frame header of a WLAN data frame
  • the source address of the A-MSDU subframe being a sender MAC address in a frame header of the first WLAN data frame.
  • the MAC address in the header of the second WLAN data frame also includes the BSS ID.
  • the recipient MAC address in the frame header of the second WLAN data frame may be the MAC address of the second wireless station bridge.
  • the target device is a device connected to the wireless AP implementing another WLAN access device via Ethernet, for example, FIG.
  • the device 118, the generating module 504 is further configured to generate the first Ethernet data frame according to the third WLAN data frame.
  • the third WLAN data frame carries the MSDU
  • the frame header of the third WLAN data frame includes a destination MAC address, a sender MAC address, and a receiver MAC address.
  • the target device of the third WLAN data frame is a device connected to the wireless AP through the Ethernet, that is, the destination MAC address in the frame header of the third WLAN data frame is the MAC address of the device connected to the wireless AP through the Ethernet.
  • the destination MAC address of the first Ethernet data frame is the destination MAC address in the frame header of the third WLAN data frame.
  • the source MAC address of the first Ethernet data frame is, according to the correspondence between the virtual interface MAC address of the second wireless station bridge and the MAC address of the Ethernet device connected to the second wireless station bridge, and the third WLAN data.
  • the source MAC address is the MAC address of the Ethernet device that sends the Ethernet data frame to the second wireless site bridge.
  • the frame header of the third WLAN data frame includes a BSS ID, a sender MAC address, and a receiver MAC address.
  • the target device of the third WLAN data frame is a device that is connected to the wireless AP through the Ethernet, that is, the destination address of any one of the multiple A-MSDU subframes in the A-MSDU carried by the third WLAN data frame is the wireless AP.
  • the generating module 504 generates the first Ethernet data frame according to the destination address in the third WLAN data frame as the A-MSDU subframe of the MAC address of the device connected to the wireless AP through the Ethernet.
  • the destination MAC address of the first Ethernet data frame is the destination address of the A-MSDU subframe.
  • the source MAC address of the first Ethernet data frame is the source address of the A-MSDU subframe.
  • the sending module 506 sends the fifth WLAN data frame.
  • the receiver MAC address in the frame header of the fifth WLAN data frame is the destination MAC address in the frame header of the first WLAN data frame, that is, the broadcast MAC address or the multicast MAC address.
  • the sender MAC address in the frame header of the fifth WLAN data frame is the MAC address of the wireless AP. If the MSDU is carried in the fifth WLAN data frame, the MSDU is the MSDU carried by the first WLAN data frame, and the MAC address in the frame header of the fifth WLAN data frame further includes the source MAC address.
  • the source MAC address is the sender MAC address in the frame header of the first WLAN data frame. If the fifth WLAN data frame carries the A-MSDU, the MSDU in one A-MSDU subframe in the A-MSDU is the first The MSDU of the WLAN data frame, the destination address of the A-MSDU subframe is the destination MAC address in the frame header of the first WLAN data frame, that is, the broadcast MAC address or the multicast MAC address, and the source of the A-MSDU subframe The address is the sender MAC address in the frame header of the first WLAN data frame. The MAC address in the frame header of the fifth WLAN data frame further includes a BSS ID.
  • the A-MSDU carried by the first WLAN data frame includes multiple A-MSDU subframes.
  • the destination address of the multiple A-MSDU subframes is the MAC address of the target device.
  • the target device of the first WLAN data frame is a device connected to the first wireless station bridge, that is, the destination address of any one of the multiple A-MSDU subframes in the A-MSDU carried by the first WLAN data frame is the first address The MAC address of the device connected to the wireless site bridge.
  • the sender MAC address in the frame header of the second WLAN data frame is the MAC address of the wireless AP.
  • the MSDU is carried in the second WLAN data frame
  • the MSDU is in the A-MSDU carried by the first WLAN data frame
  • the destination address is the MAC address of the Ethernet device connected to the first wireless station bridge
  • A-MSDU The MSDU of the subframe.
  • the receiver MAC address in the frame header of the second WLAN data frame is, according to the virtual interface MAC address of the first wireless station bridge sent by the first wireless station bridge and the Ethernet device connected to the first wireless station bridge.
  • the correspondence between the MAC addresses and the destination address of the A-MSDU subframe corresponding to the MAC address of the Ethernet device connected to the first wireless station bridge in the A-MSDU carried by the first WLAN data frame Virtual interface MAC address.
  • the MAC address in the header of the second WLAN data frame also includes the source MAC address.
  • the source MAC address in the frame header of the second WLAN data frame is, according to the correspondence between the MAC address of the Ethernet device connected to the second wireless station bridge and the virtual interface MAC address sent by the second wireless station bridge, and the first The destination address of the A-MSDU carried by the WLAN data frame is the virtual interface MAC address corresponding to the source address of the A-MSDU subframe of the MAC address of the Ethernet device connected to the first wireless station bridge.
  • the sender MAC address in the frame header of the first WLAN data frame is a virtual interface MAC address corresponding to the source MAC address of the Ethernet data frame received by the second wireless station bridge
  • the frame header of the second WLAN data frame The source MAC address may be the sender MAC address in the frame header of the first WLAN data frame.
  • one A-MSDU subframe in the A-MSDU is in the A-MSDU carried by the first WLAN data frame, and the destination address is connected to the first wireless station bridge.
  • the recipient MAC address in the frame header of the second WLAN data frame is the MAC address of the first wireless station bridge.
  • the receiving party MAC address in the frame header of the second WLAN data frame is the virtual interface MAC address of the first wireless station bridge and the Ethernet device connected to the first wireless station bridge according to the first wireless station bridge.
  • the correspondence between the MAC addresses and the destination address of the A-MSDU subframe corresponding to the MAC address of the Ethernet device connected to the first wireless station bridge in the A-MSDU carried by the first WLAN data frame Virtual interface MAC address.
  • the MAC address in the header of the second WLAN data frame also includes the BSS ID.
  • the sending module 506 sends the fifth. WLAN data frame.
  • the receiver MAC address in the frame header of the fifth WLAN data frame is the destination address of the A-MSDU subframe, that is, the broadcast MAC address or the multicast MAC address.
  • the sender MAC address in the frame header of the fifth WLAN data frame is the MAC of the wireless AP. address. If the MSDU is carried in the fifth WLAN data frame, the MSDU is the MSDU of the A-MSDU subframe in the A-MSDU carried by the first WLAN data frame.
  • the MAC address in the frame header of the fifth WLAN data frame further includes a source MAC address.
  • the source MAC address in the frame header of the fifth WLAN data frame is the source MAC address of the A-MSDU subframe in the A-MSDU carried by the first WLAN data frame. If the A-MSDU is carried in the fifth WLAN data frame, one A-MSDU subframe in the A-MSDU is the A-MSDU subframe in the A-MSDU carried by the first WLAN data frame. If the A-MSDU is carried in the fifth WLAN data frame, the MAC address in the frame header of the fifth WLAN data frame further includes the BSS ID.
  • the transmitting module 506 also broadcasts or multicasts Ethernet data frames over Ethernet.
  • the destination MAC address of the Ethernet data is the destination address of the A-MSDU subframe, that is, a broadcast MAC address or a multicast MAC address.
  • the source MAC address of the Ethernet data frame is, according to the correspondence between the virtual interface MAC address of the second wireless station bridge and the MAC address of the Ethernet device connected to the second wireless station bridge, and the foregoing A-MSDU subframe MAC address corresponding to the source MAC address. Because the source address of the A-MSDU subframe is a virtual interface MAC address corresponding to the MAC address of the Ethernet device connected to the second wireless station bridge, the source MAC address of the Ethernet data frame is connected to the second wireless site bridge. MAC address of the Ethernet device.
  • the first wireless station bridge receives the fifth WLAN data frame. If the fifth WLAN data frame carries the A-MSDU, the first wireless station bridge generates an Ethernet according to the A-MSDU subframe in the A-MSDU carried by the fifth WLAN data frame. Data Frame.
  • the destination MAC address of the Ethernet data frame is the destination address of the A-MSDU subframe.
  • the source MAC address of the Ethernet data frame is between the virtual interface MAC address of the second wireless station bridge and the MAC address of the Ethernet device connected to the second wireless station bridge, which is broadcast by the sending module 506 of the other WLAN access device. Correspondence relationship, a MAC address corresponding to the source MAC address of the A-MSDU subframe.
  • the source address of the A-MSDU subframe is a virtual interface MAC address corresponding to the MAC address of the Ethernet device connected to the second wireless station bridge
  • the source MAC address of the Ethernet data frame is connected to the second wireless site bridge. MAC address of the Ethernet device.
  • the second wireless station bridge Because the receiver MAC address in the frame header of the fifth WLAN data frame is a broadcast MAC address or a multicast MAC address, the second wireless station bridge also receives the fifth WLAN data frame. If the MSDU is carried in the fifth WLAN data frame, the second radio station bridge checks the source MAC address in the frame header of the fifth WLAN data frame. If the source MAC address in the frame header of the fifth WLAN data frame is the virtual interface MAC address of the second wireless station bridge, that is, the source MAC address is one of the plurality of virtual interface MAC addresses of the second wireless station bridge, the second The wireless site bridge discards the fifth WLAN data frame.
  • the second radio station bridge acquires each A-MSDU subframe in the A-MSDU carried by the fifth WLAN data frame.
  • the second radio station bridge checks the source address of the obtained A-MSDU subframe, and if the source address of the A-MSDU subframe is the virtual interface MAC address of the second radio station bridge, that is, the source address is the second radio station bridge.
  • the second radio site bridge discards the A-MSDU subframe.
  • the receiving module 502 receives the second Ethernet data frame from the second Ethernet device, and the second ether
  • the destination MAC address of the network data frame is the MAC address of the device connected to the first wireless station bridge
  • the generating module 504 generates a fourth WLAN data frame according to the second Ethernet data frame.
  • the second Ethernet device is a device that is connected to the wireless AP via Ethernet, such as device 118 in FIG.
  • the frame header of the fourth WLAN data frame includes a source MAC address, a sender MAC address, and a receiver MAC address.
  • the source MAC address in the frame header of the fourth WLAN data frame is the source MAC address of the second Ethernet data frame.
  • the receiver MAC address in the frame header of the fourth WLAN data frame is, according to the correspondence between the virtual interface MAC address of the first wireless station bridge and the MAC address of the Ethernet device connected to the first wireless station bridge, and the second The virtual interface MAC address of the first wireless site bridge corresponding to the destination MAC address of the Ethernet data frame.
  • the sender MAC address in the frame header of the fourth WLAN data frame is the MAC address of the wireless AP, that is, the BSS ID.
  • the sending module 506 sends the fourth wireless local area network data frame.
  • the sending module 506 is configured to send the second wireless local area network data frame.
  • the first wireless station bridge receives the second WLAN data frame transmitted by the transmitting module 506 of the other WLAN access device. If the second WLAN data frame carries the MSDU, the first wireless station generates a third Ethernet data frame according to the second WLAN data frame.
  • the destination MAC address of the third Ethernet data frame is, according to the correspondence between the virtual interface MAC address of the first wireless station bridge and the MAC address of the Ethernet device connected to the first wireless station bridge, and the second The MAC address corresponding to the receiver MAC address in the frame header of the WLAN data frame.
  • the destination in the frame header of the second WLAN data frame is because the receiver MAC address in the frame header of the second WLAN data frame is the virtual interface MAC address corresponding to the MAC address of the Ethernet device connected to the first wireless station bridge.
  • the MAC address is the MAC address of the Ethernet device connected to the first wireless site bridge.
  • the source MAC address of the third Ethernet data frame is, according to the correspondence between the virtual interface MAC address of the second wireless station bridge and the MAC address of the Ethernet device connected to the second wireless station bridge, and the second WLAN data
  • the MAC address corresponding to the source MAC address in the frame header of the frame Because the source MAC address in the frame header of the second WLAN data frame is the sender MAC address in the frame header of the WLAN data frame sent by the second wireless station bridge, that is, the Ethernet data frame is sent to the second wireless station bridge.
  • the virtual interface MAC address corresponding to the MAC address of the Ethernet device, so the source MAC address of the third Ethernet data frame is the MAC address of the Ethernet device that sends the Ethernet data frame to the second wireless station bridge. If the second WLAN data frame carries the A-MSDU, the first wireless station generates a third Ethernet data frame according to the A-MSDU subframe in the A-MSDU carried by the second WLAN data frame.
  • the destination MAC address and the source MAC address of the third Ethernet data frame are the destination address and the source address of the A-MSDU subframe, respectively.
  • the modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be implemented; in addition, the specific names of the modules are only for the purpose of distinguishing each other. It is not intended to limit the scope of protection of the present invention.
  • FIG. 6 is a schematic structural diagram of a wireless station according to an embodiment of the present invention.
  • the wireless station provides bridging capabilities and can therefore also be referred to as a wireless site bridge.
  • the wireless site bridge may be any one of the wireless station bridges in Fig. 1.
  • the wireless station bridge in the following description is 104 in Fig. 1.
  • the wireless site bridge can be specifically a mobile phone, a variety of computers, tablets, PDAs, MIDs or e-book readers.
  • the wireless site bridge includes an Ethernet adapter 602, a wireless local area network adapter 604, a processor 606, and a memory 608.
  • the Ethernet adapter 602 is a network interface controller (English: network interface controller, abbreviation: NIC) for providing an Ethernet interface.
  • the wireless LAN adapter 604 is a wireless network interface controller (English: wireless network interface controller, abbreviation: WNIC).
  • the processor 606 can be a central processing unit (English: central processing unit, abbreviated: CPU).
  • the memory 608 may be a volatile memory, such as a random access memory (English: random-access memory, abbreviation: RAM), or a non-volatile memory (English: non-volatile memory), for example, Read memory (English: read-only memory, abbreviation: ROM), flash memory (English: flash memory), hard disk (English: hard disk drive, abbreviation: HDD) or solid state drive (English: solid-state drive, abbreviation: SSD).
  • the Ethernet adapter 602, the wireless LAN adapter 604 and the memory 608 are all coupled to the processor 606.
  • the thick line in Figure 6 is the bus (English: bus).
  • the processor 606 performs the partial operational steps of the embodiment shown in FIG. 2 in accordance with the program instructions stored in the memory 608.
  • the Ethernet adapter 602 receives the first Ethernet data frame sent by the first Ethernet device, where the source MAC address of the first Ethernet data frame is the MAC address of the first Ethernet device connected to the first wireless station bridge. .
  • the first Ethernet device is a device connected to the first wireless site bridge via Ethernet, such as 110 in Figure 1 or
  • the processor 606 generates a first wireless local area network data frame according to the first Ethernet data frame (hereinafter referred to as WLAN) Data Frame) .
  • the frame header of the first WLAN data frame includes a sender MAC address and a receiver MAC address.
  • the sender MAC address in the frame header of the first WLAN data frame is a virtual interface MAC address corresponding to the source MAC address of the first Ethernet data frame, and the virtual interface MAC address is the first wireless One of the multiple virtual interface MAC addresses of the site bridge.
  • a wireless station bridge processor generates multiple virtual interface MAC addresses for the wireless site bridge. Any one of the generated virtual interface MAC addresses is different from the wireless station bridge's own MAC address.
  • the processor 606 acquires the first Ethernet data frame.
  • the processor 606 generates a correspondence between the source MAC address of the first Ethernet data frame and a virtual interface MAC address.
  • the virtual interface MAC address is one of a plurality of virtual interface MAC addresses generated by the processor 606.
  • the processor 606 generates the corresponding relationship in the following manner.
  • the processor 606 can generate a plurality of virtual interface MAC addresses when the first wireless site bridge is associated with the wireless AP. After receiving the first Ethernet data frame, selecting an unused virtual interface MAC address from the plurality of generated virtual interface MAC addresses, generating a source MAC address of the first Ethernet data frame and the unused virtual interface MAC The correspondence between addresses. The selected virtual interface MAC address becomes the used virtual interface MAC address.
  • the processor 606 may also generate a virtual interface MAC address corresponding to the source MAC address of the first Ethernet data frame after receiving the first Ethernet data frame.
  • the generated virtual interface MAC address is different from the virtual interface MAC address that processor 606 has generated.
  • the processor 606 generates a correspondence between the source MAC address of the first Ethernet data frame and the generated virtual interface MAC address.
  • the processor 606 can also generate multiple virtual interface MAC addresses when the first wireless site bridge is associated with the wireless AP. After receiving the first Ethernet data frame, if the plurality of generated virtual interface MAC addresses have been used, a virtual interface MAC address corresponding to the source MAC address of the first Ethernet data frame is newly generated. The newly generated virtual interface MAC address is different from the virtual interface MAC address that processor 606 has generated. The processor 606 generates a correspondence between the source MAC address of the first Ethernet data frame and the newly generated virtual interface MAC address.
  • the processor 606 may also generate the virtual interface MAC address in other manners, regardless of the manner, the used multiple virtual interface MAC addresses of the first wireless station bridge and the plurality of ethers communicated with the first wireless station bridge.
  • the MAC addresses of the network devices correspond one-to-one. That is to say, all source MAC addresses in the correspondence between the source MAC address of all Ethernet data frames and the virtual interface MAC address generated by the processor 606 are dual-shot to all virtual interface MAC addresses in the corresponding relationship.
  • the processor 606 can randomly generate a virtual interface MAC address, and can also generate a virtual interface MAC address according to a preset rule. For example, the processor 606 can set the generated 24 MSB of the virtual interface MAC address to a fixed value, For example, 0UI, immediately following the 24MSB is the AID of the wireless station bridge on the AP. Since the 2 MSB of the AID is a fixed value, only 14 LSBs of the AID can be placed here. The 10 LSB of the virtual interface MAC address is a reserved bit, padded or random number.
  • the processor 606 newly generates a virtual interface MAC address corresponding to the source MAC address of the Ethernet data frame, and the processor 606 may follow a preset algorithm.
  • the virtual interface MAC address to be generated is calculated according to the source MAC address.
  • the processor 606 After generating the correspondence, the processor 606 sends the corresponding relationship to the wireless AP associated with the first wireless station bridge. After receiving the corresponding relationship, the wireless AP broadcasts the correspondence. According to the correspondence, the wireless AP or other wireless station bridge can know which Ethernet device the frame or subframe containing the virtual interface MAC address comes from.
  • a WLAN data frame (English: data frame) is a frame for transmitting data in a wireless local area network.
  • the WLAN data frame includes a frame header and a MAC service data unit (English: MAC service data unit, abbreviation: MSDU), or includes a frame header and an aggregated MSDU (English: MSDU, abbreviated as A-MSDU).
  • the MSDU includes a portion of the received Ethernet data frame other than the source MAC address and the destination MAC address.
  • the A-MSDU aggregates multiple MSDUs in one WLAN data frame for transmission. Only multiple MSDUs with the same sender address (English: transmitter address) and receiver address (English address: receiver address) in the WLAN are aggregated and transmitted in one A-MSDU.
  • a plurality of A-MSDU subframes are included in one A-MSDU, and each A-MSDU subframe includes an A-MSDU subframe header and an MSDU.
  • the A-MSDU sub-frame header includes a source address (English: source address, abbreviation: SA), a destination address (English: destination address, abbreviation: SA), and the length of the MSDU in the A-MSDU subframe.
  • the frame header of the WLAN data frame is the MAC header (English: MAC header).
  • the number of MAC addresses in the header of the WLAN data frame transmitted between the wireless STA and the wireless AP is three.
  • the MAC address in the frame header of the WLAN data frame always includes the sender address and the receiver address. Since both the sender address and the receiver address are MAC addresses, the following are respectively referred to as the sender MAC address and the receiver MAC address.
  • the MAC address in the frame header of the WLAN data frame also includes the destination MAC address.
  • the MAC address in the frame header of the WLAN data frame further includes a basic service set identifier (abbreviation: BSSID), that is, the MAC of the wireless AP. address.
  • BSSID basic service set identifier
  • the first WLAN data frame is sent by the first wireless station bridge to the wireless AP, so the receiver MAC address in the frame header of the first WLAN data frame is the MAC address of the wireless AP.
  • the sender MAC address of the WLAN data frame sent by the usual wireless station is the MAC address of the wireless station. If the wireless station bridge uses the wireless station bridge's own MAC address as the sender MAC address, the wireless AP that receives the WLAN data frame and the wireless station that is forwarded by the wireless AP to the WLAN data frame cannot distinguish that the device that transmits the WLAN data frame is The wireless site bridge itself is also a device that is connected to the wireless site bridge via Ethernet. And if the wireless site bridge Using the MAC address of the received Ethernet data frame as the sender MAC address of the WLAN data frame, the wireless AP cannot identify the sender MAC address of the WLAN data frame.
  • the processor 606 generates a virtual interface MAC address for each Ethernet device connected to the first wireless station bridge through the Ethernet, and uses the first Ethernet when transmitting the first WLAN data frame.
  • the virtual interface MAC address corresponding to the source MAC address of the data frame is used as the sender MAC address of the first WLAN data frame.
  • the foregoing Ethernet device connected to the first wireless station bridge through the Ethernet may be a device directly connected to the first wireless site bridge, or may be connected to the first through a network switch or an Ethernet hub (English: Ethernet hub) Wireless site bridge equipment.
  • the destination MAC address in the frame header of the first WLAN data frame is the destination MAC address of the first Ethernet data frame.
  • Processor 606 can aggregate multiple MSDUs.
  • the processor 606 generates a first WLAN data frame according to the first Ethernet data frame and other Ethernet data frames, and the first WLAN data frame carries the A-MSDU.
  • the A-MSDU includes a plurality of A-MSDU subframes, and one of the A-MSDU subframes is generated according to the first Ethernet data frame.
  • the destination address of the A-MSDU subframe is the destination MAC address of the first Ethernet data frame. If the first Ethernet data frame is a unicast data frame, the source address of the A-MSDU subframe is the source MAC address of the first Ethernet data frame.
  • the destination address of the A-MSDU subframe is the destination MAC address of the first Ethernet data frame, that is, the broadcast MAC address or the multicast MAC address
  • the A The source address of the MSDU subframe is a virtual interface MAC address corresponding to the source MAC address of the first Ethernet data frame.
  • the sender MAC address of the first WLAN data frame carrying the A-MSDU may not be the virtual interface MAC address, but the MAC address of the first wireless station bridge.
  • FIG. 7 is a schematic structural diagram of a wireless access point according to an embodiment of the present invention.
  • the wireless access point includes a baseband processor (English: baseband proces sor) 702, a processor 704, and a memory 706.
  • Baseband processor 702 is coupled to processor 704, which is coupled to processor 704.
  • the baseband processor 702 is a baseband processor for processing WLAN signals.
  • the baseband processor 702 acquires the wireless signal, converts the wireless signal to a message format that the processor 704 can process, and converts the message provided by the processor 704 into a wireless signal.
  • the baseband processor 702 first demodulates (demodula te) a wireless signal, that is, converts the simulated wireless signal into a digital signal, and then assembles the digital signal into a message according to a predetermined protocol; and, the baseband processor 702
  • the message provided by the processor 704 is converted into a digital signal according to a predetermined protocol, and the digital signal is Modulation (English: modula te) is a wireless signal.
  • the wireless AP may include one or more baseband processors 702, each of which is coupled to the processor 704.
  • the wireless AP only communicates in the 2.4 GHz band, and the wireless AP includes only one baseband processor 702 that processes the 2.4 GHz wireless signal.
  • a wireless AP can communicate in the 2.4 GHz band, the 5 GHz band, and the 60 GHz band, and the wireless AP includes a baseband processor 702 that processes 2.4 GHz wireless signals, and a baseband processor that processes 5 GHz wireless signals.
  • Processor 704 can be a CPU.
  • Memory 706 can be either volatile memory or non-volatile memory.
  • the wireless AP can also provide an Ethernet interface.
  • the wireless AP can also provide a wide area network (English: wide area network, abbreviation: WAN) interface.
  • the thick line in Figure 7 is the bus.
  • the processor 704 performs the following steps based on the program instructions stored by the memory 706:
  • the processor 704 receives, between the first wireless station bridge, the virtual interface MAC address of the first wireless station bridge and the MAC address of the Ethernet device connected to the first wireless station bridge through the baseband processor 702. Correspondence relationship.
  • the first wireless station bridge in the embodiment of the present invention may be any wireless station bridge.
  • the first wireless station bridge in the following description is 104 in FIG.
  • a wireless site bridge generates multiple virtual interface MAC addresses. Any one of the multiple virtual interface MAC addresses generated by a wireless station bridge is different from the wireless station bridge's own MAC address. Any of the multiple virtual interface MAC addresses generated by a wireless site bridge has a different MAC address than the Ethernet device to which the wireless site bridge is connected.
  • the first wireless station bridge After receiving the Ethernet data frame, the first wireless station bridge generates a correspondence between the source MAC address of the Ethernet data frame and a virtual interface MAC address.
  • the virtual interface MAC address is one of a plurality of virtual interface MAC addresses generated by the first wireless site bridge.
  • the first wireless station bridge generates the corresponding relationship in the following manner.
  • the first wireless site bridge can generate multiple virtual interface MAC addresses when it is associated with the wireless AP. After receiving the Ethernet data frame, selecting an unused virtual interface MAC address from the plurality of generated virtual interface MAC addresses, and generating a correspondence between the source MAC address of the Ethernet data frame and the unused virtual interface MAC address. relationship. The selected virtual interface MAC address becomes the used virtual interface MAC address.
  • the first wireless station bridge may also generate a virtual interface MAC address corresponding to the source MAC address of the Ethernet data frame after receiving the Ethernet data frame.
  • the generated virtual interface MAC address is different from the virtual interface MAC address that the first wireless site bridge has generated.
  • the first wireless station bridge generates a correspondence between the source MAC address of the Ethernet data frame and the generated virtual interface MAC address.
  • the first wireless station bridge may also generate multiple virtual interface MAC addresses when it is associated with the wireless AP. After receiving the Ethernet data frame, if the generated multiple virtual interface MAC addresses have been used, a virtual interface MAC address corresponding to the source MAC address of the Ethernet data frame is newly generated.
  • the newly generated virtual interface MAC address is different from the virtual interface MAC address that the first wireless site bridge has generated.
  • the first wireless station bridge generates a correspondence between the source MAC address of the Ethernet data frame and the newly generated virtual interface MAC address.
  • the first wireless station bridge may also generate the virtual interface MAC address in other manners, regardless of the manner, the used multiple virtual interface MAC addresses of the first wireless station bridge communicate with the first wireless station bridge.
  • the MAC addresses of multiple Ethernet devices correspond one-to-one. That is, all source MAC addresses in the correspondence between the source MAC address of all the Ethernet data frames and the virtual interface MAC address generated by the first wireless station bridge are dual-shot to all virtual interface MAC addresses in the corresponding relationship. .
  • a wireless site bridge can randomly generate a virtual interface MAC address, or generate a virtual interface MAC address according to a preset rule. For example, the wireless site bridge can generate a 24 MSB of the virtual interface MAC address to a fixed value, such as 0UI, followed by the 24 MSB, the AID of the wireless station bridge on the AP, because the 2 MSB of the AID is a fixed value, Here you can only put 14 LSBs of AID.
  • the 10 LSB of the virtual interface MAC address is a reserved bit, padded or random number.
  • the wireless site bridge may follow the preset algorithm according to the source MAC address.
  • the address calculates the virtual interface MAC address to be generated.
  • the first wireless station bridge After the correspondence is generated, the first wireless station bridge sends the corresponding relationship to the wireless AP associated with the first wireless station bridge. After the processor 704 of the wireless AP receives the correspondence through the baseband processor 702, the corresponding relationship is broadcast by the baseband processor 702.
  • the processor 704 can also receive, by the baseband processor 702, a virtual interface MAC address of the second wireless station bridge from the second wireless station bridge and a MAC address of the Ethernet device connected to the second wireless station bridge. Correspondence relationship. After the processor 704 receives the correspondence through the baseband processor 702, the corresponding relationship is broadcasted. The first wireless site bridge receives the correspondence.
  • processor 704 receives the first WLAN data frame from the second wireless site bridge via baseband processor 702.
  • the frame header of the first WLAN data frame includes a sender MAC address and a receiver MAC address.
  • the second wireless station bridge receives an Ethernet data frame sent by the Ethernet device, and the source MAC address of the Ethernet data frame is a MAC address of an Ethernet device connected to the second wireless station bridge.
  • the second wireless station bridge generates a first WLAN data frame according to the Ethernet data frame.
  • the sender MAC address in the frame header of the first WLAN data frame is a virtual interface MAC address corresponding to the source MAC address of the Ethernet data frame, and the virtual interface MAC address is the second wireless One of the virtual interface MAC addresses of the site bridge.
  • the first WLAN data frame carries the A-MSDU, and the source address of the A-MSDU subframe in the A-MSDU is the virtual interface MAC address corresponding to the source MAC address of the Ethernet data frame.
  • the sender MAC address in the frame header of the first WLAN data frame may be the MAC address of the second wireless station bridge.
  • a WLAN data frame is a frame in which data is transmitted in a WLAN.
  • the WLAN data frame includes a frame header and an MSDU, or includes a frame header and
  • A-MSDU 0 includes a plurality of A-MSDU subframes in one A-MSDU, and each A-MSDU subframe includes an A-MSDU subframe header and an MSDU.
  • the A-MSDU subframe header includes a source address, a destination address, and a length of the MSDU in the A-MSDU subframe.
  • the frame header of the WLAN data frame is the MAC header.
  • the number of MAC addresses in the header of the WLAN data frame transmitted between the wireless STA and the wireless AP is three.
  • the processor 704 is configured according to the first WLAN data frame. Generating a second WLAN data frame.
  • the frame header of the second WLAN data frame includes a sender MAC address and a receiver MAC address.
  • the receiver MAC address in the frame header of the second WLAN data frame is between the virtual interface MAC address of the first wireless station bridge and the MAC address of the Ethernet device connected to the first wireless station bridge.
  • a virtual interface MAC address corresponding to a MAC address of a target device of the first wireless local area network data frame is mapped to the first wireless local area network data frame.
  • the sender MAC address in the frame header of the second WLAN data frame is the MAC address of the wireless AP.
  • the destination MAC address is included in the header of the first WLAN data frame.
  • the destination MAC address is the MAC address of the target device.
  • the target device of the first WLAN data frame is a device connected to the wireless access point through the first wireless station bridge, that is, the destination MAC address in the frame header of the first WLAN data frame is between the wireless access point and the wireless access point.
  • the MSDU is the MSDU carried by the WLAN data frame sent by the second wireless station bridge, and the MAC address in the frame header of the second WLAN data frame further includes the source MAC address.
  • the source MAC address is the sender MAC address in the frame header of the first WLAN data frame.
  • the MSDU in the A-MSDU subframe of the A-MSDU is the MSDU carried by the first WLAN data frame
  • the destination address of the A-MSDU subframe is the first A destination MAC address in a frame header of a WLAN data frame
  • the source address of the A-MSDU subframe being a sender MAC address in a frame header of the first WLAN data frame.
  • the MAC address in the header of the second WLAN data frame also includes the BSS ID.
  • the recipient MAC address in the frame header of the second WLAN data frame may be the MAC address of the second wireless station bridge.
  • the target device of the third WLAN data frame is a device connected to the wireless AP through an Ethernet, such as the device 118 in FIG. 1, and the processor 704 generates a first Ethernet data frame according to the third WLAN data frame.
  • the third WLAN data frame carries the MSDU
  • the frame header of the third WLAN data frame includes a destination MAC address, a sender MAC address, and a receiver MAC address.
  • the target device of the third WLAN data frame is a device connected to the wireless AP through the Ethernet, that is, the destination MAC address in the frame header of the third WLAN data frame is the MAC address of the device connected to the wireless AP through the Ethernet.
  • the destination MAC address of the first Ethernet data frame is the destination MAC address in the frame header of the third WLAN data frame.
  • the source MAC address of the first Ethernet data frame is, according to the correspondence between the virtual interface MAC address of the second wireless station bridge and the MAC address of the Ethernet device connected to the second wireless station bridge, and the third WLAN data.
  • the source MAC address is the MAC address of the Ethernet device that sends the Ethernet data frame to the second wireless site bridge.
  • the frame header of the third WLAN data frame includes a BSS ID, a sender MAC address, and a receiver MAC address.
  • the target device of the third WLAN data frame is a device that is connected to the wireless AP through the Ethernet, that is, the destination address of any one of the multiple A-MSDU subframes in the A-MSDU carried by the third WLAN data frame is the wireless AP.
  • the processor 704 generates the first Ethernet data frame according to the destination address in the third WLAN data frame as the A-MSDU subframe of the MAC address of the device connected to the wireless AP through the Ethernet.
  • the destination MAC address of the first Ethernet data frame is the destination address of the A-MSDU subframe.
  • the source MAC address of the first Ethernet data frame is the source address of the A-MSDU subframe.
  • the processor 704 transmits the fifth WLAN data frame after receiving the first WLAN data frame through the baseband processor 702.
  • the receiving MAC address in the frame header of the fifth WLAN data frame is the destination MAC address in the frame header of the first WLAN data frame, that is, the broadcast MAC address or the multicast MAC address.
  • the sender MAC address in the frame header of the fifth WLAN data frame is the MAC address of the wireless AP. If the MSDU is carried in the fifth WLAN data frame, the MSDU is the MSDU carried by the first WLAN data frame, and the MAC address in the frame header of the fifth WLAN data frame further includes the source MAC address.
  • the source MAC address is the sender MAC address in the frame header of the first WLAN data frame. If the fifth WLAN data frame carries the A-MSDU, the MSDU in one A-MSDU subframe in the A-MSDU is the first The MSDU of the WLAN data frame, the destination address of the A-MSDU subframe is the destination MAC address in the frame header of the first WLAN data frame, that is, the broadcast MAC address or the multicast MAC address, and the source of the A-MSDU subframe The address is the sender MAC address in the frame header of the first WLAN data frame. The MAC address in the header of the fifth WLAN data frame also includes the BSS ID.
  • the A-MSDU carried by the first WLAN data frame includes multiple A-MSDU subframes.
  • the destination address of the multiple A-MSDU subframes is the MAC address of the target device.
  • the target device of the first WLAN data frame is a device that is connected to the wireless access point through the first wireless station bridge, and is any one of multiple A-MSDU subframes in the A-MSDU carried by the first WLAN data frame.
  • the destination address of one is the MAC address of the device connected to the wireless access point through the first wireless station bridge.
  • the sender MAC address in the frame header of the second WLAN data frame is the MAC address of the wireless AP.
  • the MSDU is carried in the second WLAN data frame
  • the MSDU is in the A-MSDU carried by the first WLAN data frame
  • the destination address is the MAC address of the Ethernet device connected to the first wireless station bridge
  • A-MSDU The MSDU of the subframe.
  • the receiver MAC address in the frame header of the second WLAN data frame is, according to the virtual interface MAC address of the first wireless station bridge sent by the first wireless station bridge and the Ethernet device connected to the first wireless station bridge.
  • the correspondence between the MAC addresses and the destination address of the A-MSDU subframe corresponding to the MAC address of the Ethernet device connected to the first wireless station bridge in the A-MSDU carried by the first WLAN data frame Virtual interface MAC address.
  • the MAC address in the header of the second WLAN data frame also includes the source MAC address.
  • the source MAC address in the frame header of the second WLAN data frame is, according to the correspondence between the MAC address of the Ethernet device connected to the second wireless station bridge and the virtual interface MAC address sent by the second wireless station bridge, and the first The destination address of the A-MSDU carried by the WLAN data frame is the virtual interface MAC address corresponding to the source address of the A-MSDU subframe of the MAC address of the Ethernet device connected to the first wireless station bridge.
  • the sender MAC address in the frame header of the first WLAN data frame is a virtual interface MAC address corresponding to the source MAC address of the Ethernet data frame received by the second wireless station bridge
  • the frame header of the second WLAN data frame The source MAC address may be the sender MAC address in the frame header of the first WLAN data frame.
  • one A-MSDU subframe in the A-MSDU is in the A-MSDU carried by the first WLAN data frame, and the destination address is connected to the first wireless station bridge.
  • the recipient MAC address in the frame header of the second WLAN data frame is the MAC address of the first wireless station bridge.
  • the receiving party MAC address in the frame header of the second WLAN data frame is the virtual interface MAC address of the first wireless station bridge and the Ethernet device connected to the first wireless station bridge according to the first wireless station bridge.
  • the correspondence between the MAC addresses and the destination address of the A-MSDU subframe corresponding to the MAC address of the Ethernet device connected to the first wireless station bridge in the A-MSDU carried by the first WLAN data frame Virtual interface MAC address.
  • the MAC address in the header of the second WLAN data frame also includes the BSS ID.
  • the processor 704 sends the first WLAN data frame after receiving the first WLAN data frame by the baseband processor 702. Fifth WLAN data frame.
  • the receiver MAC address in the frame header of the fifth WLAN data frame is the destination address of the A-MSDU subframe, that is, the broadcast MAC address or the multicast MAC address.
  • the sender MAC address in the frame header of the fifth WLAN data frame is the wireless AP MAC address. If the MSDU is carried in the fifth WLAN data frame, the MSDU is the MSDU of the A-MSDU subframe in the A-MSDU carried by the first WLAN data frame.
  • the MAC address in the frame header of the fifth WLAN data frame further includes a source MAC address.
  • the source MAC address in the frame header of the fifth WLAN data frame is the source MAC address of the A-MSDU subframe in the A-MSDU carried by the first WLAN data frame. If the A-MSDU is carried in the fifth WLAN data frame, one A-MSDU subframe in the A-MSDU is the A-MSDU subframe in the A-MSDU carried by the first WLAN data frame. If the A-MSDU is carried in the fifth WLAN data frame, the MAC address in the frame header of the fifth WLAN data frame further includes the BSS ID.
  • the processor 704 also broadcasts or multicasts Ethernet data frames over the Ethernet interface.
  • the destination MAC address of the Ethernet data is the destination address of the A-MSDU subframe, that is, a broadcast MAC address or a multicast MAC address.
  • the source MAC address of the Ethernet data frame is, according to the correspondence between the virtual interface MAC address of the second wireless station bridge and the MAC address of the Ethernet device connected to the second wireless station bridge, and the foregoing A-MSDU subframe MAC address corresponding to the source MAC address. Because the source address of the A-MSDU subframe is a virtual interface MAC address corresponding to the MAC address of the Ethernet device connected to the second wireless station bridge, the source MAC address of the Ethernet data frame is connected to the second wireless site bridge. MAC address of the Ethernet device.
  • the first wireless station bridge receives the fifth WLAN data frame. If the fifth WLAN data frame carries the A-MSDU, the first wireless station bridge generates an Ethernet according to the A-MSDU subframe in the A-MSDU carried by the fifth WLAN data frame. Data Frame.
  • the destination MAC address of the Ethernet data frame is the destination address of the A-MSDU subframe.
  • the source MAC address of the Ethernet data frame is the correspondence between the virtual interface MAC address of the second wireless station bridge broadcasted by the baseband processor 702 by the processor 704 and the MAC address of the Ethernet device connected to the second wireless station bridge. Relationship, the MAC address corresponding to the source MAC address of the A-MSDU subframe.
  • the source address of the A-MSDU subframe is the virtual interface MAC address corresponding to the MAC address of the Ethernet device connected to the second wireless station bridge
  • the source MAC address of the Ethernet data frame is connected to the second wireless site bridge. MAC address of the Ethernet device.
  • the second wireless station bridge Because the receiver MAC address in the frame header of the fifth WLAN data frame is a broadcast MAC address or a multicast MAC address, the second wireless station bridge also receives the fifth WLAN data frame. If the MSDU is carried in the fifth WLAN data frame, the second radio station bridge checks the source MAC address in the frame header of the fifth WLAN data frame. If the source MAC address in the frame header of the fifth WLAN data frame is the virtual interface MAC address of the second wireless station bridge, that is, the source MAC address is one of the plurality of virtual interface MAC addresses of the second wireless station bridge, the second The wireless site bridge discards the fifth WLAN data frame.
  • the second radio station bridge acquires each A-MSDU subframe in the A-MSDU carried by the fifth WLAN data frame.
  • the second radio station bridge checks the source address of the obtained A-MSDU subframe, and if the source address of the A-MSDU subframe is the virtual interface MAC address of the second radio station bridge, that is, the source address is the second radio station bridge.
  • the second radio site bridge discards the A-MSDU subframe.
  • the processor 704 receives the second Ethernet data from the second Ethernet device through the baseband processor 702
  • the frame, and the destination MAC address of the second Ethernet data frame is the MAC address of the device connected to the wireless AP through the first wireless station bridge
  • the processor 704 generates a fourth WLAN data frame according to the second Ethernet data frame.
  • the second Ethernet device is a device that is connected to the wireless AP via Ethernet, such as device 118 in FIG.
  • the frame header of the fourth WLAN data frame includes a source MAC address, a sender MAC address, and a receiver MAC address.
  • the source MAC address in the frame header of the fourth WLAN data frame is the source MAC address of the second Ethernet data frame.
  • the receiver MAC address in the frame header of the fourth WLAN data frame is, according to the correspondence between the virtual interface MAC address of the first wireless station bridge and the MAC address of the Ethernet device connected to the first wireless station bridge, and the second The virtual interface MAC address of the first wireless site bridge corresponding to the destination MAC address of the Ethernet data frame.
  • the sender MAC address in the frame header of the fourth WLAN data frame is the MAC address of the wireless AP, that is, the BSS ID.
  • the processor 704 transmits the fourth wireless local area network data frame through the baseband processor 702.
  • the processor 704 transmits the second wireless local area network data frame through the baseband processor 702.
  • the first wireless station bridge receives the second WLAN data frame transmitted by the processor 704 through the baseband processor 702. If the second WLAN data frame carries the MSDU, the first wireless station generates a third Ethernet data frame according to the second WLAN data frame.
  • the destination MAC address of the third Ethernet data frame is, according to the correspondence between the virtual interface MAC address of the first wireless station bridge and the MAC address of the Ethernet device connected to the first wireless station bridge, and the second The MAC address corresponding to the receiver MAC address in the frame header of the WLAN data frame.
  • the destination in the frame header of the second WLAN data frame is because the receiver MAC address in the frame header of the second WLAN data frame is the virtual interface MAC address corresponding to the MAC address of the Ethernet device connected to the first wireless station bridge.
  • the MAC address is the MAC address of the Ethernet device connected to the first wireless site bridge.
  • the source MAC address of the third Ethernet data frame is, according to the correspondence between the virtual interface MAC address of the second wireless station bridge and the MAC address of the Ethernet device connected to the second wireless station bridge, and the second WLAN data
  • the MAC address corresponding to the source MAC address in the frame header of the frame Because the source MAC address in the frame header of the second WLAN data frame is the sender MAC address in the frame header of the WLAN data frame sent by the second wireless station bridge, that is, the Ethernet data frame is sent to the second wireless station bridge.
  • the virtual interface MAC address corresponding to the MAC address of the Ethernet device, so the source MAC address of the third Ethernet data frame is the MAC address of the Ethernet device that sends the Ethernet data frame to the second wireless station bridge. If the second WLAN data frame carries the A-MSDU, the first wireless station generates a third Ethernet data frame according to the A-MSDU subframe in the A-MSDU carried by the second WLAN data frame.
  • the destination MAC address and source MAC address of the third Ethernet data frame are the destination address and source address of the A-MSDU subframe, respectively.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明实施例提供一种无线局域网访问方法、设备、系统,无线站点和无线接入点。该方法包括:第一无线站点桥接收第一以太网设备发送的第一以太网数据帧;第一无线站点桥根据第一以太网数据帧生成第一无线局域网数据帧;第一无线局域网数据帧的帧头中的发送方MAC地址为,与第一以太网数据帧的源MAC地址对应的虚拟接口MAC地址,该虚拟接口MAC地址为第一无线站点桥的多个虚拟接口MAC地址中的一个。本发明中的无线站点桥,为以太网设备设置虚拟接口MAC地址,使得无线站点桥连接的以太网设备在无线局域网中有对应的MAC地址,以便该以太网设备可以通过无线站点桥的桥接功能访问无线局域网。

Description

无线局域网访问方法、 设备、 系统, 无线站点和无线接入点 技术领域 本发明涉及通信技术领域, 尤其涉及一种无线局域网访问方法、 设备、 系统, 无线 站点和无线接入点。 背景技术 通常的无线局域网 (英文: wireless local area network, 缩写: WLAN) 的服务 集 (英文: service set ) 架构中, 与无线接入点 (英文: access point , 缩写: AP ) 关联的无线站点 (英文: station, 缩写: STA ) 向无线 AP发送数据, 以和其它无线 STA 通信。 无线 STA不会通过有线连接转发其它设备发送的数据。
随着无线通信技术的发展, WLAN可以与用户所在的有线网络相连。 在这一架构下, 数据从用户所在的有线网络转发到无线网络, 并可以再转发到另一用户所在的有线网络 或再转发到广域网。
为了实现 WLAN与用户所在的有线网络相连的功能, 无线 STA也要能够转发其它设 备通过有线连接发送的数据。 即在这一架构中, 无线 STA也提供桥接功能。 发明内容
本发明提供了一种无线局域网访问方法、 设备、 系统, 无线站点和无线接入点, 以 为无线站点提供桥接功能。
第一方面, 本发明提供了一种无线局域网访问方法, 包括:
第一无线站点桥接收第一以太网设备发送的第一以太网数据帧,所述第一以太网数 据帧的源介质访问控制 MAC地址为与所述第一无线站点桥连接的第一以太网设备的 MAC 地址;
所述第一无线站点桥根据所述第一以太网数据帧生成第一无线局域网数据帧; 所述第一无线局域网数据帧的帧头中包括发送方 MAC地址和接收方 MAC地址; 所述第一无线局域网数据帧的帧头中的发送方 MAC地址为, 与所述第一以太网数据 帧的源 MAC地址对应的虚拟接口 MAC地址, 所述虚拟接口 MAC地址为所述第一无线站点桥 的多个虚拟接口 MAC地址中的一个;
所述第一无线站点桥发送所述第一无线局域网数据帧。 在第一方面的第一种实现方式中, 在接收第一以太网数据帧之后, 还包括: 所述第一无线站点桥生成所述第一以太网数据帧的源 MAC地址和与所述源 MAC地址 对应的虚拟接口 MAC地址间的对应关系;
所述第一无线站点桥向无线接入点发送所述第一以太网数据帧的源 MAC地址和与所 述源 MAC地址对应的所述第一无线站点桥的虚拟接口 MAC地址间的对应关系。
结合第一方面的第一种实现方式, 在第一方面的第二种实现方式中, 还包括: 所述第一无线站点桥接收所述接入点发送的第二无线站点桥的虚拟接口 MAC地址和 与所述第二无线站点桥连接的以太网设备的 MAC地址间的对应关系;
所述第一无线站点桥接收所述无线接入点发送的第二无线局域网数据帧,所述第二 无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC地址;
所述第二无线局域网数据帧的帧头中的接收方 MAC地址为所述第一无线站点桥的虚 拟接口 MAC地址;
所述第二无线局域网数据帧的帧头中的源 MAC地址为所述第二无线站点桥的虚拟接 口 MAC地址;
所述第一无线站点桥根据所述第二无线局域网数据帧生成第二以太网数据帧; 所述第二以太网数据帧的目的 MAC地址为,根据所述第一以太网数据帧的源 MAC地址 和与所述源 MAC地址对应的虚拟接口 MAC地址间的对应关系, 与所述第二无线局域网数据 帧的帧头中的接收方 MAC地址对应的与所述第一无线站点桥连接的以太网设备的 MAC地 址;
所述第二以太网数据帧的源 MAC地址为,根据所述第二无线站点桥的虚拟接口 MAC地 址和与所述第二无线站点桥连接的以太网设备的 MAC地址间的对应关系, 与所述第二无 线局域网数据帧的帧头中的源 MAC地址对应的与所述第二无线站点桥连接的以太网设备 的 MAC地址。
结合第一方面, 第一方面的第一种实现方式和第二种实现方式中的任意一个, 在第 —方面的第三种实现方式中, 其特征在于, 还包括:
所述第一无线站点桥接收无线接入点发送的第三无线局域网数据帧,所述第三无线 局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC地址;
在所述第三无线局域网数据帧的帧头中的接收方 MAC地址为广播 MAC地址或组播 MAC 地址, 并且所述第三无线局域网数据帧的帧头中的源 MAC地址为所述第一无线站点桥的 虚拟接口 MAC地址的情况下, 所述第一无线站点桥丢弃所述第三无线局域网数据帧。 结合第一方面或第一方面的第一种实现方式, 在第一方面的第四种实现方式中, 在 所述第一以太网数据帧的目的 MAC地址为广播 MAC地址或组播 MAC地址, 并且所述第一无 线局域网数据帧承载聚合 MAC业务数据单元 A-MSDU的情况下,
所述 A-MSDU包括 A-MSDU子帧;
所述 A-MSDU子帧是根据所述第一以太网数据帧生成的, 所述 A-MSDU子帧的源地址 为, 与所述第一以太网数据帧的源 MAC地址对应的虚拟接口 MAC地址, 所述 A-MSDU子帧的 目的地址为所述第一以太网数据帧的目的 MAC地址。
结合第一方面, 第一方面的第一种实现方式和第四种实现方式中的任意一个, 在第 一方面的第五种实现方式中, 还包括:
所述第一无线站点桥接收无线接入点发送的第三无线局域网数据帧,第三无线局域 网数据帧承载聚合 MAC业务数据单元 A-MSDU, 所述第三无线局域网数据帧的帧头中的接 收方 MAC地址为广播 MAC地址或组播 MAC地址;
所述第一无线站点桥获取所述第三无线局域网数据帧承载的 A-MSDU中的 A-MSDU子 帧;
在所述 A-MSDU子帧的源地址为与所述第一无线站点桥的虚拟接口 MAC地址的情况 下, 所述第一无线站点桥丢弃所述 A-MSDU子帧。
第二方面, 本发明提供了一种无线局域网访问方法, 包括:
无线接入点接收来自第一无线站点桥的, 所述第一无线站点桥的虚拟接口 MAC地址 和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应关系;
所述无线接入点接收来自第二无线站点桥的第一无线局域网数据帧;
所述第一无线局域网数据帧的帧头中包括发送方 MAC地址和接收方 MAC地址; 在所述第一无线局域网数据帧的目标设备为与所述无线接入点间通过所述第一无 线站点桥连接的设备的情况下,所述无线接入点根据所述第一无线局域网数据帧生成第 二无线局域网数据帧, 所述第二无线局域网数据帧的帧头中包括发送方 MAC地址和接收 方 MAC地址;
所述第二无线局域网数据帧的帧头中的接收方 MAC地址为, 根据所述第一无线站点 桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应 关系, 与所述第一无线局域网数据帧的目标设备的 MAC地址对应的虚拟接口 MAC地址; 所述无线接入点发送所述第二无线局域网数据帧。 在第二方面的第一种实现方式中, 所述第一无线局域网数据帧承载 MAC业务数据单 元 MSDU;
所述第一无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC 地址;
所述第一无线局域网数据帧的目标设备的 MAC地址为所述第一无线局域网数据帧的 帧头中的目的 MAC地址;
所述第二无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC 地址;
所述第二无线局域网数据帧的帧头中的源 MAC地址为所述第一无线局域网数据帧的 帧头中的发送方 MAC地址。
在第二方面的第二种实现方式中, 所述第一无线局域网数据帧承载聚合 MAC业务数 据单元 A-MSDU;
所述第一无线局域网数据帧的帧头中包括基本服务集标识 BSSID, 发送方 MAC地址和 接收方 MAC地址;
所述第一无线局域网数据帧的目标设备的 MAC地址为所述第一无线局域网数据帧承 载的 A-MSDU的 A-MSDU子帧的目的 MAC地址;
所述第二无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC 地址;
所述第二无线局域网数据帧的帧头中的源 MAC地址为所述第一无线局域网数据帧的 帧头中的发送方 MAC地址;
所述第二无线局域网数据帧的帧头中的接收方 MAC地址为, 根据所述第一无线站点 桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应 关系, 与所述 A-MSDU子帧的目的地址对应的虚拟接口 MAC地址。
在第二方面的第三种实现方式中, 所述第一无线局域网数据帧承载聚合 MAC业务数 据单元 A-MSDU;
所述第一无线局域网数据帧的帧头中包括基本服务集标识 BSSID, 发送方 MAC地址和 接收方 MAC地址;
所述第一无线局域网数据帧的目标设备的 MAC地址为所述第一无线局域网数据帧承 载的 A-MSDU的 A-MSDU子帧的目的 MAC地址; 所述第二无线局域网数据帧的帧头中包括所述 BSSID, 发送方 MAC地址和接收方 MAC 地址;
所述第二无线局域网数据帧承载所述 A_MSDU。
结合第二方面或第二方面的第一种实现方式, 在第二方面的第四种实现方式中, 还 包括:
所述无线接入点接收来自第二无线站点桥的第三无线局域网数据帧;
所述第三无线局域网数据帧承载 MAC业务数据单元 MSDU;
所述第三无线局域网数据帧的帧头中包括目的 MAC地址, 发送方 MAC地址和接收方 MAC地址;
在所述第三无线局域网数据帧的帧头中的目的 MAC地址为与所述无线接入点通过以 太网连接的设备的 MAC地址的情况下, 所述无线接入点根据所述第三无线局域网数据帧 生成以第一太网数据帧;
所述第一以太网数据帧的源 MAC地址为,根据所述第二无线站点桥的虚拟接口 MAC地 址和与所述第二无线站点桥连接的以太网设备的 MAC地址间的对应关系, 与所述第三无 线局域网数据帧的帧头中的发送方 MAC地址对应的 MAC地址;
所述第一以太网数据帧的目的 MAC地址为所述第三无线局域网数据帧的帧头中的目 的 MAC地址;
所述无线接入点发送所述第一以太网数据帧。
结合第二方面, 第二方面的第一种实现方式和第四种实现方式中的任意一个, 在第 二方面的第五种实现方式中, 还包括:
所述无线接入点接收来自第二以太网设备的第二以太网数据帧;
在所述第二以太网数据帧的目的 MAC地址为与所述无线接入点间通过所述第一无线 站点桥连接的设备的 MAC地址的情况下, 所述无线接入点根据所述第二以太网数据帧生 成第四无线局域网数据帧, 所述第四无线局域网数据帧的帧头中包括源 MAC地址, 发送 方 MAC地址和接收方 MAC地址;
所述第四无线局域网数据帧的帧头中的源 MAC地址为所述第二太网数据帧的源 MAC 地址;
所述第四无线局域网数据帧的帧头中的接收方 MAC地址为, 根据所述第一无线站点 桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应 关系, 与所述第二以太网数据帧的目的 MAC地址对应的虚拟接口 MAC地址; 所述无线接入点发送所述第四无线局域网数据帧。
结合第二方面, 第二方面的第四种实现方式和第五种实现方式中的任意一个, 在第 二方面的第六种实现方式中, 所述第一无线局域网数据帧承载 MAC业务数据单元 MSDU; 所述第一无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC 地址;
所述第一无线局域网数据帧的目标设备的 MAC地址为所述第一无线局域网数据帧的 帧头中的目的 MAC地址;
所述第二无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC 地址;
所述第二无线局域网数据帧的帧头中的源 MAC地址为所述第一无线局域网数据帧的 帧头中的发送方 MAC地址;
在所述无线接入点接收来自所述第一无线站点桥的,所述第一无线站点桥的虚拟接 口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应关系之后,还 包括:
所述无线接入点接收来自所述第二无线站点桥的,所述第二无线站点桥的虚拟接口
MAC地址和与所述第二无线站点桥连接的以太网设备的 MAC地址间的对应关系;
所述无线接入点广播所述第二无线站点桥的虚拟接口 MAC地址和与所述第二无线站 点桥连接的以太网设备的 MAC地址间的对应关系;
所述第一无线站点桥接收所述第二无线站点桥的虚拟接口 MAC地址和与所述第二无 线站点桥连接的以太网设备的 MAC地址间的对应关系;
在所述无线接入点发送所述第二无线局域网数据帧之后, 还包括:
所述第一无线站点桥接收所述第二无线局域网数据帧;
所述第一无线站点桥根据所述第二无线局域网数据帧生成第三以太网数据帧; 所述第三以太网数据帧的目的 MAC地址为,根据所述第一无线站点桥的虚拟接口 MAC 地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应关系, 与所述第二 无线局域网数据帧的帧头中的接收方 MAC地址对应的以太网设备的 MAC地址;
所述第三以太网数据帧的源 MAC地址为,根据所述第二无线站点桥的虚拟接口 MAC地 址和与所述第二无线站点桥连接的以太网设备的 MAC地址间的对应关系, 与所述第二无 线局域网数据帧的帧头中的源 MAC地址对应的与所述第二无线站点桥连接的以太网设备 的 MAC地址。 第三方面, 本发明提供了一种无线局域网访问装置, 由第一无线站点桥实现, 所述 无线局域网访问装置包括接收模块, 生成模块和发送模块; 其中,
所述接收模块, 用于接收第一以太网设备发送的第一以太网数据帧, 所述第一以太 网数据帧的源介质访问控制 MAC地址为与所述第一无线站点桥连接的第一以太网设备的 MAC地址;
所述生成模块, 用于根据所述第一以太网数据帧生成第一无线局域网数据帧; 所述第一无线局域网数据帧的帧头中包括发送方 MAC地址和接收方 MAC地址; 所述第一无线局域网数据帧的帧头中的发送方 MAC地址为, 与所述第一以太网数据 帧的源 MAC地址对应的虚拟接口 MAC地址, 所述虚拟接口 MAC地址为所述生成模块生成的 多个虚拟接口 MAC地址中的一个;
所述发送模块, 用于发送所述第一无线局域网数据帧。
在第三方面的第一种实现方式中, 所述生成模块, 还用于生成所述第一以太网数据 帧的源 MAC地址和与所述源 MAC地址对应的虚拟接口 MAC地址间的对应关系;
所述发送模块, 还用于向无线接入点发送所述第一以太网数据帧的源 MAC地址和与 所述源 MAC地址对应的所述生成模块生成的虚拟接口 MAC地址间的对应关系。
结合第三方面的第一种实现方式,在第三方面的第二种实现方式中,所述接收模块, 还用于接收所述无线接入点发送的第二无线站点桥的虚拟接口 MAC地址和与所述第二无 线站点桥连接的以太网设备的 MAC地址间的对应关系;
所述接收模块, 还用于接收所述无线接入点发送的第二无线局域网数据帧, 所述第 二无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC地址;
所述第二无线局域网数据帧的帧头中的接收方 MAC地址为所述所述生成模块生成的 虚拟接口 MAC地址;
所述第二无线局域网数据帧的帧头中的源 MAC地址为所述第二无线站点桥的虚拟接 口 MAC地址;
所述生成模块, 还用于根据所述第二无线局域网数据帧生成第二以太网数据帧; 所述第二以太网数据帧的目的 MAC地址为,根据所述第一以太网数据帧的源 MAC地址 和与所述源 MAC地址对应的虚拟接口 MAC地址间的对应关系, 与所述第二无线局域网数据 帧的帧头中的接收方 MAC地址对应的与所述第一无线站点桥连接的以太网设备的 MAC地 址; 所述第二以太网数据帧的源 MAC地址为,根据所述第二无线站点桥的虚拟接口 MAC地 址和与所述第二无线站点桥连接的以太网设备的 MAC地址间的对应关系, 与所述第二无 线局域网数据帧的帧头中的源 MAC地址对应的与所述第二无线站点桥连接的以太网设备 的 MAC地址。
结合第三方面, 第三方面的第一种实现方式和第二种实现方式中的任意一个, 在第 三方面的第三种实现方式中, 所述接收模块, 还用于接收无线接入点发送的第三无线局 域网数据帧, 所述第三无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接 收方 MAC地址;
在所述第三无线局域网数据帧的帧头中的接收方 MAC地址为广播 MAC地址或组播 MAC 地址, 并且所述第三无线局域网数据帧的帧头中的源 MAC地址为所述生成模块生成的虚 拟接口 MAC地址的情况下, 所述第一无线站点桥丢弃所述第三无线局域网数据帧。
结合第三方面或第三方面的第一种实现方式, 在第三方面的第四种实现方式中, 在 所述第一以太网数据帧的目的 MAC地址为广播 MAC地址或组播 MAC地址, 并且所述第一无 线局域网数据帧承载聚合 MAC业务数据单元 A-MSDU的情况下,
所述 A-MSDU包括 A-MSDU子帧;
所述 A-MSDU子帧是所述生成模块根据所述第一以太网数据帧生成的,所述 A-MSDU子 帧的源地址为, 与所述第一以太网数据帧的源 MAC地址对应的虚拟接口 MAC地址, 所述 A-MSDU子帧的目的地址为所述第一以太网数据帧的目的 MAC地址。
结合第三方面, 第三方面的第一种实现方式和第四种实现方式中的任意一个, 在第 三方面的第五种实现方式中, 所述接收模块, 还用于接收无线接入点发送的第三无线局 域网数据帧, 第三无线局域网数据帧承载聚合 MAC业务数据单元 A-MSDU, 所述第三无线 局域网数据帧的帧头中的接收方 MAC地址为广播 MAC地址或组播 MAC地址;
所述生成模块,还用于获取所述第三无线局域网数据帧承载的 A-MSDU中的 A-MSDU子 帧;
在所述 A-MSDU子帧的源地址为与所述第一无线站点桥的虚拟接口 MAC地址的情况 下, 所述生成模块丢弃所述 A-MSDU子帧。
第四方面, 本发明提供了一种无线局域网访问装置, 由无线接入点实现, 所述无线 局域网访问装置包括接收模块, 生成模块和发送模块; 其中
所述接收模块, 用于接收来自第一无线站点桥的, 所述第一无线站点桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应关系; 所述接收模块,还用于所述无线接入点接收来自第二无线站点桥的第一无线局域网 数据帧;
所述第一无线局域网数据帧的帧头中包括发送方 MAC地址和接收方 MAC地址; 所述生成模块,用于在所述第一无线局域网数据帧的目标设备为与所述无线接入点 间通过所述第一无线站点桥连接的设备的情况下,根据所述第一无线局域网数据帧生成 第二无线局域网数据帧, 所述第二无线局域网数据帧的帧头中包括发送方 MAC地址和接 收方 MAC地址;
所述第二无线局域网数据帧的帧头中的接收方 MAC地址为, 根据所述第一无线站点 桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应 关系, 与所述第一无线局域网数据帧的目标设备的 MAC地址对应的虚拟接口 MAC地址; 所述发送模块, 用于所述无线接入点发送所述第二无线局域网数据帧。
在第四方面的第一种实现方式中, 所述第一无线局域网数据帧承载 MAC业务数据单 元 MSDU;
所述第一无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC 地址;
所述第一无线局域网数据帧的目标设备的 MAC地址为所述第一无线局域网数据帧的 帧头中的目的 MAC地址;
所述第二无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC 地址;
所述第二无线局域网数据帧的帧头中的源 MAC地址为所述第一无线局域网数据帧的 帧头中的发送方 MAC地址。
在第四方面的第二种实现方式中, 所述第一无线局域网数据帧承载聚合 MAC业务数 据单元 A-MSDU;
所述第一无线局域网数据帧的帧头中包括基本服务集标识 BSSID, 发送方 MAC地址和 接收方 MAC地址;
所述第一无线局域网数据帧的目标设备的 MAC地址为所述第一无线局域网数据帧承 载的 A-MSDU的 A-MSDU子帧的目的 MAC地址;
所述第二无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC 地址; 所述第二无线局域网数据帧的帧头中的源 MAC地址为所述第一无线局域网数据帧的 帧头中的发送方 MAC地址;
所述第二无线局域网数据帧的帧头中的接收方 MAC地址为, 根据所述第一无线站点 桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应 关系, 与所述 A-MSDU子帧的目的地址对应的虚拟接口 MAC地址。
在第四方面的第三种实现方式中, 所述第一无线局域网数据帧承载聚合 MAC业务数 据单元 A-MSDU;
所述第一无线局域网数据帧的帧头中包括基本服务集标识 BSSID, 发送方 MAC地址和 接收方 MAC地址;
所述第一无线局域网数据帧的目标设备的 MAC地址为所述第一无线局域网数据帧承 载的 A-MSDU的 A-MSDU子帧的目的 MAC地址;
所述第二无线局域网数据帧的帧头中包括所述 BSSID, 发送方 MAC地址和接收方 MAC 地址;
所述第二无线局域网数据帧承载所述 A_MSDU。
结合第四方面或第四方面的第一种实现方式, 在第四方面的第四种实现方式中, 所 述接收模块, 还用于接收来自第二无线站点桥的第三无线局域网数据帧;
所述第三无线局域网数据帧承载 MAC业务数据单元 MSDU;
所述第三无线局域网数据帧的帧头中包括目的 MAC地址, 发送方 MAC地址和接收方 MAC地址;
所述生成模块, 还用于在所述第三无线局域网数据帧的帧头中的目的 MAC地址为与 所述无线接入点通过以太网连接的设备的 MAC地址的情况下, 根据所述第三无线局域网 数据帧生成以第一太网数据帧;
所述第一以太网数据帧的源 MAC地址为,根据所述第二无线站点桥的虚拟接口 MAC地 址和与所述第二无线站点桥连接的以太网设备的 MAC地址间的对应关系, 与所述第三无 线局域网数据帧的帧头中的发送方 MAC地址对应的 MAC地址;
所述第一以太网数据帧的目的 MAC地址为所述第三无线局域网数据帧的帧头中的目 的 MAC地址;
所述发送模块, 还用于发送所述第一以太网数据帧。 结合第四方面, 第四方面的第一种实现方式和第四种实现方式中的任意一个, 在第 四方面的第五种实现方式中, 所述接收模块, 还用于接收来自第二以太网设备的第二以 太网数据帧;
所述生成模块, 还用于在所述第二以太网数据帧的目的 MAC地址为与所述无线接入 点间通过所述第一无线站点桥连接的设备的 MAC地址的情况下, 根据所述第二以太网数 据帧生成第四无线局域网数据帧,所述第四无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC地址;
所述第四无线局域网数据帧的帧头中的源 MAC地址为所述第二太网数据帧的源 MAC 地址;
所述第四无线局域网数据帧的帧头中的接收方 MAC地址为, 根据所述第一无线站点 桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应 关系, 与所述第二以太网数据帧的目的 MAC地址对应的虚拟接口 MAC地址;
所述发送模块, 还用于发送所述第四无线局域网数据帧。
第五方面, 本发明提供了一种无线站点, 包括太网适配器, 无线局域网适配器, 处 理器和存储器;
所述太网适配器和所述处理器相连, 所述无线局域网适配器和所述处理器相连, 所 述存储器和所述处理器相连;
所述太网适配器接收第一以太网设备发送的第一以太网数据帧,所述第一以太网数 据帧的源介质访问控制 MAC地址为与所述无线站点连接的第一以太网设备的 MAC地址; 所述处理器根据所述第一以太网数据帧生成第一无线局域网数据帧;
所述第一无线局域网数据帧的帧头中包括发送方 MAC地址和接收方 MAC地址; 所述第一无线局域网数据帧的帧头中的发送方 MAC地址为, 与所述第一以太网数据 帧的源 MAC地址对应的虚拟接口 MAC地址, 所述虚拟接口 MAC地址为所述无线站点的多个 虚拟接口 MAC地址中的一个;
所述无线局域网适配器发送所述第一无线局域网数据帧。
在第五方面的第一种实现方式中, 在接收第一以太网数据帧之后, 所述处理器生成 所述第一以太网数据帧的源 MAC地址和与所述源 MAC地址对应的虚拟接口 MAC地址间的对 应关系;
所述无线局域网适配器向无线接入点发送所述第一以太网数据帧的源 MAC地址和与 所述源 MAC地址对应的所述无线站点的虚拟接口 MAC地址间的对应关系。 结合第五方面的第一种实现方式, 在第五方面的第二种实现方式中, 还包括: 所述无线局域网适配器接收所述无线接入点发送的第二无线站点桥的虚拟接口 MAC 地址和与所述第二无线站点桥连接的以太网设备的 MAC地址间的对应关系;
所述无线局域网适配器接收所述无线接入点发送的第二无线局域网数据帧,所述第 二无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC地址;
所述第二无线局域网数据帧的帧头中的接收方 MAC地址为所述无线站点的虚拟接口 MAC地址;
所述第二无线局域网数据帧的帧头中的源 MAC地址为所述第二无线站点桥的虚拟接 口 MAC地址;
所述处理器根据所述第二无线局域网数据帧生成第二以太网数据帧;
所述第二以太网数据帧的目的 MAC地址为,根据所述第一以太网数据帧的源 MAC地址 和与所述源 MAC地址对应的虚拟接口 MAC地址间的对应关系, 与所述第二无线局域网数据 帧的帧头中的接收方 MAC地址对应的与所述无线站点连接的以太网设备的 MAC地址; 所述第二以太网数据帧的源 MAC地址为,根据所述第二无线站点桥的虚拟接口 MAC地 址和与所述第二无线站点桥连接的以太网设备的 MAC地址间的对应关系, 与所述第二无 线局域网数据帧的帧头中的源 MAC地址对应的与所述第二无线站点桥连接的以太网设备 的 MAC地址。
结合第五方面, 第五方面的第一种实现方式和第二种实现方式中的任意一个, 在第 五方面的第三种实现方式中, 还包括:
所述无线局域网适配器接收无线接入点发送的第三无线局域网数据帧,所述第三无 线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC地址;
所述处理器,在所述第三无线局域网数据帧的帧头中的接收方 MAC地址为广播 MAC地 址或组播 MAC地址, 并且所述第三无线局域网数据帧的帧头中的源 MAC地址为所述无线站 点的虚拟接口 MAC地址的情况下, 丢弃所述第三无线局域网数据帧。
结合第五方面或第五方面的第一种实现方式, 在第五方面的第四种实现方式中, 在 所述第一以太网数据帧的目的 MAC地址为广播 MAC地址或组播 MAC地址, 并且所述第一无 线局域网数据帧承载聚合 MAC业务数据单元 A-MSDU的情况下,
所述 A-MSDU包括 A-MSDU子帧; 所述 A-MSDU子帧是所述处理器根据所述第一以太网数据帧生成的,所述 A-MSDU子帧 的源地址为, 与所述第一以太网数据帧的源 MAC地址对应的虚拟接口 MAC地址, 所述 A-MSDU子帧的目的地址为所述第一以太网数据帧的目的 MAC地址。
结合第五方面, 第五方面的第一种实现方式和第四种实现方式中的任意一个, 在第 五方面的第五种实现方式中, 还包括:
所述无线局域网适配器接收无线接入点发送的第三无线局域网数据帧,第三无线局 域网数据帧承载聚合 MAC业务数据单元 A-MSDU, 所述第三无线局域网数据帧的帧头中的 接收方 MAC地址为广播 MAC地址或组播 MAC地址;
所述处理器获取所述第三无线局域网数据帧承载的 A-MSDU中的 A-MSDU子帧; 在所述 A-MSDU子帧的源地址为所述无线站点的虚拟接口 MAC地址的情况下, 所述处 理器丢弃所述 A-MSDU子帧。
第六方面, 本发明提供了一种无线接入点, 包括基带处理器, 处理器和存储器, 所 述基带处理器与所述处理器相连, 所述存储器与所述处理器相连;
所述处理器通过所述基带处理器接收来自第一无线站点桥的,所述第一无线站点桥 的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应关 系;
所述处理器通过所述基带处理器接收来自第二无线站点桥的第一无线局域网数据 帧;
所述第一无线局域网数据帧的帧头中包括发送方 MAC地址和接收方 MAC地址; 在所述第一无线局域网数据帧的目标设备为与所述无线接入点间通过所述第一无 线站点桥连接的设备的情况下,所述处理器根据所述第一无线局域网数据帧生成第二无 线局域网数据帧,所述第二无线局域网数据帧的帧头中包括发送方 MAC地址和接收方 MAC 地址;
所述第二无线局域网数据帧的帧头中的接收方 MAC地址为, 根据所述第一无线站点 桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应 关系, 与所述第一无线局域网数据帧的目标设备的 MAC地址对应的虚拟接口 MAC地址; 所述处理器通过所述基带处理器发送所述第二无线局域网数据帧。
在第六方面的第一种实现方式中, 所述第一无线局域网数据帧承载 MAC业务数据单 元 MSDU; 所述第一无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC 地址;
所述第一无线局域网数据帧的目标设备的 MAC地址为所述第一无线局域网数据帧的 帧头中的目的 MAC地址;
所述第二无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC 地址;
所述第二无线局域网数据帧的帧头中的源 MAC地址为所述第一无线局域网数据帧的 帧头中的发送方 MAC地址。
在第六方面的第二种实现方式中, 所述第一无线局域网数据帧承载聚合 MAC业务数 据单元 A-MSDU;
所述第一无线局域网数据帧的帧头中包括基本服务集标识 BSSID, 发送方 MAC地址和 接收方 MAC地址;
所述第一无线局域网数据帧的目标设备的 MAC地址为所述第一无线局域网数据帧承 载的 A-MSDU的 A-MSDU子帧的目的 MAC地址;
所述第二无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC 地址;
所述第二无线局域网数据帧的帧头中的源 MAC地址为所述第一无线局域网数据帧的 帧头中的发送方 MAC地址;
所述第二无线局域网数据帧的帧头中的接收方 MAC地址为, 根据所述第一无线站点 桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应 关系, 与所述 A-MSDU子帧的目的地址对应的虚拟接口 MAC地址。
在第六方面的第三种实现方式中, 所述第一无线局域网数据帧承载聚合 MAC业务数 据单元 A-MSDU;
所述第一无线局域网数据帧的帧头中包括基本服务集标识 BSSID, 发送方 MAC地址和 接收方 MAC地址;
所述第一无线局域网数据帧的目标设备的 MAC地址为所述第一无线局域网数据帧承 载的 A-MSDU的 A-MSDU子帧的目的 MAC地址;
所述第二无线局域网数据帧的帧头中包括所述 BSSID, 发送方 MAC地址和接收方 MAC 地址;
所述第二无线局域网数据帧承载所述 A_MSDU。 结合第六方面或第六方面的第一种实现方式, 在第六方面的第四种实现方式中, 还 包括:
所述处理器通过所述基带处理器接收来自第二无线站点桥的第三无线局域网数据 帧;
所述第三无线局域网数据帧承载 MAC业务数据单元 MSDU;
所述第三无线局域网数据帧的帧头中包括目的 MAC地址, 发送方 MAC地址和接收方 MAC地址;
在所述第三无线局域网数据帧的帧头中的目的 MAC地址为与所述无线接入点通过以 太网连接的设备的 MAC地址的情况下, 所述处理器根据所述第三无线局域网数据帧生成 以第一太网数据帧;
所述第一以太网数据帧的源 MAC地址为,根据所述第二无线站点桥的虚拟接口 MAC地 址和与所述第二无线站点桥连接的以太网设备的 MAC地址间的对应关系, 与所述第三无 线局域网数据帧的帧头中的发送方 MAC地址对应的 MAC地址;
所述第一以太网数据帧的目的 MAC地址为所述第三无线局域网数据帧的帧头中的目 的 MAC地址;
所述处理器通过所述基带处理器发送所述第一以太网数据帧。
结合第六方面, 第六方面的第一种实现方式和第四种实现方式中的任意一个, 在第 六方面的第五种实现方式中, 还包括:
所述处理器通过所述基带处理器接收来自第二以太网设备的第二以太网数据帧; 在所述第二以太网数据帧的目的 MAC地址为与所述无线接入点间通过所述第一无线 站点桥连接的设备的 MAC地址的情况下, 所述处理器根据所述第二以太网数据帧生成第 四无线局域网数据帧, 所述第四无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC 地址和接收方 MAC地址;
所述第四无线局域网数据帧的帧头中的源 MAC地址为所述第二太网数据帧的源 MAC 地址;
所述第四无线局域网数据帧的帧头中的接收方 MAC地址为, 根据所述第一无线站点 桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应 关系, 与所述第二以太网数据帧的目的 MAC地址对应的虚拟接口 MAC地址;
所述处理器通过所述基带处理器发送所述第四无线局域网数据帧。 第七方面, 本发明提供了一种无线局域网系统, 包括第一无线站点桥, 第二无线站 点桥和无线接入点; 其中,
所述第一无线站点桥接收第一以太网设备发送的第一以太网数据帧,所述第一以太 网数据帧的源介质访问控制 MAC地址为与所述第一无线站点桥连接的第一以太网设备的 MAC地址; 所述第一无线站点桥根据所述第一以太网数据帧生成第一无线局域网数据帧; 所述第一无线局域网数据帧的帧头中包括发送方 MAC地址和接收方 MAC地址; 所述第一无 线局域网数据帧的帧头中的发送方 MAC地址为, 与所述第一以太网数据帧的源 MAC地址对 应的虚拟接口 MAC地址, 所述虚拟接口 MAC地址为所述第一无线站点桥的多个虚拟接口 MAC地址中的一个; 所述第一无线站点桥发送所述第一无线局域网数据帧; 所述第一无 线站点桥生成所述第一以太网数据帧的源 MAC地址和与所述源 MAC地址对应的虚拟接口 MAC地址间的对应关系; 所述第一无线站点桥向所述无线接入点发送所述第一以太网数 据帧的源 MAC地址和与所述源 MAC地址对应的所述第一无线站点桥的虚拟接口 MAC地址间 的对应关系;
所述无线接入点接收所述第一以太网数据帧的源 MAC地址和与所述源 MAC地址对应 的所述第一无线站点桥的虚拟接口 MAC地址间的对应关系; 所述无线接入点广播所述第 一以太网数据帧的源 MAC地址和与所述源 MAC地址对应的所述第一无线站点桥的虚拟接 口 MAC地址间的对应关系; 所述无线接入点接收来自所述第二无线站点桥的, 所述第二 无线站点桥的虚拟接口 MAC地址和与所述第二无线站点桥连接的以太网设备的 MAC地址 间的对应关系; 所述无线接入点接收来自第一无线站点桥的第一无线局域网数据帧; 在 所述第一无线局域网数据帧的目标设备为与所述无线接入点间通过所述第二无线站点 桥连接的设备的情况下,所述无线接入点根据所述第一无线局域网数据帧生成第二无线 局域网数据帧,所述第二无线局域网数据帧的帧头中包括发送方 MAC地址和接收方 MAC地 址; 所述第二无线局域网数据帧的帧头中的接收方 MAC地址为, 根据所述第二无线站点 桥的虚拟接口 MAC地址和与所述第二无线站点桥连接的以太网设备的 MAC地址间的对应 关系, 与所述第一无线局域网数据帧的目标设备的 MAC地址对应的虚拟接口 MAC地址; 所 述无线接入点发送所述第二无线局域网数据帧;
所述第二无线站点桥接收所述第一以太网数据帧的源 MAC地址和与所述源 MAC地址 对应的所述第一无线站点桥的虚拟接口 MAC地址间的对应关系; 所述第二无线站点桥接 收所述无线接入点发送的第二无线局域网数据帧; 所述第二无线站点桥根据所述第二无 线局域网数据帧生成第二以太网数据帧。 在第七方面的第一种实现方式中, 所述无线局域网系统还包括第二以太网设备, 所 述第二以太网设备与所述无线接入点相连;
所述无线接入点接收来自第二以太网设备的第二以太网数据帧;
在所述第二以太网数据帧的目的 MAC地址为与所述第一无线站点桥连接的设备的 MAC地址的情况下, 所述无线接入点根据所述第二以太网数据帧生成第四无线局域网数 据帧,所述第四无线局域网数据帧的帧头中包括源 MAC地址,发送方 MAC地址和接收方 MAC 地址;
所述第四无线局域网数据帧的帧头中的源 MAC地址为所述第二太网数据帧的源 MAC 地址;
所述第四无线局域网数据帧的帧头中的接收方 MAC地址为, 根据所述第一无线站点 桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应 关系, 与所述第二以太网数据帧的目的 MAC地址对应的虚拟接口 MAC地址;
所述无线接入点发送所述第四无线局域网数据帧。
第八方面, 本发明提供了一种无线局域网访问方法, 包括:
第一无线站点桥接收第一以太网设备发送的第一以太网数据帧,所述第一以太网数 据帧的源介质访问控制 MAC地址为与所述第一无线站点桥连接的第一以太网设备的 MAC 地址;
所述第一无线站点桥根据所述第一以太网数据帧生成第一无线局域网数据帧; 所述第一无线局域网数据帧的帧头中包括发送方 MAC地址,接收方 MAC地址和基本服 务集标识 BSSID;
所述第一无线局域网数据帧的帧头中的发送方 MAC地址为所述第一以太网数据帧的 源 MAC地址, 所述第一无线局域网数据帧的帧头中的接收方 MAC地址为无线接入点的 MAC 地址;
所述第一无线局域网数据帧承载聚合 MAC业务数据单元 A-MSDU, 所述 A-MSDU包括 A-MSDU子帧, 所述 A-MSDU子帧是根据所述第一以太网数据帧生成的, 所述 A-MSDU子帧的 源地址为, 与所述第一以太网数据帧的源 MAC地址对应的虚拟接口 MAC地址, 所述虚拟接 口 MAC地址为所述第一无线站点桥的多个虚拟接口 MAC地址中的一个,所述 A-MSDU子帧的 目的地址为所述第一以太网数据帧的目的 MAC地址;
所述第一无线站点桥发送所述第一无线局域网数据帧。 在第八方面的第一种实现方式中,所述第一以太网数据帧的目的 MAC地址为广播 MAC 地址或组播 MAC地址。
结合第八方面或第八方面的第一种实现方式, 在第八方面的第二种实现方式中, 在 接收第一以太网数据帧之后, 还包括:
所述第一无线站点桥生成所述第一以太网数据帧的源 MAC地址和与所述源 MAC地址 对应的虚拟接口 MAC地址间的对应关系;
所述第一无线站点桥向所述无线接入点发送所述第一以太网数据帧的源 MAC地址和 与所述源 MAC地址对应的所述第一无线站点桥的虚拟接口 MAC地址间的对应关系。
结合第八方面, 第八方面的第一种实现方式和第二种实现方式中的任意一个, 在第 八方面的第三种实现方式中, 还包括:
所述第一无线站点桥接收所述无线接入点发送的第三无线局域网数据帧,第三无线 局域网数据帧承载 A-MSDU;
所述第一无线站点桥获取所述第三无线局域网数据帧承载的 A-MSDU中的 A-MSDU子 帧;
所述第一无线站点桥根据所述 A-MSDU子帧生成第二以太网数据帧,第二以太网数据 帧的目的 MAC地址为所述 A-MSDU子帧的目的地址, 第二以太网数据帧的源 MAC地址为, 根 据所述无线接入点广播的对应关系, 与所述 A-MSDU子帧的源 MAC地址对应的 MAC地址; 发送所述第二以太网数据帧。
结合第八方面, 第八方面的第一种实现方式和第二种实现方式中的任意一个, 在第 八方面的第四种实现方式中, 还包括:
所述第一无线站点桥接收所述无线接入点发送的第三无线局域网数据帧,第三无线 局域网数据帧承载 A-MSDU, 所述第三无线局域网数据帧的帧头中的接收方 MAC地址为广 播 MAC地址或组播 MAC地址;
所述第一无线站点桥获取所述第三无线局域网数据帧承载的 A-MSDU中的 A-MSDU子 帧;
在所述 A-MSDU子帧的源地址为与所述第一无线站点桥的虚拟接口 MAC地址的情况 下, 所述第一无线站点桥丢弃所述 A-MSDU子帧。
第九方面, 本发明提供了一种无线局域网访问装置, 由第一无线站点桥实现, 所述 无线局域网访问装置包括接收模块, 生成模块和发送模块; 其中, 所述接收模块, 用于接收第一以太网设备发送的第一以太网数据帧, 所述第一以太 网数据帧的源介质访问控制 MAC地址为与所述第一无线站点桥连接的第一以太网设备的 MAC地址;
所述生成模块, 用于根据所述第一以太网数据帧生成第一无线局域网数据帧; 所述第一无线局域网数据帧的帧头中包括发送方 MAC地址,接收方 MAC地址和基本服 务集标识 BSSID;
所述第一无线局域网数据帧的帧头中的发送方 MAC地址为为所述第一以太网数据帧 的源 MAC地址, 所述第一无线局域网数据帧的帧头中的接收方 MAC地址为无线接入点的 MAC地址;
所述第一无线局域网数据帧承载聚合 MAC业务数据单元 A-MSDU, 所述 A-MSDU包括
A-MSDU子帧, 所述 A-MSDU子帧是根据所述第一以太网数据帧生成的, 所述 A-MSDU子帧的 源地址为, 与所述第一以太网数据帧的源 MAC地址对应的虚拟接口 MAC地址, 所述虚拟接 口 MAC地址为所述第一无线站点桥的多个虚拟接口 MAC地址中的一个,所述 A-MSDU子帧的 目的地址为所述第一以太网数据帧的目的 MAC地址;
所述发送模块, 用于发送所述第一无线局域网数据帧。
在第九方面的第一种实现方式中,所述第一以太网数据帧的目的 MAC地址为广播 MAC 地址或组播 MAC地址。
结合第九方面或第九方面的第一种实现方式, 在第九方面的第二种实现方式中, 所 述生成模块,还用于生成所述第一以太网数据帧的源 MAC地址和与所述源 MAC地址对应的 虚拟接口 MAC地址间的对应关系;
所述发送模块, 还用于向所述无线接入点发送所述第一以太网数据帧的源 MAC地址 和与所述源 MAC地址对应的所述第一无线站点桥的虚拟接口 MAC地址间的对应关系。
结合第九方面, 第九方面的第一种实现方式和第二种实现方式中的任意一个, 在第 九方面的第三种实现方式中, 所述接收模块, 还用于接收所述无线接入点发送的第三无 线局域网数据帧, 第三无线局域网数据帧承载 A-MSDU;
所述生成模块,还用于获取所述第三无线局域网数据帧承载的 A-MSDU中的 A-MSDU子 帧, 根据所述 A-MSDU子帧生成第二以太网数据帧, 第二以太网数据帧的目的 MAC地址为 所述 A-MSDU子帧的目的地址, 第二以太网数据帧的源 MAC地址为, 根据所述无线接入点 广播的对应关系, 与所述 A-MSDU子帧的源 MAC地址对应的 MAC地址;
所述发送模块, 还用于发送所述第二以太网数据帧。 结合第九方面, 第九方面的第一种实现方式和第二种实现方式中的任意一个, 在第 九方面的第四种实现方式中, 所述接收模块, 还用于接收所述无线接入点发送的第三无 线局域网数据帧, 第三无线局域网数据帧承载 A-MSDU, 所述第三无线局域网数据帧的帧 头中的接收方 MAC地址为广播 MAC地址或组播 MAC地址;
所述接收模块,还用于获取所述第三无线局域网数据帧承载的 A-MSDU中的 A-MSDU子 帧,在所述 A-MSDU子帧的源地址为与所述第一无线站点桥的虚拟接口 MAC地址的情况下, 丢弃所述 A-MSDU子帧。
第十方面, 本发明提供了一种无线站点, 包括太网适配器, 无线局域网适配器, 处 理器和存储器;
所述太网适配器和所述处理器相连, 所述无线局域网适配器和所述处理器相连, 所 述存储器和所述处理器相连;
所述太网适配器接收第一以太网设备发送的第一以太网数据帧,所述第一以太网数 据帧的源介质访问控制 MAC地址为与所述无线站点连接的第一以太网设备的 MAC地址; 所述处理器根据所述第一以太网数据帧生成第一无线局域网数据帧;
所述第一无线局域网数据帧的帧头中包括发送方 MAC地址,接收方 MAC地址和基本服 务集标识 BSSID;
所述第一无线局域网数据帧的帧头中的发送方 MAC地址为所述第一以太网数据帧的 源 MAC地址, 所述第一无线局域网数据帧的帧头中的接收方 MAC地址为无线接入点的 MAC 地址;
所述第一无线局域网数据帧承载聚合 MAC业务数据单元 A-MSDU, 所述 A-MSDU包括
A-MSDU子帧, 所述 A-MSDU子帧是根据所述第一以太网数据帧生成的, 所述 A-MSDU子帧的 源地址为, 与所述第一以太网数据帧的源 MAC地址对应的虚拟接口 MAC地址, 所述虚拟接 口 MAC地址为所述无线站点桥的多个虚拟接口 MAC地址中的一个,所述 A-MSDU子帧的目的 地址为所述第一以太网数据帧的目的 MAC地址;
所述无线局域网适配器发送所述第一无线局域网数据帧。
在第十方面的第一种实现方式中,所述第一以太网数据帧的目的 MAC地址为广播 MAC 地址或组播 MAC地址。
结合第十方面或第十方面的第一种实现方式, 在第十方面的第二种实现方式中, 在 接收第一以太网数据帧之后, 所述处理器生成所述第一以太网数据帧的源 MAC地址和与 所述源 MAC地址对应的虚拟接口 MAC地址间的对应关系; 所述无线局域网适配器向所述无线接入点发送所述第一以太网数据帧的源 MAC地址 和与所述源 MAC地址对应的所述无线站点桥的虚拟接口 MAC地址间的对应关系。
结合第十方面, 第十方面的第一种实现方式和第二种实现方式中的任意一个, 在第 十方面的第三种实现方式中, 还包括:
所述无线局域网适配器接收所述无线接入点发送的第三无线局域网数据帧,第三无 线局域网数据帧承载 A-MSDU;
所述处理器获取所述第三无线局域网数据帧承载的 A-MSDU中的 A-MSDU子帧; 所述处理器根据所述 A-MSDU子帧生成第二以太网数据帧,第二以太网数据帧的目的 MAC地址为所述 A-MSDU子帧的目的地址, 第二以太网数据帧的源 MAC地址为, 根据所述无 线接入点广播的对应关系, 与所述 A-MSDU子帧的源 MAC地址对应的 MAC地址;
所述太网适配器发送所述第二以太网数据帧。
结合第十方面, 第十方面的第一种实现方式和第二种实现方式中的任意一个, 在第 十方面的第四种实现方式中, 还包括:
所述无线局域网适配器接收所述无线接入点发送的第三无线局域网数据帧,第三无 线局域网数据帧承载 A-MSDU, 所述第三无线局域网数据帧的帧头中的接收方 MAC地址为 广播 MAC地址或组播 MAC地址;
所述处理器获取所述第三无线局域网数据帧承载的 A-MSDU中的 A-MSDU子帧; 在所述 A-MSDU子帧的源地址为所述无线站点桥的虚拟接口 MAC地址的情况下, 所述 处理器丢弃所述 A-MSDU子帧。
由上述技术方案可知, 本发明中的无线站点桥, 为以太网设备设置虚拟接口 MAC地 址, 使得无线站点桥连接的以太网设备在无线局域网中有对应的 MAC地址, 以便该以太 网设备可以通过无线站点桥的桥接功能访问无线局域网。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施例或现有 技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本 发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明实施例的网络系统示意图;
图 2为本发明实施例的方法流程图; 图 3为本发明实施例的方法流程图;
图 4为本发明实施例提供的无线局域网访问装置示意图;
图 5为本发明实施例提供的另一种无线局域网访问装置示意图;
图 6为本发明实施例提供的无线站点的结构示意图;
图 7为本发明实施例提供的无线接入点的结构示意图。 具体实施方式 下面通过实施例对本发明的具体实现过程进行举例说明。 显然, 下面所描述的实施 例是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通 技术人员在没有做出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的 范围。
图 1为本发明实施例的网络系统示意图。该网络系统示意图中的实线表示有线连接, 虚线表示无线连接。 102为无线 AP。 104, 106和 108为关联到该无线 AP的无线站点。 其中 104和 106还提供桥接功能, 因此也可以被称作无线站点桥 (英文: station bridge, 缩 写: STA bridge) 。 110, 112, 114, 116和 118通过以太网 (英文: Ethernet) 连接到 网络的设备,在本发明实施例中被称为以太网设备。其中 110和 112与 104相连, 114和 116 与 106相连。 图 1中各个设备的具体形态仅为示意性的, 除了图 1中出现的移动电话和各 类计算机之外, 无线站点和以太网设备还可以为平板电脑, 个人数码助理 (英文: personal digital assistant, 缩写: PDA) , 移动互联网设备(英文: mobile Internet device, 缩写: MID) 和电子书阅读器 (英文: e-book reader) 等。
参见图 1和图 2, 本发明实施例提供了一种无线局域网访问方法。 图 2为本发明实施 例的方法流程图。 该方法包括:
202、 第一无线站点桥接收第一以太网设备发送的第一以太网数据帧, 所述第一以 太网数据帧的源介质访问控制 (英文: media access control, 缩写: MAC) 地址为与 所述第一无线站点桥连接的第一以太网设备的 MAC地址。
本发明实施例中的第一无线站点桥可以是任意一个无线站点桥, 为方便说明, 以下 描述中第一无线站点桥为图 1中的 104。 第一无线站点桥也可称作第一无线站点, 该第一 无线站点提供桥接功能。
第一以太网设备是通过以太网与第一无线站点桥连接的设备, 例如图 1中的 110或 112。 一个无线站点桥生成多个虚拟接口 MAC地址。 一个无线站点桥生成的多个虚拟接口 MAC地址中的任意一个与该无线站点桥自身的 MAC地址都不同。一个无线站点桥生成的多 个虚拟接口 MAC地址中的任意一个与该无线站点桥连接的以太网设备的 MAC地址都不同。
第一无线站点桥在接收第一以太网数据帧后, 生成该第一以太网数据帧的源 MAC地 址和一个虚拟接口 MAC地址间的对应关系。该虚拟接口 MAC地址是第一无线站点桥生成的 多个虚拟接口 MAC地址中的一个。
举例来说, 第一无线站点桥生成该对应关系的方式有以下几种。
第一无线站点桥可以在自身关联到无线 AP时即生成多个虚拟接口 MAC地址。 在接收 第一以太网数据帧后从多个已生成的虚拟接口 MAC地址中选择一个未使用的虚拟接口 MAC地址, 生成该第一以太网数据帧的源 MAC地址和该未使用的虚拟接口 MAC地址间的对 应关系。 该被选择的虚拟接口 MAC地址成为已使用的虚拟接口 MAC地址。
可替换的,第一无线站点桥也可以在接收第一以太网数据帧后生成一个与该第一以 太网数据帧的源 MAC地址对应的虚拟接口 MAC地址。 该生成的虚拟接口 MAC地址和第一无 线站点桥已生成的虚拟接口 MAC地址不同。 第一无线站点桥生成该第一以太网数据帧的 源 MAC地址和该生成的虚拟接口 MAC地址间的对应关系。
可替换的, 第一无线站点桥也可以在自身关联到无线 AP时即生成多个虚拟接口 MAC 地址。 在接收第一以太网数据帧后, 如果上述已生成的多个虚拟接口 MAC地址都已被使 用, 则新生成一个与该第一以太网数据帧的源 MAC地址对应的虚拟接口 MAC地址。 该新生 成的虚拟接口 MAC地址和第一无线站点桥已生成的虚拟接口 MAC地址不同。第一无线站点 桥生成该第一以太网数据帧的源 MAC地址和该新生成的虚拟接口 MAC地址间的对应关系。
第一无线站点桥也可以采用其他方式生成虚拟接口 MAC地址, 无论采用何种方式, 第一无线站点桥的已使用的多个虚拟接口 MAC地址与和所述第一无线站点桥通信过的多 个以太网设备的 MAC地址一一对应。 也就是说, 第一无线站点桥已生成的所有的以太网 数据帧的源 MAC地址和虚拟接口 MAC地址间的对应关系中的所有源 MAC地址双射到该对应 关系中的所有虚拟接口 MAC地址。
一个无线站点桥可以随机生成虚拟接口 MAC地址, 也可以按照预设的规则生成虚拟 接口 MAC地址。例如,无线站点桥可以将生成的虚拟接口 MAC地址的 24最高有效位(英文: mos t s ignif icant b i t , 缩写: MSB ) 设置为固定值, 比如组织唯一标识符 (英文: Organiza t iona l ly Unique Ident if ier , 0UI ) , 该 OUI可以是无线站点桥自身的 OUI, 即和无线站点桥自身的 MAC地址中的 24 MSB相同, 也可以是一个预设的特定的 0UI。 紧跟 该 24MSB后的为无线站点桥在 AP上的关联标识符 (association identifier, AID) , 由 于 AID的 2 MSB为固定值, 这里可以只放 AID的 14最低有效位 (英文: least significant bit, 缩写: LSB) 。 该虚拟接口 MAC地址的 10 LSB是保留位, 填充 (英文: padding) 或 随机数。 可选的, 如果无线站点桥在接收到以太网数据帧后新生成一个与该以太网数据 帧的源 MAC地址对应的虚拟接口 MAC地址,无线站点桥可以按照预设的算法,根据该源 MAC 地址计算待生成的虚拟接口 MAC地址。
生成该对应关系后,第一无线站点桥向第一无线站点桥所关联的无线 AP发送上述对 应关系。 该无线 AP接收到上述对应关系后, 广播该对应关系。 根据该对应关系, 无线 AP 或其他无线站点桥可以得知包含虚拟接口 MAC地址的帧或子帧来自哪一个以太网设备。
204、 所述第一无线站点桥根据所述第一以太网数据帧生成第一无线局域网数据帧
(以下简称 WLAN数据帧) 。 所述第一 WLAN数据帧的帧头中包括发送方 MAC地址和接收方 MAC地址。 所述第一 WLAN数据帧的帧头中的发送方 MAC地址为, 与所述第一以太网数据帧 的源 MAC地址对应的虚拟接口 MAC地址, 所述虚拟接口 MAC地址为所述第一无线站点桥的 多个虚拟接口 MAC地址中的一个。
WLAN数据帧 (英文: data frame) 是无线局域网中传输数据的帧。 WLAN数据帧包括 帧头和 MAC业务数据单元 (英文: MAC service data unit, 缩写: MSDU) , 或者包括帧 头和聚合 MSDU (英文: aggregate MSDU, 简称 A-MSDU) 。 MSDU中包括接收到的以太网数 据帧的除源 MAC地址和目的 MAC地址外的部分。 A-MSDU将多个 MSDU聚合在一个 WLAN数据帧 中传输。 只有在 WLAN中的发送方地址(英文: transmitter address)和接收方地址(英 文: receiver address) 都相同的多个 MSDU才会被聚合在一个 A-MSDU中传输。 在一个 A-MSDU中包括多个 A-MSDU子帧(英文: A-MSDU subframe), 每个 A-MSDU子帧包括 A-MSDU 子帧头和 MSDU。 A-MSDU子帧头中包括源地址 (英文: source address, 缩写: SA) , 目 的地址 (英文: destination address, 缩写: SA) 和该 A-MSDU子帧中的 MSDU的长度。
WLAN数据帧的帧头为 MAC头(英文: MAC header)。在无线 STA和无线 AP间传输的 WLAN 数据帧的帧头中的 MAC地址的数量为 3个。 WLAN数据帧的帧头中的 MAC地址中总是包括发 送方地址和接收方地址, 由于发送方地址和接收方地址都为 MAC地址, 以下分别称为发 送方 MAC地址和接收方 MAC地址。 如果 WLAN数据帧中承载的是 MSDU, 该 WLAN数据帧的帧头 中的 MAC地址还包括目的 MAC地址。 如果 WLAN数据帧中承载的是 A-MSDU, 该 WLAN数据帧的 帧头中的 MAC地址还包括基本服务集标识符(英文: basic service set identification, 缩写: BSSID) , 也就是该无线 AP的 MAC地址。 第一 WLAN数据帧由第一无线站点桥向无线 AP发送, 因此第一 WLAN数据帧的帧头中的 接收方 MAC地址为无线 AP的 MAC地址。
通常的无线站点发送的 WLAN数据帧的发送方 MAC地址为该无线站点的 MAC地址。如果 无线站点桥使用该无线站点桥自身的 MAC地址作为发送方 MAC地址, 则接收该 WLAN数据帧 的无线 AP以及被无线 AP转发该 WLAN数据帧的无线站点不能分辨发送该 WLAN数据帧的设 备是该无线站点桥自身还是通过以太网连接到该无线站点桥的设备。而如果无线站点桥 使用接收到的以太网数据帧的 MAC地址作为 WLAN数据帧的发送方 MAC地址,那么无线 AP无 法识别该 WLAN数据帧的发送方 MAC地址。
本发明实施例中,第一无线站点桥为每个通过以太网连接到该第一无线站点桥的以 太网设备生成一个虚拟接口 MAC地址, 在发送第一 WLAN数据帧时, 用与所述第一以太网 数据帧的源 MAC地址对应的虚拟接口 MAC地址作为第一 WLAN数据帧的发送方 MAC地址。 上 述通过以太网连接到该第一无线站点桥的以太网设备可以是与该第一无线站点桥直接 连接的设备, 也可以是通过网络交换机或以太网集线器 (英文: Ethernet hub ) 连接到 该第一无线站点桥的设备。
如果第一 WLAN数据帧中承载的是 MSDU, 第一 WLAN数据帧的帧头中的目的 MAC地址为 第一以太网数据帧的目的 MAC地址。
第一无线站点桥可以聚合多个 MSDU。第一无线站点桥根据第一以太网数据帧和其它 以太网数据帧生成第一 WLAN数据帧, 第一 WLAN数据帧承载 A-MSDU。 该 A-MSDU中包括多个 A-MSDU子帧, 其中的一个 A-MSDU子帧是根据第一以太网数据帧生成的。 该 A-MSDU子帧的 目的地址为第一以太网数据帧的目的 MAC地址。 如果第一以太网数据帧是单播数据帧, 该 A-MSDU子帧的源地址为第一以太网数据帧的源 MAC地址。 如果第一以太网数据帧是广 播数据帧或组播数据帧, 该 A-MSDU子帧的目的地址为第一以太网数据帧的目的 MAC地址, 即广播 MAC地址或组播 MAC地址, 该 A-MSDU子帧的源地址为与第一以太网数据帧的源 MAC 地址对应的虚拟接口 MAC地址。 可选的, 承载 A-MSDU的第一 WLAN数据帧的发送方 MAC地址 可以不是虚拟接口 MAC地址, 而是第一无线站点桥的 MAC地址。
206、 所述第一无线站点桥发送所述第一 WLAN数据帧。
如果无线 AP接收到第二无线站点桥发送的 WLAN数据帧, 该 WLAN数据帧承载 MSDU, 该 WLAN数据帧的的帧头中的目的 MAC地址为与第一无线站点桥相连的以太网设备, 例如第 一以太网设备, 的 MAC地址, 无线 AP向第一无线站点桥发送第二 WLAN数据帧。 第二无线 站点桥也可称作第二无线站点, 该第二无线站点提供桥接功能。 第二 WLAN数据帧的帧头 中的接收方 MAC地址为,根据第一无线站点桥发送的第一以太网数据帧的源 MAC地址和虚 拟接口 MAC地址间的对应关系, 与第二无线站点桥发送的 WLAN数据帧的帧头中的目的 MAC 地址对应的虚拟接口 MAC地址。第二 WLAN数据帧的帧头中的发送方 MAC地址为该无线 AP的 MAC地址。 如果第二 WLAN数据帧中承载的是 MSDU, 该 MSDU是第二无线站点桥发送的 WLAN 数据帧承载的 MSDU, 该第二 WLAN数据帧的帧头中的 MAC地址还包括源 MAC地址。 该源 MAC 地址为第二无线站点桥发送的 WLAN数据帧的帧头中的发送方 MAC地址。 如果第二 WLAN数 据帧中承载的是 A-MSDU, 该 A-MSDU中的一个 A-MSDU子帧中的 MSDU是第二无线站点桥发送 的 WLAN数据帧承载的 MSDU, 该 A-MSDU子帧的目的地址为第二无线站点桥发送的 WLAN数据 帧的帧头中的目的 MAC地址, 该 A-MSDU子帧的源地址为第二无线站点桥发送的 WLAN数据 帧的帧头中的发送方 MAC地址。 如果第二 WLAN数据帧中承载的是 A-MSDU, 第二 WLAN数据 帧的帧头中的 MAC地址还包括 BSS ID。
如果无线 AP接收到第二无线站点桥发送的 WLAN数据帧, 该 WLAN数据帧承载 A-MSDU, 该 WLAN数据帧承载的 A-MSDU中一个 A-MSDU子帧的目的地址为与第一无线站点桥相连的 以太网设备,例如第一以太网设备, 的 MAC地址,无线 AP向第一无线站点桥发送第二 WLAN 数据帧。 无线 AP接收第二无线站点桥发送的与第二无线站点桥相连的以太网设备的 MAC 地址和虚拟接口 MAC地址间的对应关系。第二 WLAN数据帧的帧头中的发送方 MAC地址为该 无线 AP的 MAC地址。 如果第二 WLAN数据帧中承载的是 MSDU, 该 MSDU是第二无线站点桥发 送的 WLAN数据帧承载的 A-MSDU中的, 目的地址为与第一无线站点桥相连的以太网设备的 MAC地址的, A-MSDU子帧的 MSDU。 该第二 WLAN数据帧的帧头中的接收方 MAC地址为, 根据 第一无线站点桥发送的第一以太网数据帧的源 MAC地址和虚拟接口 MAC地址间的对应关 系, 与第二无线站点桥发送的 WLAN数据帧承载的 A-MSDU中的, 目的地址为与第一无线站 点桥相连的以太网设备的 MAC地址的, A-MSDU子帧的目的地址对应的虚拟接口 MAC地址。 该第二 WLAN数据帧的帧头中的 MAC地址还包括源 MAC地址。第二 WLAN数据帧的帧头中的源 MAC地址为第二无线站点桥发送的 WLAN数据帧的帧头中的发送方 MAC地址。 或者, 第二 WLAN数据帧的帧头中的源 MAC地址为, 根据第二无线站点桥发送的与第二无线站点桥相 连的以太网设备的 MAC地址和虚拟接口 MAC地址间的对应关系, 与第二无线站点桥发送的 WLAN数据帧承载的 A-MSDU中的, 目的地址为与第一无线站点桥相连的以太网设备的 MAC 地址的, A-MSDU子帧的源地址对应的虚拟接口 MAC地址。 如果第二 WLAN数据帧中承载的 是 A-MSDU, 该 A-MSDU中的一个 A-MSDU子帧是第二无线站点桥发送的 WLAN数据帧承载的 A-MSDU中的, 目的地址为与第一无线站点桥相连的以太网设备的 MAC地址的, A-MSDU子 帧。 第二 WLAN数据帧的帧头中的接收方 MAC地址为第一无线站点桥的 MAC地址。 或者, 第 二 WLAN数据帧的帧头中的接收方 MAC地址为, 根据第一无线站点桥发送的第一以太网数 据帧的源 MAC地址和虚拟接口 MAC地址间的对应关系, 与第二无线站点桥发送的 WLAN数据 帧承载的 A-MSDU中的, 目的地址为与第一无线站点桥相连的以太网设备的 MAC地址的, A-MSDU子帧的目的地址对应的虚拟接口 MAC地址。第二 WLAN数据帧的帧头中的 MAC地址还 包括 BSS ID。
无线 AP接收到第二无线站点桥发送的与第二无线站点桥相连的以太网设备的 MAC地 址和虚拟接口 MAC地址间的对应关系后, 广播该对应关系。 第一无线站点桥接收该对应 关系。 第一无线站点桥接收无线 AP发送的第二 WLAN数据帧。 如果第二 WLAN数据帧承载 MSDU, 第一无线站点根据第二 WLAN数据帧生成第二以太网数据帧。 第二以太网数据帧的 目的 MAC地址为, 根据所述第一以太网数据帧的源 MAC地址和与所述源 MAC地址对应的虚 拟接口 MAC地址间的对应关系, 与所述第二 WLAN数据帧的帧头中的接收方 MAC地址对应的 MAC地址。因为第二 WLAN数据帧的帧头中的接收方 MAC地址是与第一无线站点桥相连的以 太网设备的 MAC地址对应的虚拟接口 MAC地址, 所以该第二 WLAN数据帧的帧头中的目的 MAC地址就是与第一无线站点桥相连的以太网设备的 MAC地址。 第二以太网数据帧的源 MAC地址为,根据所述第二无线站点桥的虚拟接口 MAC地址和与所述第二无线站点桥连接 的以太网设备的 MAC地址间的对应关系, 与所述第二 WLAN数据帧的帧头中的源 MAC地址对 应的 MAC地址。因为第二 WLAN数据帧的帧头中的源 MAC地址是第二无线站点桥发送的 WLAN 数据帧的帧头中的发送方 MAC地址, 也就是与向第二无线站点桥发送以太网数据帧的以 太网设备的 MAC地址对应的虚拟接口 MAC地址, 所以该第二以太网数据帧的源 MAC地址就 是向第二无线站点桥发送以太网数据帧的以太网设备的 MAC地址。 如果第二 WLAN数据帧 承载 A-MSDU,第一无线站点桥根据第二 WLAN数据帧承载的 A-MSDU中的 A-MSDU子帧生成第 二以太网数据帧。第二以太网数据帧的目的 MAC地址和源 MAC地址分别为该 A-MSDU子帧的 目的地址和源地址。
如果第一以太网数据帧是广播数据帧或组播数据帧,在第一 WLAN数据帧承载 MSDU的 情况下, 第一 WLAN数据帧的帧头中的目的 MAC地址为第一以太网数据帧的目的 MAC地址, 即广播 MAC地址或组播 MAC地址。无线 AP接收到第一 WLAN数据帧后,发送第三 WLAN数据帧。 第三 WLAN数据帧的帧头中的接收方 MAC地址为第一 WLAN数据帧的帧头中的目的 MAC地址, 即广播 MAC地址或组播 MAC地址。 第三 WLAN数据帧的帧头中的发送方 MAC地址为该无线 AP 的 MAC地址。 如果第三 WLAN数据帧中承载的是 MSDU , 该 MSDU是第一 WLAN数据帧承载的 MSDU,该第三 WLAN数据帧的帧头中的 MAC地址还包括源 MAC地址。该源 MAC地址为第一 WLAN 数据帧的帧头中的发送方 MAC地址如果第三 WLAN数据帧中承载的是 A-MSDU, 该 A-MSDU中 的一个 A-MSDU子帧中的 MSDU是第一 WLAN数据帧承载的 MSDU, 该 A-MSDU子帧的目的地址为 第一 WLAN数据帧的帧头中的目的 MAC地址, 即广播 MAC地址或组播 MAC地址, 该 A-MSDU子 帧的源地址为第一 WLAN数据帧的帧头中的发送方 MAC地址。 如果第三 WLAN数据帧中承载 的是 A-MSDU, 第三 WLAN数据帧的帧头中的 MAC地址还包括 BSS ID。
如果第一以太网数据帧是广播数据帧或组播数据帧,在第一 WLAN数据帧承载 A-MSDU 的情况下, 第一 WLAN数据帧承载的 A-MSDU中, 与第一以太网数据帧对应的, A-MSDU子帧 的目的地址为第一以太网数据帧的目的 MAC地址, 即广播 MAC地址或组播 MAC地址, 该 A-MSDU子帧的源地址为与第一以太网数据帧的源 MAC地址对应的虚拟接口 MAC地址。无线 AP接收到第一 WLAN数据帧后, 发送第三 WLAN数据帧。 第三 WLAN数据帧的帧头中的接收方 MAC地址为上述 A-MSDU子帧的目的地址, 即广播 MAC地址或组播 MAC地址。 第三 WLAN数据 帧的帧头中的发送方 MAC地址为该无线 AP的 MAC地址。 如果第三 WLAN数据帧中承载的是 MSDU,该 MSDU是第一 WLAN数据帧承载的 A-MSDU中的,与第一以太网数据帧对应的, A-MSDU 子帧的 MSDU。 该第三 WLAN数据帧的帧头中的 MAC地址还包括源 MAC地址。 第三 WLAN数据帧 的帧头中的源 MAC地址为, 第一 WLAN数据帧承载的 A-MSDU中, 与第一以太网数据帧对应 的, A-MSDU子帧的源 MAC地址。 如果第三 WLAN数据帧中承载的是 A-MSDU, 该 A-MSDU中的 一个 A-MSDU子帧是第一 WLAN数据帧承载的 A-MSDU中的, 与第一以太网数据帧对应的, A-MSDU子帧。 如果第三 WLAN数据帧中承载的是 A-MSDU, 第三 WLAN数据帧的帧头中的 MAC 地址还包括 BSS ID。
第二无线站点桥接收到第三 WLAN数据帧, 如果第三 WLAN数据帧承载 A-MSDU, 第二无 线站点桥根据第三 WLAN数据帧承载的 A-MSDU中的 A-MSDU子帧生成第二以太网数据帧。第 二以太网数据帧的目的 MAC地址为该 A-MSDU子帧的目的地址。第二以太网数据帧的源 MAC 地址为,根据无线 AP广播的第一以太网数据帧的源 MAC地址和与所述源 MAC地址对应的虚 拟接口 MAC地址间的对应关系, 与该 A-MSDU子帧的源 MAC地址对应的 MAC地址。 因为该 A-MSDU子帧的源地址为与第一以太网数据帧的源 MAC地址对应的虚拟接口 MAC地址,所以 该第二以太网数据帧的源 MAC地址就是第一以太网设备的 MAC地址。
因为第三 WLAN数据帧的帧头中的接收方 MAC地址为广播 MAC地址或组播 MAC地址, 第 一无线站点桥也会接收到第三 WLAN数据帧。 如果第三 WLAN数据帧中承载的是 MSDU, 第一 无线站点桥检查第三 WLAN数据帧的帧头中的源 MAC地址。 如果第三 WLAN数据帧的帧头中 的源 MAC地址是第一无线站点桥的虚拟接口 MAC地址, 即该源 MAC地址为第一无线站点桥 的多个虚拟接口 MAC地址中的一个, 第一无线站点桥丢弃所述第三 WLAN数据帧。 如果第 三 WLAN数据帧中承载的是 A-MSDU,第一无线站点桥获取第三 WLAN数据帧承载的 A-MSDU中 的各个 A-MSDU子帧。 第一无线站点桥检查获取到的 A-MSDU子帧的源地址, 如果 A-MSDU子 帧的源地址为第一无线站点桥的虚拟接口 MAC地址, 即该源地址为第一无线站点桥的多 个虚拟接口 MAC地址中的一个, 第一无线站点桥丢弃该 A-MSDU子帧。
图 2所示实施例重点描述以无线站点桥的工作方法, 该实施例中无线接入点的工作 方法请参见图 3所示实施例。
参见图 1和图 3, 本发明实施例提供了一种无线局域网访问方法。 图 3为本发明实施 例的方法流程图。 该方法包括:
302、 无线接入点接收来自第一无线站点桥的, 所述第一无线站点桥的虚拟接口 MAC 地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应关系。
本发明实施例中的第一无线站点桥可以是任意一个无线站点桥, 为方便说明, 以下 描述中第一无线站点桥为图 1中的 104。
一个无线站点桥生成多个虚拟接口 MAC地址。 一个无线站点桥生成的多个虚拟接口
MAC地址中的任意一个与该无线站点桥自身的 MAC地址都不同。一个无线站点桥生成的多 个虚拟接口 MAC地址中的任意一个与该无线站点桥连接的以太网设备的 MAC地址都不同。
第一无线站点桥在接收以太网数据帧后, 生成该以太网数据帧的源 MAC地址和一个 虚拟接口 MAC地址间的对应关系。该虚拟接口 MAC地址是第一无线站点桥生成的多个虚拟 接口 MAC地址中的一个。
举例来说, 第一无线站点桥生成该对应关系的方式有以下几种。
第一无线站点桥可以在自身关联到无线 AP时即生成多个虚拟接口 MAC地址。 在接收 以太网数据帧后从多个已生成的虚拟接口 MAC地址中选择一个未使用的虚拟接口 MAC地 址, 生成该以太网数据帧的源 MAC地址和该未使用的虚拟接口 MAC地址间的对应关系。 该 被选择的虚拟接口 MAC地址成为已使用的虚拟接口 MAC地址。
可替换的,第一无线站点桥也可以在接收以太网数据帧后生成一个与该以太网数据 帧的源 MAC地址对应的虚拟接口 MAC地址。 该生成的虚拟接口 MAC地址和第一无线站点桥 已生成的虚拟接口 MAC地址不同。第一无线站点桥生成该以太网数据帧的源 MAC地址和该 生成的虚拟接口 MAC地址间的对应关系。
可替换的, 第一无线站点桥也可以在自身关联到无线 AP时即生成多个虚拟接口 MAC 地址。 在接收以太网数据帧后, 如果上述已生成的多个虚拟接口 MAC地址都已被使用, 则新生成一个与该以太网数据帧的源 MAC地址对应的虚拟接口 MAC地址。该新生成的虚拟 接口 MAC地址和第一无线站点桥已生成的虚拟接口 MAC地址不同。第一无线站点桥生成该 以太网数据帧的源 MAC地址和该新生成的虚拟接口 MAC地址间的对应关系。
第一无线站点桥也可以采用其他方式的生成虚拟接口 MAC地址,无论采用何种方式, 第一无线站点桥的已使用的多个虚拟接口 MAC地址与和所述第一无线站点桥通信过的多 个以太网设备的 MAC地址一一对应。 也就是说, 第一无线站点桥已生成的所有的以太网 数据帧的源 MAC地址和虚拟接口 MAC地址间的对应关系中的所有源 MAC地址双射到该对应 关系中的所有虚拟接口 MAC地址。
一个无线站点桥可以随机生成虚拟接口 MAC地址, 也可以按照预设的规则生成虚拟 接口 MAC地址。例如,无线站点桥可以生成的将虚拟接口 MAC地址的 24 MSB设置为固定值, 比如 0UI, 紧跟该 24 MSB后的为无线站点桥在 AP上的 AID, 由于 AID的 2 MSB为固定值, 这 里可以只放 AID的 14 LSB。 该虚拟接口 MAC地址的 10 LSB是保留位, 填充或随机数。 可选 的, 如果无线站点桥在接收到以太网数据帧后新生成一个与该以太网数据帧的源 MAC地 址对应的虚拟接口 MAC地址, 无线站点桥可以按照预设的算法, 根据该源 MAC地址计算待 生成的虚拟接口 MAC地址。
生成该对应关系后,第一无线站点桥向第一无线站点桥所关联的无线 AP发送上述对 应关系。 该无线 AP接收到该对应关系后, 广播该对应关系。
无线接入点还可以接收来自第二无线站点桥的, 所述第二无线站点桥的虚拟接口 MAC地址和与所述第二无线站点桥连接的以太网设备的 MAC地址间的对应关系。该无线 AP 接收到该对应关系后, 广播该对应关系。 第一无线站点桥接收该对应关系。
304、 所述无线接入点接收来自第二无线站点桥的第一无线局域网数据帧。 所述第 一无线局域网数据帧的帧头中包括发送方 MAC地址和接收方 MAC地址。
第二无线站点桥接收以太网设备发送的以太网数据帧, 该以太网数据帧的源 MAC地 址为与所述第二无线站点桥连接的以太网设备的 MAC地址。 第二无线站点桥根据该以太 网数据帧生成第一 WLAN数据帧。 所述第一 WLAN数据帧的帧头中的发送方 MAC地址为, 与 该以太网数据帧的源 MAC地址对应的虚拟接口 MAC地址, 该虚拟接口 MAC地址为第二无线 站点桥的多个虚拟接口 MAC地址中的一个。 可替换的, 在第一 WLAN数据帧承载的是 A-MSDU, 并且该 A-MSDU中的 A-MSDU子帧的源地址为与该以太网数据帧的源 MAC地址对应 的虚拟接口 MAC地址的情况下,第一 WLAN数据帧的帧头中的发送方 MAC地址可以为第二无 线站点桥的 MAC地址。
WLAN数据帧是 WLAN中传输数据的帧。 WLAN数据帧包括帧头和 MSDU, 或者包括帧头和 A-MSDU 0 在一个 A-MSDU中包括多个 A-MSDU子帧, 每个 A-MSDU子帧包括 A-MSDU子帧头和 MSDU。 A-MSDU子帧头中包括源地址, 目的地址和该 A-MSDU子帧中的 MSDU的长度。
WLAN数据帧的帧头为 MAC头。 在无线 STA和无线 AP间传输的 WLAN数据帧的帧头中的
MAC地址的数量为 3个。
306、 在所述第一无线局域网数据帧的目标设备为与所述无线接入点间通过所述第 一无线站点桥连接的设备的情况下,所述无线接入点根据所述第一无线局域网数据帧生 成第二无线局域网数据帧。 所述第二无线局域网数据帧的帧头中包括发送方 MAC地址和 接收方 MAC地址。 所述第二无线局域网数据帧的帧头中的接收方 MAC地址为, 根据所述第 一无线站点桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地 址间的对应关系, 与所述第一无线局域网数据帧的目标设备的 MAC地址对应的虚拟接口 MAC地址。
第二 WLAN数据帧的帧头中的发送方 MAC地址为该无线 AP的 MAC地址。
1 )如果第一 WLAN数据帧中承载的是 MSDU, 第一 WLAN数据帧的帧头中包括目的 MAC地 址。 该目的 MAC地址即为目标设备的 MAC地址。 第一 WLAN数据帧的目标设备为与所述无线 接入点间通过第一无线站点桥连接的设备, 就是第一 WLAN数据帧的帧头中的目的 MAC地 址为与所述无线接入点间通过第一无线站点桥连接的设备的 MAC地址。
如果第二 WLAN数据帧中承载的是 MSDU, 该 MSDU是第二无线站点桥发送的 WLAN数据帧 承载的 MSDU, 该第二 WLAN数据帧的帧头中的 MAC地址还包括源 MAC地址。 该源 MAC地址为 第一 WLAN数据帧的帧头中的发送方 MAC地址。
如果第二 WLAN数据帧中承载的是 A-MSDU, 该 A-MSDU中的一个 A-MSDU子帧中的 MSDU是 第一 WLAN数据帧承载的 MSDU, 该 A-MSDU子帧的目的地址为第一 WLAN数据帧的帧头中的目 的 MAC地址, 该 A-MSDU子帧的源地址为第一 WLAN数据帧的帧头中的发送方 MAC地址。 第二 WLAN数据帧的帧头中的 MAC地址还包括 BSS ID。 在这种情况下, 可替换的, 第二无线局域 网数据帧的帧头中的接收方 MAC地址可以为第二无线站点桥的 MAC地址。
如果无线 AP接收的来自第二无线站点桥的 WLAN数据帧, 例如第三 WLAN数据帧, 的目 标设备为与无线 AP通过以太网连接的设备, 例如图 1中的设备 118, 无线 AP根据第三 WLAN 数据帧生成以第一太网数据帧。 如果第三 WLAN数据帧承载 MSDU, 第三 WLAN数据帧的帧头 中包括目的 MAC地址, 发送方 MAC地址和接收方 MAC地址。 第三 WLAN数据帧的目标设备为 与无线 AP通过以太网连接的设备, 就是第三 WLAN数据帧的帧头中的目的 MAC地址为与所 述无线 AP通过以太网连接的设备的 MAC地址。第一太网数据帧的目的 MAC地址为第三 WLAN 数据帧的帧头中的目的 MAC地址。 第一太网数据帧的源 MAC地址为, 根据第二无线站点桥 的虚拟接口 MAC地址和与第二无线站点桥连接的以太网设备的 MAC地址间的对应关系, 与 所述第三 WLAN数据帧的帧头中的发送方 MAC地址对应的 MAC地址。因为第三 WLAN数据帧的 帧头中的发送方 MAC地址为与向第二无线站点桥发送以太网数据帧的以太网设备的 MAC 地址对应的虚拟接口 MAC地址,所以第一以太网数据帧的源 MAC地址就是向第二无线站点 桥发送以太网数据帧的以太网设备的 MAC地址。 如果第三 WLAN数据帧承载 A-MSDU, 第三 WLAN数据帧的帧头中包括 BSS ID, 发送方 MAC地址和接收方 MAC地址。 第三 WLAN数据帧的 目标设备为与无线 AP通过以太网连接的设备, 就是第三 WLAN数据帧承载的 A-MSDU中的多 个 A-MSDU子帧中的任意一个的目的地址为与无线 AP通过以太网连接的设备的 MAC地址。 具体的,无线 AP根据第三 WLAN数据帧中的目的地址为与无线 AP通过以太网连接的设备的 MAC地址的 A-MSDU子帧生成以第一太网数据帧。 第一太网数据帧的目的 MAC地址为该 A-MSDU子帧的目的地址。 第一太网数据帧的源 MAC地址为该 A-MSDU子帧的源地址。
如果第一 WLAN数据帧的帧头中的目的 MAC地址为广播 MAC地址或组播 MAC地址, 无线
AP接收到第一 WLAN数据帧后, 发送第五 WLAN数据帧。 第五 WLAN数据帧的帧头中的接收方 MAC地址为第一 WLAN数据帧的帧头中的目的 MAC地址, 即广播 MAC地址或组播 MAC地址。 第 五 WLAN数据帧的帧头中的发送方 MAC地址为该无线 AP的 MAC地址。如果第五 WLAN数据帧中 承载的是 MSDU,该 MSDU是第一 WLAN数据帧承载的 MSDU,该第五 WLAN数据帧的帧头中的 MAC 地址还包括源 MAC地址。 该源 MAC地址为第一 WLAN数据帧的帧头中的发送方 MAC地址如果 第五 WLAN数据帧中承载的是 A-MSDU, 该 A-MSDU中的一个 A-MSDU子帧中的 MSDU是第一 WLAN 数据帧承载的 MSDU, 该 A-MSDU子帧的目的地址为第一 WLAN数据帧的帧头中的目的 MAC地 址, 即广播 MAC地址或组播 MAC地址, 该 A-MSDU子帧的源地址为第一 WLAN数据帧的帧头中 的发送方 MAC地址。 第五 WLAN数据帧的帧头中的 MAC地址还包括 BSS ID。
2 ) 如果第一 WLAN数据帧中承载的是 A-MSDU, 第一 WLAN数据帧承载的 A-MSDU包括多 个 A-MSDU子帧。 该多个 A-MSDU子帧的目的地址即为目标设备的 MAC地址。 第一 WLAN数据 帧的目标设备为与所述无线接入点间通过第一无线站点桥连接的设备, 就是第一 WLAN数 据帧承载的 A-MSDU中的多个 A-MSDU子帧中的任意一个的目的地址为与所述无线接入点 间通过第一无线站点桥连接的设备的 MAC地址。
第二 WLAN数据帧的帧头中的发送方 MAC地址为该无线 AP的 MAC地址。 如果第二 WLAN数据帧中承载的是 MSDU, 该 MSDU是第一 WLAN数据帧承载的 A-MSDU中 的, 目的地址为与第一无线站点桥相连的以太网设备的 MAC地址的, A-MSDU子帧的 MSDU。 该第二 WLAN数据帧的帧头中的接收方 MAC地址为, 根据第一无线站点桥发送的第一无线 站点桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的 对应关系, 与第一 WLAN数据帧承载的 A-MSDU中的, 目的地址为与第一无线站点桥相连的 以太网设备的 MAC地址的, A-MSDU子帧的目的地址对应的虚拟接口 MAC地址。 该第二 WLAN 数据帧的帧头中的 MAC地址还包括源 MAC地址。第二 WLAN数据帧的帧头中的源 MAC地址为, 根据第二无线站点桥发送的与第二无线站点桥相连的以太网设备的 MAC地址和虚拟接口 MAC地址间的对应关系, 与第一 WLAN数据帧承载的 A-MSDU中的, 目的地址为与第一无线 站点桥相连的以太网设备的 MAC地址的, A-MSDU子帧的源地址对应的虚拟接口 MAC地址。 或者, 如果第一 WLAN数据帧的帧头中的发送方 MAC地址为与第二无线站点桥接收的以太 网数据帧的源 MAC地址对应的虚拟接口 MAC地址, 第二 WLAN数据帧的帧头中的源 MAC地址 可以为第一 WLAN数据帧的帧头中的发送方 MAC地址。
如果第二 WLAN数据帧中承载的是 A-MSDU, 该 A-MSDU中的一个 A-MSDU子帧是第一 WLAN 数据帧承载的 A-MSDU中的, 目的地址为与第一无线站点桥相连的以太网设备的 MAC地址 的, A-MSDU子帧。 第二 WLAN数据帧的帧头中的接收方 MAC地址为第一无线站点桥的 MAC地 址。 或者, 第二 WLAN数据帧的帧头中的接收方 MAC地址为, 根据第一无线站点桥发送的 第一无线站点桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC 地址间的对应关系, 与第一 WLAN数据帧承载的 A-MSDU中的, 目的地址为与第一无线站点 桥相连的以太网设备的 MAC地址的, A-MSDU子帧的目的地址对应的虚拟接口 MAC地址。 第 二 WLAN数据帧的帧头中的 MAC地址还包括 BSS ID。
如果第一 WLAN数据帧承载的 A-MSDU中的一个 A-MSDU子帧的目的地址为广播 MAC地址 或组播 MAC地址, 无线 AP接收到第一 WLAN数据帧后, 发送第五 WLAN数据帧。 第五 WLAN数 据帧的帧头中的接收方 MAC地址为上述 A-MSDU子帧的目的地址, 即广播 MAC地址或组播 MAC地址。 第五 WLAN数据帧的帧头中的发送方 MAC地址为该无线 AP的 MAC地址。 如果第五 WLAN数据帧中承载的是 MSDU, 该 MSDU是第一 WLAN数据帧承载的 A-MSDU中的所述 A-MSDU子 帧的 MSDU。 该第五 WLAN数据帧的帧头中的 MAC地址还包括源 MAC地址。 第五 WLAN数据帧的 帧头中的源 MAC地址为, 第一 WLAN数据帧承载的 A-MSDU中所述 A-MSDU子帧的源 MAC地址。 如果第五 WLAN数据帧中承载的是 A-MSDU, 该 A-MSDU中的一个 A-MSDU子帧是第一 WLAN数据 帧承载的 A-MSDU中的所述 A-MSDU子帧。 如果第五 WLAN数据帧中承载的是 A-MSDU, 第五 WLAN数据帧的帧头中的 MAC地址还包括 BSS ID。无线 AP还通过以太网广播或组播以太网数 据帧。 该以太网数据的目的 MAC地址为上述 A-MSDU子帧的目的地址, 即广播 MAC地址或组 播 MAC地址。 该以太网数据帧的源 MAC地址为, 根据第二无线站点桥的虚拟接口 MAC地址 和与第二无线站点桥连接的以太网设备的 MAC地址间的对应关系, 与上述 A-MSDU子帧的 源 MAC地址对应的 MAC地址。因为该 A-MSDU子帧的源地址为与第二无线站点桥连接的以太 网设备的 MAC地址对应的虚拟接口 MAC地址, 所以该以太网数据帧的源 MAC地址就是与第 二无线站点桥连接的以太网设备的 MAC地址。
第一无线站点桥接收到第五 WLAN数据帧, 如果第五 WLAN数据帧承载 A-MSDU, 第一无 线站点桥根据第五 WLAN数据帧承载的 A-MSDU中的 A-MSDU子帧生成以太网数据帧。该以太 网数据帧的目的 MAC地址为该 A-MSDU子帧的目的地址。 该以太网数据帧的源 MAC地址为, 根据无线 AP广播的第二无线站点桥的虚拟接口 MAC地址和与第二无线站点桥连接的以太 网设备的 MAC地址间的对应关系, 与该 A-MSDU子帧的源 MAC地址对应的 MAC地址。 因为该 A-MSDU子帧的源地址为与第二无线站点桥连接的以太网设备的 MAC地址对应的虚拟接口 MAC地址,所以该以太网数据帧的源 MAC地址就是与第二无线站点桥连接的以太网设备的 MAC地址。
因为第五 WLAN数据帧的帧头中的接收方 MAC地址为广播 MAC地址或组播 MAC地址, 第 二无线站点桥也会接收到第五 WLAN数据帧。 如果第五 WLAN数据帧中承载的是 MSDU, 第二 无线站点桥检查第五 WLAN数据帧的帧头中的源 MAC地址。 如果第五 WLAN数据帧的帧头中 的源 MAC地址是第二无线站点桥的虚拟接口 MAC地址, 即该源 MAC地址为第二无线站点桥 的多个虚拟接口 MAC地址中的一个, 第二无线站点桥丢弃所述第五 WLAN数据帧。 如果第 五 WLAN数据帧中承载的是 A-MSDU,第二无线站点桥获取第五 WLAN数据帧承载的 A-MSDU中 的各个 A-MSDU子帧。 第二无线站点桥检查获取到的 A-MSDU子帧的源地址, 如果 A-MSDU子 帧的源地址为第二无线站点桥的虚拟接口 MAC地址, 即该源地址为第二无线站点桥的多 个虚拟接口 MAC地址中的一个, 第二无线站点桥丢弃该 A-MSDU子帧。
如果无线 AP接收到来自第二以太网设备的第二以太网数据帧, 并且第二以太网数据 帧的目的 MAC地址为与无线 AP间通过第一无线站点桥连接的设备的 MAC地址, 则无线 AP根 据第二以太网数据帧生成第四 WLAN数据帧。第二以太网设备是通过以太网与无线 AP连接 的设备, 例如图 1中的设备 118。 第四 WLAN数据帧的帧头中包括源 MAC地址, 发送方 MAC地 址和接收方 MAC地址。 第四 WLAN数据帧的帧头中的源 MAC地址为第二太网数据帧的源 MAC 地址。 第四 WLAN数据帧的帧头中的接收方 MAC地址为, 根据第一无线站点桥的虚拟接口 MAC地址和与第一无线站点桥连接的以太网设备的 MAC地址间的对应关系, 与第二以太网 数据帧的目的 MAC地址对应的第一无线站点桥的虚拟接口 MAC地址。第四 WLAN数据帧的帧 头中的发送方 MAC地址为无线 AP的 MAC地址, 即 BSS ID。 无线 AP发送该第四无线局域网数 据帧。
308、 所述无线接入点发送所述第二无线局域网数据帧。
第一无线站点桥接收无线 AP发送的第二 WLAN数据帧。 如果第二 WLAN数据帧承载 MSDU, 第一无线站点根据第二 WLAN数据帧生成第三以太网数据帧。 第三以太网数据帧的 目的 MAC地址为,根据第一无线站点桥的虚拟接口 MAC地址和与所述第一无线站点桥连接 的以太网设备的 MAC地址间的对应关系, 与所述第二 WLAN数据帧的帧头中的接收方 MAC地 址对应的 MAC地址。因为第二 WLAN数据帧的帧头中的接收方 MAC地址是与第一无线站点桥 相连的以太网设备的 MAC地址对应的虚拟接口 MAC地址,所以该第二 WLAN数据帧的帧头中 的目的 MAC地址就是与第一无线站点桥相连的以太网设备的 MAC地址。第三以太网数据帧 的源 MAC地址为,根据第二无线站点桥的虚拟接口 MAC地址和与第二无线站点桥连接的以 太网设备的 MAC地址间的对应关系, 与所述第二 WLAN数据帧的帧头中的源 MAC地址对应的 MAC地址。因为第二 WLAN数据帧的帧头中的源 MAC地址是第二无线站点桥发送的 WLAN数据 帧的帧头中的发送方 MAC地址, 也就是与向第二无线站点桥发送以太网数据帧的以太网 设备的 MAC地址对应的虚拟接口 MAC地址, 所以该第三以太网数据帧的源 MAC地址就是向 第二无线站点桥发送以太网数据帧的以太网设备的 MAC地址。 如果第二 WLAN数据帧承载 A-MSDU,第一无线站点根据第二 WLAN数据帧承载的 A-MSDU中的 A-MSDU子帧生成第三以太 网数据帧。第三以太网数据帧的目的 MAC地址和源 MAC地址分别为该 A-MSDU子帧的目的地 址和源地址。
图 3所示实施例重点描述以无线接入点的工作方法, 该实施例中无线站点桥的工作 方法请参见图 2所示实施例。 参见图 1和图 4, 本发明实施例提供了一种无线局域网访问装置。 图 4为本发明实施 例提供的无线局域网访问装置示意图。 该 WLAN访问装置由无线 STA实现。 由于实现该无 线局域网访问装置的无线 STA提供桥接功能, 因此也可以被称作无线站点桥。 该无线站 点桥具体可以是移动电话, 各类计算机, 平板电脑, PDA, MID或电子书阅读器。 该无线 站点桥可以是图 1中的任意一个无线站点桥, 为方便说明, 以下描述中该无线站点桥为 图 1中的 104, 并被称为第一无线站点桥, 该 WLAN访问装置被称为第一 WLAN访问装置。 该无线局域网访问装置包括接收模块 402, 生成模块 404和发送模块 406。 其中, 接收模块 402, 用于接收第一以太网设备发送的第一以太网数据帧, 所述第一以太 网数据帧的源 MAC地址为与所述第一无线站点桥连接的第一以太网设备的 MAC地址。
第一以太网设备是通过以太网与实现第一 WLAN访问装置的第一无线站点桥连接的 设备, 例如图 1中的 110或 112。
一个 WLAN访问装置生成多个虚拟接口 MAC地址。 一个 WLAN访问装置生成的多个虚拟 接口 MAC地址中的任意一个与该 WLAN访问装置自身的 MAC地址都不同。
第一 WLAN访问装置在接收第一以太网数据帧后, 生成该第一以太网数据帧的源 MAC 地址和一个虚拟接口 MAC地址间的对应关系。该虚拟接口 MAC地址是第一 WLAN访问装置生 成的多个虚拟接口 MAC地址中的一个。
举例来说, 第一 WLAN访问装置生成该对应关系的方式有以下几种。
第一 WLAN访问装置可以在自身关联到无线 AP时即生成多个虚拟接口 MAC地址。 在接 收第一以太网数据帧后从多个已生成的虚拟接口 MAC地址中选择一个未使用的虚拟接口 MAC地址, 生成该第一以太网数据帧的源 MAC地址和该未使用的虚拟接口 MAC地址间的对 应关系。 该被选择的虚拟接口 MAC地址成为已使用的虚拟接口 MAC地址。
可替换的,第一 WLAN访问装置也可以在接收第一以太网数据帧后生成一个与该第一 以太网数据帧的源 MAC地址对应的虚拟接口 MAC地址。 该生成的虚拟接口 MAC地址和第一 WLAN访问装置已生成的虚拟接口 MAC地址不同。 第一誦访问装置生成该第一以太网数 据帧的源 MAC地址和该生成的虚拟接口 MAC地址间的对应关系。
可替换的, 第一 WLAN访问装置也可以在自身关联到无线 AP时即生成多个虚拟接口
MAC地址。 在接收第一以太网数据帧后, 如果上述已生成的多个虚拟接口 MAC地址都已被 使用, 则新生成一个与该第一以太网数据帧的源 MAC地址对应的虚拟接口 MAC地址。 该新 生成的虚拟接口 MAC地址和第一 WLAN访问装置已生成的虚拟接口 MAC地址不同。第一 WLAN 访问装置生成该第一以太网数据帧的源 MAC地址和该新生成的虚拟接口 MAC地址间的对 应关系。
第一 WLAN访问装置也可以采用其他方式生成虚拟接口 MAC地址,无论采用何种方式, 第一 WLAN访问装置的已使用的多个虚拟接口 MAC地址与和所述第一 WLAN访问装置通信过 的多个以太网设备的 MAC地址一一对应。 也就是说, 第一 WLAN访问装置已生成的所有的 以太网数据帧的源 MAC地址和虚拟接口 MAC地址间的对应关系中的所有源 MAC地址双射到 该对应关系中的所有虚拟接口 MAC地址。 一个 WLAN访问装置可以随机生成虚拟接口 MAC地址, 也可以按照预设的规则生成虚 拟接口 MAC地址。 例如, WLAN访问装置可以将生成的虚拟接口 MAC地址的 24 MSB设置为固 定值, 比如 0UI, 紧跟该 24MSB后的为 WLAN访问装置在 AP上的 AID, 由于 AID的 2 MSB为固 定值, 这里可以只放 AID的 14 LSB。 该虚拟接口 MAC地址的 10 LSB是保留位, 填充或随机 数。 可选的, 如果 WLAN访问装置在接收到以太网数据帧后新生成一个与该以太网数据帧 的源 MAC地址对应的虚拟接口 MAC地址, WLAN访问装置可以按照预设的算法,根据该源 MAC 地址计算待生成的虚拟接口 MAC地址。
生成该对应关系后,第一 WLAN访问装置向第一 WLAN访问装置所关联的无线 AP发送上 述对应关系。 该无线 AP接收到上述对应关系后, 广播该对应关系。 根据该对应关系, 无 线 AP或其他无线站点桥可以得知包含虚拟接口 MAC地址的帧或子帧来自哪一个以太网设 备。
生成模块 404, 用于根据所述第一以太网数据帧生成第一无线局域网数据帧 (以下 简称 WLAN数据帧)。所述第一 WLAN数据帧的帧头中包括发送方 MAC地址和接收方 MAC地址。 所述第一 WLAN数据帧的帧头中的发送方 MAC地址为, 与所述第一以太网数据帧的源 MAC地 址对应的虚拟接口 MAC地址,所述虚拟接口 MAC地址为所述第一 WLAN访问装置的多个虚拟 接口 MAC地址中的一个。
WLAN数据帧 (英文: data frame) 是无线局域网中传输数据的帧。 WLAN数据帧包括 帧头和 MAC业务数据单元 (英文: MAC service data unit, 缩写: MSDU) , 或者包括帧 头和聚合 MSDU (英文: aggregate MSDU, 简称 A-MSDU) 。 MSDU中包括接收到的以太网数 据帧的除源 MAC地址和目的 MAC地址外的部分。 A-MSDU将多个 MSDU聚合在一个 WLAN数据帧 中传输。 只有在 WLAN中的发送方地址(英文: transmitter address)和接收方地址(英 文: receiver address) 都相同的多个 MSDU才会被聚合在一个 A-MSDU中传输。 在一个 A-MSDU中包括多个 A-MSDU子帧(英文: A-MSDU subframe), 每个 A-MSDU子帧包括 A-MSDU 子帧头和 MSDU。 A-MSDU子帧头中包括源地址 (英文: source address, 缩写: SA) , 目 的地址 (英文: destination address, 缩写: SA) 和该 A-MSDU子帧中的 MSDU的长度。
WLAN数据帧的帧头为 MAC头(英文: MAC header)。在无线 STA和无线 AP间传输的 WLAN 数据帧的帧头中的 MAC地址的数量为 3个。 WLAN数据帧的帧头中的 MAC地址中总是包括发 送方地址和接收方地址, 由于发送方地址和接收方地址都为 MAC地址, 以下分别称为发 送方 MAC地址和接收方 MAC地址。 如果 WLAN数据帧中承载的是 MSDU, 该 WLAN数据帧的帧头 中的 MAC地址还包括目的 MAC地址。 如果 WLAN数据帧中承载的是 A-MSDU, 该 WLAN数据帧的 帧头中的 MAC地址还包括基本服务集标识符(英文: ba s i c s erv i ce s e t i dent i f i ca t i on, 缩写: BSS ID ) , 也就是该无线 AP的 MAC地址。
第一 WLAN数据帧由第一 WLAN访问装置向无线 AP发送, 因此第一 WLAN数据帧的帧头中 的接收方 MAC地址为无线 AP的 MAC地址。
通常的无线站点发送的 WLAN数据帧的发送方 MAC地址为该无线站点的 MAC地址。如果
WLAN访问装置使用实现该 WLAN访问装置的无线站点桥自身的 MAC地址作为发送方 MAC地 址, 则接收该 WLAN数据帧的无线 AP以及被无线 AP转发该 WLAN数据帧的无线站点不能分辨 发送该 WLAN数据帧的设备是该 WLAN访问装置还是通过以太网连接到实现该 WLAN访问装 置的无线站点桥的设备。 而如果 WLAN访问装置使用接收到的以太网数据帧的 MAC地址作 为 WLAN数据帧的发送方 MAC地址, 那么无线 AP无法识别该 WLAN数据帧的发送方 MAC地址。
本发明实施例中,第一 WLAN访问装置为每个通过以太网连接到实现该第一 WLAN访问 装置的第一无线站点桥的以太网设备生成一个虚拟接口 MAC地址, 在发送第一 WLAN数据 帧时,用与所述第一以太网数据帧的源 MAC地址对应的虚拟接口 MAC地址作为第一 WLAN数 据帧的发送方 MAC地址。 上述通过以太网连接到实现该第一 WLAN访问装置的第一无线站 点桥的以太网设备可以是与该第一无线站点桥直接连接的设备, 也可以是通过网络交换 机或以太网集线器 (英文: E therne t hub ) 连接到该第一无线站点桥的设备。
如果第一 WLAN数据帧中承载的是 MSDU, 第一 WLAN数据帧的帧头中的目的 MAC地址为 第一以太网数据帧的目的 MAC地址。
第一 WLAN访问装置可以聚合多个 MSDU。第一 WLAN访问装置根据第一以太网数据帧和 其它以太网数据帧生成第一 WLAN数据帧, 第一 WLAN数据帧承载 A-MSDU。 该 A-MSDU中包括 多个 A-MSDU子帧, 其中的一个 A-MSDU子帧是根据第一以太网数据帧生成的。 该 A-MSDU子 帧的目的地址为第一以太网数据帧的目的 MAC地址。 如果第一以太网数据帧是单播数据 帧, 该 A-MSDU子帧的源地址为第一以太网数据帧的源 MAC地址。 如果第一以太网数据帧 是广播数据帧或组播数据帧, 该 A-MSDU子帧的目的地址为第一以太网数据帧的目的 MAC 地址, 即广播 MAC地址或组播 MAC地址, 该 A-MSDU子帧的源地址为与第一以太网数据帧的 源 MAC地址对应的虚拟接口 MAC地址。可选的,承载 A-MSDU的第一 WLAN数据帧的发送方 MAC 地址可以不是虚拟接口 MAC地址, 而是第一无线站点桥的 MAC地址。
发送模块 406, 用于发送所述第一 WLAN数据帧。
如果无线 AP接收到第二无线站点桥发送的 WLAN数据帧, 该 WLAN数据帧承载 MSDU, 该 WLAN数据帧的的帧头中的目的 MAC地址为与第一无线站点桥相连的以太网设备, 例如第 一以太网设备, 的 MAC地址,无线 AP向第一 WLAN访问装置发送第二 WLAN数据帧。第二 WLAN 数据帧的帧头中的接收方 MAC地址为, 根据第一 WLAN访问装置发送的第一以太网数据帧 的源 MAC地址和虚拟接口 MAC地址间的对应关系, 与第二无线站点桥发送的 WLAN数据帧的 帧头中的目的 MAC地址对应的虚拟接口 MAC地址。 第二 WLAN数据帧的帧头中的发送方 MAC 地址为该无线 AP的 MAC地址。 如果第二 WLAN数据帧中承载的是 MSDU, 该 MSDU是第二无线 站点桥发送的 WLAN数据帧承载的 MSDU, 该第二 WLAN数据帧的帧头中的 MAC地址还包括源 MAC地址。该源 MAC地址为第二无线站点桥发送的 WLAN数据帧的帧头中的发送方 MAC地址。 如果第二 WLAN数据帧中承载的是 A-MSDU, 该 A-MSDU中的一个 A-MSDU子帧中的 MSDU是第二 无线站点桥发送的 WLAN数据帧承载的 MSDU, 该 A-MSDU子帧的目的地址为第二无线站点桥 发送的 WLAN数据帧的帧头中的目的 MAC地址, 该 A-MSDU子帧的源地址为第二无线站点桥 发送的 WLAN数据帧的帧头中的发送方 MAC地址。如果第二 WLAN数据帧中承载的是 A-MSDU, 第二 WLAN数据帧的帧头中的 MAC地址还包括 BSS ID。
如果无线 AP接收到第二无线站点桥发送的 WLAN数据帧, 该 WLAN数据帧承载 A-MSDU, 该 WLAN数据帧承载的 A-MSDU中一个 A-MSDU子帧的目的地址为与第一无线站点桥相连的 以太网设备, 例如第一以太网设备, 的 MAC地址, 无线 AP向第一 WLAN访问装置发送第二 WLAN数据帧。无线 AP接收第二无线站点桥发送的与第二无线站点桥相连的以太网设备的 MAC地址和虚拟接口 MAC地址间的对应关系。 第二 WLAN数据帧的帧头中的发送方 MAC地址 为该无线 AP的 MAC地址。 如果第二 WLAN数据帧中承载的是 MSDU, 该 MSDU是第二无线站点 桥发送的 WLAN数据帧承载的 A-MSDU中的, 目的地址为与第一无线站点桥相连的以太网设 备的 MAC地址的, A-MSDU子帧的 MSDU。 该第二 WLAN数据帧的帧头中的接收方 MAC地址为, 根据第一 WLAN访问装置发送的第一以太网数据帧的源 MAC地址和虚拟接口 MAC地址间的 对应关系, 与第二无线站点桥发送的 WLAN数据帧承载的 A-MSDU中的, 目的地址为与第一 无线站点桥相连的以太网设备的 MAC地址的, A-MSDU子帧的目的地址对应的虚拟接口 MAC 地址。 该第二 WLAN数据帧的帧头中的 MAC地址还包括源 MAC地址。 第二 WLAN数据帧的帧头 中的源 MAC地址为第二无线站点桥发送的 WLAN数据帧的帧头中的发送方 MAC地址。 或者, 第二 WLAN数据帧的帧头中的源 MAC地址为, 根据第二无线站点桥发送的与第二无线站点 桥相连的以太网设备的 MAC地址和虚拟接口 MAC地址间的对应关系, 与第二无线站点桥发 送的 WLAN数据帧承载的 A-MSDU中的, 目的地址为与第一无线站点桥相连的以太网设备的 MAC地址的, A-MSDU子帧的源地址对应的虚拟接口 MAC地址。 如果第二 WLAN数据帧中承载 的是 A-MSDU, 该 A-MSDU中的一个 A-MSDU子帧是第二无线站点桥发送的 WLAN数据帧承载的 A-MSDU中的, 目的地址为与第一无线站点桥相连的以太网设备的 MAC地址的, A-MSDU子 帧。 第二 WLAN数据帧的帧头中的接收方 MAC地址为第一无线站点桥的 MAC地址。 或者, 第 二 WLAN数据帧的帧头中的接收方 MAC地址为, 根据第一 WLAN访问装置发送的第一以太网 数据帧的源 MAC地址和虚拟接口 MAC地址间的对应关系, 与第二无线站点桥发送的 WLAN数 据帧承载的 A-MSDU中的, 目的地址为与第一无线站点桥相连的以太网设备的 MAC地址的, A-MSDU子帧的目的地址对应的虚拟接口 MAC地址。第二 WLAN数据帧的帧头中的 MAC地址还 包括 BSS ID。
无线 AP接收到第二无线站点桥发送的与第二无线站点桥相连的以太网设备的 MAC地 址和虚拟接口 MAC地址间的对应关系后, 广播该对应关系。 第一 WLAN访问装置接收该对 应关系。 第一 WLAN访问装置接收无线 AP发送的第二 WLAN数据帧。 如果第二 WLAN数据帧承 载 MSDU, 第一无线站点根据第二 WLAN数据帧生成第二以太网数据帧。 第二以太网数据帧 的目的 MAC地址为, 根据所述第一以太网数据帧的源 MAC地址和与所述源 MAC地址对应的 虚拟接口 MAC地址间的对应关系, 与所述第二 WLAN数据帧的帧头中的接收方 MAC地址对应 的 MAC地址。因为第二 WLAN数据帧的帧头中的接收方 MAC地址是与第一无线站点桥相连的 以太网设备的 MAC地址对应的虚拟接口 MAC地址,所以该第二 WLAN数据帧的帧头中的目的 MAC地址就是与第一无线站点桥相连的以太网设备的 MAC地址。 第二以太网数据帧的源 MAC地址为,根据所述第二无线站点桥的虚拟接口 MAC地址和与所述第二无线站点桥连接 的以太网设备的 MAC地址间的对应关系, 与所述第二 WLAN数据帧的帧头中的源 MAC地址对 应的 MAC地址。因为第二 WLAN数据帧的帧头中的源 MAC地址是第二无线站点桥发送的 WLAN 数据帧的帧头中的发送方 MAC地址, 也就是与向第二无线站点桥发送以太网数据帧的以 太网设备的 MAC地址对应的虚拟接口 MAC地址, 所以该第二以太网数据帧的源 MAC地址就 是向第二无线站点桥发送以太网数据帧的以太网设备的 MAC地址。 如果第二 WLAN数据帧 承载 A-MSDU,第一 WLAN访问装置根据第二 WLAN数据帧承载的 A-MSDU中的 A-MSDU子帧生成 第二以太网数据帧。第二以太网数据帧的目的 MAC地址和源 MAC地址分别为该 A-MSDU子帧 的目的地址和源地址。
如果第一以太网数据帧是广播数据帧或组播数据帧,在第一 WLAN数据帧承载 MSDU的 情况下, 第一 WLAN数据帧的帧头中的目的 MAC地址为第一以太网数据帧的目的 MAC地址, 即广播 MAC地址或组播 MAC地址。无线 AP接收到第一 WLAN数据帧后,发送第三 WLAN数据帧。 第三 WLAN数据帧的帧头中的接收方 MAC地址为第一 WLAN数据帧的帧头中的目的 MAC地址, 即广播 MAC地址或组播 MAC地址。 第三 WLAN数据帧的帧头中的发送方 MAC地址为该无线 AP 的 MAC地址。 如果第三 WLAN数据帧中承载的是 MSDU, 该 MSDU是第一 WLAN数据帧承载的 MSDU,该第三 WLAN数据帧的帧头中的 MAC地址还包括源 MAC地址。该源 MAC地址为第一 WLAN 数据帧的帧头中的发送方 MAC地址。 如果第三 WLAN数据帧中承载的是 A-MSDU, 该 A-MSDU 中的一个 A-MSDU子帧中的 MSDU是第一 WLAN数据帧承载的 MSDU, 该 A-MSDU子帧的目的地址 为第一 WLAN数据帧的帧头中的目的 MAC地址, 即广播 MAC地址或组播 MAC地址, 该 A-MSDU 子帧的源地址为第一 WLAN数据帧的帧头中的发送方 MAC地址。 如果第三 WLAN数据帧中承 载的是 A-MSDU, 第三 WLAN数据帧的帧头中的 MAC地址还包括 BSS ID。
如果第一以太网数据帧是广播数据帧或组播数据帧,在第一 WLAN数据帧承载 A-MSDU 的情况下, 第一 WLAN数据帧承载的 A-MSDU中, 与第一以太网数据帧对应的, A-MSDU子帧 的目的地址为第一以太网数据帧的目的 MAC地址, 即广播 MAC地址或组播 MAC地址, 该 A-MSDU子帧的源地址为与第一以太网数据帧的源 MAC地址对应的虚拟接口 MAC地址。无线 AP接收到第一 WLAN数据帧后, 发送第三 WLAN数据帧。 第三 WLAN数据帧的帧头中的接收方 MAC地址为上述 A-MSDU子帧的目的地址, 即广播 MAC地址或组播 MAC地址。 第三 WLAN数据 帧的帧头中的发送方 MAC地址为该无线 AP的 MAC地址。 如果第三 WLAN数据帧中承载的是 MSDU,该 MSDU是第一 WLAN数据帧承载的 A-MSDU中的,与第一以太网数据帧对应的, A-MSDU 子帧的 MSDU。 该第三 WLAN数据帧的帧头中的 MAC地址还包括源 MAC地址。 第三 WLAN数据帧 的帧头中的源 MAC地址为, 第一 WLAN数据帧承载的 A-MSDU中, 与第一以太网数据帧对应 的, A-MSDU子帧的源 MAC地址。 如果第三 WLAN数据帧中承载的是 A-MSDU, 该 A-MSDU中的 一个 A-MSDU子帧是第一 WLAN数据帧承载的 A-MSDU中的, 与第一以太网数据帧对应的, A-MSDU子帧。 如果第三 WLAN数据帧中承载的是 A-MSDU, 第三 WLAN数据帧的帧头中的 MAC 地址还包括 BSS ID。
第二无线站点桥接收到第三 WLAN数据帧, 如果第三 WLAN数据帧承载 A-MSDU, 第二无 线站点桥根据第三 WLAN数据帧承载的 A-MSDU中的 A-MSDU子帧生成第二以太网数据帧。第 二以太网数据帧的目的 MAC地址为该 A-MSDU子帧的目的地址。第二以太网数据帧的源 MAC 地址为,根据无线 AP广播的第一以太网数据帧的源 MAC地址和与所述源 MAC地址对应的虚 拟接口 MAC地址间的对应关系, 与该 A-MSDU子帧的源 MAC地址对应的 MAC地址。 因为该 A-MSDU子帧的源地址为与第一以太网数据帧的源 MAC地址对应的虚拟接口 MAC地址,所以 该第二以太网数据帧的源 MAC地址就是第一以太网设备的 MAC地址。
因为第五 WLAN数据帧的帧头中的接收方 MAC地址为广播 MAC地址或组播 MAC地址, 第 一 WLAN访问装置也会接收到第五 WLAN数据帧。 如果第五 WLAN数据帧中承载的是 MSDU, 第 一 WLAN访问装置检查第五 WLAN数据帧的帧头中的源 MAC地址。 如果第五 WLAN数据帧的帧 头中的源 MAC地址是第一 WLAN访问装置的虚拟接口 MAC地址, 即该源 MAC地址为第一 WLAN 访问装置的多个虚拟接口 MAC地址中的一个, 第一 WLAN访问装置丢弃所述第五 WLAN数据 帧。 如果第五 WLAN数据帧中承载的是 A-MSDU, 第一 WLAN访问装置获取第五 WLAN数据帧承 载的 A-MSDU中的各个 A-MSDU子帧。 第一 WLAN访问装置检查获取到的 A-MSDU子帧的源地 址, 如果 A-MSDU子帧的源地址为第一 WLAN访问装置的虚拟接口 MAC地址, 即该源地址为 第一 WLAN访问装置的多个虚拟接口 MAC地址中的一个, 第一 WLAN访问装置丢弃该 A-MSDU 子帧。
参见图 1和图 5, 本发明实施例提供了另一种无线局域网访问装置。 图 5为本发明实 施例提供的另一种无线局域网访问装置示意图。 该另一 WLAN访问装置由无线 AP实现。 该 无线 AP具体可以是无线路由器。 该无线 AP可以是图 1中的 102。
另一 WLAN访问装置包括接收模块 502, 生成模块 504和发送模块 506。 其中, 接收模块 502, 用于接收来自第一无线站点桥的, 所述第一无线站点桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应关系。
本发明实施例中的第一无线站点桥可以是任意一个无线站点桥, 为方便说明, 以下 描述中第一无线站点桥为图 1中的 104。
一个无线站点桥生成多个虚拟接口 MAC地址。 一个无线站点桥生成的多个虚拟接口 MAC地址中的任意一个与该无线站点桥自身的 MAC地址都不同。一个无线站点桥生成的多 个虚拟接口 MAC地址中的任意一个与该无线站点桥连接的以太网设备的 MAC地址都不同。
第一无线站点桥在接收以太网数据帧后, 生成该以太网数据帧的源 MAC地址和一个 虚拟接口 MAC地址间的对应关系。该虚拟接口 MAC地址是第一无线站点桥生成的多个虚拟 接口 MAC地址中的一个。
举例来说, 第一无线站点桥生成该对应关系的方式有以下几种。
第一无线站点桥可以在自身关联到另一 WLAN访问装置时即生成多个虚拟接口 MAC地 址。 在接收以太网数据帧后从多个已生成的虚拟接口 MAC地址中选择一个未使用的虚拟 接口 MAC地址, 生成该以太网数据帧的源 MAC地址和该未使用的虚拟接口 MAC地址间的对 应关系。 该被选择的虚拟接口 MAC地址成为已使用的虚拟接口 MAC地址。
可替换的,第一无线站点桥也可以在接收以太网数据帧后生成一个与该以太网数据 帧的源 MAC地址对应的虚拟接口 MAC地址。 该生成的虚拟接口 MAC地址和第一无线站点桥 已生成的虚拟接口 MAC地址不同。第一无线站点桥生成该以太网数据帧的源 MAC地址和该 生成的虚拟接口 MAC地址间的对应关系。
可替换的,第一无线站点桥也可以在自身关联到另一 WLAN访问装置时即生成多个虚 拟接口 MAC地址。 在接收以太网数据帧后, 如果上述已生成的多个虚拟接口 MAC地址都已 被使用, 则新生成一个与该以太网数据帧的源 MAC地址对应的虚拟接口 MAC地址。 该新生 成的虚拟接口 MAC地址和第一无线站点桥已生成的虚拟接口 MAC地址不同。第一无线站点 桥生成该以太网数据帧的源 MAC地址和该新生成的虚拟接口 MAC地址间的对应关系。
第一无线站点桥也可以采用其他方式的生成虚拟接口 MAC地址,无论采用何种方式, 第一无线站点桥的已使用的多个虚拟接口 MAC地址与和所述第一无线站点桥通信过的多 个以太网设备的 MAC地址一一对应。 也就是说, 第一无线站点桥已生成的所有的以太网 数据帧的源 MAC地址和虚拟接口 MAC地址间的对应关系中的所有源 MAC地址双射到该对应 关系中的所有虚拟接口 MAC地址。
一个无线站点桥可以随机生成虚拟接口 MAC地址, 也可以按照预设的规则生成虚拟 接口 MAC地址。例如,无线站点桥可以生成的将虚拟接口 MAC地址的 24 MSB设置为固定值, 比如 0UI, 紧跟该 24 MSB后的为无线站点桥在 AP上的 AID, 由于 AID的 2 MSB为固定值, 这 里可以只放 AID的 14 LSB。 该虚拟接口 MAC地址的 10 LSB是保留位, 填充或随机数。 可选 的, 如果无线站点桥在接收到以太网数据帧后新生成一个与该以太网数据帧的源 MAC地 址对应的虚拟接口 MAC地址, 无线站点桥可以按照预设的算法, 根据该源 MAC地址计算待 生成的虚拟接口 MAC地址。
生成该对应关系后,第一无线站点桥向第一无线站点桥所关联的另一 WLAN访问装置 发送上述对应关系。 该另一 WLAN访问装置的接收模块 502接收到该对应关系后, 该另一 WLAN访问装置的发送模块 508广播该对应关系。
另一 WLAN访问装置的接收模块 502还可以接收来自第二无线站点桥的, 所述第二无 线站点桥的虚拟接口 MAC地址和与所述第二无线站点桥连接的以太网设备的 MAC地址间 的对应关系。 该另一 WLAN访问装置的接收模块 502接收到该对应关系后, 发送模块 506, 广播该对应关系。 第一无线站点桥接收该对应关系。
接收模块 502, 还用于接收来自第二无线站点桥的第一无线局域网数据帧。 所述第 一无线局域网数据帧的帧头中包括发送方 MAC地址和接收方 MAC地址。
第二无线站点桥接收以太网设备发送的以太网数据帧, 该以太网数据帧的源 MAC地 址为与所述第二无线站点桥连接的以太网设备的 MAC地址。 第二无线站点桥根据该以太 网数据帧生成第一 WLAN数据帧。 所述第一 WLAN数据帧的帧头中的发送方 MAC地址为, 与 该以太网数据帧的源 MAC地址对应的虚拟接口 MAC地址, 该虚拟接口 MAC地址为第二无线 站点桥的多个虚拟接口 MAC地址中的一个。 可替换的, 在第一 WLAN数据帧承载的是 A-MSDU, 并且该 A-MSDU中的 A-MSDU子帧的源地址为与该以太网数据帧的源 MAC地址对应 的虚拟接口 MAC地址的情况下,第一 WLAN数据帧的帧头中的发送方 MAC地址可以为第二无 线站点桥的 MAC地址。
WLAN数据帧是 WLAN中传输数据的帧。 WLAN数据帧包括帧头和 MSDU, 或者包括帧头和 A-MSDU 0 在一个 A-MSDU中包括多个 A-MSDU子帧, 每个 A-MSDU子帧包括 A-MSDU子帧头和 MSDU。 A-MSDU子帧头中包括源地址, 目的地址和该 A-MSDU子帧中的 MSDU的长度。
WLAN数据帧的帧头为 MAC头。 在无线 STA和无线 AP间传输的 WLAN数据帧的帧头中的 MAC地址的数量为 3个。
生成模块 504, 用于在所述第一无线局域网数据帧的目标设备为与第一无线站点桥 连接的设备的情况下, 根据所述第一无线局域网数据帧生成第二无线局域网数据帧。 所 述第二无线局域网数据帧的帧头中包括发送方 MAC地址和接收方 MAC地址。所述第二无线 局域网数据帧的帧头中的接收方 MAC地址为,根据所述第一无线站点桥的虚拟接口 MAC地 址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应关系, 与所述第一无 线局域网数据帧的目标设备的 MAC地址对应的虚拟接口 MAC地址。
第二 WLAN数据帧的帧头中的发送方 MAC地址为实现该另一 WLAN访问装置的无线 AP的 MAC地址。
1 )如果第一 WLAN数据帧中承载的是 MSDU, 第一 WLAN数据帧的帧头中包括目的 MAC地 址。 该目的 MAC地址即为目标设备的 MAC地址。 第一 WLAN数据帧的目标设备为与第一无线 站点桥连接的设备, 就是第一 WLAN数据帧的帧头中的目的 MAC地址为与第一无线站点桥 连接的设备的 MAC地址。
如果第二 WLAN数据帧中承载的是 MSDU, 该 MSDU是第二无线站点桥发送的 WLAN数据帧 承载的 MSDU, 该第二 WLAN数据帧的帧头中的 MAC地址还包括源 MAC地址。 该源 MAC地址为 第一 WLAN数据帧的帧头中的发送方 MAC地址。
如果第二 WLAN数据帧中承载的是 A-MSDU, 该 A-MSDU中的一个 A-MSDU子帧中的 MSDU是 第一 WLAN数据帧承载的 MSDU, 该 A-MSDU子帧的目的地址为第一 WLAN数据帧的帧头中的目 的 MAC地址, 该 A-MSDU子帧的源地址为第一 WLAN数据帧的帧头中的发送方 MAC地址。 第二 WLAN数据帧的帧头中的 MAC地址还包括 BSS ID。 在这种情况下, 可替换的, 第二无线局域 网数据帧的帧头中的接收方 MAC地址可以为第二无线站点桥的 MAC地址。 如果另一 WLAN访问装置接收的来自第二无线站点桥的 WLAN数据帧,例如第三 WLAN数 据帧, 的目标设备为与实现另一 WLAN访问装置的无线 AP通过以太网连接的设备, 例如图 1中的设备 118, 生成模块 504还用于, 根据第三 WLAN数据帧生成以第一太网数据帧。 如 果第三 WLAN数据帧承载 MSDU, 第三 WLAN数据帧的帧头中包括目的 MAC地址, 发送方 MAC地 址和接收方 MAC地址。 第三 WLAN数据帧的目标设备为与无线 AP通过以太网连接的设备, 就是第三 WLAN数据帧的帧头中的目的 MAC地址为与所述无线 AP通过以太网连接的设备的 MAC地址。 第一太网数据帧的目的 MAC地址为第三 WLAN数据帧的帧头中的目的 MAC地址。 第一太网数据帧的源 MAC地址为,根据第二无线站点桥的虚拟接口 MAC地址和与第二无线 站点桥连接的以太网设备的 MAC地址间的对应关系, 与所述第三 WLAN数据帧的帧头中的 发送方 MAC地址对应的 MAC地址。 因为第三 WLAN数据帧的帧头中的发送方 MAC地址为与向 第二无线站点桥发送以太网数据帧的以太网设备的 MAC地址对应的虚拟接口 MAC地址,所 以第一以太网数据帧的源 MAC地址就是向第二无线站点桥发送以太网数据帧的以太网设 备的 MAC地址。 如果第三 WLAN数据帧承载 A-MSDU, 第三 WLAN数据帧的帧头中包括 BSS ID, 发送方 MAC地址和接收方 MAC地址。第三 WLAN数据帧的目标设备为与无线 AP通过以太网连 接的设备, 就是第三 WLAN数据帧承载的 A-MSDU中的多个 A-MSDU子帧中的任意一个的目的 地址为与无线 AP通过以太网连接的设备的 MAC地址。 具体的, 生成模块 504根据第三 WLAN 数据帧中的目的地址为与无线 AP通过以太网连接的设备的 MAC地址的 A-MSDU子帧生成以 第一太网数据帧。 第一太网数据帧的目的 MAC地址为该 A-MSDU子帧的目的地址。 第一太 网数据帧的源 MAC地址为该 A-MSDU子帧的源地址。
如果第一 WLAN数据帧的帧头中的目的 MAC地址为广播 MAC地址或组播 MAC地址, 接收 模块 502接收到第一 WLAN数据帧后, 发送模块 506, 发送第五 WLAN数据帧。 第五 WLAN数据 帧的帧头中的接收方 MAC地址为第一 WLAN数据帧的帧头中的目的 MAC地址, 即广播 MAC地 址或组播 MAC地址。 第五 WLAN数据帧的帧头中的发送方 MAC地址为该无线 AP的 MAC地址。 如果第五 WLAN数据帧中承载的是 MSDU, 该 MSDU是第一 WLAN数据帧承载的 MSDU, 该第五 WLAN数据帧的帧头中的 MAC地址还包括源 MAC地址。 该源 MAC地址为第一 WLAN数据帧的帧 头中的发送方 MAC地址如果第五 WLAN数据帧中承载的是 A-MSDU, 该 A-MSDU中的一个 A-MSDU子帧中的 MSDU是第一 WLAN数据帧承载的 MSDU, 该 A-MSDU子帧的目的地址为第一 WLAN数据帧的帧头中的目的 MAC地址, 即广播 MAC地址或组播 MAC地址, 该 A-MSDU子帧的 源地址为第一 WLAN数据帧的帧头中的发送方 MAC地址。第五 WLAN数据帧的帧头中的 MAC地 址还包括 BSS ID。 2 ) 如果第一 WLAN数据帧中承载的是 A-MSDU, 第一 WLAN数据帧承载的 A-MSDU包括多 个 A-MSDU子帧。 该多个 A-MSDU子帧的目的地址即为目标设备的 MAC地址。 第一 WLAN数据 帧的目标设备为与第一无线站点桥连接的设备, 就是第一 WLAN数据帧承载的 A-MSDU中的 多个 A-MSDU子帧中的任意一个的目的地址为与第一无线站点桥连接的设备的 MAC地址。
第二 WLAN数据帧的帧头中的发送方 MAC地址为该无线 AP的 MAC地址。
如果第二 WLAN数据帧中承载的是 MSDU, 该 MSDU是第一 WLAN数据帧承载的 A-MSDU中 的, 目的地址为与第一无线站点桥相连的以太网设备的 MAC地址的, A-MSDU子帧的 MSDU。 该第二 WLAN数据帧的帧头中的接收方 MAC地址为, 根据第一无线站点桥发送的第一无线 站点桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的 对应关系, 与第一 WLAN数据帧承载的 A-MSDU中的, 目的地址为与第一无线站点桥相连的 以太网设备的 MAC地址的, A-MSDU子帧的目的地址对应的虚拟接口 MAC地址。 该第二 WLAN 数据帧的帧头中的 MAC地址还包括源 MAC地址。第二 WLAN数据帧的帧头中的源 MAC地址为, 根据第二无线站点桥发送的与第二无线站点桥相连的以太网设备的 MAC地址和虚拟接口 MAC地址间的对应关系, 与第一 WLAN数据帧承载的 A-MSDU中的, 目的地址为与第一无线 站点桥相连的以太网设备的 MAC地址的, A-MSDU子帧的源地址对应的虚拟接口 MAC地址。 或者, 如果第一 WLAN数据帧的帧头中的发送方 MAC地址为与第二无线站点桥接收的以太 网数据帧的源 MAC地址对应的虚拟接口 MAC地址, 第二 WLAN数据帧的帧头中的源 MAC地址 可以为第一 WLAN数据帧的帧头中的发送方 MAC地址。
如果第二 WLAN数据帧中承载的是 A-MSDU, 该 A-MSDU中的一个 A-MSDU子帧是第一 WLAN 数据帧承载的 A-MSDU中的, 目的地址为与第一无线站点桥相连的以太网设备的 MAC地址 的, A-MSDU子帧。 第二 WLAN数据帧的帧头中的接收方 MAC地址为第一无线站点桥的 MAC地 址。 或者, 第二 WLAN数据帧的帧头中的接收方 MAC地址为, 根据第一无线站点桥发送的 第一无线站点桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC 地址间的对应关系, 与第一 WLAN数据帧承载的 A-MSDU中的, 目的地址为与第一无线站点 桥相连的以太网设备的 MAC地址的, A-MSDU子帧的目的地址对应的虚拟接口 MAC地址。 第 二 WLAN数据帧的帧头中的 MAC地址还包括 BSS ID。
如果第一 WLAN数据帧承载的 A-MSDU中的一个 A-MSDU子帧的目的地址为广播 MAC地址 或组播 MAC地址, 接收模块 502接收到第一 WLAN数据帧后, 发送模块 506发送第五 WLAN数 据帧。 第五 WLAN数据帧的帧头中的接收方 MAC地址为上述 A-MSDU子帧的目的地址, 即广 播 MAC地址或组播 MAC地址。第五 WLAN数据帧的帧头中的发送方 MAC地址为该无线 AP的 MAC 地址。 如果第五 WLAN数据帧中承载的是 MSDU, 该 MSDU是第一 WLAN数据帧承载的 A-MSDU中 的所述 A-MSDU子帧的 MSDU。 该第五 WLAN数据帧的帧头中的 MAC地址还包括源 MAC地址。 第 五 WLAN数据帧的帧头中的源 MAC地址为, 第一 WLAN数据帧承载的 A-MSDU中所述 A-MSDU子 帧的源 MAC地址。 如果第五 WLAN数据帧中承载的是 A-MSDU, 该 A-MSDU中的一个 A-MSDU子 帧是第一 WLAN数据帧承载的 A-MSDU中的所述 A-MSDU子帧。如果第五 WLAN数据帧中承载的 是 A-MSDU, 第五 WLAN数据帧的帧头中的 MAC地址还包括 BSS ID。 发送模块 506还通过以太 网广播或组播以太网数据帧。 该以太网数据的目的 MAC地址为上述 A-MSDU子帧的目的地 址, 即广播 MAC地址或组播 MAC地址。 该以太网数据帧的源 MAC地址为, 根据第二无线站 点桥的虚拟接口 MAC地址和与第二无线站点桥连接的以太网设备的 MAC地址间的对应关 系, 与上述 A-MSDU子帧的源 MAC地址对应的 MAC地址。 因为该 A-MSDU子帧的源地址为与第 二无线站点桥连接的以太网设备的 MAC地址对应的虚拟接口 MAC地址,所以该以太网数据 帧的源 MAC地址就是与第二无线站点桥连接的以太网设备的 MAC地址。
第一无线站点桥接收到第五 WLAN数据帧, 如果第五 WLAN数据帧承载 A-MSDU, 第一无 线站点桥根据第五 WLAN数据帧承载的 A-MSDU中的 A-MSDU子帧生成以太网数据帧。该以太 网数据帧的目的 MAC地址为该 A-MSDU子帧的目的地址。 该以太网数据帧的源 MAC地址为, 根据另一 WLAN访问装置的发送模块 506广播的第二无线站点桥的虚拟接口 MAC地址和与 第二无线站点桥连接的以太网设备的 MAC地址间的对应关系, 与该 A-MSDU子帧的源 MAC地 址对应的 MAC地址。 因为该 A-MSDU子帧的源地址为与第二无线站点桥连接的以太网设备 的 MAC地址对应的虚拟接口 MAC地址, 所以该以太网数据帧的源 MAC地址就是与第二无线 站点桥连接的以太网设备的 MAC地址。
因为第五 WLAN数据帧的帧头中的接收方 MAC地址为广播 MAC地址或组播 MAC地址, 第 二无线站点桥也会接收到第五 WLAN数据帧。 如果第五 WLAN数据帧中承载的是 MSDU, 第二 无线站点桥检查第五 WLAN数据帧的帧头中的源 MAC地址。 如果第五 WLAN数据帧的帧头中 的源 MAC地址是第二无线站点桥的虚拟接口 MAC地址, 即该源 MAC地址为第二无线站点桥 的多个虚拟接口 MAC地址中的一个, 第二无线站点桥丢弃所述第五 WLAN数据帧。 如果第 五 WLAN数据帧中承载的是 A-MSDU,第二无线站点桥获取第五 WLAN数据帧承载的 A-MSDU中 的各个 A-MSDU子帧。 第二无线站点桥检查获取到的 A-MSDU子帧的源地址, 如果 A-MSDU子 帧的源地址为第二无线站点桥的虚拟接口 MAC地址, 即该源地址为第二无线站点桥的多 个虚拟接口 MAC地址中的一个, 第二无线站点桥丢弃该 A-MSDU子帧。
如果接收模块 502接收到来自第二以太网设备的第二以太网数据帧, 并且第二以太 网数据帧的目的 MAC地址为与第一无线站点桥连接的设备的 MAC地址, 则生成模块 504根 据第二以太网数据帧生成第四 WLAN数据帧。第二以太网设备是通过以太网与无线 AP连接 的设备, 例如图 1中的设备 118。 第四 WLAN数据帧的帧头中包括源 MAC地址, 发送方 MAC地 址和接收方 MAC地址。 第四 WLAN数据帧的帧头中的源 MAC地址为第二太网数据帧的源 MAC 地址。 第四 WLAN数据帧的帧头中的接收方 MAC地址为, 根据第一无线站点桥的虚拟接口 MAC地址和与第一无线站点桥连接的以太网设备的 MAC地址间的对应关系, 与第二以太网 数据帧的目的 MAC地址对应的第一无线站点桥的虚拟接口 MAC地址。第四 WLAN数据帧的帧 头中的发送方 MAC地址为无线 AP的 MAC地址, 即 BSS ID。 发送模块 506发送该第四无线局域 网数据帧。
发送模块 506, 用于发送所述第二无线局域网数据帧。
第一无线站点桥接收另一 WLAN访问装置的发送模块 506发送的第二 WLAN数据帧。 如 果第二 WLAN数据帧承载 MSDU, 第一无线站点根据第二 WLAN数据帧生成第三以太网数据 帧。 第三以太网数据帧的目的 MAC地址为, 根据第一无线站点桥的虚拟接口 MAC地址和与 所述第一无线站点桥连接的以太网设备的 MAC地址间的对应关系, 与所述第二 WLAN数据 帧的帧头中的接收方 MAC地址对应的 MAC地址。 因为第二 WLAN数据帧的帧头中的接收方 MAC地址是与第一无线站点桥相连的以太网设备的 MAC地址对应的虚拟接口 MAC地址, 所 以该第二 WLAN数据帧的帧头中的目的 MAC地址就是与第一无线站点桥相连的以太网设备 的 MAC地址。 第三以太网数据帧的源 MAC地址为, 根据第二无线站点桥的虚拟接口 MAC地 址和与第二无线站点桥连接的以太网设备的 MAC地址间的对应关系, 与所述第二 WLAN数 据帧的帧头中的源 MAC地址对应的 MAC地址。 因为第二 WLAN数据帧的帧头中的源 MAC地址 是第二无线站点桥发送的 WLAN数据帧的帧头中的发送方 MAC地址, 也就是与向第二无线 站点桥发送以太网数据帧的以太网设备的 MAC地址对应的虚拟接口 MAC地址,所以该第三 以太网数据帧的源 MAC地址就是向第二无线站点桥发送以太网数据帧的以太网设备的 MAC地址。 如果第二 WLAN数据帧承载 A-MSDU, 第一无线站点根据第二 WLAN数据帧承载的 A-MSDU中的 A-MSDU子帧生成第三以太网数据帧。 第三以太网数据帧的目的 MAC地址和源 MAC地址分别为该 A-MSDU子帧的目的地址和源地址。 上述装置实施例中, 所包括的各个模块只是按照功能逻辑进行划分的, 但并不局限 于上述的划分, 只要能够实现相应的功能即可; 另外, 各模块的具体名称也只是为了便 于相互区分, 并不用于限制本发明的保护范围。
参见图 1和图 6, 本发明实施例提供了一种无线站点。 图 6为本发明实施例提供的无 线站点的结构示意图。 该无线站点提供桥接功能, 因此也可以被称作无线站点桥。 该无 线站点桥可以是图 1中任意一个无线站点桥, 为方便说明, 以下描述中该无线站点桥为 图 1中的 104。 该无线站点桥具体可以是移动电话, 各类计算机, 平板电脑, PDA, MID或 电子书阅读器。
该无线站点桥包括以太网适配器 602, 无线局域网适配器 604, 处理器 606和存储器 608。 以太网适配器 602是用于提供以太网接口的网络接口控制器 (英文: network interface controller, 缩写: NIC) 。 无线局域网适配器 604是用于提供无线局域网接 口的无线网络接口控制器 (英文: wireless network interface controller, 缩写: WNIC) 。 处理器 606可以为中央处理器(英文: central processing unit, 缩写: CPU) 。 存储器 608可以是易失性存储器 (英文: volatile memory) , 例如随机存取存储器 (英 文: random-access memory, 缩写: RAM) , 或者非易失性存储器(英文: non-volatile memory) , 例如只读存储器 (英文: read-only memory, 缩写: ROM) , 快闪存储器 (英 文: flash memory) , 硬盘 (英文: hard disk drive, 缩写: HDD) 或固态硬盘 (英文: solid-state drive, 缩写: SSD) 。 太网适配器 602, 无线局域网适配器 604和存储器 608 都和处理器 606相连。 图 6中粗线为总线 (英文: bus) 。 处理器 606根据存储器 608存储 的程序指令, 执行上述图 2所示实施例中的部分操作步骤。
太网适配器 602接收第一以太网设备发送的第一以太网数据帧, 所述第一以太网数 据帧的源 MAC地址为与所述第一无线站点桥连接的第一以太网设备的 MAC地址。
第一以太网设备是通过以太网与第一无线站点桥连接的设备, 例如图 1中的 110或
112。
处理器 606根据所述第一以太网数据帧生成第一无线局域网数据帧 (以下简称 WLAN 数据帧) 。 所述第一 WLAN数据帧的帧头中包括发送方 MAC地址和接收方 MAC地址。 所述第 一 WLAN数据帧的帧头中的发送方 MAC地址为, 与所述第一以太网数据帧的源 MAC地址对应 的虚拟接口 MAC地址, 所述虚拟接口 MAC地址为所述第一无线站点桥的多个虚拟接口 MAC 地址中的一个。
—个无线站点桥的处理器为该无线站点桥生成多个虚拟接口 MAC地址。 生成的多个 虚拟接口 MAC地址中的任意一个与该无线站点桥自身的 MAC地址都不同。
在太网适配器 602接收第一以太网数据帧后, 处理器 606获取该第一以太网数据帧。 处理器 606生成该第一以太网数据帧的源 MAC地址和一个虚拟接口 MAC地址间的对应关 系。 该虚拟接口 MAC地址是处理器 606生成的多个虚拟接口 MAC地址中的一个。
举例来说, 处理器 606生成该对应关系的方式有以下几种。
处理器 606可以在第一无线站点桥关联到无线 AP时即生成多个虚拟接口 MAC地址。在 接收第一以太网数据帧后从多个已生成的虚拟接口 MAC地址中选择一个未使用的虚拟接 口 MAC地址, 生成该第一以太网数据帧的源 MAC地址和该未使用的虚拟接口 MAC地址间的 对应关系。 该被选择的虚拟接口 MAC地址成为已使用的虚拟接口 MAC地址。
可替换的, 处理器 606也可以在接收第一以太网数据帧后生成一个与该第一以太网 数据帧的源 MAC地址对应的虚拟接口 MAC地址。该生成的虚拟接口 MAC地址和处理器 606已 生成的虚拟接口 MAC地址不同。 处理器 606生成该第一以太网数据帧的源 MAC地址和该生 成的虚拟接口 MAC地址间的对应关系。
可替换的, 处理器 606也可以在第一无线站点桥关联到无线 AP时即生成多个虚拟接 口 MAC地址。 在接收第一以太网数据帧后, 如果上述已生成的多个虚拟接口 MAC地址都已 被使用, 则新生成一个与该第一以太网数据帧的源 MAC地址对应的虚拟接口 MAC地址。 该 新生成的虚拟接口 MAC地址和处理器 606已生成的虚拟接口 MAC地址不同。处理器 606生成 该第一以太网数据帧的源 MAC地址和该新生成的虚拟接口 MAC地址间的对应关系。
处理器 606也可以采用其他方式生成虚拟接口 MAC地址, 无论采用何种方式, 第一无 线站点桥的已使用的多个虚拟接口 MAC地址与和所述第一无线站点桥通信过的多个以太 网设备的 MAC地址一一对应。也就是说,处理器 606已生成的所有的以太网数据帧的源 MAC 地址和虚拟接口 MAC地址间的对应关系中的所有源 MAC地址双射到该对应关系中的所有 虚拟接口 MAC地址。
处理器 606可以随机生成虚拟接口 MAC地址, 也可以按照预设的规则生成虚拟接口 MAC地址。 例如, 处理器 606可以将生成的虚拟接口 MAC地址的 24 MSB设置为固定值, 比 如 0UI, 紧跟该 24MSB后的为无线站点桥在 AP上的 AID, 由于 AID的 2 MSB为固定值, 这里 可以只放 AID的 14 LSB。 该虚拟接口 MAC地址的 10 LSB是保留位, 填充或随机数。 可选的, 如果在无线站点桥接收到以太网数据帧后, 处理器 606新生成一个与该以太网数据帧的 源 MAC地址对应的虚拟接口 MAC地址, 处理器 606可以按照预设的算法, 根据该源 MAC地址 计算待生成的虚拟接口 MAC地址。
生成该对应关系后, 处理器 606向第一无线站点桥所关联的无线 AP发送上述对应关 系。 该无线 AP接收到上述对应关系后, 广播该对应关系。 根据该对应关系, 无线 AP或其 他无线站点桥可以得知包含虚拟接口 MAC地址的帧或子帧来自哪一个以太网设备。
WLAN数据帧 (英文: data frame) 是无线局域网中传输数据的帧。 WLAN数据帧包括 帧头和 MAC业务数据单元 (英文: MAC service data unit, 缩写: MSDU) , 或者包括帧 头和聚合 MSDU (英文: aggregate MSDU, 简称 A- MSDU) 。 MSDU中包括接收到的以太网数 据帧的除源 MAC地址和目的 MAC地址外的部分。 A-MSDU将多个 MSDU聚合在一个 WLAN数据帧 中传输。 只有在 WLAN中的发送方地址(英文: transmitter address)和接收方地址(英 文: receiver address) 都相同的多个 MSDU才会被聚合在一个 A-MSDU中传输。 在一个 A-MSDU中包括多个 A-MSDU子帧(英文: A-MSDU subframe), 每个 A-MSDU子帧包括 A-MSDU 子帧头和 MSDU。 A-MSDU子帧头中包括源地址 (英文: source address, 缩写: SA) , 目 的地址 (英文: destination address, 缩写: SA) 和该 A-MSDU子帧中的 MSDU的长度。
WLAN数据帧的帧头为 MAC头(英文: MAC header)。在无线 STA和无线 AP间传输的 WLAN 数据帧的帧头中的 MAC地址的数量为 3个。 WLAN数据帧的帧头中的 MAC地址中总是包括发 送方地址和接收方地址, 由于发送方地址和接收方地址都为 MAC地址, 以下分别称为发 送方 MAC地址和接收方 MAC地址。 如果 WLAN数据帧中承载的是 MSDU, 该 WLAN数据帧的帧头 中的 MAC地址还包括目的 MAC地址。 如果 WLAN数据帧中承载的是 A-MSDU, 该 WLAN数据帧的 帧头中的 MAC地址还包括基本服务集标识符(英文: basic service set identification, 缩写: BSSID) , 也就是该无线 AP的 MAC地址。
第一 WLAN数据帧由第一无线站点桥向无线 AP发送, 因此第一 WLAN数据帧的帧头中的 接收方 MAC地址为无线 AP的 MAC地址。
通常的无线站点发送的 WLAN数据帧的发送方 MAC地址为该无线站点的 MAC地址。如果 无线站点桥使用该无线站点桥自身的 MAC地址作为发送方 MAC地址, 则接收该 WLAN数据帧 的无线 AP以及被无线 AP转发该 WLAN数据帧的无线站点不能分辨发送该 WLAN数据帧的设 备是该无线站点桥自身还是通过以太网连接到该无线站点桥的设备。而如果无线站点桥 使用接收到的以太网数据帧的 MAC地址作为 WLAN数据帧的发送方 MAC地址,那么无线 AP无 法识别该 WLAN数据帧的发送方 MAC地址。
本发明实施例中, 处理器 606为每个通过以太网连接到第一无线站点桥的以太网设 备生成一个虚拟接口 MAC地址, 在发送第一 WLAN数据帧时, 用与所述第一以太网数据帧 的源 MAC地址对应的虚拟接口 MAC地址作为第一 WLAN数据帧的发送方 MAC地址。 上述通过 以太网连接到第一无线站点桥的以太网设备可以是与该第一无线站点桥直接连接的设 备, 也可以是通过网络交换机或以太网集线器 (英文: Ethernet hub ) 连接到该第一无 线站点桥的设备。
如果第一 WLAN数据帧中承载的是 MSDU, 第一 WLAN数据帧的帧头中的目的 MAC地址为 第一以太网数据帧的目的 MAC地址。
处理器 606可以聚合多个 MSDU。处理器 606根据第一以太网数据帧和其它以太网数据 帧生成第一 WLAN数据帧,第一 WLAN数据帧承载 A-MSDU。该 A-MSDU中包括多个 A-MSDU子帧, 其中的一个 A-MSDU子帧是根据第一以太网数据帧生成的。该 A-MSDU子帧的目的地址为第 一以太网数据帧的目的 MAC地址。 如果第一以太网数据帧是单播数据帧, 该 A-MSDU子帧 的源地址为第一以太网数据帧的源 MAC地址。 如果第一以太网数据帧是广播数据帧或组 播数据帧, 该 A-MSDU子帧的目的地址为第一以太网数据帧的目的 MAC地址, 即广播 MAC地 址或组播 MAC地址, 该 A-MSDU子帧的源地址为与第一以太网数据帧的源 MAC地址对应的虚 拟接口 MAC地址。 可选的, 承载 A-MSDU的第一 WLAN数据帧的发送方 MAC地址可以不是虚拟 接口 MAC地址, 而是第一无线站点桥的 MAC地址。
处理器 606生成第一 WLAN数据帧后, 无线局域网适配器 604发送所述第一 WLAN数据 帧。 参见图 1和图 7, 本发明实施例提供了一种无线接入点。 图 7为本发明实施例提供的 无线接入点的结构示意图。该无线接入点包括基带处理器(英文: baseband proces sor ) 702 ,处理器 704和存储器 706。基带处理器 702和处理器 704相连,存储器 706和处理器 704 相连。基带处理器 702是用于处理 WLAN信号的基带处理器。基带处理器 702获取无线信号, 将无线信号转换为处理器 704能够处理的报文格式, 并且将处理器 704提供的报文转换为 无线信号。 具体的, 基带处理器 702首先将解调 (英文: demodula t e ) 无线信号, 即将 模拟的无线信号转换为数字信号, 然后将数字信号按照预定的协议组装为报文; 并且, 基带处理器 702将处理器 704提供的报文按照预定的协议转换为数字信号, 并将数字信号 调制 (英文: modula te ) 为无线信号。 对应于不同的 WLAN频段 (英文: band) , 无线 AP 可以包括一个或多个多个基带处理器 702, 每个基带处理器 702分别与处理器 704相连。 例如, 无线 AP只在 2. 4 GHz频段通信, 则无线 AP仅包括一个处理 2. 4 GHz无线信号的基带 处理器 702。 又如, 无线 AP可以在 2. 4 GHz频段, 5 GHz频段和 60 GHz频段通信, 则无线 AP包括一个处理 2. 4 GHz无线信号的基带处理器 702, 一个处理 5 GHz无线信号的基带处 理器 702和一个处理 60 GHz无线信号的基带处理器 702。处理器 704可以为 CPU。存储器 706 可以是易失性存储器或者非易失性存储器。 可选的, 该无线 AP还可以提供以太网接口。 可选的, 该无线 AP还可以提供广域网 (英文: wide area network, 缩写: WAN) 接口。 图 7中粗线为总线。
处理器 704根据存储器 706存储的程序指令, 执行以下步骤:
首先, 处理器 704通过基带处理器 702接收来自第一无线站点桥的, 所述第一无线站 点桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对 应关系。
本发明实施例中的第一无线站点桥可以是任意一个无线站点桥, 为方便说明, 以下 描述中第一无线站点桥为图 1中的 104。
一个无线站点桥生成多个虚拟接口 MAC地址。 一个无线站点桥生成的多个虚拟接口 MAC地址中的任意一个与该无线站点桥自身的 MAC地址都不同。一个无线站点桥生成的多 个虚拟接口 MAC地址中的任意一个与该无线站点桥连接的以太网设备的 MAC地址都不同。
第一无线站点桥在接收以太网数据帧后, 生成该以太网数据帧的源 MAC地址和一个 虚拟接口 MAC地址间的对应关系。该虚拟接口 MAC地址是第一无线站点桥生成的多个虚拟 接口 MAC地址中的一个。
举例来说, 第一无线站点桥生成该对应关系的方式有以下几种。
第一无线站点桥可以在自身关联到无线 AP时即生成多个虚拟接口 MAC地址。 在接收 以太网数据帧后从多个已生成的虚拟接口 MAC地址中选择一个未使用的虚拟接口 MAC地 址, 生成该以太网数据帧的源 MAC地址和该未使用的虚拟接口 MAC地址间的对应关系。 该 被选择的虚拟接口 MAC地址成为已使用的虚拟接口 MAC地址。
可替换的,第一无线站点桥也可以在接收以太网数据帧后生成一个与该以太网数据 帧的源 MAC地址对应的虚拟接口 MAC地址。 该生成的虚拟接口 MAC地址和第一无线站点桥 已生成的虚拟接口 MAC地址不同。第一无线站点桥生成该以太网数据帧的源 MAC地址和该 生成的虚拟接口 MAC地址间的对应关系。 可替换的, 第一无线站点桥也可以在自身关联到无线 AP时即生成多个虚拟接口 MAC 地址。 在接收以太网数据帧后, 如果上述已生成的多个虚拟接口 MAC地址都已被使用, 则新生成一个与该以太网数据帧的源 MAC地址对应的虚拟接口 MAC地址。该新生成的虚拟 接口 MAC地址和第一无线站点桥已生成的虚拟接口 MAC地址不同。第一无线站点桥生成该 以太网数据帧的源 MAC地址和该新生成的虚拟接口 MAC地址间的对应关系。
第一无线站点桥也可以采用其他方式的生成虚拟接口 MAC地址,无论采用何种方式, 第一无线站点桥的已使用的多个虚拟接口 MAC地址与和所述第一无线站点桥通信过的多 个以太网设备的 MAC地址一一对应。 也就是说, 第一无线站点桥已生成的所有的以太网 数据帧的源 MAC地址和虚拟接口 MAC地址间的对应关系中的所有源 MAC地址双射到该对应 关系中的所有虚拟接口 MAC地址。
一个无线站点桥可以随机生成虚拟接口 MAC地址, 也可以按照预设的规则生成虚拟 接口 MAC地址。例如,无线站点桥可以生成的将虚拟接口 MAC地址的 24 MSB设置为固定值, 比如 0UI, 紧跟该 24 MSB后的为无线站点桥在 AP上的 AID, 由于 AID的 2 MSB为固定值, 这 里可以只放 AID的 14 LSB。 该虚拟接口 MAC地址的 10 LSB是保留位, 填充或随机数。 可选 的, 如果无线站点桥在接收到以太网数据帧后新生成一个与该以太网数据帧的源 MAC地 址对应的虚拟接口 MAC地址, 无线站点桥可以按照预设的算法, 根据该源 MAC地址计算待 生成的虚拟接口 MAC地址。
生成该对应关系后,第一无线站点桥向第一无线站点桥所关联的无线 AP发送上述对 应关系。 该无线 AP的处理器 704通过基带处理器 702接收到该对应关系后, 通过基带处理 器 702广播该对应关系。
处理器 704还可以通过基带处理器 702接收来自第二无线站点桥的,所述第二无线站 点桥的虚拟接口 MAC地址和与所述第二无线站点桥连接的以太网设备的 MAC地址间的对 应关系。 该处理器 704通过基带处理器 702接收到该对应关系后, 广播该对应关系。 第一 无线站点桥接收该对应关系。
其次, 处理器 704通过基带处理器 702接收来自第二无线站点桥的第一无线局域网数 据帧。 所述第一无线局域网数据帧的帧头中包括发送方 MAC地址和接收方 MAC地址。
第二无线站点桥接收以太网设备发送的以太网数据帧, 该以太网数据帧的源 MAC地 址为与所述第二无线站点桥连接的以太网设备的 MAC地址。 第二无线站点桥根据该以太 网数据帧生成第一 WLAN数据帧。 所述第一 WLAN数据帧的帧头中的发送方 MAC地址为, 与 该以太网数据帧的源 MAC地址对应的虚拟接口 MAC地址, 该虚拟接口 MAC地址为第二无线 站点桥的多个虚拟接口 MAC地址中的一个。 可替换的, 在第一 WLAN数据帧承载的是 A-MSDU, 并且该 A-MSDU中的 A-MSDU子帧的源地址为与该以太网数据帧的源 MAC地址对应 的虚拟接口 MAC地址的情况下,第一 WLAN数据帧的帧头中的发送方 MAC地址可以为第二无 线站点桥的 MAC地址。
WLAN数据帧是 WLAN中传输数据的帧。 WLAN数据帧包括帧头和 MSDU, 或者包括帧头和
A-MSDU 0 在一个 A-MSDU中包括多个 A-MSDU子帧, 每个 A-MSDU子帧包括 A-MSDU子帧头和 MSDU。 A-MSDU子帧头中包括源地址, 目的地址和该 A-MSDU子帧中的 MSDU的长度。
WLAN数据帧的帧头为 MAC头。 在无线 STA和无线 AP间传输的 WLAN数据帧的帧头中的 MAC地址的数量为 3个。
在所述第一无线局域网数据帧的目标设备为与所述无线接入点间通过所述第一无 线站点桥连接的设备的情况下, 所述处理器 704根据所述第一无线局域网数据帧生成第 二无线局域网数据帧。 所述第二无线局域网数据帧的帧头中包括发送方 MAC地址和接收 方 MAC地址。 所述第二无线局域网数据帧的帧头中的接收方 MAC地址为, 根据所述第一无 线站点桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间 的对应关系, 与所述第一无线局域网数据帧的目标设备的 MAC地址对应的虚拟接口 MAC地 址。
第二 WLAN数据帧的帧头中的发送方 MAC地址为该无线 AP的 MAC地址。
1 )如果第一 WLAN数据帧中承载的是 MSDU, 第一 WLAN数据帧的帧头中包括目的 MAC地 址。 该目的 MAC地址即为目标设备的 MAC地址。 第一 WLAN数据帧的目标设备为与所述无线 接入点间通过第一无线站点桥连接的设备, 就是第一 WLAN数据帧的帧头中的目的 MAC地 址为与所述无线接入点间通过第一无线站点桥连接的设备的 MAC地址。
如果第二 WLAN数据帧中承载的是 MSDU, 该 MSDU是第二无线站点桥发送的 WLAN数据帧 承载的 MSDU, 该第二 WLAN数据帧的帧头中的 MAC地址还包括源 MAC地址。 该源 MAC地址为 第一 WLAN数据帧的帧头中的发送方 MAC地址。
如果第二 WLAN数据帧中承载的是 A-MSDU, 该 A-MSDU中的一个 A-MSDU子帧中的 MSDU是 第一 WLAN数据帧承载的 MSDU, 该 A-MSDU子帧的目的地址为第一 WLAN数据帧的帧头中的目 的 MAC地址, 该 A-MSDU子帧的源地址为第一 WLAN数据帧的帧头中的发送方 MAC地址。 第二 WLAN数据帧的帧头中的 MAC地址还包括 BSS ID。 在这种情况下, 可替换的, 第二无线局域 网数据帧的帧头中的接收方 MAC地址可以为第二无线站点桥的 MAC地址。
如果处理器 704通过基带处理器 702接收的来自第二无线站点桥的 WLAN数据帧,例如 第三 WLAN数据帧,的目标设备为与无线 AP通过以太网连接的设备,例如图 1中的设备 118, 处理器 704根据第三 WLAN数据帧生成以第一太网数据帧。如果第三 WLAN数据帧承载 MSDU, 第三 WLAN数据帧的帧头中包括目的 MAC地址,发送方 MAC地址和接收方 MAC地址。第三 WLAN 数据帧的目标设备为与无线 AP通过以太网连接的设备, 就是第三 WLAN数据帧的帧头中的 目的 MAC地址为与所述无线 AP通过以太网连接的设备的 MAC地址。第一太网数据帧的目的 MAC地址为第三 WLAN数据帧的帧头中的目的 MAC地址。 第一太网数据帧的源 MAC地址为, 根据第二无线站点桥的虚拟接口 MAC地址和与第二无线站点桥连接的以太网设备的 MAC 地址间的对应关系, 与所述第三 WLAN数据帧的帧头中的发送方 MAC地址对应的 MAC地址。 因为第三 WLAN数据帧的帧头中的发送方 MAC地址为与向第二无线站点桥发送以太网数据 帧的以太网设备的 MAC地址对应的虚拟接口 MAC地址, 所以第一以太网数据帧的源 MAC地 址就是向第二无线站点桥发送以太网数据帧的以太网设备的 MAC地址。 如果第三 WLAN数 据帧承载 A-MSDU, 第三 WLAN数据帧的帧头中包括 BSS ID, 发送方 MAC地址和接收方 MAC地 址。 第三 WLAN数据帧的目标设备为与无线 AP通过以太网连接的设备, 就是第三 WLAN数据 帧承载的 A-MSDU中的多个 A-MSDU子帧中的任意一个的目的地址为与无线 AP通过以太网 连接的设备的 MAC地址。 具体的, 处理器 704根据第三 WLAN数据帧中的目的地址为与无线 AP通过以太网连接的设备的 MAC地址的 A-MSDU子帧生成以第一太网数据帧。 第一太网数 据帧的目的 MAC地址为该 A-MSDU子帧的目的地址。 第一太网数据帧的源 MAC地址为该 A-MSDU子帧的源地址。
如果第一 WLAN数据帧的帧头中的目的 MAC地址为广播 MAC地址或组播 MAC地址, 处理 器 704通过基带处理器 702接收到第一 WLAN数据帧后, 发送第五 WLAN数据帧。 第五 WLAN数 据帧的帧头中的接收方 MAC地址为第一 WLAN数据帧的帧头中的目的 MAC地址, 即广播 MAC 地址或组播 MAC地址。第五 WLAN数据帧的帧头中的发送方 MAC地址为该无线 AP的 MAC地址。 如果第五 WLAN数据帧中承载的是 MSDU, 该 MSDU是第一 WLAN数据帧承载的 MSDU, 该第五 WLAN数据帧的帧头中的 MAC地址还包括源 MAC地址。 该源 MAC地址为第一 WLAN数据帧的帧 头中的发送方 MAC地址如果第五 WLAN数据帧中承载的是 A-MSDU , 该 A-MSDU中的一个 A-MSDU子帧中的 MSDU是第一 WLAN数据帧承载的 MSDU, 该 A-MSDU子帧的目的地址为第一 WLAN数据帧的帧头中的目的 MAC地址, 即广播 MAC地址或组播 MAC地址, 该 A-MSDU子帧的 源地址为第一 WLAN数据帧的帧头中的发送方 MAC地址。第五 WLAN数据帧的帧头中的 MAC地 址还包括 BSS ID。
2 ) 如果第一 WLAN数据帧中承载的是 A-MSDU, 第一 WLAN数据帧承载的 A-MSDU包括多 个 A-MSDU子帧。 该多个 A-MSDU子帧的目的地址即为目标设备的 MAC地址。 第一 WLAN数据 帧的目标设备为与所述无线接入点间通过第一无线站点桥连接的设备, 就是第一 WLAN数 据帧承载的 A-MSDU中的多个 A-MSDU子帧中的任意一个的目的地址为与所述无线接入点 间通过第一无线站点桥连接的设备的 MAC地址。
第二 WLAN数据帧的帧头中的发送方 MAC地址为该无线 AP的 MAC地址。
如果第二 WLAN数据帧中承载的是 MSDU, 该 MSDU是第一 WLAN数据帧承载的 A-MSDU中 的, 目的地址为与第一无线站点桥相连的以太网设备的 MAC地址的, A-MSDU子帧的 MSDU。 该第二 WLAN数据帧的帧头中的接收方 MAC地址为, 根据第一无线站点桥发送的第一无线 站点桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的 对应关系, 与第一 WLAN数据帧承载的 A-MSDU中的, 目的地址为与第一无线站点桥相连的 以太网设备的 MAC地址的, A-MSDU子帧的目的地址对应的虚拟接口 MAC地址。 该第二 WLAN 数据帧的帧头中的 MAC地址还包括源 MAC地址。第二 WLAN数据帧的帧头中的源 MAC地址为, 根据第二无线站点桥发送的与第二无线站点桥相连的以太网设备的 MAC地址和虚拟接口 MAC地址间的对应关系, 与第一 WLAN数据帧承载的 A-MSDU中的, 目的地址为与第一无线 站点桥相连的以太网设备的 MAC地址的, A-MSDU子帧的源地址对应的虚拟接口 MAC地址。 或者, 如果第一 WLAN数据帧的帧头中的发送方 MAC地址为与第二无线站点桥接收的以太 网数据帧的源 MAC地址对应的虚拟接口 MAC地址, 第二 WLAN数据帧的帧头中的源 MAC地址 可以为第一 WLAN数据帧的帧头中的发送方 MAC地址。
如果第二 WLAN数据帧中承载的是 A-MSDU, 该 A-MSDU中的一个 A-MSDU子帧是第一 WLAN 数据帧承载的 A-MSDU中的, 目的地址为与第一无线站点桥相连的以太网设备的 MAC地址 的, A-MSDU子帧。 第二 WLAN数据帧的帧头中的接收方 MAC地址为第一无线站点桥的 MAC地 址。 或者, 第二 WLAN数据帧的帧头中的接收方 MAC地址为, 根据第一无线站点桥发送的 第一无线站点桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC 地址间的对应关系, 与第一 WLAN数据帧承载的 A-MSDU中的, 目的地址为与第一无线站点 桥相连的以太网设备的 MAC地址的, A-MSDU子帧的目的地址对应的虚拟接口 MAC地址。 第 二 WLAN数据帧的帧头中的 MAC地址还包括 BSS ID。
如果第一 WLAN数据帧承载的 A-MSDU中的一个 A-MSDU子帧的目的地址为广播 MAC地址 或组播 MAC地址,处理器 704通过基带处理器 702接收到第一 WLAN数据帧后,发送第五 WLAN 数据帧。 第五 WLAN数据帧的帧头中的接收方 MAC地址为上述 A-MSDU子帧的目的地址, 即 广播 MAC地址或组播 MAC地址。 第五 WLAN数据帧的帧头中的发送方 MAC地址为该无线 AP的 MAC地址。如果第五 WLAN数据帧中承载的是 MSDU,该 MSDU是第一 WLAN数据帧承载的 A-MSDU 中的所述 A-MSDU子帧的 MSDU。 该第五 WLAN数据帧的帧头中的 MAC地址还包括源 MAC地址。 第五 WLAN数据帧的帧头中的源 MAC地址为, 第一 WLAN数据帧承载的 A-MSDU中所述 A-MSDU 子帧的源 MAC地址。 如果第五 WLAN数据帧中承载的是 A-MSDU, 该 A-MSDU中的一个 A-MSDU 子帧是第一 WLAN数据帧承载的 A-MSDU中的所述 A-MSDU子帧。如果第五 WLAN数据帧中承载 的是 A-MSDU, 第五 WLAN数据帧的帧头中的 MAC地址还包括 BSS ID。 处理器 704还通过以太 网接口广播或组播以太网数据帧。 该以太网数据的目的 MAC地址为上述 A-MSDU子帧的目 的地址, 即广播 MAC地址或组播 MAC地址。 该以太网数据帧的源 MAC地址为, 根据第二无 线站点桥的虚拟接口 MAC地址和与第二无线站点桥连接的以太网设备的 MAC地址间的对 应关系, 与上述 A-MSDU子帧的源 MAC地址对应的 MAC地址。 因为该 A-MSDU子帧的源地址为 与第二无线站点桥连接的以太网设备的 MAC地址对应的虚拟接口 MAC地址,所以该以太网 数据帧的源 MAC地址就是与第二无线站点桥连接的以太网设备的 MAC地址。
第一无线站点桥接收到第五 WLAN数据帧, 如果第五 WLAN数据帧承载 A-MSDU, 第一无 线站点桥根据第五 WLAN数据帧承载的 A-MSDU中的 A-MSDU子帧生成以太网数据帧。该以太 网数据帧的目的 MAC地址为该 A-MSDU子帧的目的地址。 该以太网数据帧的源 MAC地址为, 根据处理器 704通过基带处理器 702广播的第二无线站点桥的虚拟接口 MAC地址和与第二 无线站点桥连接的以太网设备的 MAC地址间的对应关系, 与该 A-MSDU子帧的源 MAC地址对 应的 MAC地址。因为该 A-MSDU子帧的源地址为与第二无线站点桥连接的以太网设备的 MAC 地址对应的虚拟接口 MAC地址,所以该以太网数据帧的源 MAC地址就是与第二无线站点桥 连接的以太网设备的 MAC地址。
因为第五 WLAN数据帧的帧头中的接收方 MAC地址为广播 MAC地址或组播 MAC地址, 第 二无线站点桥也会接收到第五 WLAN数据帧。 如果第五 WLAN数据帧中承载的是 MSDU, 第二 无线站点桥检查第五 WLAN数据帧的帧头中的源 MAC地址。 如果第五 WLAN数据帧的帧头中 的源 MAC地址是第二无线站点桥的虚拟接口 MAC地址, 即该源 MAC地址为第二无线站点桥 的多个虚拟接口 MAC地址中的一个, 第二无线站点桥丢弃所述第五 WLAN数据帧。 如果第 五 WLAN数据帧中承载的是 A-MSDU,第二无线站点桥获取第五 WLAN数据帧承载的 A-MSDU中 的各个 A-MSDU子帧。 第二无线站点桥检查获取到的 A-MSDU子帧的源地址, 如果 A-MSDU子 帧的源地址为第二无线站点桥的虚拟接口 MAC地址, 即该源地址为第二无线站点桥的多 个虚拟接口 MAC地址中的一个, 第二无线站点桥丢弃该 A-MSDU子帧。
如果处理器 704通过基带处理器 702接收到来自第二以太网设备的第二以太网数据 帧, 并且第二以太网数据帧的目的 MAC地址为与无线 AP间通过第一无线站点桥连接的设 备的 MAC地址, 则处理器 704根据第二以太网数据帧生成第四 WLAN数据帧。 第二以太网设 备是通过以太网与无线 AP连接的设备, 例如图 1中的设备 118。 第四 WLAN数据帧的帧头中 包括源 MAC地址, 发送方 MAC地址和接收方 MAC地址。 第四 WLAN数据帧的帧头中的源 MAC地 址为第二太网数据帧的源 MAC地址。 第四 WLAN数据帧的帧头中的接收方 MAC地址为, 根据 第一无线站点桥的虚拟接口 MAC地址和与第一无线站点桥连接的以太网设备的 MAC地址 间的对应关系, 与第二以太网数据帧的目的 MAC地址对应的第一无线站点桥的虚拟接口 MAC地址。 第四 WLAN数据帧的帧头中的发送方 MAC地址为无线 AP的 MAC地址, 即 BSS ID。 处 理器 704通过基带处理器 702发送该第四无线局域网数据帧。
最后, 所述处理器 704通过基带处理器 702发送所述第二无线局域网数据帧。
第一无线站点桥接收处理器 704通过基带处理器 702发送的第二 WLAN数据帧。如果第 二 WLAN数据帧承载 MSDU, 第一无线站点根据第二 WLAN数据帧生成第三以太网数据帧。 第 三以太网数据帧的目的 MAC地址为,根据第一无线站点桥的虚拟接口 MAC地址和与所述第 一无线站点桥连接的以太网设备的 MAC地址间的对应关系, 与所述第二 WLAN数据帧的帧 头中的接收方 MAC地址对应的 MAC地址。 因为第二 WLAN数据帧的帧头中的接收方 MAC地址 是与第一无线站点桥相连的以太网设备的 MAC地址对应的虚拟接口 MAC地址,所以该第二 WLAN数据帧的帧头中的目的 MAC地址就是与第一无线站点桥相连的以太网设备的 MAC地 址。 第三以太网数据帧的源 MAC地址为, 根据第二无线站点桥的虚拟接口 MAC地址和与第 二无线站点桥连接的以太网设备的 MAC地址间的对应关系, 与所述第二 WLAN数据帧的帧 头中的源 MAC地址对应的 MAC地址。 因为第二 WLAN数据帧的帧头中的源 MAC地址是第二无 线站点桥发送的 WLAN数据帧的帧头中的发送方 MAC地址, 也就是与向第二无线站点桥发 送以太网数据帧的以太网设备的 MAC地址对应的虚拟接口 MAC地址,所以该第三以太网数 据帧的源 MAC地址就是向第二无线站点桥发送以太网数据帧的以太网设备的 MAC地址。如 果第二 WLAN数据帧承载 A-MSDU, 第一无线站点根据第二 WLAN数据帧承载的 A-MSDU中的 A-MSDU子帧生成第三以太网数据帧。第三以太网数据帧的目的 MAC地址和源 MAC地址分别 为该 A-MSDU子帧的目的地址和源地址。
本领域普通技术人员可以理解, 实现上述各方法实施例中的全部或部分步骤是可以 通过程序来指令相关的硬件完成, 相应的程序可以存储于计算机可读存储介质中, 上述 存储介质可以是随机存取存储器, 只读存储器, 快闪存储器, 硬盘, 固态硬盘或光盘等。
以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到的变化或替 换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应该以权利要求的保 护范围为准。

Claims

权利要求
1、 一种无线局域网访问方法, 其特征在于, 包括:
第一无线站点桥接收第一以太网设备发送的第一以太网数据帧,所述第一以太网数 据帧的源介质访问控制 MAC地址为与所述第一无线站点桥连接的第一以太网设备的 MAC 地址;
所述第一无线站点桥根据所述第一以太网数据帧生成第一无线局域网数据帧; 所述第一无线局域网数据帧的帧头中包括发送方 MAC地址和接收方 MAC地址; 所述第一无线局域网数据帧的帧头中的发送方 MAC地址为, 与所述第一以太网数据 帧的源 MAC地址对应的虚拟接口 MAC地址, 所述虚拟接口 MAC地址为所述第一无线站点桥 的多个虚拟接口 MAC地址中的一个;
所述第一无线站点桥发送所述第一无线局域网数据帧。
2、 根据权利要求 1所述的方法, 其特征在于, 在接收第一以太网数据帧之后, 还包 括:
所述第一无线站点桥生成所述第一以太网数据帧的源 MAC地址和与所述源 MAC地址 对应的虚拟接口 MAC地址间的对应关系;
所述第一无线站点桥向无线接入点发送所述第一以太网数据帧的源 MAC地址和与所 述源 MAC地址对应的所述第一无线站点桥的虚拟接口 MAC地址间的对应关系。
3、 根据权利要求 2所述的方法, 其特征在于, 还包括:
所述第一无线站点桥接收所述接入点发送的第二无线站点桥的虚拟接口 MAC地址和 与所述第二无线站点桥连接的以太网设备的 MAC地址间的对应关系;
所述第一无线站点桥接收所述无线接入点发送的第二无线局域网数据帧,所述第二 无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC地址;
所述第二无线局域网数据帧的帧头中的接收方 MAC地址为所述第一无线站点桥的虚 拟接口 MAC地址;
所述第二无线局域网数据帧的帧头中的源 MAC地址为所述第二无线站点桥的虚拟接 口 MAC地址;
所述第一无线站点桥根据所述第二无线局域网数据帧生成第二以太网数据帧; 所述第二以太网数据帧的目的 MAC地址为,根据所述第一以太网数据帧的源 MAC地址 和与所述源 MAC地址对应的虚拟接口 MAC地址间的对应关系, 与所述第二无线局域网数据 帧的帧头中的接收方 MAC地址对应的与所述第一无线站点桥连接的以太网设备的 MAC地 址;
所述第二以太网数据帧的源 MAC地址为,根据所述第二无线站点桥的虚拟接口 MAC地 址和与所述第二无线站点桥连接的以太网设备的 MAC地址间的对应关系, 与所述第二无 线局域网数据帧的帧头中的源 MAC地址对应的与所述第二无线站点桥连接的以太网设备 的 MAC地址。
4、 根据权利要求 1至 3中任意一项所述的方法, 其特征在于, 还包括:
所述第一无线站点桥接收无线接入点发送的第三无线局域网数据帧,所述第三无线 局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC地址;
在所述第三无线局域网数据帧的帧头中的接收方 MAC地址为广播 MAC地址或组播 MAC 地址, 并且所述第三无线局域网数据帧的帧头中的源 MAC地址为所述第一无线站点桥的 虚拟接口 MAC地址的情况下, 所述第一无线站点桥丢弃所述第三无线局域网数据帧。
5、 根据权利要求 1或 2中任意一项所述的方法, 其特征在于, 在所述第一以太网数 据帧的目的 MAC地址为广播 MAC地址或组播 MAC地址, 并且所述第一无线局域网数据帧承 载聚合 MAC业务数据单元 A-MSDU的情况下,
所述 A-MSDU包括 A-MSDU子帧;
所述 A-MSDU子帧是根据所述第一以太网数据帧生成的, 所述 A-MSDU子帧的源地址 为, 与所述第一以太网数据帧的源 MAC地址对应的虚拟接口 MAC地址, 所述 A-MSDU子帧的 目的地址为所述第一以太网数据帧的目的 MAC地址。
6、 根据权利要求 1, 2或 5中任意一项所述的方法, 其特征在于, 还包括: 所述第一无线站点桥接收无线接入点发送的第三无线局域网数据帧,第三无线局域 网数据帧承载聚合 MAC业务数据单元 A-MSDU, 所述第三无线局域网数据帧的帧头中的接 收方 MAC地址为广播 MAC地址或组播 MAC地址;
所述第一无线站点桥获取所述第三无线局域网数据帧承载的 A-MSDU中的 A-MSDU子 帧; 在所述 A-MSDU子帧的源地址为与所述第一无线站点桥的虚拟接口 MAC地址的情况 下, 所述第一无线站点桥丢弃所述 A-MSDU子帧。
7、 一种无线局域网访问方法, 其特征在于, 包括:
无线接入点接收来自第一无线站点桥的, 所述第一无线站点桥的虚拟接口 MAC地址 和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应关系;
所述无线接入点接收来自第二无线站点桥的第一无线局域网数据帧;
所述第一无线局域网数据帧的帧头中包括发送方 MAC地址和接收方 MAC地址; 在所述第一无线局域网数据帧的目标设备为与所述无线接入点间通过所述第一无 线站点桥连接的设备的情况下,所述无线接入点根据所述第一无线局域网数据帧生成第 二无线局域网数据帧, 所述第二无线局域网数据帧的帧头中包括发送方 MAC地址和接收 方 MAC地址;
所述第二无线局域网数据帧的帧头中的接收方 MAC地址为, 根据所述第一无线站点 桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应 关系, 与所述第一无线局域网数据帧的目标设备的 MAC地址对应的虚拟接口 MAC地址; 所述无线接入点发送所述第二无线局域网数据帧。
8、 根据权利要求 7所述的方法, 其特征在于,
所述第一无线局域网数据帧承载 MAC业务数据单元 MSDU;
所述第一无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC 地址;
所述第一无线局域网数据帧的目标设备的 MAC地址为所述第一无线局域网数据帧的 帧头中的目的 MAC地址;
所述第二无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC 地址;
所述第二无线局域网数据帧的帧头中的源 MAC地址为所述第一无线局域网数据帧的 帧头中的发送方 MAC地址。
9、 根据权利要求 7所述的方法, 其特征在于,
所述第一无线局域网数据帧承载聚合 MAC业务数据单元 A-MSDU; 所述第一无线局域网数据帧的帧头中包括基本服务集标识 BSSID, 发送方 MAC地址和 接收方 MAC地址;
所述第一无线局域网数据帧的目标设备的 MAC地址为所述第一无线局域网数据帧承 载的 A-MSDU的 A-MSDU子帧的目的 MAC地址;
所述第二无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC 地址;
所述第二无线局域网数据帧的帧头中的源 MAC地址为所述第一无线局域网数据帧的 帧头中的发送方 MAC地址;
所述第二无线局域网数据帧的帧头中的接收方 MAC地址为, 根据所述第一无线站点 桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应 关系, 与所述 A-MSDU子帧的目的地址对应的虚拟接口 MAC地址。
10、 根据权利要求 7所述的方法, 其特征在于,
所述第一无线局域网数据帧承载聚合 MAC业务数据单元 A-MSDU;
所述第一无线局域网数据帧的帧头中包括基本服务集标识 BSSID, 发送方 MAC地址和 接收方 MAC地址;
所述第一无线局域网数据帧的目标设备的 MAC地址为所述第一无线局域网数据帧承 载的 A-MSDU的 A-MSDU子帧的目的 MAC地址;
所述第二无线局域网数据帧的帧头中包括所述 BSSID, 发送方 MAC地址和接收方 MAC 地址;
所述第二无线局域网数据帧承载所述 A_MSDU。
11、 根据权利要求 7或 8所述的方法, 其特征在于, 还包括:
所述无线接入点接收来自第二无线站点桥的第三无线局域网数据帧;
所述第三无线局域网数据帧承载 MAC业务数据单元 MSDU;
所述第三无线局域网数据帧的帧头中包括目的 MAC地址, 发送方 MAC地址和接收方 MAC地址;
在所述第三无线局域网数据帧的帧头中的目的 MAC地址为与所述无线接入点通过以 太网连接的设备的 MAC地址的情况下, 所述无线接入点根据所述第三无线局域网数据帧 生成以第一太网数据帧; 所述第一以太网数据帧的源 MAC地址为,根据所述第二无线站点桥的虚拟接口 MAC地 址和与所述第二无线站点桥连接的以太网设备的 MAC地址间的对应关系, 与所述第三无 线局域网数据帧的帧头中的发送方 MAC地址对应的 MAC地址;
所述第一以太网数据帧的目的 MAC地址为所述第三无线局域网数据帧的帧头中的目 的 MAC地址;
所述无线接入点发送所述第一以太网数据帧。
12、 根据权利要求 7, 8或 1 1中任意一项所述的方法, 其特征在于, 还包括: 所述无线接入点接收来自第二以太网设备的第二以太网数据帧;
在所述第二以太网数据帧的目的 MAC地址为与所述无线接入点间通过所述第一无线 站点桥连接的设备的 MAC地址的情况下, 所述无线接入点根据所述第二以太网数据帧生 成第四无线局域网数据帧, 所述第四无线局域网数据帧的帧头中包括源 MAC地址, 发送 方 MAC地址和接收方 MAC地址;
所述第四无线局域网数据帧的帧头中的源 MAC地址为所述第二太网数据帧的源 MAC 地址;
所述第四无线局域网数据帧的帧头中的接收方 MAC地址为, 根据所述第一无线站点 桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应 关系, 与所述第二以太网数据帧的目的 MAC地址对应的虚拟接口 MAC地址;
所述无线接入点发送所述第四无线局域网数据帧。
13、 根据权利要求 7, 1 1或 12中任意一项所述的方法, 其特征在于,
所述第一无线局域网数据帧承载 MAC业务数据单元 MSDU;
所述第一无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC 地址;
所述第一无线局域网数据帧的目标设备的 MAC地址为所述第一无线局域网数据帧的 帧头中的目的 MAC地址;
所述第二无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC 地址;
所述第二无线局域网数据帧的帧头中的源 MAC地址为所述第一无线局域网数据帧的 帧头中的发送方 MAC地址; 在所述无线接入点接收来自所述第一无线站点桥的,所述第一无线站点桥的虚拟接 口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应关系之后,还 包括:
所述无线接入点接收来自所述第二无线站点桥的,所述第二无线站点桥的虚拟接口 MAC地址和与所述第二无线站点桥连接的以太网设备的 MAC地址间的对应关系;
所述无线接入点广播所述第二无线站点桥的虚拟接口 MAC地址和与所述第二无线站 点桥连接的以太网设备的 MAC地址间的对应关系;
所述第一无线站点桥接收所述第二无线站点桥的虚拟接口 MAC地址和与所述第二无 线站点桥连接的以太网设备的 MAC地址间的对应关系;
在所述无线接入点发送所述第二无线局域网数据帧之后, 还包括:
所述第一无线站点桥接收所述第二无线局域网数据帧;
所述第一无线站点桥根据所述第二无线局域网数据帧生成第三以太网数据帧; 所述第三以太网数据帧的目的 MAC地址为,根据所述第一无线站点桥的虚拟接口 MAC 地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应关系, 与所述第二 无线局域网数据帧的帧头中的接收方 MAC地址对应的以太网设备的 MAC地址;
所述第三以太网数据帧的源 MAC地址为,根据所述第二无线站点桥的虚拟接口 MAC地 址和与所述第二无线站点桥连接的以太网设备的 MAC地址间的对应关系, 与所述第二无 线局域网数据帧的帧头中的源 MAC地址对应的与所述第二无线站点桥连接的以太网设备 的 MAC地址。
14、 一种无线局域网访问装置, 由第一无线站点桥实现, 其特征在于, 所述无线局 域网访问装置包括接收模块, 生成模块和发送模块; 其中,
所述接收模块, 用于接收第一以太网设备发送的第一以太网数据帧, 所述第一以太 网数据帧的源介质访问控制 MAC地址为与所述第一无线站点桥连接的第一以太网设备的 MAC地址;
所述生成模块, 用于根据所述第一以太网数据帧生成第一无线局域网数据帧; 所述第一无线局域网数据帧的帧头中包括发送方 MAC地址和接收方 MAC地址; 所述第一无线局域网数据帧的帧头中的发送方 MAC地址为, 与所述第一以太网数据 帧的源 MAC地址对应的虚拟接口 MAC地址, 所述虚拟接口 MAC地址为所述生成模块生成的 多个虚拟接口 MAC地址中的一个; 所述发送模块, 用于发送所述第一无线局域网数据帧。
15、 根据权利要求 14所述的无线局域网访问装置, 其特征在于,
所述生成模块,还用于生成所述第一以太网数据帧的源 MAC地址和与所述源 MAC地址 对应的虚拟接口 MAC地址间的对应关系;
所述发送模块, 还用于向无线接入点发送所述第一以太网数据帧的源 MAC地址和与 所述源 MAC地址对应的所述生成模块生成的虚拟接口 MAC地址间的对应关系。
16、 根据权利要求 15所述的无线局域网访问装置, 其特征在于,
所述接收模块, 还用于接收所述无线接入点发送的第二无线站点桥的虚拟接口 MAC 地址和与所述第二无线站点桥连接的以太网设备的 MAC地址间的对应关系;
所述接收模块, 还用于接收所述无线接入点发送的第二无线局域网数据帧, 所述第 二无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC地址;
所述第二无线局域网数据帧的帧头中的接收方 MAC地址为所述所述生成模块生成的 虚拟接口 MAC地址;
所述第二无线局域网数据帧的帧头中的源 MAC地址为所述第二无线站点桥的虚拟接 口 MAC地址;
所述生成模块, 还用于根据所述第二无线局域网数据帧生成第二以太网数据帧; 所述第二以太网数据帧的目的 MAC地址为,根据所述第一以太网数据帧的源 MAC地址 和与所述源 MAC地址对应的虚拟接口 MAC地址间的对应关系, 与所述第二无线局域网数据 帧的帧头中的接收方 MAC地址对应的与所述第一无线站点桥连接的以太网设备的 MAC地 址;
所述第二以太网数据帧的源 MAC地址为,根据所述第二无线站点桥的虚拟接口 MAC地 址和与所述第二无线站点桥连接的以太网设备的 MAC地址间的对应关系, 与所述第二无 线局域网数据帧的帧头中的源 MAC地址对应的与所述第二无线站点桥连接的以太网设备 的 MAC地址。
17、 根据权利要求 14至 16中任意一项所述的无线局域网访问装置, 其特征在于, 所述接收模块, 还用于接收无线接入点发送的第三无线局域网数据帧, 所述第三无 线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC地址; 在所述第三无线局域网数据帧的帧头中的接收方 MAC地址为广播 MAC地址或组播 MAC 地址, 并且所述第三无线局域网数据帧的帧头中的源 MAC地址为所述生成模块生成的虚 拟接口 MAC地址的情况下, 所述第一无线站点桥丢弃所述第三无线局域网数据帧。
18、 根据权利要求 14或 15中任意一项所述的无线局域网访问装置, 其特征在于, 在 所述第一以太网数据帧的目的 MAC地址为广播 MAC地址或组播 MAC地址, 并且所述第一无 线局域网数据帧承载聚合 MAC业务数据单元 A-MSDU的情况下,
所述 A-MSDU包括 A-MSDU子帧;
所述 A-MSDU子帧是所述生成模块根据所述第一以太网数据帧生成的,所述 A-MSDU子 帧的源地址为, 与所述第一以太网数据帧的源 MAC地址对应的虚拟接口 MAC地址, 所述 A-MSDU子帧的目的地址为所述第一以太网数据帧的目的 MAC地址。
19、根据权利要求 14, 15或 18中任意一项所述的无线局域网访问装置,其特征在于, 所述接收模块, 还用于接收无线接入点发送的第三无线局域网数据帧, 第三无线局 域网数据帧承载聚合 MAC业务数据单元 A-MSDU, 所述第三无线局域网数据帧的帧头中的 接收方 MAC地址为广播 MAC地址或组播 MAC地址;
所述生成模块,还用于获取所述第三无线局域网数据帧承载的 A-MSDU中的 A-MSDU子 帧;
在所述 A-MSDU子帧的源地址为与所述第一无线站点桥的虚拟接口 MAC地址的情况 下, 所述生成模块丢弃所述 A-MSDU子帧。
20、 一种无线局域网访问装置, 由无线接入点实现, 其特征在于, 所述无线局域网 访问装置包括接收模块, 生成模块和发送模块; 其中
所述接收模块, 用于接收来自第一无线站点桥的, 所述第一无线站点桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应关系;
所述接收模块,还用于所述无线接入点接收来自第二无线站点桥的第一无线局域网 数据帧;
所述第一无线局域网数据帧的帧头中包括发送方 MAC地址和接收方 MAC地址; 所述生成模块,用于在所述第一无线局域网数据帧的目标设备为与所述无线接入点 间通过所述第一无线站点桥连接的设备的情况下,根据所述第一无线局域网数据帧生成 第二无线局域网数据帧, 所述第二无线局域网数据帧的帧头中包括发送方 MAC地址和接 收方 MAC地址;
所述第二无线局域网数据帧的帧头中的接收方 MAC地址为, 根据所述第一无线站点 桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应 关系, 与所述第一无线局域网数据帧的目标设备的 MAC地址对应的虚拟接口 MAC地址; 所述发送模块, 用于所述无线接入点发送所述第二无线局域网数据帧。
21、 根据权利要求 20所述的无线局域网访问装置, 其特征在于,
所述第一无线局域网数据帧承载 MAC业务数据单元 MSDU;
所述第一无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC 地址;
所述第一无线局域网数据帧的目标设备的 MAC地址为所述第一无线局域网数据帧的 帧头中的目的 MAC地址;
所述第二无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC 地址;
所述第二无线局域网数据帧的帧头中的源 MAC地址为所述第一无线局域网数据帧的 帧头中的发送方 MAC地址。
22、 根据权利要求 20所述的无线局域网访问装置, 其特征在于,
所述第一无线局域网数据帧承载聚合 MAC业务数据单元 A-MSDU;
所述第一无线局域网数据帧的帧头中包括基本服务集标识 BSSID, 发送方 MAC地址和 接收方 MAC地址;
所述第一无线局域网数据帧的目标设备的 MAC地址为所述第一无线局域网数据帧承 载的 A-MSDU的 A-MSDU子帧的目的 MAC地址;
所述第二无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC 地址;
所述第二无线局域网数据帧的帧头中的源 MAC地址为所述第一无线局域网数据帧的 帧头中的发送方 MAC地址; 所述第二无线局域网数据帧的帧头中的接收方 MAC地址为, 根据所述第一无线站点 桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应 关系, 与所述 A-MSDU子帧的目的地址对应的虚拟接口 MAC地址。
23、 根据权利要求 20所述的无线局域网访问装置, 其特征在于,
所述第一无线局域网数据帧承载聚合 MAC业务数据单元 A-MSDU;
所述第一无线局域网数据帧的帧头中包括基本服务集标识 BSSID, 发送方 MAC地址和 接收方 MAC地址;
所述第一无线局域网数据帧的目标设备的 MAC地址为所述第一无线局域网数据帧承 载的 A-MSDU的 A-MSDU子帧的目的 MAC地址;
所述第二无线局域网数据帧的帧头中包括所述 BSSID, 发送方 MAC地址和接收方 MAC 地址;
所述第二无线局域网数据帧承载所述 A_MSDU。
24、 根据权利要求 20或 21所述的无线局域网访问装置, 其特征在于,
所述接收模块, 还用于接收来自第二无线站点桥的第三无线局域网数据帧; 所述第三无线局域网数据帧承载 MAC业务数据单元 MSDU;
所述第三无线局域网数据帧的帧头中包括目的 MAC地址, 发送方 MAC地址和接收方 MAC地址;
所述生成模块, 还用于在所述第三无线局域网数据帧的帧头中的目的 MAC地址为与 所述无线接入点通过以太网连接的设备的 MAC地址的情况下, 根据所述第三无线局域网 数据帧生成以第一太网数据帧;
所述第一以太网数据帧的源 MAC地址为,根据所述第二无线站点桥的虚拟接口 MAC地 址和与所述第二无线站点桥连接的以太网设备的 MAC地址间的对应关系, 与所述第三无 线局域网数据帧的帧头中的发送方 MAC地址对应的 MAC地址;
所述第一以太网数据帧的目的 MAC地址为所述第三无线局域网数据帧的帧头中的目 的 MAC地址;
所述发送模块, 还用于发送所述第一以太网数据帧。
25、根据权利要求 20, 21或 24中任意一项所述的无线局域网访问装置,其特征在于, 所述接收模块, 还用于接收来自第二以太网设备的第二以太网数据帧;
所述生成模块, 还用于在所述第二以太网数据帧的目的 MAC地址为与所述无线接入 点间通过所述第一无线站点桥连接的设备的 MAC地址的情况下, 根据所述第二以太网数 据帧生成第四无线局域网数据帧,所述第四无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC地址;
所述第四无线局域网数据帧的帧头中的源 MAC地址为所述第二太网数据帧的源 MAC 地址;
所述第四无线局域网数据帧的帧头中的接收方 MAC地址为, 根据所述第一无线站点 桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应 关系, 与所述第二以太网数据帧的目的 MAC地址对应的虚拟接口 MAC地址;
所述发送模块, 还用于发送所述第四无线局域网数据帧。
26、 一种无线站点, 其特征在于, 包括太网适配器, 无线局域网适配器, 处理器和 存储器;
所述太网适配器和所述处理器相连, 所述无线局域网适配器和所述处理器相连, 所 述存储器和所述处理器相连;
所述太网适配器接收第一以太网设备发送的第一以太网数据帧,所述第一以太网数 据帧的源介质访问控制 MAC地址为与所述无线站点连接的第一以太网设备的 MAC地址; 所述处理器根据所述第一以太网数据帧生成第一无线局域网数据帧;
所述第一无线局域网数据帧的帧头中包括发送方 MAC地址和接收方 MAC地址; 所述第一无线局域网数据帧的帧头中的发送方 MAC地址为, 与所述第一以太网数据 帧的源 MAC地址对应的虚拟接口 MAC地址, 所述虚拟接口 MAC地址为所述无线站点的多个 虚拟接口 MAC地址中的一个;
所述无线局域网适配器发送所述第一无线局域网数据帧。
27、根据权利要求 26所述的无线站点,其特征在于,在接收第一以太网数据帧之后, 所述处理器生成所述第一以太网数据帧的源 MAC地址和与所述源 MAC地址对应的虚拟接 口 MAC地址间的对应关系;
所述无线局域网适配器向无线接入点发送所述第一以太网数据帧的源 MAC地址和与 所述源 MAC地址对应的所述无线站点的虚拟接口 MAC地址间的对应关系。
28、 根据权利要求 27所述的无线站点, 其特征在于, 还包括:
所述无线局域网适配器接收所述无线接入点发送的第二无线站点桥的虚拟接口 MAC 地址和与所述第二无线站点桥连接的以太网设备的 MAC地址间的对应关系;
所述无线局域网适配器接收所述无线接入点发送的第二无线局域网数据帧,所述第 二无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC地址;
所述第二无线局域网数据帧的帧头中的接收方 MAC地址为所述无线站点的虚拟接口 MAC地址;
所述第二无线局域网数据帧的帧头中的源 MAC地址为所述第二无线站点桥的虚拟接 口 MAC地址;
所述处理器根据所述第二无线局域网数据帧生成第二以太网数据帧;
所述第二以太网数据帧的目的 MAC地址为,根据所述第一以太网数据帧的源 MAC地址 和与所述源 MAC地址对应的虚拟接口 MAC地址间的对应关系, 与所述第二无线局域网数据 帧的帧头中的接收方 MAC地址对应的与所述无线站点连接的以太网设备的 MAC地址; 所述第二以太网数据帧的源 MAC地址为,根据所述第二无线站点桥的虚拟接口 MAC地 址和与所述第二无线站点桥连接的以太网设备的 MAC地址间的对应关系, 与所述第二无 线局域网数据帧的帧头中的源 MAC地址对应的与所述第二无线站点桥连接的以太网设备 的 MAC地址。
29、 根据权利要求 26至 28中任意一项所述的无线站点, 其特征在于, 还包括: 所述无线局域网适配器接收无线接入点发送的第三无线局域网数据帧,所述第三无 线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC地址;
所述处理器,在所述第三无线局域网数据帧的帧头中的接收方 MAC地址为广播 MAC地 址或组播 MAC地址, 并且所述第三无线局域网数据帧的帧头中的源 MAC地址为所述无线站 点的虚拟接口 MAC地址的情况下, 丢弃所述第三无线局域网数据帧。
30、 根据权利要求 26或 27中任意一项所述的无线站点, 其特征在于, 在所述第一以 太网数据帧的目的 MAC地址为广播 MAC地址或组播 MAC地址, 并且所述第一无线局域网数 据帧承载聚合 MAC业务数据单元 A-MSDU的情况下,
所述 A-MSDU包括 A-MSDU子帧; 所述 A-MSDU子帧是所述处理器根据所述第一以太网数据帧生成的,所述 A-MSDU子帧 的源地址为, 与所述第一以太网数据帧的源 MAC地址对应的虚拟接口 MAC地址, 所述 A-MSDU子帧的目的地址为所述第一以太网数据帧的目的 MAC地址。
31、 根据权利要求 26, 27或 30中任意一项所述的无线站点, 其特征在于, 还包括: 所述无线局域网适配器接收无线接入点发送的第三无线局域网数据帧,第三无线局 域网数据帧承载聚合 MAC业务数据单元 A-MSDU, 所述第三无线局域网数据帧的帧头中的 接收方 MAC地址为广播 MAC地址或组播 MAC地址;
所述处理器获取所述第三无线局域网数据帧承载的 A-MSDU中的 A-MSDU子帧; 在所述 A-MSDU子帧的源地址为所述无线站点的虚拟接口 MAC地址的情况下, 所述处 理器丢弃所述 A-MSDU子帧。
32、 一种无线接入点, 其特征在于, 包括基带处理器, 处理器和存储器, 所述基带 处理器与所述处理器相连, 所述存储器与所述处理器相连;
所述处理器通过所述基带处理器接收来自第一无线站点桥的,所述第一无线站点桥 的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应关 系;
所述处理器通过所述基带处理器接收来自第二无线站点桥的第一无线局域网数据 帧;
所述第一无线局域网数据帧的帧头中包括发送方 MAC地址和接收方 MAC地址; 在所述第一无线局域网数据帧的目标设备为与所述无线接入点间通过所述第一无 线站点桥连接的设备的情况下,所述处理器根据所述第一无线局域网数据帧生成第二无 线局域网数据帧,所述第二无线局域网数据帧的帧头中包括发送方 MAC地址和接收方 MAC 地址;
所述第二无线局域网数据帧的帧头中的接收方 MAC地址为, 根据所述第一无线站点 桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应 关系, 与所述第一无线局域网数据帧的目标设备的 MAC地址对应的虚拟接口 MAC地址; 所述处理器通过所述基带处理器发送所述第二无线局域网数据帧。
33、 根据权利要求 32所述的无线接入点, 其特征在于, 所述第一无线局域网数据帧承载 MAC业务数据单元 MSDU;
所述第一无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC 地址;
所述第一无线局域网数据帧的目标设备的 MAC地址为所述第一无线局域网数据帧的 帧头中的目的 MAC地址;
所述第二无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC 地址;
所述第二无线局域网数据帧的帧头中的源 MAC地址为所述第一无线局域网数据帧的 帧头中的发送方 MAC地址。
34、 根据权利要求 32所述的无线接入点, 其特征在于,
所述第一无线局域网数据帧承载聚合 MAC业务数据单元 A-MSDU;
所述第一无线局域网数据帧的帧头中包括基本服务集标识 BSSID, 发送方 MAC地址和 接收方 MAC地址;
所述第一无线局域网数据帧的目标设备的 MAC地址为所述第一无线局域网数据帧承 载的 A-MSDU的 A-MSDU子帧的目的 MAC地址;
所述第二无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC地址和接收方 MAC 地址;
所述第二无线局域网数据帧的帧头中的源 MAC地址为所述第一无线局域网数据帧的 帧头中的发送方 MAC地址;
所述第二无线局域网数据帧的帧头中的接收方 MAC地址为, 根据所述第一无线站点 桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应 关系, 与所述 A-MSDU子帧的目的地址对应的虚拟接口 MAC地址。
35、 根据权利要求 32所述的无线接入点, 其特征在于,
所述第一无线局域网数据帧承载聚合 MAC业务数据单元 A-MSDU;
所述第一无线局域网数据帧的帧头中包括基本服务集标识 BSSID, 发送方 MAC地址和 接收方 MAC地址;
所述第一无线局域网数据帧的目标设备的 MAC地址为所述第一无线局域网数据帧承 载的 A-MSDU的 A-MSDU子帧的目的 MAC地址; 所述第二无线局域网数据帧的帧头中包括所述 BSSID, 发送方 MAC地址和接收方 MAC 地址;
所述第二无线局域网数据帧承载所述 A_MSDU。
36、 根据权利要求 32或 33所述的无线接入点, 其特征在于, 还包括:
所述处理器通过所述基带处理器接收来自第二无线站点桥的第三无线局域网数据 帧;
所述第三无线局域网数据帧承载 MAC业务数据单元 MSDU;
所述第三无线局域网数据帧的帧头中包括目的 MAC地址, 发送方 MAC地址和接收方 MAC地址;
在所述第三无线局域网数据帧的帧头中的目的 MAC地址为与所述无线接入点通过以 太网连接的设备的 MAC地址的情况下, 所述处理器根据所述第三无线局域网数据帧生成 以第一太网数据帧;
所述第一以太网数据帧的源 MAC地址为,根据所述第二无线站点桥的虚拟接口 MAC地 址和与所述第二无线站点桥连接的以太网设备的 MAC地址间的对应关系, 与所述第三无 线局域网数据帧的帧头中的发送方 MAC地址对应的 MAC地址;
所述第一以太网数据帧的目的 MAC地址为所述第三无线局域网数据帧的帧头中的目 的 MAC地址;
所述处理器通过所述基带处理器发送所述第一以太网数据帧。
37、根据权利要求 32, 33或 36中任意一项所述的无线接入点, 其特征在于, 还包括: 所述处理器通过所述基带处理器接收来自第二以太网设备的第二以太网数据帧; 在所述第二以太网数据帧的目的 MAC地址为与所述无线接入点间通过所述第一无线 站点桥连接的设备的 MAC地址的情况下, 所述处理器根据所述第二以太网数据帧生成第 四无线局域网数据帧, 所述第四无线局域网数据帧的帧头中包括源 MAC地址, 发送方 MAC 地址和接收方 MAC地址;
所述第四无线局域网数据帧的帧头中的源 MAC地址为所述第二太网数据帧的源 MAC 地址; 所述第四无线局域网数据帧的帧头中的接收方 MAC地址为, 根据所述第一无线站点 桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应 关系, 与所述第二以太网数据帧的目的 MAC地址对应的虚拟接口 MAC地址;
所述处理器通过所述基带处理器发送所述第四无线局域网数据帧。
38、 一种无线局域网系统, 其特征在于, 包括第一无线站点桥, 第二无线站点桥和 无线接入点; 其中,
所述第一无线站点桥接收第一以太网设备发送的第一以太网数据帧,所述第一以太 网数据帧的源介质访问控制 MAC地址为与所述第一无线站点桥连接的第一以太网设备的 MAC地址; 所述第一无线站点桥根据所述第一以太网数据帧生成第一无线局域网数据帧; 所述第一无线局域网数据帧的帧头中包括发送方 MAC地址和接收方 MAC地址; 所述第一无 线局域网数据帧的帧头中的发送方 MAC地址为, 与所述第一以太网数据帧的源 MAC地址对 应的虚拟接口 MAC地址, 所述虚拟接口 MAC地址为所述第一无线站点桥的多个虚拟接口 MAC地址中的一个; 所述第一无线站点桥发送所述第一无线局域网数据帧; 所述第一无 线站点桥生成所述第一以太网数据帧的源 MAC地址和与所述源 MAC地址对应的虚拟接口 MAC地址间的对应关系; 所述第一无线站点桥向所述无线接入点发送所述第一以太网数 据帧的源 MAC地址和与所述源 MAC地址对应的所述第一无线站点桥的虚拟接口 MAC地址间 的对应关系;
所述无线接入点接收所述第一以太网数据帧的源 MAC地址和与所述源 MAC地址对应 的所述第一无线站点桥的虚拟接口 MAC地址间的对应关系; 所述无线接入点广播所述第 一以太网数据帧的源 MAC地址和与所述源 MAC地址对应的所述第一无线站点桥的虚拟接 口 MAC地址间的对应关系; 所述无线接入点接收来自所述第二无线站点桥的, 所述第二 无线站点桥的虚拟接口 MAC地址和与所述第二无线站点桥连接的以太网设备的 MAC地址 间的对应关系; 所述无线接入点接收来自第一无线站点桥的第一无线局域网数据帧; 在 所述第一无线局域网数据帧的目标设备为与所述无线接入点间通过所述第二无线站点 桥连接的设备的情况下,所述无线接入点根据所述第一无线局域网数据帧生成第二无线 局域网数据帧,所述第二无线局域网数据帧的帧头中包括发送方 MAC地址和接收方 MAC地 址; 所述第二无线局域网数据帧的帧头中的接收方 MAC地址为, 根据所述第二无线站点 桥的虚拟接口 MAC地址和与所述第二无线站点桥连接的以太网设备的 MAC地址间的对应 关系, 与所述第一无线局域网数据帧的目标设备的 MAC地址对应的虚拟接口 MAC地址; 所 述无线接入点发送所述第二无线局域网数据帧;
所述第二无线站点桥接收所述第一以太网数据帧的源 MAC地址和与所述源 MAC地址 对应的所述第一无线站点桥的虚拟接口 MAC地址间的对应关系; 所述第二无线站点桥接 收所述无线接入点发送的第二无线局域网数据帧; 所述第二无线站点桥根据所述第二无 线局域网数据帧生成第二以太网数据帧。
39、 根据权利要求 38所述的无线局域网系统, 其特征在于, 所述无线局域网系统还 包括第二以太网设备, 所述第二以太网设备与所述无线接入点相连;
所述无线接入点接收来自第二以太网设备的第二以太网数据帧;
在所述第二以太网数据帧的目的 MAC地址为与所述第一无线站点桥连接的设备的 MAC地址的情况下, 所述无线接入点根据所述第二以太网数据帧生成第四无线局域网数 据帧,所述第四无线局域网数据帧的帧头中包括源 MAC地址,发送方 MAC地址和接收方 MAC 地址;
所述第四无线局域网数据帧的帧头中的源 MAC地址为所述第二太网数据帧的源 MAC 地址;
所述第四无线局域网数据帧的帧头中的接收方 MAC地址为, 根据所述第一无线站点 桥的虚拟接口 MAC地址和与所述第一无线站点桥连接的以太网设备的 MAC地址间的对应 关系, 与所述第二以太网数据帧的目的 MAC地址对应的虚拟接口 MAC地址;
所述无线接入点发送所述第四无线局域网数据帧。
40、 一种无线局域网访问方法, 其特征在于, 包括:
第一无线站点桥接收第一以太网设备发送的第一以太网数据帧,所述第一以太网数 据帧的源介质访问控制 MAC地址为与所述第一无线站点桥连接的第一以太网设备的 MAC 地址;
所述第一无线站点桥根据所述第一以太网数据帧生成第一无线局域网数据帧; 所述第一无线局域网数据帧的帧头中包括发送方 MAC地址,接收方 MAC地址和基本服 务集标识 BSSID; 所述第一无线局域网数据帧的帧头中的发送方 MAC地址为所述第一以太网数据帧的 源 MAC地址, 所述第一无线局域网数据帧的帧头中的接收方 MAC地址为无线接入点的 MAC 地址;
所述第一无线局域网数据帧承载聚合 MAC业务数据单元 A-MSDU , 所述 A-MSDU包括 A-MSDU子帧, 所述 A-MSDU子帧是根据所述第一以太网数据帧生成的, 所述 A-MSDU子帧的 源地址为, 与所述第一以太网数据帧的源 MAC地址对应的虚拟接口 MAC地址, 所述虚拟接 口 MAC地址为所述第一无线站点桥的多个虚拟接口 MAC地址中的一个,所述 A-MSDU子帧的 目的地址为所述第一以太网数据帧的目的 MAC地址;
所述第一无线站点桥发送所述第一无线局域网数据帧。
41、 根据权利要求 40所述的方法, 其特征在于, 所述第一以太网数据帧的目的 MAC 地址为广播 MAC地址或组播 MAC地址。
42、根据权利要求 40或 41所述的方法,其特征在于,在接收第一以太网数据帧之后, 还包括:
所述第一无线站点桥生成所述第一以太网数据帧的源 MAC地址和与所述源 MAC地址 对应的虚拟接口 MAC地址间的对应关系;
所述第一无线站点桥向所述无线接入点发送所述第一以太网数据帧的源 MAC地址和 与所述源 MAC地址对应的所述第一无线站点桥的虚拟接口 MAC地址间的对应关系。
43、 根据权利要求 40至 42中任意一项所述的方法, 其特征在于, 还包括: 所述第一无线站点桥接收所述无线接入点发送的第三无线局域网数据帧,第三无线 局域网数据帧承载 A-MSDU;
所述第一无线站点桥获取所述第三无线局域网数据帧承载的 A-MSDU中的 A-MSDU子 帧;
所述第一无线站点桥根据所述 A-MSDU子帧生成第二以太网数据帧,第二以太网数据 帧的目的 MAC地址为所述 A-MSDU子帧的目的地址, 第二以太网数据帧的源 MAC地址为, 根 据所述无线接入点广播的对应关系, 与所述 A-MSDU子帧的源 MAC地址对应的 MAC地址; 发送所述第二以太网数据帧。
44、 根据权利要求 40至 42中任意一项所述的方法, 其特征在于, 还包括: 所述第一无线站点桥接收所述无线接入点发送的第三无线局域网数据帧,第三无线 局域网数据帧承载 A-MSDU, 所述第三无线局域网数据帧的帧头中的接收方 MAC地址为广 播 MAC地址或组播 MAC地址;
所述第一无线站点桥获取所述第三无线局域网数据帧承载的 A-MSDU中的 A-MSDU子 帧;
在所述 A-MSDU子帧的源地址为与所述第一无线站点桥的虚拟接口 MAC地址的情况 下, 所述第一无线站点桥丢弃所述 A-MSDU子帧。
45、 一种无线局域网访问装置, 由第一无线站点桥实现, 其特征在于, 所述无线局 域网访问装置包括接收模块, 生成模块和发送模块; 其中,
所述接收模块, 用于接收第一以太网设备发送的第一以太网数据帧, 所述第一以太 网数据帧的源介质访问控制 MAC地址为与所述第一无线站点桥连接的第一以太网设备的 MAC地址;
所述生成模块, 用于根据所述第一以太网数据帧生成第一无线局域网数据帧; 所述第一无线局域网数据帧的帧头中包括发送方 MAC地址,接收方 MAC地址和基本服 务集标识 BSSID;
所述第一无线局域网数据帧的帧头中的发送方 MAC地址为为所述第一以太网数据帧 的源 MAC地址, 所述第一无线局域网数据帧的帧头中的接收方 MAC地址为无线接入点的 MAC地址;
所述第一无线局域网数据帧承载聚合 MAC业务数据单元 A-MSDU , 所述 A-MSDU包括 A-MSDU子帧, 所述 A-MSDU子帧是根据所述第一以太网数据帧生成的, 所述 A-MSDU子帧的 源地址为, 与所述第一以太网数据帧的源 MAC地址对应的虚拟接口 MAC地址, 所述虚拟接 口 MAC地址为所述第一无线站点桥的多个虚拟接口 MAC地址中的一个,所述 A-MSDU子帧的 目的地址为所述第一以太网数据帧的目的 MAC地址;
所述发送模块, 用于发送所述第一无线局域网数据帧。
46、 根据权利要求 45所述的无线局域网访问装置, 其特征在于, 所述第一以太网数 据帧的目的 MAC地址为广播 MAC地址或组播 MAC地址。
47、 根据权利要求 45或 46所述的无线局域网访问装置, 其特征在于, 所述生成模块,还用于生成所述第一以太网数据帧的源 MAC地址和与所述源 MAC地址 对应的虚拟接口 MAC地址间的对应关系;
所述发送模块, 还用于向所述无线接入点发送所述第一以太网数据帧的源 MAC地址 和与所述源 MAC地址对应的所述第一无线站点桥的虚拟接口 MAC地址间的对应关系。
48、 根据权利要求 45至 47中任意一项所述的无线局域网访问装置, 其特征在于, 所述接收模块, 还用于接收所述无线接入点发送的第三无线局域网数据帧, 第三无 线局域网数据帧承载 A-MSDU;
所述生成模块,还用于获取所述第三无线局域网数据帧承载的 A-MSDU中的 A-MSDU子 帧, 根据所述 A-MSDU子帧生成第二以太网数据帧, 第二以太网数据帧的目的 MAC地址为 所述 A-MSDU子帧的目的地址, 第二以太网数据帧的源 MAC地址为, 根据所述无线接入点 广播的对应关系, 与所述 A-MSDU子帧的源 MAC地址对应的 MAC地址;
所述发送模块, 还用于发送所述第二以太网数据帧。
49、 根据权利要求 45至 47中任意一项所述的无线局域网访问装置, 其特征在于, 所述接收模块, 还用于接收所述无线接入点发送的第三无线局域网数据帧, 第三无 线局域网数据帧承载 A-MSDU, 所述第三无线局域网数据帧的帧头中的接收方 MAC地址为 广播 MAC地址或组播 MAC地址;
所述接收模块,还用于获取所述第三无线局域网数据帧承载的 A-MSDU中的 A-MSDU子 帧,在所述 A-MSDU子帧的源地址为与所述第一无线站点桥的虚拟接口 MAC地址的情况下, 丢弃所述 A-MSDU子帧。
50、 一种无线站点, 其特征在于, 包括太网适配器, 无线局域网适配器, 处理器和 存储器;
所述太网适配器和所述处理器相连, 所述无线局域网适配器和所述处理器相连, 所 述存储器和所述处理器相连;
所述太网适配器接收第一以太网设备发送的第一以太网数据帧,所述第一以太网数 据帧的源介质访问控制 MAC地址为与所述无线站点连接的第一以太网设备的 MAC地址; 所述处理器根据所述第一以太网数据帧生成第一无线局域网数据帧; 所述第一无线局域网数据帧的帧头中包括发送方 MAC地址,接收方 MAC地址和基本服 务集标识 BSSID;
所述第一无线局域网数据帧的帧头中的发送方 MAC地址为所述第一以太网数据帧的 源 MAC地址, 所述第一无线局域网数据帧的帧头中的接收方 MAC地址为无线接入点的 MAC 地址;
所述第一无线局域网数据帧承载聚合 MAC业务数据单元 A-MSDU , 所述 A-MSDU包括 A-MSDU子帧, 所述 A-MSDU子帧是根据所述第一以太网数据帧生成的, 所述 A-MSDU子帧的 源地址为, 与所述第一以太网数据帧的源 MAC地址对应的虚拟接口 MAC地址, 所述虚拟接 口 MAC地址为所述无线站点桥的多个虚拟接口 MAC地址中的一个,所述 A-MSDU子帧的目的 地址为所述第一以太网数据帧的目的 MAC地址;
所述无线局域网适配器发送所述第一无线局域网数据帧。
51、 根据权利要求 50所述的无线站点, 其特征在于, 所述第一以太网数据帧的目的 MAC地址为广播 MAC地址或组播 MAC地址。
52、 根据权利要求 50或 51所述的无线站点, 其特征在于, 在接收第一以太网数据帧 之后,所述处理器生成所述第一以太网数据帧的源 MAC地址和与所述源 MAC地址对应的虚 拟接口 MAC地址间的对应关系;
所述无线局域网适配器向所述无线接入点发送所述第一以太网数据帧的源 MAC地址 和与所述源 MAC地址对应的所述无线站点桥的虚拟接口 MAC地址间的对应关系。
53、 根据权利要求 50至 52中任意一项所述的无线站点, 其特征在于, 还包括: 所述无线局域网适配器接收所述无线接入点发送的第三无线局域网数据帧,第三无 线局域网数据帧承载 A-MSDU;
所述处理器获取所述第三无线局域网数据帧承载的 A-MSDU中的 A-MSDU子帧; 所述处理器根据所述 A-MSDU子帧生成第二以太网数据帧,第二以太网数据帧的目的 MAC地址为所述 A-MSDU子帧的目的地址, 第二以太网数据帧的源 MAC地址为, 根据所述无 线接入点广播的对应关系, 与所述 A-MSDU子帧的源 MAC地址对应的 MAC地址;
所述太网适配器发送所述第二以太网数据帧。
54、 根据权利要求 50至 52中任意一项所述的无线站点, 其特征在于, 还包括: 所述无线局域网适配器接收所述无线接入点发送的第三无线局域网数据帧,第三无 线局域网数据帧承载 A-MSDU, 所述第三无线局域网数据帧的帧头中的接收方 MAC地址为 广播 MAC地址或组播 MAC地址;
所述处理器获取所述第三无线局域网数据帧承载的 A-MSDU中的 A-MSDU子帧; 在所述 A-MSDU子帧的源地址为所述无线站点桥的虚拟接口 MAC地址的情况下, 所述 处理器丢弃所述 A-MSDU子帧。
PCT/CN2012/086674 2012-12-14 2012-12-14 无线局域网访问方法、设备、系统,无线站点和无线接入点 WO2014089829A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201280003030.7A CN103999538B (zh) 2012-12-14 2012-12-14 无线局域网访问方法、设备和系统
EP12888212.3A EP2770799B1 (en) 2012-12-14 2012-12-14 Method and wireless access point device for accessing wireless local area network
PCT/CN2012/086674 WO2014089829A1 (zh) 2012-12-14 2012-12-14 无线局域网访问方法、设备、系统,无线站点和无线接入点
US14/306,031 US9325523B2 (en) 2012-12-14 2014-06-16 Method, device and system for accessing wireless local area network, wireless station, and wireless access point

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/086674 WO2014089829A1 (zh) 2012-12-14 2012-12-14 无线局域网访问方法、设备、系统,无线站点和无线接入点

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/306,031 Continuation US9325523B2 (en) 2012-12-14 2014-06-16 Method, device and system for accessing wireless local area network, wireless station, and wireless access point

Publications (1)

Publication Number Publication Date
WO2014089829A1 true WO2014089829A1 (zh) 2014-06-19

Family

ID=50933733

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/086674 WO2014089829A1 (zh) 2012-12-14 2012-12-14 无线局域网访问方法、设备、系统,无线站点和无线接入点

Country Status (4)

Country Link
US (1) US9325523B2 (zh)
EP (1) EP2770799B1 (zh)
CN (1) CN103999538B (zh)
WO (1) WO2014089829A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208679A (zh) * 2015-10-21 2015-12-30 北京星网锐捷网络技术有限公司 实现无线网络互通的设备及方法

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10009268B2 (en) * 2014-01-06 2018-06-26 Samsung Electronics Co., Ltd. Method and apparatus for relaying packet transmission and updating network address information in communication system
CN104936315B (zh) * 2014-03-21 2019-12-20 海信集团有限公司 一种通过wifi传输数据的方法、主设备及模块设备
US9668126B2 (en) * 2014-08-12 2017-05-30 Lenovo (Singapore) Pte. Ltd. Preventing location tracking via smartphone MAC address
US11006311B2 (en) * 2017-05-16 2021-05-11 Qualcomm Incorporated Ethernet over cellular
CN109391532B (zh) * 2017-08-04 2020-10-02 深圳市中兴微电子技术有限公司 一种无线传输装置、无线传输方法及计算机可读存储介质
JP7299622B2 (ja) * 2020-03-31 2023-06-28 サイレックス・テクノロジー株式会社 通信システム、ブリッジ装置、アクセスポイント、及び、通信方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101080904A (zh) * 2004-11-09 2007-11-28 诺基亚公司 桥接数据网络通信
US20080037482A1 (en) * 2006-08-09 2008-02-14 Cisco Technology, Inc. Method and apparatus for transferring network management information to wireless nodes
CN101510853A (zh) * 2009-04-09 2009-08-19 杭州华三通信技术有限公司 Wlan无线桥接的实现方法和装置及无线接入客户端
CN101902399A (zh) * 2010-07-09 2010-12-01 北京星网锐捷网络技术有限公司 基于生成树协议的无线网络通信方法、系统及装置
CN102316453A (zh) * 2011-08-31 2012-01-11 杭州华三通信技术有限公司 无线接入方法及设备

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060221987A1 (en) * 2005-03-30 2006-10-05 Junxion Inc. LAN and WWAN gateway
US20070189308A1 (en) * 2006-02-16 2007-08-16 Izoslav Tchigevsky Virtual machine networking using wireless bridge emulation
JP5281644B2 (ja) * 2007-09-07 2013-09-04 テレフオンアクチーボラゲット エル エム エリクソン(パブル) ノマディック型端末に、レイヤ2レベル上でホーム・ネットワークにアクセスすることを可能にする方法および装置
US8315197B2 (en) 2008-01-25 2012-11-20 Cisco Technology, Inc. Bridging wireless and wired media in a computer network
US8036161B2 (en) * 2008-07-30 2011-10-11 Symbol Technologies, Inc. Wireless switch with virtual wireless switch modules
JP5592887B2 (ja) * 2008-09-02 2014-09-17 コーニンクレッカ フィリップス エヌ ヴェ メッシュ型ネットワークのプロキシ構造
US20110286380A1 (en) * 2010-05-21 2011-11-24 Yee Yi Zhu Wireless workgroup bridge for network viryualization
US20120051346A1 (en) * 2010-08-24 2012-03-01 Quantenna Communications, Inc. 3-address mode bridging
US8553603B2 (en) * 2011-06-09 2013-10-08 Symbol Technologies, Inc. Client bridge between wired and wireless communication networks
US9014075B2 (en) * 2011-10-13 2015-04-21 Alcatel Lucent Wide area mirroring router
US8953574B2 (en) * 2011-11-28 2015-02-10 Qualcomm Incorporated Wireless bridging in a hybrid communication network
US9092274B2 (en) * 2011-12-07 2015-07-28 International Business Machines Corporation Acceleration for virtual bridged hosts
US9504089B2 (en) * 2012-05-14 2016-11-22 Broadcom Corporation System and method for wireless station bridging
US9510271B2 (en) * 2012-08-30 2016-11-29 Qualcomm Incorporated Systems, apparatus, and methods for address format detection
US20140064196A1 (en) * 2012-08-30 2014-03-06 Qualcomm Incorporated Layer 2 address management in 3 address only capable access points in networks with relays

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101080904A (zh) * 2004-11-09 2007-11-28 诺基亚公司 桥接数据网络通信
US20080037482A1 (en) * 2006-08-09 2008-02-14 Cisco Technology, Inc. Method and apparatus for transferring network management information to wireless nodes
CN101510853A (zh) * 2009-04-09 2009-08-19 杭州华三通信技术有限公司 Wlan无线桥接的实现方法和装置及无线接入客户端
CN101902399A (zh) * 2010-07-09 2010-12-01 北京星网锐捷网络技术有限公司 基于生成树协议的无线网络通信方法、系统及装置
CN102316453A (zh) * 2011-08-31 2012-01-11 杭州华三通信技术有限公司 无线接入方法及设备

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208679A (zh) * 2015-10-21 2015-12-30 北京星网锐捷网络技术有限公司 实现无线网络互通的设备及方法

Also Published As

Publication number Publication date
EP2770799B1 (en) 2016-10-26
EP2770799A4 (en) 2015-04-08
US9325523B2 (en) 2016-04-26
CN103999538B (zh) 2017-12-22
US20140293936A1 (en) 2014-10-02
EP2770799A1 (en) 2014-08-27
CN103999538A (zh) 2014-08-20

Similar Documents

Publication Publication Date Title
WO2014089829A1 (zh) 无线局域网访问方法、设备、系统,无线站点和无线接入点
US8325679B2 (en) Interworking of networks with single radio handover
WO2019219034A1 (zh) 一种通信方法及装置
CN106877977B (zh) 数据通信的方法、装置及系统
WO2020020209A1 (zh) 一种通信方法及装置
US20080273700A1 (en) Systems and Methods For Multicast Retransmission over a Secure Wireless LAN
US8995326B2 (en) Techniques for broadcast/multicast delivery in wireless networks
JP2016524700A (ja) Wlanノードのロケーションを決定するためのオフロードされたポジショニングに関するシステムおよび方法
EP3758312B1 (en) Method and system for the creation of a multicast group
JP2009539323A (ja) 複数の識別子に基づくローミング・サポートを備えた物理レイヤ・リピータ
WO2013091494A1 (zh) 一种无线中继设备的中继方法及无线中继设备
WO2013091510A1 (zh) 传输数据帧的方法和装置
WO2011137842A1 (zh) 一种基于cgn实体的数据传输方法、cgn实体、网关及系统
WO2015131358A1 (zh) 信道资源指示方法及装置
JP2013505635A (ja) ユニバーサルサービスインタフェースネットワーキングの装置及び方法
WO2015081553A1 (zh) 传输数据的方法、装置和系统
WO2013120402A1 (zh) 处理地址冲突的方法和装置
CN102316453B (zh) 无线接入方法及设备
WO2014067450A1 (zh) 三层本地转发方法和设备
WO2014000593A1 (zh) 数据通信装置和数据通信方法
US8315192B2 (en) Method and system for configuring a media access control header to reduce a header overhead
WO2015027474A1 (zh) 数据报头封装方法、解封装方法、装置及设备
WO2012110004A1 (zh) 基于lte-lan的报文转发方法及装置
JP4977359B2 (ja) 無線lanデータ通信システム、無線アクセスポイント、無線lanデータ通信方法及びそのプログラム
WO2009105981A1 (zh) 组业务加密密钥更新方法及系统

Legal Events

Date Code Title Description
REEP Request for entry into the european phase

Ref document number: 2012888212

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2012888212

Country of ref document: EP

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12888212

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE