WO2014036890A1 - 客户端模式下无线网络设备网桥转发报文的方法及装置 - Google Patents

客户端模式下无线网络设备网桥转发报文的方法及装置 Download PDF

Info

Publication number
WO2014036890A1
WO2014036890A1 PCT/CN2013/081950 CN2013081950W WO2014036890A1 WO 2014036890 A1 WO2014036890 A1 WO 2014036890A1 CN 2013081950 W CN2013081950 W CN 2013081950W WO 2014036890 A1 WO2014036890 A1 WO 2014036890A1
Authority
WO
WIPO (PCT)
Prior art keywords
mac address
wireless network
network device
message
key information
Prior art date
Application number
PCT/CN2013/081950
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 中兴通讯股份有限公司
Publication of WO2014036890A1 publication Critical patent/WO2014036890A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2596Translation of addresses of the same type other than IP, e.g. translation from MAC to MAC addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Definitions

  • the present invention relates to a bridge forwarding technology, and in particular to a method and apparatus for a wireless network device bridge to forward a message in a client mode.
  • Bridge is a common way of connecting to the Internet in the home gateway. It is used for data forwarding between network ports. Its applications cover almost all scenarios of wired and wireless. However, in certain wireless scenarios, the combination of bridge and wireless technology has caused problems.
  • FIG. 1 is a schematic structural diagram of a problem scenario in the prior art.
  • the scenario includes: a first wireless network device 11, a second wireless network device 12, a first terminal 13, and a second terminal 14;
  • the first wireless network device 11 operates in a client mode, which may also be referred to as a STATION mode;
  • the second wireless network device 12 operates in a wireless access point (AP) mode.
  • the first wireless network device 11 and the second wireless network device 12 are connected by a wireless network, and the first terminal 13 is connected to the first wireless network device 11, and the second terminal 14 is connected to the second wireless network device 12, at this time, the first terminal There is a problem with the communication between the 13 and the second terminal 14.
  • the 802.11 wireless protocol standard stipulates that data communication between the wireless network device in the client mode and the wireless network device in the AP mode must be transmitted through the three-address frame format.
  • the so-called three addresses are source addresses, Send address and destination address.
  • the wireless network device in the AP mode requires a data packet sent by the wireless network device in the client mode, and the source address must be the address of the wireless network device in the client mode; and the wireless network device in the AP mode is sent to the client.
  • the packet of the wireless network device in the mode whose destination address is the address of the wireless network device in the client mode.
  • the first wireless network device 11 cannot send data to the second wireless network device 12; correspondingly, the first wireless network device 11 receives the data without any NAT. After the packet sent by the second wireless network device 12, the user side packet cannot be forwarded.
  • the main purpose of the embodiments of the present invention is to provide a method and device for forwarding packets of a wireless network device bridge in a client mode, which can implement data of a wireless network device in a client mode and a wireless network device in an AP mode. Communication.
  • An embodiment of the present invention provides a method for a wireless network device bridge to forward a packet in a client mode, where the method includes:
  • the first wireless network device After receiving the packet sent by the terminal, the first wireless network device modifies the source/media access control (MAC) address of the packet header to the MAC address of the first wireless network device, and then sends the packet to the second wireless network device.
  • MAC media access control
  • the first wireless network device After receiving the packet sent by the second wireless network device, the first wireless network device modifies the destination MAC address of the packet header to the destination MAC address of the user side, and forwards the modified packet to the user side.
  • the first wireless network device works in a client mode
  • the second wireless network device works in an AP mode.
  • the method before the modifying the source MAC address of the packet header to the MAC address of the first wireless network device, the method further includes:
  • Extracting key information of the message determining whether the key information is stored in a mapping (MAP) database, and if the determination result is no, storing the mapping relationship between the key information and the source MAC address of the packet header in the MAP In the database.
  • MAP mapping
  • the destination MAC address of the packet header is modified to the destination MAC address of the user side.
  • the method further includes:
  • the destination MAC address of the user side is a MAC address that is queried in the MAP database and matches the key information.
  • the key information includes: an Internet Protocol (IP) address, a Host-Uniq identifier, or a TranscastionID field.
  • IP Internet Protocol
  • the method further includes:
  • the first wireless network device modifies the source MAC address of the packet header to the MAC address of the wireless network device, and then changes the source MAC address of the packet body to the first a MAC address of the wireless network device, and sending the modified packet to the second wireless network device;
  • the first wireless network master device modifies the destination MAC address of the packet header to the destination MAC address of the user side
  • the destination MAC address of the text body is changed to the destination MAC address of the user side, and the modified The packet is forwarded on the user side.
  • the embodiment of the present invention further provides a device for forwarding a packet by a wireless network device bridge in a client mode, where the device includes: a source address translation (SNAT) module and a destination address translation (Destination Network Address Translation) , DNAT) module; among them,
  • SNAT source address translation
  • DNAT destination address translation
  • the SNAT module is configured to modify the source MAC address of the packet header sent by the terminal to the MAC address of the first wireless network device, and send the modified packet to the second wireless network device;
  • the DNAT module configured In order to change the destination MAC address of the packet header sent by the second wireless network device to the destination MAC address of the user side, the falsified message is forwarded by the user side;
  • the first wireless network device works in a client mode
  • the second wireless network works in AP mode.
  • the device further includes: a key information extraction module, a determination module, a data storage module, and a MAP database; wherein
  • the key information extraction module is configured to extract key information of the packet sent by the terminal, and send the extracted key information to the determination module;
  • the determining module is configured to determine whether the key information of the packet is stored in the MAP database, and send the determination result to the data storage module;
  • the data storage module is configured to: when the determination result of the determining module is negative, store the mapping relationship between the key information extracted in the packet and the source MAC address to which the packet belongs to the MAP database;
  • the MAP database is configured to store a mapping relationship between the key information extracted in the packet and the source MAC address to which the packet belongs.
  • the device further includes a key information matching module configured to extract key information of the packet sent by the second wireless network device, query a MAC address matching the extracted key information in the MAP database, and record the query.
  • the MAC address to.
  • the device further includes a first message content modification module configured to modify, by the first wireless network device, the source MAC address of the packet sent by the terminal to be the MAC address of the first wireless network device, and the modified packet Sent to the second wireless network device;
  • a first message content modification module configured to modify, by the first wireless network device, the source MAC address of the packet sent by the terminal to be the MAC address of the first wireless network device, and the modified packet Sent to the second wireless network device;
  • the packet is a packet carrying an active MAC address in the packet body.
  • the device further includes a second message content modification module, configured to: the first wireless network device modifies the destination MAC address of the packet body sent by the second wireless network device to the MAC address of the user side, and the modified The packet is forwarded by the user side;
  • the packet is a packet with a destination MAC address carried in the packet body.
  • the method and device for forwarding a message in a client mode in a client mode when a wireless network device in a client mode receives a packet sent by a terminal, the source MAC address of the packet header is received. The address is modified to the MAC address of the wireless network device in the client mode, and is sent to the wireless network device in the AP mode; when the wireless network device in the client mode receives the message sent by the wireless network device in the AP mode, The destination MAC address of the packet header is changed to the destination MAC address of the user side, and the modified packet is forwarded by the user.
  • the technical solution of the embodiment of the present invention converts the source address of the data packet into the MAC address of the wireless network device in the client mode in the packet sending process by using the NAT mode; in the packet receiving process, the data packet is received.
  • the destination address of the text is converted from the MAC address of the wireless network device in the client mode to the destination MAC address of the user side.
  • the data communication between the wireless network device in the client mode and the wireless network device in the AP mode is implemented.
  • FIG. 1 is a schematic structural diagram of a problem scenario in the prior art
  • FIG. 2 is a schematic flowchart of a method for implementing a method for forwarding a packet by a wireless network device bridge in a client mode according to Embodiment 1 of the present invention
  • FIG. 3 is a schematic structural diagram of a device structure for a packet of a wireless network device bridge to forward a message in a client mode according to Embodiment 1 of the present invention
  • FIG. 4 is a schematic flowchart of an implementation process of a wireless network device transmitting a message to a wireless network device in an AP mode in a client mode according to Embodiment 2 of the present invention
  • FIG. 5 is a schematic flowchart of an implementation process of a wireless network device receiving a message from a wireless network device in an AP mode in a client mode according to Embodiment 3 of the present invention. detailed description
  • FIG. 2 is a schematic flowchart of a method for implementing a method for forwarding a packet by a wireless network device bridge in a client mode according to Embodiment 1 of the present invention. As shown in FIG. 2, the method includes the following steps:
  • Step 21 After receiving the packet sent by the terminal, the first wireless network device sends the source of the packet header.
  • the MAC address is modified to the MAC address of the first wireless network device and then sent to the second wireless network device.
  • the first wireless network device works in a client mode
  • the second wireless network device works in an AP mode
  • the method further includes: before the modifying the source MAC address of the packet header to the MAC address of the first wireless network device, the method further includes:
  • Extracting key information of the message determining whether the key information is already stored in the MAP database, and if the determination result is yes, performing no operation; if the determination result is no, the key information and the source of the message header are The mapping relationship of the MAC address is stored in the MAP database.
  • the MAP database dynamically stores the key information and the source MAC address of the packet in the database.
  • the terminal device to which the packet belongs is offline, the corresponding key information and the source MAC address in the MAP database are also cleared.
  • the mapping relationship between the key information and the source MAC address is a correspondence relationship, where the key information and the source MAC address are stored in two hashes with a hash key and a MAC address as keywords respectively. (hash) in the chain.
  • the key information includes: an IP address, a Host-Uniq identifier, or a TranscastionID field.
  • the source IP address is extracted by the IP processing function.
  • the ARP processing function is used to extract the IP information according to the content of the packet.
  • the packet is a Point-to-Point Protocol over Ethernet (PPPoE) packet, the Host-Uniq identifier is extracted as the key information through the PPPoE processing function; if the IP address is extracted from a certain packet If the address is 0, it is most likely a Dynamic Host Configuration Protocol (DHCP) message, and the TransacationlD field is extracted as the key information.
  • DHCP Dynamic Host Configuration Protocol
  • Other protocols are similar to the above methods, and the protocol is implemented by different protocol functions. Key information Extract.
  • the first wireless network device If the source MAC address of the packet header is changed to the MAC address of the first wireless network device, the first wireless network device also needs to use the active MAC address in the packet body.
  • the source MAC address is modified to the MAC address of the first wireless network device, and then the modified packet is sent to the second wireless network device; where the message can be ARP, dynamic host setting, and ten (Dynamic Host Configuration Protocol, DHCP) messages, etc.
  • Step 22 After receiving the packet sent by the second wireless network device, the first wireless network device modifies the destination MAC address of the packet header to the destination MAC address of the user side, and forwards the modified packet to the user side. .
  • the destination MAC address of the packet header is the MAC address of the first radio network device; the destination MAC address of the packet header needs to be modified to the destination MAC address of the user side, so that the user side can forward the packet.
  • the method further includes: before the modifying the destination MAC address of the packet header to the destination MAC address of the user side, the method further includes:
  • the key information of the packet is extracted, the MAC address matching the extracted key information is queried in the MAP database, and the queried MAC address is recorded.
  • the MAP database stores a mapping relationship between the key information and the MAC address.
  • the mapping relationship between the key information and the MAC address is a correspondence relationship, and the first wireless network device can pass the extracted key information. Set the matching function to query the MAC address corresponding to the key information.
  • the MAC address stored in the MAP database may be regarded as the source MAC address of the packet when the first wireless network device receives the packet sent by the terminal to be sent to the second wireless network device; Receiving, by the network device, the packet sent by the second wireless network device to be sent to the user On the side, it can be regarded as the destination MAC address of the user side.
  • the destination MAC address of the user side in step 22 is the MAC address that is queried in the MAP database and matches the key information.
  • the MAC address of the line network device after the first wireless network device receives the packet sent by the second wireless network device, the destination MAC address of the packet header needs to be modified to match the key information that is queried in the MAP database.
  • the MAC address can be used to forward user-side packets.
  • the key information includes: an IP address, a Host-Uniq identifier, or a TranscastionID field.
  • the method for extracting the key information is the same as the method for extracting the key information described in the step 21, and details are not described herein again.
  • the first wireless network device changes the destination MAC address of the packet header to the destination MAC address of the user side, and then the destination MAC address in the packet.
  • the MAC is changed to the destination MAC address of the user side, and then the falsified packet is forwarded by the user side.
  • the packet may be an ARP packet or a DHCP packet.
  • the first wireless network device after receiving the packet sent by the terminal, extracts key information of the packet, and determines whether the key information is already stored in the MAP database, and if the determined result is no, the key information is The mapping relationship between the source MAC address of the packet header is stored in the MAP database; if the result of the determination is yes, no operation is performed; after the determination is finished, the source MAC address of the packet header is modified to the first wireless network device. The MAC address is sent to the second wireless network device.
  • the first wireless network device after receiving the packet sent by the second wireless network device, extracts the key information of the packet, queries the MAP database for the MAC address matching the extracted key information, and records the query.
  • the MAC address of the packet is changed.
  • the destination MAC address of the packet header is changed to the queried MAC address, and the modified packet is forwarded by the user.
  • the first embodiment of the present invention further provides a device for forwarding a message by a wireless network device bridge in a client mode, as shown in FIG. 3, including a SNAT module 34 and a DNAT module 36;
  • the SNAT module 34 is configured to modify the source MAC address of the packet header sent by the terminal to the MAC address of the first wireless network device, and send the modified packet to the second wireless network device.
  • the DNAT module 36 is configured to change the destination MAC address of the packet header sent by the second wireless network device to the destination MAC address of the user side, and forward the falsified message to the user side.
  • the first wireless network device works in a client mode
  • the second wireless network device works in an AP mode.
  • the device further includes: a key information extraction module 31, a determination module 32, a data storage module 30, and a MAP database 33;
  • the key information extraction module 31 is configured to extract key information of the packet sent by the terminal, and send the extracted key information to the determination module;
  • the key information extraction module 31 is hooked onto the BR POSTROUTING chain by using a protocol plug-in, so that the first wireless network device extracts key information from the message sent to the second wireless network device.
  • the determining module 32 is configured to determine whether the key information of the message has been stored in the MAP database, and send the determination result to the data storage module 30;
  • the data storage module 30 is configured to, when the determination result of the determination module 32 is negative, store the mapping relationship between the key information extracted in the message and the source MAC address to which the message belongs, to the MAP database 33;
  • the MAP database 33 is configured to store a mapping relationship between the key information extracted in the packet and the source MAC address to which the packet belongs.
  • the device further includes a key information matching module 35 configured to extract key information of the message sent by the second wireless network device, and query the MAP database 33 for the MAC address matching the extracted key information, and Record the queried MAC address.
  • the key information matching module 35 is hooked onto the BR PREROUTING chain by using a protocol plug-in, so that the first wireless network device receives the message sent by the second wireless network device and extracts the key information.
  • the device further includes a first message content modification module 37 configured to modify, by the first wireless network device, the source MAC address of the packet body sent by the terminal to the MAC address of the first wireless network device, and the modified Sending the message to the second wireless network device;
  • a first message content modification module 37 configured to modify, by the first wireless network device, the source MAC address of the packet body sent by the terminal to the MAC address of the first wireless network device, and the modified Sending the message to the second wireless network device;
  • the packet is a packet carrying an active MAC address in the packet body.
  • the first packet content modification module 37 needs to modify the source MAC address of the packet header to the MAC address of the wireless network device, and the source MAC address of the packet body in some packet source address translation processes.
  • the address is modified to be a MAC address of the wireless network device, where the packet may be an ARP packet, a DHCP packet, or the like.
  • the device further includes a second message content modification module 38 configured to modify, by the first wireless network device, the destination MAC address of the packet body sent by the second wireless network device to be the MAC address of the user side, and the modified The packet is forwarded by the user side;
  • a second message content modification module 38 configured to modify, by the first wireless network device, the destination MAC address of the packet body sent by the second wireless network device to be the MAC address of the user side, and the modified The packet is forwarded by the user side;
  • the packet is a packet carrying a destination MAC address in the packet body.
  • the second message content modification module 38 needs to modify the destination MAC address of the packet header to the destination MAC address of the user side, and the purpose of the packet in the packet destination address translation process.
  • the MAC address is modified to be the destination MAC address of the user side.
  • the packet may be an ARP packet, a DHCP packet, or the like.
  • the MAC address of the user side is the MAC address matched by the key information matching module 35 in the MAP database 33 and matched with the key information.
  • the key in the device for forwarding packets by the wireless network device bridge in the client mode can all be processed by the central processing in the device in practical applications.
  • CPU Central Processing Unit
  • DSP digital signal processor
  • FPGA Field-Programmable Gate Array
  • Memory implementation in the device can be used in practical applications.
  • the implementation flow of the wireless network device bridge forwarding message in the client mode of the embodiment of the present invention is as shown in FIG. 4 and FIG. 5.
  • FIG. 4 is a schematic flowchart of an implementation process of a wireless network device transmitting a message to a wireless network device in an AP mode in a client mode according to Embodiment 2 of the present invention. As shown in Figure 4, the following steps are included:
  • Step 401 After receiving the packet sent by the first terminal, the first wireless network device extracts key information of the packet.
  • the packet sent by the first terminal includes a source address and a destination address, where the source address is the MAC address of the first terminal: 00:00:00:00:00:01 and the IP address is 192.168.1.11.
  • the destination address is the MAC address of the second terminal: 00:00:00:00:00:02 and the IP address of 192.168.1.22.
  • the first wireless network device extracts the packet.
  • the key information is the IP address in the source address: 192.168.1.11.
  • Step 402 The first wireless network device determines whether the key information is stored in the MAP database. If the determination result is no, step 403 to step 404 are performed; if the determination result is yes, step 404 is directly executed.
  • Step 403 Store the mapping relationship between the key information and the source MAC address of the packet header. In the MAP database.
  • the first wireless network device stores the mapping relationship of the MAC address 00:00:00:00:00:01 of the first terminal and the IP address 192.168.1.11 in the MAP database.
  • Step 404 The first wireless network device modifies the source MAC address of the packet header to the MAC address of the first wireless network device, and sends the MAC address to the second wireless network device.
  • the modifying the source MAC address of the packet header to the MAC address of the first wireless network device is: modifying the MAC address of the first terminal 00:00:00:00:00:01 to the first wireless network device MAC address 00:00:00:00:00:03, the IP address remains unchanged, the IP address of the first terminal is 192.168.1.11; the destination address of the packet header remains unchanged, which is the MAC address of the second terminal: 00:00:00:00:02 and IP address 192.168.1.22, the first wireless network device sends the modified message to the second wireless network device, and the second wireless network device forwards the message to the second terminal.
  • FIG. 5 is a schematic flowchart of an implementation process of a wireless network device receiving a message from a wireless network device in an AP mode in a client mode according to Embodiment 3 of the present invention. As shown in Figure 5, the following steps are included:
  • Step 501 After receiving the packet sent by the second wireless network device, the first wireless network device extracts key information of the packet.
  • the packet sent by the second wireless network device includes a source address and a destination address, where the source address is a MAC address of the second terminal: 00:00:00:00:00:02 and an IP address of 192.168. .1.22, the destination address is a MAC address of the first wireless network device 00:00:00:00:00:03 and an IP address of the first terminal 192.168.1.11; the first wireless network device receives the second wireless network device After the sent message, extract the key information of the message, that is, the IP address in the destination address: 192.168.1.11.
  • Step 502 The first wireless network device queries, in the MAP database, a MAC address that matches the extracted key information, and records the queried MAC address.
  • the MAC address of the first terminal and the IP of the first terminal are stored in the MAP database.
  • the MAP database By mapping the MAP database with the IP address 192.168.1.11 in the known destination address, you can find the MAC address that matches the IP address, that is, the queried MAC address is 00:00:00:00:00:01. .
  • Step 503 The first wireless network device modifies the destination MAC address of the packet header to the queried MAC address, and forwards the modified packet to the user side.
  • the first wireless network device modifies the destination MAC address of the packet header to the queried MAC address as: modifies the original destination MAC address of the packet 00:00:00:00:00:03 to the queried
  • the destination MAC address is 00:00:00:00:00:01, and the IP address remains unchanged.
  • the IP address of the first terminal is 192.168.1.11.
  • the source address of the packet remains unchanged.
  • the MAC address of the second terminal is 00: 00:00:00:00:02 and IP address 192.168.1.22, the first wireless network device forwards the modified message to the user side.
  • the source address of the data packet is converted into the MAC address of the wireless network device in the client mode during the packet sending process; in the packet receiving process, the destination address of the data packet is In the client mode, the MAC address of the wireless network device is converted to the destination MAC address of the user side, thus implementing data communication between the wireless network device in the client mode and the wireless network device in the AP mode.

Landscapes

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

Abstract

本发明实施例公开了一种客户端模式下无线网络设备网桥转发报文的方法,所述方法包括:第一无线网络设备收到终端发来的报文后,将报文头的源MAC地址修改为无线网络设备的MAC地址,发送给第二无线网络设备;相应的,第一无线网络设备收到第二无线网络设备发来的报文后,将报文头的目的MAC地址修改为用户侧的目的MAC地址,将修改后的报文进行用户侧的转发;所述第一无线网络设备工作于客户端模式下,所述第二无线网络设备工作于接入点模式下。本发明实施例同时还公开了一种客户端模式下无线网络设备网桥转发报文的装置。采用本发明实施例的方法及装置,实现了客户端模式下无线网路设备和接入点模式下无线网络设备的数据通信。

Description

客户端模式下无线网络设备网桥转发报文的方法及装置 技术领域
本发明涉及网桥转发技术, 具体涉及一种客户端模式下无线网络设备 网桥转发报文的方法及装置。 背景技术
网桥(Bridge )是一种常见的家庭网关中的上网连接方式, 是通过网络 端口之间的数据转发来开展业务的, 其应用几乎嚢括了有线、 无线的所有 场景。 但在特定的无线场景下, 网桥与无线技术的结合却出现了问题。
图 1为现有技术中问题场景的组成架构示意图, 如图 1所示, 场景中 包括: 第一无线网络设备 11、 第二无线网络设备 12、 第一终端 13和第二 终端 14; 其中, 第一无线网络设备 11工作于客户端模式, 所述客户端模式 也可称之为 STATION模式; 第二无线网络设备 12 工作于无线接入点 ( Access Point, AP )模式。 第一无线网络设备 11和第二无线网络设备 12 通过无线网络连接, 而第一终端 13与第一无线网络设备 11相连, 第二终 端 14与第二无线网络设备 12相连, 此时第一终端 13与第二终端 14之间 的通信会出现问题。
通信问题存在的原因是: 802.11 无线协议标准规定, 客户端模式下的 无线网络设备和 AP模式下的无线网络设备之间的数据通信必须通过三地 址帧格式传输, 所谓的三地址为源地址、 发送地址和目的地址。 AP模式下 的无线网络设备要求客户端模式下的无线网络设备发来的数据报文, 源地 址必须为客户端模式下的无线网络设备的地址;而 AP模式下的无线网络设 备发给客户端模式下的无线网络设备的报文, 其目的地址为该客户端模式 下的无线网络设备的地址。 因此, 在不经过任何网络地址转换(Network Address Translation, NAT ) 的前提下, 第一无线网络设备 11是无法将数据 发送给第二无线网络设备 12的; 相应的, 在不经过任何 NAT的前提下, 第一无线网络设备 11在收到第二无线网络设备 12发来的报文后, 也无法 进行用户侧报文的转发。 发明内容
有鉴于此, 本发明实施例的主要目的在于提供一种客户端模式下无线 网络设备网桥转发报文的方法及装置, 能实现客户端模式下无线网络设备 和 AP模式下无线网络设备的数据通信。
为达到上述目的, 本发明实施例的技术方案是这样实现的:
本发明实施例提供了一种客户端模式下无线网络设备网桥转发报文的 方法, 所述方法包括:
第一无线网络设备收到终端发来的报文后, 将报文头的源介质访问控 制(Medium/Media Access Control, MAC )地址修改为第一无线网络设备的 MAC地址, 之后发送给第二无线网络设备;
第一无线网络设备收到第二无线网络设备发来的报文后, 将报文头的 目的 MAC地址修改为用户侧的目的 MAC地址, 将修改后的报文进行用户 侧的转发;
其中, 所述第一无线网络设备工作于客户端模式下, 所述第二无线网 络设备工作于 AP模式下。
优选地, 所述将报文头的源 MAC 地址修改为第一无线网络设备的 MAC地址之前, 所述方法还包括:
提取报文的关键信息, 判定所述关键信息是否已存储在映射(MAP ) 数据库中, 判定结果为否时,将所述关键信息和所述报文头的源 MAC地址 的映射关系存储在 MAP数据库中。
优选地, 所述将报文头的目的 MAC地址修改为用户侧的目的 MAC地 址之前, 所述方法还包括:
提取报文的关键信息,在 MAP数据库中查询与所述提取的关键信息匹 配的 MAC地址, 并记录查询到的 MAC地址;
其中, 所述用户侧的目的 MAC地址为 MAP数据库中查询到的与关键 信息匹配的 MAC地址。
优选地, 所述关键信息包括: 网络互联协议(Internet Protocol, IP )地 址、 Host-Uniq标识或 TranscastionID字段。
优选地, 所述方法还包括:
所述报文的报文体中携带有源 MAC地址时,第一无线网络设备将报文 头的源 MAC地址修改为无线网络设备的 MAC地址后, 还将报文体的源 MAC地址修改为第一无线网络设备的 MAC地址, 将修改后的报文发送给 第二无线网络设备;
相应的,所述第一无线网络主设备将报文头的目的 MAC地址修改为用 户侧的目的 MAC地址后, 还将 文体的目的 MAC地址爹改为用户侧的目 的 MAC地址, 将修改后的报文进行用户侧的转发。
本发明实施例还提供了一种客户端模式下无线网络设备网桥转发报文 的装置, 所述装置包括: 源地址转换( Source Network Address Translation, SNAT )模块和目的地址转换(Destination Network Address Translation, DNAT )模块; 其中,
所述 SNAT模块,配置为将终端发来的报文头的源 MAC地址修改为第 一无线网络设备的 MAC地址, 将修改后的报文发送给第二无线网络设备; 所述 DNAT模块, 配置为将第二无线网络设备发来的报文头的目的 MAC地址爹改为用户侧的目的 MAC地址, 将爹改后的 ^艮文进行用户侧的 转发;
其中, 所述第一无线网络设备工作于客户端模式下, 所述第二无线网 络设备工作于 AP模式下。
优选地, 所述装置还包括: 关键信息提取模块、 判定模块、 数据存储 模块和 MAP数据库; 其中,
所述关键信息提取模块, 配置为提取终端发来的报文的关键信息, 并 将提取的关键信息发送给判定模块;
所述判定模块,配置为判定报文的关键信息是否已存储在 MAP数据库 中, 并将判定结果发送给数据存储模块;
所述数据存储模块, 配置为当判定模块的判定结果为否时, 将报文中 提取的关键信息和所述报文所属的源 MAC地址的映射关系存储到 MAP数 据库;
所述 MAP数据库,配置为存储报文中提取的关键信息和所述报文所属 的源 MAC地址的映射关系。
优选地, 所述装置还包括关键信息匹配模块, 配置为提取第二无线网 络设备发来的报文的关键信息,在 MAP数据库中查询与所述提取的关键信 息匹配的 MAC地址, 并记录查询到的 MAC地址。
优选地, 所述装置还包括第一报文内容修改模块, 配置为第一无线网 络设备将终端发来报文体的源 MAC地址修改为第一无线网络设备的 MAC 地址, 将修改后的报文发送给第二无线网络设备;
其中, 所述报文为报文体中携带有源 MAC地址的报文。
优选地, 所述装置还包括第二报文内容修改模块, 配置为第一无线网 络设备将第二无线网络设备发来的报文体的目的 MAC 地址修改为用户侧 的 MAC地址, 将修改后的报文进行用户侧的转发;
其中, 所述报文为报文体中携带有的目的 MAC地址的报文。
本发明实施例提供的客户端模式下网桥转发报文的方法及装置, 当客 户端模式下的无线网络设备收到终端发来的报文后,将报文头的源 MAC地 址修改为客户端模式下无线网络设备的 MAC地址, 发送给 AP模式下的无 线网络设备;当客户端模式下的无线网络设备收到 AP模式下的无线网络设 备发来的报文后, 将报文头的目的 MAC地址修改为用户侧的目的 MAC地 址, 将修改后的报文进行用户侧的转发。 可见, 本发明实施例的技术方案 通过 NAT方式, 在报文发送过程中, 将数据报文的源地址转换为客户端模 式下无线网络设备的 MAC地址; 在报文接收过程中,将数据报文的目的地 址由客户端模式下无线网络设备的 MAC地址转换为用户侧的目的 MAC地 址,如此, 实现了客户端模式下无线网络设备和 AP模式下无线网络设备的 数据通信。 附图说明
图 1为现有技术中问题场景的组成架构示意图;
图 2 为本发明实施例一的客户端模式下无线网络设备网桥转发报文的 方法实现流程示意图;
图 3 为本发明实施例一的客户端模式下无线网络设备网桥转发报文的 装置组成架构示意图;
图 4为本发明实施例二的客户端模式下无线网络设备向 AP模式下无线 网络设备发送报文的实现流程示意图;
图 5为本发明实施例三的客户端模式下无线网络设备从 AP模式下无线 网络设备接收报文的实现流程示意图。 具体实施方式
下面结合附图及具体实施例对本发明作进一步详细的说明。
图 2 为本发明实施例一的客户端模式下无线网络设备网桥转发报文的 方法实现流程示意图, 如图 2所示, 所述方法包括以下步骤:
步骤 21 : 第一无线网络设备收到终端发来的报文后, 将报文头的源 MAC地址修改为第一无线网络设备的 MAC地址, 之后发送给第二无线网 络设备。
本实现流程中, 所述第一无线网络设备工作于客户端模式下, 所述第 二无线网络设备工作于 AP模式下。
这里, 所述将报文头的源 MAC地址修改为第一无线网络设备的 MAC 地址之前, 所述方法还包括:
提取报文的关键信息, 判定该关键信息是否已经存储在 MAP 数据库 中, 若判定结果为是, 则不执行任何操作; 若判定结果为否, 则将该关键 信息和所述报文头的源 MAC地址的映射关系存储在 MAP数据库中。
其中, 所述 MAP数据库将报文的关键信息和源 MAC地址动态存储在 数据库中, 当报文所属的终端设备下线, 则同时清除 MAP数据库中相应的 关键信息和源 MAC地址。
其中, 所述关键信息和源 MAC地址的映射关系为——对应关系, 所述 关键信息和源 MAC地址存储在分别以哈希关键码( hash key )和 MAC地 址为关键字的两条哈希 (hash )链中。
这里, 所述关键信息包括: IP地址、 Host-Uniq标识或 TranscastionID 字段。
这里, 如果报文为 IP报文, 则通过 IP处理函数提取源 IP地址; 如果 报文为地址解析协议 ( Address Resolution Protocol, ARP )报文, 则通过 ARP 处理函数, 根据报文内容提取 IP信息; 如果报文为点到点连接协议 ( Point-to-Point Protocol over Ethernet, PPPoE )才艮文, 则通过 PPPoE处理 函数, 提取 Host-Uniq标识作为关键信息; 如果某一报文提取到的 IP地址 为 0, 则很有可能是动态主机设置协议 ( Dynamic Host Configuration Protocol, DHCP )报文, 提取 TransacationlD字段作为关键信息, 其他协议 与上述方法类似, 通过不同协议的处理函数实现对某种协议的关键信息的 提取。
其中, 若所述报文的报文体中也携带有源 MAC地址, 则第一无线网络 设备将报文头的源 MAC地址修改为第一无线网络设备的 MAC地址后, 还 要将报文体中的源 MAC地址修改为第一无线网络设备的 MAC地址, 之后 再将修改后的报文发送给第二无线网络设备; 这里, 所述报文可以是 ARP 才艮文、 动态主机设置十办议 ( Dynamic Host Configuration Protocol, DHCP ) 报文等。
步骤 22: 第一无线网络设备收到第二无线网络设备发来的报文后, 将 报文头的目的 MAC地址修改为用户侧的目的 MAC地址, 将修改后的报文 进行用户侧的转发。
这里,所述报文头的目的 MAC地址为第一无线网络设备的 MAC地址; 备需要将报文头的目的 MAC地址修改为用户侧的目的 MAC地址, 才能进 行用户侧的转发。
这里, 所述将报文头的目的 MAC地址修改为用户侧的目的 MAC地址 之前, 所述方法还包括:
提取报文的关键信息,在 MAP数据库中查询与提取的关键信息匹配的 MAC地址, 并记录查询到的 MAC地址。
这里, 所述 MAP数据库中存储有关键信息和 MAC地址的映射关系; 其中, 所述关键信息和 MAC地址的映射关系为——对应关系, 第一无线网 络设备可以根据提取到的关键信息, 通过设置匹配函数, 查询到与关键信 息对应的 MAC地址。
其中, 所述 MAP数据库中存储的 MAC地址, 在第一无线网络设备接 收终端发来的报文待发往第二无线网络设备时, 可以看作是报文的源 MAC 地址; 在第一无线网络设备接收第二无线网络设备发来的报文待发往用户 侧时, 可以看作是^艮文用户侧的目的 MAC地址。
因此, 步骤 22中所述用户侧的目的 MAC地址即为 MAP数据库中查 询到的与关键信息匹配的 MAC地址。 线网络设备的 MAC地址,当第一无线网络设备收到第二无线网络设备发来 的报文后, 需将报文头的目的 MAC地址修改为在 MAP数据库中查询到的 与关键信息匹配的 MAC地址, 才能进行用户侧报文的转发。
这里, 所述关键信息包括: IP地址、 Host-Uniq标识或 TranscastionID 字段。
其中, 所述关键信息的提取方式与步骤 21中所述的关键信息的提取方 式相同, 此处不再赘述。
其中, 若所述报文的报文体中携带有目的 MAC地址, 第一无线网络设 备将报文头的目的 MAC地址修改为用户侧的目的 MAC地址后, 还要将报 文内的目的 MAC地址爹改为用户侧的目的 MAC地址, 之后再将爹改后的 报文进行用户侧的转发; 这里, 所述报文可以是 ARP报文、 DHCP报文等。
具体的, 当第一无线网络设备收到终端发来的报文后, 提取报文的关 键信息, 判断该关键信息是否已经存储在 MAP数据库中, 若判定的结果为 否, 则将关键信息和所述报文头的源 MAC地址的映射关系存储在 MAP数 据库中; 若判定的结果为是, 则不执行任何操作; 判定结束后, 将报文头 的源 MAC地址修改为第一无线网络设备的 MAC地址, 发送给第二无线网 络设备。
相应的, 当第一无线网络设备收到第二无线网络设备发来的报文后, 提取报文的关键信息,在 MAP数据库中查询与所述提取的关键信息匹配的 MAC地址, 并记录查询到的 MAC地址; 将报文头的目的 MAC地址修改 为查询到的 MAC地址, 将修改后的报文进行用户侧的转发。 为实现上述方法, 本发明实施例一还提供了一种客户端模式下无线网 络设备网桥转发报文的装置, 如图 3所示, 包括 SNAT模块 34和 DNAT模 块 36; 其中:
所述 SNAT模块 34, 配置为将终端发来的报文头的源 MAC地址修改 为第一无线网络设备的 MAC地址,将修改后的报文发送给第二无线网络设 备;
所述 DNAT模块 36, 配置为将第二无线网络设备发来的报文头的目的 MAC地址爹改为用户侧的目的 MAC地址, 将爹改后的 ^艮文进行用户侧的 转发。
其中, 所述第一无线网络设备工作于客户端模式下, 第二无线网络设 备工作于 AP模式下。
优选地, 所述装置还包括: 关键信息提取模块 31、 判定模块 32、 数据 存储模块 30和 MAP数据库 33; 其中,
所述关键信息提取模块 31, 配置为提取终端发来的报文的关键信息, 并将提取的关键信息发送给判定模块;
这里, 所述关键信息提取模块 31 采用协议插件式挂接在 BR POSTROUTING链上, 以便第一无线网络设备对发往第二无线网络设 备的报文进行关键信息的提取。
所述判定模块 32, 配置为判定报文的关键信息是否已经存储在 MAP 数据库中, 并将判定结果发送给数据存储模块 30;
数据存储模块 30, 配置为当判定模块 32的判定结果为否时, 将报文中 提取的关键信息和所述报文所属的源 MAC地址的映射关系存储到 MAP数 据库 33;
所述 MAP数据库 33, 配置为存储报文中提取的关键信息和所述报文 所属的源 MAC地址的映射关系。 优选地, 所述装置还包括关键信息匹配模块 35, 配置为提取第二无线 网络设备发来的报文的关键信息, 在 MAP数据库 33中查询与所述提取的 关键信息匹配的 MAC地址, 并记录查询到的 MAC地址。
这里, 所述关键信息匹配模块 35 采用协议插件式挂接在 BR PREROUTING链上, 以便第一无线网络设备收到第二无线网络设备发 来的报文后进行关键信息的提取。
优选地, 所述装置还包括第一报文内容修改模块 37, 配置为第一无线 网络设备将终端发来的报文体的源 MAC 地址修改为第一无线网络设备的 MAC地址, 将修改后的报文发送给第二无线网络设备;
其中, 所述报文为报文体中携带有源 MAC地址的报文。
这里, 所述第一报文内容修改模块 37在某些报文源地址转换过程中, 不仅需要将报文头的源 MAC地址修改为无线网络设备的 MAC地址, 还需 要将报文体的源 MAC地址修改为无线网络设备的 MAC地址; 其中, 所述 报文可以是 ARP报文、 DHCP报文等等。
优选地, 所述装置还包括第二报文内容修改模块 38, 配置为第一无线 网络设备将第二无线网络设备发来的报文体的目的 MAC 地址修改为用户 侧的 MAC地址, 将修改后的报文进行用户侧的转发;
其中, 所述报文为报文体中携带有目的 MAC地址的报文。
这里,所述第二报文内容修改模块 38在某些报文目的地址转换过程中, 不仅需要将报文头的目的 MAC地址修改为用户侧的目的 MAC地址, 还需 要将报文中的目的 MAC地址修改为用户侧的目的 MAC地址; 其中, 所述 报文可以是 ARP报文、 DHCP报文等等。
其中, 所述用户侧的 MAC地址即为关键信息匹配模块 35在 MAP数 据库 33中查询到的与关键信息匹配的 MAC地址。
其中, 所述客户端模式下无线网络设备网桥转发报文的装置中的关键 信息提取模块 31、 判定模块 32、 MAP数据库 33、 SNAT模块 34、 DNAT 模块 36、 第一报文内容修改模块 37和第二报文内容修改模块 38在实际应 用中, 均可由装置中的中央处理器(Central Processing Unit, CPU ), 或数 字信号处理器 ( Digital Signal Processor, DSP )、 或可编程门阵列 ( Field-Programmable Gate Array, FPGA ) 实现; 所述数据存储模块 30在 实际应用中, 可由装置中的存储器实现。
假设工作于客户端模式的第一无线网络设备的 MAC 地址为 00:00:00:00:00:03 ; 与第一无线网络设备相连的第一终端的 MAC 地址为 00:00:00:00:00:01、 IP地址为 192.168.1.11 ; 与工作于 AP模式的第二无线网 络设备相连的第二终端的 MAC 地址为 00:00:00:00:00:02、 IP 地址为 192.168.1.22, 那么, 本发明实施例的客户端模式下无线网络设备网桥转发 报文的实现流程如图 4和图 5所示。
图 4为本发明实施例二的客户端模式下无线网络设备向 AP模式下无线 网络设备发送报文的实现流程示意图。 如图 4所示, 包括以下步骤:
步骤 401 : 第一无线网络设备收到第一终端发来的报文后,提取报文的 关键信息。
这里, 所述第一终端发来的报文包含了源地址和目的地址, 其中, 所 述源地址为第一终端的 MAC地址 00:00:00:00:00:01和 IP地址 192.168.1.11, 所述目的地址为第二终端的 MAC 地址 00:00:00:00:00:02 和 IP 地址 192.168.1.22; 第一无线网络设备收到第一终端发来的报文后, 提取报文的 关键信息, 即源地址中的 IP地址: 192.168.1.11。
步骤 402: 第一无线网络设备判定所述关键信息是否存储在 MAP数据 库中, 若判定结果为否, 则执行步骤 403〜步骤 404; 若判定结果为是, 则 直接执行步骤 404。
步骤 403: 将关键信息和所述报文头的源 MAC地址的映射关系存储在 MAP数据库中。
这里, 若判定的结果为否, 则第一无线网络设备将第一终端的 MAC地 址 00:00:00:00:00:01和 IP地址 192.168.1.11的映射关系存储在 MAP数据库 中。
步骤 404: 第一无线网络设备将报文头的源 MAC地址修改为第一无线 网络设备的 MAC地址, 发送给第二无线网络设备;
这里, 所述将报文头的源 MAC地址修改为第一无线网络设备的 MAC 地址为:将第一终端的 MAC地址 00:00:00:00:00:01修改为第一无线网络设 备的 MAC地址 00:00:00:00:00:03, IP地址保持不变, 为第一终端的 IP地 址 192.168.1.11 ; 报文头的目的地址保持不变, 为第二终端的 MAC 地址 00:00:00:00:00:02和 IP地址 192.168.1.22, 第一无线网络设备将修改后的报 文发送给第二无线网络设备, 由第二无线网络设备转发给第二终端。
图 5为本发明实施例三的客户端模式下无线网络设备从 AP模式下无线 网络设备接收报文的实现流程示意图。 如图 5所示, 包括以下步骤:
步骤 501 : 第一无线网络设备收到第二无线网络设备发来的报文后,提 取报文的关键信息。
这里, 所述第二无线网络设备发来的报文包含了源地址和目的地址, 其中, 所述源地址为第二终端的 MAC 地址 00:00:00:00:00:02 和 IP地址 192.168.1.22, 所述目 的地址为第一无线网络设备的 MAC 地址 00:00:00:00:00:03和第一终端的 IP地址 192.168.1.11 ; 第一无线网络设备收 到第二无线网络设备发来的报文后, 提取报文的关键信息, 即目的地址中 的 IP地址: 192.168.1.11。
步骤 502: 第一无线网络设备在 MAP数据库中查询与所述提取的关键 信息匹配的 MAC地址, 并记录查询到的 MAC地址。
这里,在 MAP数据库中存储着第一终端的 MAC地址与第一终端的 IP 地址的映射关系,通过利用已知目的地址中的 IP地址 192.168.1.11查询 MAP 数据库, 可以找到与 IP地址匹配的 MAC地址, 即查询到的 MAC地址为 00:00:00:00:00:01。
步骤 503: 第一无线网络设备将报文头的目的 MAC地址修改为查询到 的 MAC地址, 将修改后的报文进行用户侧的转发。
这里,所述第一无线网络设备将报文头的目的 MAC地址修改为查询到 的 MAC地址为: 将报文的原目的 MAC地址 00:00:00:00:00:03修改为查询 到的目的 MAC地址 00:00:00:00:00:01, IP地址保持不变, 为第一终端的 IP 地址 192.168.1.11 ; 报文的源地址保持不变, 为第二终端的 MAC 地址 00:00:00:00:00:02和 IP地址 192.168.1.22, 第一无线网络设备将修改后的报 文进行用户侧的转发。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。 凡在本发明的精神和范围之内所作的任何修改、 等同替换和改进 等, 均包含在本发明的保护范围之内。 工业实用性
本发明实施例通过 NAT方式, 在报文发送过程中, 将数据报文的源地 址转换为客户端模式下无线网络设备的 MAC地址; 在报文接收过程中,将 数据报文的目的地址由客户端模式下无线网络设备的 MAC 地址转换为用 户侧的目的 MAC地址, 如此, 实现了客户端模式下无线网络设备和 AP模 式下无线网络设备的数据通信。

Claims

权利要求书
1、 一种客户端模式下无线网络设备网桥转发报文的方法, 所述方法包 括:
第一无线网络设备收到终端发来的报文后, 将报文头的源介质访问控 制 MAC地址修改为第一无线网络设备的 MAC地址, 之后发送给第二无线 网络设备;
第一无线网络设备收到第二无线网络设备发来的报文后, 将报文头的 目的 MAC地址修改为用户侧的目的 MAC地址, 将修改后的报文进行用户 侧的转发;
其中, 所述第一无线网络设备工作于客户端模式下, 所述第二无线网 络设备工作于接入点 AP模式下。
2、 根据权利要求 1所述的方法, 其中, 所述将报文头的源 MAC地址 修改为第一无线网络设备的 MAC地址之前, 所述方法还包括:
提取报文的关键信息, 判定所述关键信息是否已存储在 MAP 数据库 中, 判定结果为否时,将所述关键信息和所述 "¾文头的源 MAC地址的映射 关系存储在 MAP数据库中。
3、 根据权利要求 1所述的方法, 其中, 所述将报文头的目的 MAC地 址修改为用户侧的目的 MAC地址之前, 所述方法还包括:
提取报文的关键信息,在 MAP数据库中查询与所述提取的关键信息匹 配的 MAC地址, 并记录查询到的 MAC地址;
其中, 所述用户侧的目的 MAC地址为 MAP数据库中查询到的与关键 信息匹配的 MAC地址。
4、 根据权利要求 1、 2或 3所述的方法, 其中, 所述关键信息包括: IP 地址、 Host-Uniq标识或 TranscastionID字段。
5、 根据权利要求 1所述的方法, 其中, 所述方法还包括: 所述报文的报文体中携带有源 MAC地址时,第一无线网络设备将报文 头的源 MAC地址修改为无线网络设备的 MAC地址后, 还将报文体的源 MAC地址修改为第一无线网络设备的 MAC地址, 将修改后的报文发送给 第二无线网络设备;
相应的,所述第一无线网络主设备将报文头的目的 MAC地址修改为用 户侧的目的 MAC地址后, 还将 文体的目的 MAC地址爹改为用户侧的目 的 MAC地址, 将修改后的报文进行用户侧的转发。
6、 一种客户端模式下无线网络设备网桥转发报文的装置, 所述装置包 括: 源地址转换 SNAT模块和目的地址转换 DNAT模块; 其中,
所述 SNAT模块,配置为将终端发来的报文头的源 MAC地址修改为第 一无线网络设备的 MAC地址, 将修改后的报文发送给第二无线网络设备; 所述 DNAT模块, 配置为将第二无线网络设备发来的报文头的目的 MAC地址爹改为用户侧的目的 MAC地址, 将爹改后的 ^艮文进行用户侧的 转发;
其中, 所述第一无线网络设备工作于客户端模式下, 所述第二无线网 络设备工作于 AP模式下。
7、 根据权利要求 6所述的装置, 其中, 所述装置还包括: 关键信息提 取模块、 判定模块、 数据存储模块和 MAP数据库;
所述关键信息提取模块, 配置为提取终端发来的报文的关键信息, 并 将提取的关键信息发送给判定模块;
所述判定模块,配置为判定报文的关键信息是否已存储在 MAP数据库 中, 并将判定结果发送给数据存储模块;
所述数据存储模块, 配置为当判定模块的判定结果为否时, 将报文中 提取的关键信息和所述报文所属的源 MAC地址的映射关系存储到 MAP数 据库; 所述 MAP数据库,配置为存储报文中提取的关键信息和所述报文所属 的源 MAC地址的映射关系。
8、 根据权利要求 6所述的装置, 其中, 所述装置还包括关键信息匹配 模块, 配置为提取第二无线网络设备发来的报文的关键信息, 在 MAP数据 库中查询与所述提取的关键信息匹配的 MAC地址, 并记录查询到的 MAC 地址。
9、 根据权利要求 6所述的装置, 其中, 所述装置还包括第一报文内容 修改模块,配置为第一无线网络设备将终端发来报文体的源 MAC地址修改 为第一无线网络设备的 MAC地址,将修改后的报文发送给第二无线网络设 备;
其中, 所述报文为报文体中携带有源 MAC地址的报文。
10、 根据权利要求 6所述的装置, 其中, 所述装置还包括第二报文内 容修改模块, 配置为第一无线网络设备将第二无线网络设备发来的报文体 的目的 MAC地址修改为用户侧的 MAC地址, 将修改后的报文进行用户侧 的转发;
其中, 所述报文为报文体中携带有的目的 MAC地址的报文。
PCT/CN2013/081950 2012-09-10 2013-08-21 客户端模式下无线网络设备网桥转发报文的方法及装置 WO2014036890A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210332196.5A CN103685588A (zh) 2012-09-10 2012-09-10 客户端模式下无线网络设备网桥转发报文的方法及装置
CN201210332196.5 2012-09-10

Publications (1)

Publication Number Publication Date
WO2014036890A1 true WO2014036890A1 (zh) 2014-03-13

Family

ID=50236522

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/081950 WO2014036890A1 (zh) 2012-09-10 2013-08-21 客户端模式下无线网络设备网桥转发报文的方法及装置

Country Status (2)

Country Link
CN (1) CN103685588A (zh)
WO (1) WO2014036890A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530127A (zh) * 2015-12-10 2016-04-27 北京奇虎科技有限公司 一种代理服务器处理网络访问请求的方法和代理服务器
EP3210432A4 (en) * 2014-11-18 2018-02-21 Huawei Technologies Co., Ltd. Conveying device-dependent context in a network address

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104797008B (zh) * 2015-05-06 2018-05-11 清华大学 利用单向透明中继接入点进行数据传输的方法
CN109587063B (zh) * 2018-12-29 2021-08-31 奇安信科技集团股份有限公司 一种数据的引流方法及装置
CN109922164B (zh) * 2019-02-12 2022-07-26 Oppo广东移动通信有限公司 一种地址转换方法、装置以及计算机存储介质
CN112235175B (zh) * 2020-09-01 2022-03-18 深圳市共进电子股份有限公司 一种网桥设备的访问方法、访问装置及网桥设备
CN113452616B (zh) * 2021-07-13 2022-04-19 烽火通信科技股份有限公司 一种三四地址路由器及其下挂设备管理方法及装置
CN117135772B (zh) * 2023-08-22 2024-06-04 深圳市众通源科技发展有限公司 一种网桥管理方法

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1561045A (zh) * 2004-03-10 2005-01-05 中兴通讯股份有限公司 一种无线局域网网桥透明桥接的实现方法
CN1933460A (zh) * 2006-09-30 2007-03-21 中兴通讯股份有限公司 无线局域网传输组播帧的设备、系统及实现方法
CN101510853A (zh) * 2009-04-09 2009-08-19 杭州华三通信技术有限公司 Wlan无线桥接的实现方法和装置及无线接入客户端

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2524692A1 (en) * 2002-12-19 2004-07-08 Nokia Corporation System and handover mechanism in frequency multiple band environment and equipment therefor
CN101115063B (zh) * 2007-08-30 2011-11-30 中兴通讯股份有限公司 宽带接入设备中防止mac地址/ip地址欺骗的方法
CN101453415A (zh) * 2007-11-29 2009-06-10 华为技术有限公司 一种接入网络的保护方法、系统及设备
CN101499993B (zh) * 2008-01-30 2012-07-04 华为技术有限公司 一种认证方法、设备和系统
CN101515950B (zh) * 2009-04-09 2011-11-16 杭州华三通信技术有限公司 Wlan子网终端的dhcp实现方法、装置及无线接入客户端
CN102136977B (zh) * 2011-02-28 2015-04-01 中兴通讯股份有限公司 一种拨号设备以及根据用户需求实现虚拟拨号的方法
CN105392211B (zh) * 2011-12-23 2019-03-19 华为技术有限公司 一种无线中继设备的中继方法及无线中继设备

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1561045A (zh) * 2004-03-10 2005-01-05 中兴通讯股份有限公司 一种无线局域网网桥透明桥接的实现方法
CN1933460A (zh) * 2006-09-30 2007-03-21 中兴通讯股份有限公司 无线局域网传输组播帧的设备、系统及实现方法
CN101510853A (zh) * 2009-04-09 2009-08-19 杭州华三通信技术有限公司 Wlan无线桥接的实现方法和装置及无线接入客户端

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3210432A4 (en) * 2014-11-18 2018-02-21 Huawei Technologies Co., Ltd. Conveying device-dependent context in a network address
US10511525B2 (en) 2014-11-18 2019-12-17 Huawei Technologies Co., Ltd. Conveying device-dependent context in a network address
CN105530127A (zh) * 2015-12-10 2016-04-27 北京奇虎科技有限公司 一种代理服务器处理网络访问请求的方法和代理服务器
CN105530127B (zh) * 2015-12-10 2019-02-01 北京奇虎科技有限公司 一种代理服务器处理网络访问请求的方法和代理服务器

Also Published As

Publication number Publication date
CN103685588A (zh) 2014-03-26

Similar Documents

Publication Publication Date Title
WO2014036890A1 (zh) 客户端模式下无线网络设备网桥转发报文的方法及装置
WO2017000878A1 (zh) 报文处理
CN104468866B (zh) 一种无线局域网中多网关终端快速漫游方法
WO2012167559A1 (zh) 一种快速转发数据包的方法及三层设备
WO2014101501A1 (zh) 一种NAT实现系统、方法及Openflow交换机
RU2012136595A (ru) Схема локального ip доступа
WO2010139238A1 (zh) 实现强制mac转发功能的方法和装置
CN102148765B (zh) 一体化标识网络与传统IPv4互联网互联互通的实现方法
WO2014187212A1 (zh) 一种转发报文的方法及装置
WO2009052668A1 (fr) Dispositif nat-pt et procédé de répartition de charge pour un dispositif nat-pt
CN106911724B (zh) 一种报文处理方法及装置
CN107770072B (zh) 一种发送和接收报文的方法和设备
WO2015109478A1 (zh) 实现arp的方法、交换设备及控制设备
WO2019227891A1 (zh) 一种实现节点间通讯的方法、装置及电子设备
WO2017156908A1 (zh) 一种报文转发的方法和装置
WO2011044808A1 (zh) 一种匿名通信的溯源方法及系统
WO2011035615A1 (zh) 一种数据传输方法、系统及装置
JP2004222229A (ja) ルータとそのパケット伝送方法
JP2020522190A (ja) パケット転送
WO2014198064A1 (zh) 一种处理报文的方法和转发器
WO2014067486A1 (zh) 一种报文转发的方法及相应设备
US8934489B2 (en) Routing device and method for processing network packet thereof
WO2014110737A1 (zh) 网络中的设备配置方法、设备和系统
US9172675B2 (en) Methods and apparatus for network communication
WO2021259032A1 (zh) Ipv6网络通信方法、装置及系统

Legal Events

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

Ref document number: 13834808

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13834808

Country of ref document: EP

Kind code of ref document: A1